@pathscale/ui 0.0.11 → 0.0.13
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/64ESNXN4.js +1 -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/H2Q3L5KM.js +48 -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/O7LDJCQS.jsx +18 -0
- package/dist/chunk/PFB27MP3.jsx +0 -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/T324HUIT.jsx +57 -0
- package/dist/chunk/T5LDPSFV.jsx +122 -0
- package/dist/chunk/UNKDNDT3.js +62 -0
- package/dist/chunk/XM3KF5LV.jsx +179 -0
- package/dist/chunk/YWIT2MRI.jsx +43 -0
- package/dist/chunk/ZH7DKMMN.js +109 -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 +6 -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/loading/index.d.ts +11 -0
- package/dist/components/loading/index.js +1 -0
- package/dist/components/loading/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 +25 -19
- package/dist/index.js +23 -19
- package/dist/index.jsx +87 -67
- 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
package/README.md
CHANGED
|
@@ -10,3 +10,56 @@ To build this package, use the following command
|
|
|
10
10
|
```sh
|
|
11
11
|
bun run build
|
|
12
12
|
```
|
|
13
|
+
|
|
14
|
+
# Components Checklist
|
|
15
|
+
|
|
16
|
+
## Actions
|
|
17
|
+
- [x] Button
|
|
18
|
+
- [ ] Dropdown (A)
|
|
19
|
+
- [ ] Modal
|
|
20
|
+
- [ ] Swap
|
|
21
|
+
|
|
22
|
+
## Data Display
|
|
23
|
+
- [x] Accordion
|
|
24
|
+
- [x] Avatar
|
|
25
|
+
- [x] Badge
|
|
26
|
+
- [ ] Card
|
|
27
|
+
- [ ] Carousel
|
|
28
|
+
- [ ] Chat Bubble
|
|
29
|
+
- [x] Collapse
|
|
30
|
+
- [ ] Countdown
|
|
31
|
+
- [ ] Diff
|
|
32
|
+
- [ ] Kbd
|
|
33
|
+
- [ ] Stats
|
|
34
|
+
- [ ] Table
|
|
35
|
+
- [ ] Timeline
|
|
36
|
+
|
|
37
|
+
## Navigation
|
|
38
|
+
- [ ] Bottom Navigation
|
|
39
|
+
- [x] Breadcrumbs
|
|
40
|
+
- [ ] Link
|
|
41
|
+
- [x] Menu
|
|
42
|
+
- [ ] Navbar (A)
|
|
43
|
+
- [x] Pagination
|
|
44
|
+
- [x] Steps
|
|
45
|
+
- [ ] Tabs
|
|
46
|
+
|
|
47
|
+
## Feedback
|
|
48
|
+
- [ ] Alert
|
|
49
|
+
- [x] Loading
|
|
50
|
+
- [ ] Progress
|
|
51
|
+
- [ ] Radial Progress
|
|
52
|
+
- [ ] Skeleton
|
|
53
|
+
- [x] Tooltip
|
|
54
|
+
- [ ] Toast
|
|
55
|
+
|
|
56
|
+
## Data Input
|
|
57
|
+
- [x] Checkbox
|
|
58
|
+
- [x] File Input
|
|
59
|
+
- [x] Input
|
|
60
|
+
- [ ] Radio
|
|
61
|
+
- [ ] Range
|
|
62
|
+
- [ ] Rating
|
|
63
|
+
- [x] Select
|
|
64
|
+
- [x] Textarea
|
|
65
|
+
- [x] Toggle
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { I as IComponentBaseProps, C as ComponentSize, a as ComponentShape, b as ComponentColor } from './types-CUG9pToa.js';
|
|
3
|
+
|
|
4
|
+
type ElementType$1 = keyof JSX.IntrinsicElements;
|
|
5
|
+
type AvatarGroupBaseProps = {
|
|
6
|
+
/** Custom container tag */
|
|
7
|
+
as?: ElementType$1;
|
|
8
|
+
/** Extra classes */
|
|
9
|
+
class?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
children: JSX.Element[];
|
|
12
|
+
} & IComponentBaseProps;
|
|
13
|
+
type PropsOf$1<E extends ElementType$1> = JSX.IntrinsicElements[E];
|
|
14
|
+
type AvatarGroupProps<E extends ElementType$1 = "div"> = Omit<PropsOf$1<E>, keyof AvatarGroupBaseProps> & AvatarGroupBaseProps;
|
|
15
|
+
|
|
16
|
+
type ElementType = keyof JSX.IntrinsicElements;
|
|
17
|
+
type AvatarBaseProps = {
|
|
18
|
+
src?: string;
|
|
19
|
+
letters?: string;
|
|
20
|
+
size?: ComponentSize | number;
|
|
21
|
+
shape?: ComponentShape;
|
|
22
|
+
color?: Exclude<ComponentColor, "ghost">;
|
|
23
|
+
border?: boolean;
|
|
24
|
+
borderColor?: Exclude<ComponentColor, "ghost">;
|
|
25
|
+
online?: boolean;
|
|
26
|
+
offline?: boolean;
|
|
27
|
+
innerClass?: string;
|
|
28
|
+
as?: ElementType;
|
|
29
|
+
class?: string;
|
|
30
|
+
className?: string;
|
|
31
|
+
style?: JSX.CSSProperties;
|
|
32
|
+
children?: JSX.Element;
|
|
33
|
+
};
|
|
34
|
+
type PropsOf<E extends ElementType> = JSX.IntrinsicElements[E];
|
|
35
|
+
type AvatarProps<E extends ElementType = "div"> = Omit<PropsOf<E>, "color"> & AvatarBaseProps & IComponentBaseProps;
|
|
36
|
+
declare const _default: (<E extends ElementType = "div">(props: AvatarProps<E>) => JSX.Element) & {
|
|
37
|
+
Group: <E extends keyof JSX.IntrinsicElements = "div">(props: AvatarGroupProps<E>) => JSX.Element;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { type AvatarProps as A, _default as _ };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { I as IComponentBaseProps } from './types-CUG9pToa.js';
|
|
3
|
+
|
|
4
|
+
type CollapseContentProps = JSX.HTMLAttributes<HTMLDivElement> & IComponentBaseProps;
|
|
5
|
+
declare function CollapseContent(props: CollapseContentProps): JSX.Element;
|
|
6
|
+
|
|
7
|
+
type CollapseTitleProps<T extends HTMLElement = HTMLDivElement> = JSX.HTMLAttributes<T> & IComponentBaseProps;
|
|
8
|
+
declare function CollapseTitle(props: CollapseTitleProps): JSX.Element;
|
|
9
|
+
type SummaryProps = JSX.HTMLAttributes<HTMLElement> & IComponentBaseProps;
|
|
10
|
+
declare function Summary(props: SummaryProps): JSX.Element;
|
|
11
|
+
|
|
12
|
+
export { CollapseContent as C, Summary as S, CollapseTitle as a };
|
|
@@ -25,7 +25,7 @@ declare const fieldWrapper: {
|
|
|
25
25
|
false: string;
|
|
26
26
|
};
|
|
27
27
|
}> & ClassProps) | undefined): string;
|
|
28
|
-
variantKeys: ("
|
|
28
|
+
variantKeys: ("type" | "size" | "horizontal" | "grouped" | "groupMultiline")[];
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
type FieldProps = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component, JSX } from 'solid-js';
|
|
2
|
+
import { I as IComponentBaseProps } from './types-CUG9pToa.js';
|
|
3
|
+
|
|
4
|
+
type MaskProps = JSX.ImgHTMLAttributes<HTMLImageElement> & IComponentBaseProps & {
|
|
5
|
+
variant?: "squircle" | "heart" | "hexagon" | "hexagon-2" | "decagon" | "pentagon" | "diamond" | "square" | "circle" | "star" | "star-2" | "triangle" | "triangle-2" | "triangle-3" | "triangle-4" | "half-1" | "half-2";
|
|
6
|
+
class?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: JSX.CSSProperties;
|
|
9
|
+
};
|
|
10
|
+
declare function maskClassName({ className, variant, }?: Pick<MaskProps, "className" | "variant">): string;
|
|
11
|
+
type MaskComponent = Component<MaskProps> & {
|
|
12
|
+
className: typeof maskClassName;
|
|
13
|
+
};
|
|
14
|
+
declare const Mask: MaskComponent;
|
|
15
|
+
|
|
16
|
+
export { Mask as M };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as solid_js from 'solid-js';
|
|
2
|
+
import { JSX } from 'solid-js';
|
|
3
|
+
import { I as IComponentBaseProps, C as ComponentSize } from './types-CUG9pToa.js';
|
|
4
|
+
|
|
5
|
+
type MenuTitleProps = JSX.LiHTMLAttributes<HTMLLIElement> & IComponentBaseProps & {
|
|
6
|
+
class?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
type MenuItemProps = JSX.LiHTMLAttributes<HTMLLIElement> & IComponentBaseProps & {
|
|
11
|
+
focus?: boolean;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type MenuDropdownProps = JSX.HTMLAttributes<HTMLSpanElement> & IComponentBaseProps & {
|
|
17
|
+
label: JSX.Element;
|
|
18
|
+
open?: boolean;
|
|
19
|
+
class?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: JSX.CSSProperties;
|
|
22
|
+
children?: JSX.Element;
|
|
23
|
+
"data-theme"?: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
type MenuDetailsProps = JSX.DetailsHtmlAttributes<HTMLDetailsElement> & IComponentBaseProps & {
|
|
27
|
+
label: JSX.Element;
|
|
28
|
+
open?: boolean;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
type MenuProps = JSX.HTMLAttributes<HTMLUListElement> & IComponentBaseProps & {
|
|
32
|
+
vertical?: boolean;
|
|
33
|
+
horizontal?: boolean;
|
|
34
|
+
responsive?: boolean;
|
|
35
|
+
size?: ComponentSize;
|
|
36
|
+
};
|
|
37
|
+
declare const _default: ((props: MenuProps) => JSX.Element) & {
|
|
38
|
+
Title: solid_js.Component<MenuTitleProps>;
|
|
39
|
+
Item: solid_js.Component<MenuItemProps>;
|
|
40
|
+
Dropdown: solid_js.Component<MenuDropdownProps>;
|
|
41
|
+
Details: solid_js.Component<MenuDetailsProps>;
|
|
42
|
+
Menu: (props: MenuProps) => JSX.Element;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { type MenuProps as M, _default as _ };
|
|
@@ -30,7 +30,7 @@ declare const progressWrapper: {
|
|
|
30
30
|
circle: string;
|
|
31
31
|
};
|
|
32
32
|
}> & ClassProps) | undefined): string;
|
|
33
|
-
variantKeys: ("
|
|
33
|
+
variantKeys: ("shape" | "size")[];
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
36
|
* The colored fill bar.
|
|
@@ -50,7 +50,7 @@ declare const progressFill: {
|
|
|
50
50
|
ghost: string;
|
|
51
51
|
};
|
|
52
52
|
}> & ClassProps) | undefined): string;
|
|
53
|
-
variantKeys: ("
|
|
53
|
+
variantKeys: ("color" | "variant")[];
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
interface ProgressProps extends VariantProps<typeof progressContainer>, VariantProps<typeof progressWrapper>, VariantProps<typeof progressFill>, Omit<ComponentProps<"div">, "class" | "color"> {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { b as ComponentColor, I as IComponentBaseProps } from './types-CUG9pToa.js';
|
|
3
|
+
|
|
4
|
+
type ElementType$1 = keyof JSX.IntrinsicElements;
|
|
5
|
+
type StepBaseProps = {
|
|
6
|
+
/** Label for the step indicator */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Color variant */
|
|
9
|
+
color?: "neutral" | ComponentColor;
|
|
10
|
+
/** Custom element tag */
|
|
11
|
+
as?: ElementType$1;
|
|
12
|
+
class?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
style?: JSX.CSSProperties;
|
|
15
|
+
children?: JSX.Element;
|
|
16
|
+
"data-theme"?: string;
|
|
17
|
+
};
|
|
18
|
+
type PropsOf$1<E extends ElementType$1> = JSX.IntrinsicElements[E];
|
|
19
|
+
type StepProps<E extends ElementType$1 = "li"> = Omit<PropsOf$1<E>, keyof StepBaseProps | "color"> & StepBaseProps & IComponentBaseProps;
|
|
20
|
+
|
|
21
|
+
type ElementType = keyof JSX.IntrinsicElements;
|
|
22
|
+
type StepsBaseProps = {
|
|
23
|
+
vertical?: boolean;
|
|
24
|
+
horizontal?: boolean;
|
|
25
|
+
as?: ElementType;
|
|
26
|
+
class?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: JSX.CSSProperties;
|
|
29
|
+
children?: JSX.Element;
|
|
30
|
+
"data-theme"?: string;
|
|
31
|
+
};
|
|
32
|
+
type PropsOf<E extends ElementType> = JSX.IntrinsicElements[E];
|
|
33
|
+
type StepsProps<E extends ElementType = "ul"> = Omit<PropsOf<E>, keyof StepsBaseProps> & StepsBaseProps & IComponentBaseProps;
|
|
34
|
+
declare const _default: (<E extends ElementType = "ul">(props: StepsProps<E>) => JSX.Element) & {
|
|
35
|
+
Step: <E extends keyof JSX.IntrinsicElements = "li">(props: StepProps<E>) => JSX.Element;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export { _default as _ };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CollapseTitle, CollapseContent } from './2VQ2762Z.js';
|
|
2
|
+
import { clsx } from './HUHXQCKK.js';
|
|
3
|
+
import { twMerge } from './STFCLC5R.js';
|
|
4
|
+
import { template, spread, mergeProps, insert, effect, className, setAttribute, style } from 'solid-js/web';
|
|
5
|
+
import { splitProps } from 'solid-js';
|
|
6
|
+
|
|
7
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div><input type=radio>`);
|
|
8
|
+
var Accordion = (props) => {
|
|
9
|
+
const [local, others] = splitProps(props, ["name", "icon", "dataTheme", "class", "className", "style"]);
|
|
10
|
+
const classes = () => twMerge("collapse", clsx({
|
|
11
|
+
"collapse-arrow": local.icon === "arrow",
|
|
12
|
+
"collapse-plus": local.icon === "plus"
|
|
13
|
+
}), local.class, local.className);
|
|
14
|
+
return (() => {
|
|
15
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
16
|
+
spread(_el$2, mergeProps({
|
|
17
|
+
get name() {
|
|
18
|
+
return local.name ?? "accordion";
|
|
19
|
+
}
|
|
20
|
+
}, others), false, false);
|
|
21
|
+
insert(_el$, () => props.children, null);
|
|
22
|
+
effect((_p$) => {
|
|
23
|
+
var _v$ = classes(), _v$2 = local.dataTheme, _v$3 = local.style;
|
|
24
|
+
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
25
|
+
_v$2 !== _p$.t && setAttribute(_el$, "data-theme", _p$.t = _v$2);
|
|
26
|
+
_p$.a = style(_el$, _v$3, _p$.a);
|
|
27
|
+
return _p$;
|
|
28
|
+
}, {
|
|
29
|
+
e: void 0,
|
|
30
|
+
t: void 0,
|
|
31
|
+
a: void 0
|
|
32
|
+
});
|
|
33
|
+
return _el$;
|
|
34
|
+
})();
|
|
35
|
+
};
|
|
36
|
+
Accordion.Title = CollapseTitle;
|
|
37
|
+
Accordion.Content = CollapseContent;
|
|
38
|
+
var Accordion_default = Accordion;
|
|
39
|
+
|
|
40
|
+
export { Accordion_default };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { clsx } from './HUHXQCKK.js';
|
|
2
|
+
import { twMerge } from './STFCLC5R.js';
|
|
3
|
+
import { template, spread, mergeProps, insert } from 'solid-js/web';
|
|
4
|
+
|
|
5
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
6
|
+
function CollapseContent(props) {
|
|
7
|
+
const classes = twMerge("collapse-content", props.class);
|
|
8
|
+
return (() => {
|
|
9
|
+
var _el$ = _tmpl$();
|
|
10
|
+
spread(_el$, mergeProps(props, {
|
|
11
|
+
"class": classes
|
|
12
|
+
}), false, false);
|
|
13
|
+
return _el$;
|
|
14
|
+
})();
|
|
15
|
+
}
|
|
16
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
|
|
17
|
+
var _tmpl$22 = /* @__PURE__ */ template(`<summary>`);
|
|
18
|
+
var classesFn = ({
|
|
19
|
+
className
|
|
20
|
+
}) => twMerge("collapse-title", className);
|
|
21
|
+
function CollapseTitle(props) {
|
|
22
|
+
return (() => {
|
|
23
|
+
var _el$ = _tmpl$2();
|
|
24
|
+
spread(_el$, mergeProps(props, {
|
|
25
|
+
get ["class"]() {
|
|
26
|
+
return classesFn({
|
|
27
|
+
className: props.class
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}), false, false);
|
|
31
|
+
return _el$;
|
|
32
|
+
})();
|
|
33
|
+
}
|
|
34
|
+
function Summary(props) {
|
|
35
|
+
return (() => {
|
|
36
|
+
var _el$2 = _tmpl$22();
|
|
37
|
+
spread(_el$2, mergeProps(props, {
|
|
38
|
+
get ["class"]() {
|
|
39
|
+
return classesFn({
|
|
40
|
+
className: props.class
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}), false, false);
|
|
44
|
+
return _el$2;
|
|
45
|
+
})();
|
|
46
|
+
}
|
|
47
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<details>`);
|
|
48
|
+
function classesFn2({
|
|
49
|
+
className,
|
|
50
|
+
icon,
|
|
51
|
+
open
|
|
52
|
+
}) {
|
|
53
|
+
return twMerge("collapse", className, clsx({
|
|
54
|
+
"collapse-arrow": icon === "arrow",
|
|
55
|
+
"collapse-plus": icon === "plus",
|
|
56
|
+
"collapse-open": open === true,
|
|
57
|
+
"collapse-close": open === false
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
function CollapseDetails(props) {
|
|
61
|
+
const classes = classesFn2({
|
|
62
|
+
className: props.class,
|
|
63
|
+
icon: props.icon,
|
|
64
|
+
open: props.open
|
|
65
|
+
});
|
|
66
|
+
return (() => {
|
|
67
|
+
var _el$ = _tmpl$3();
|
|
68
|
+
spread(_el$, mergeProps(props, {
|
|
69
|
+
"class": classes,
|
|
70
|
+
get open() {
|
|
71
|
+
return props.open;
|
|
72
|
+
}
|
|
73
|
+
}), false, true);
|
|
74
|
+
insert(_el$, () => props.children);
|
|
75
|
+
return _el$;
|
|
76
|
+
})();
|
|
77
|
+
}
|
|
78
|
+
CollapseDetails.Title = Summary;
|
|
79
|
+
|
|
80
|
+
export { CollapseContent, CollapseDetails, CollapseTitle, Summary };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { clsx } from './HUHXQCKK.js';
|
|
2
|
+
import { twMerge } from './STFCLC5R.js';
|
|
3
|
+
import { createComponent, Dynamic, mergeProps, template, effect, className, style, setAttribute, insert } from 'solid-js/web';
|
|
4
|
+
import { splitProps, children } from 'solid-js';
|
|
5
|
+
|
|
6
|
+
var VoidElementList = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "keygen", "meta", "param", "source", "track", "wbr"];
|
|
7
|
+
var AvatarGroup = (props) => {
|
|
8
|
+
const [local, others] = splitProps(props, ["as", "class", "className", "children"]);
|
|
9
|
+
const Tag = local.as || "div";
|
|
10
|
+
const classes = () => twMerge("avatar-group -space-x-6", local.class, local.className);
|
|
11
|
+
const ariaLabel = `Group of ${local.children.length} avatar photos`;
|
|
12
|
+
if (VoidElementList.includes(Tag)) {
|
|
13
|
+
return createComponent(Dynamic, mergeProps({
|
|
14
|
+
component: Tag
|
|
15
|
+
}, others, {
|
|
16
|
+
"aria-label": ariaLabel,
|
|
17
|
+
get ["class"]() {
|
|
18
|
+
return classes();
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
return createComponent(Dynamic, mergeProps({
|
|
23
|
+
component: Tag
|
|
24
|
+
}, others, {
|
|
25
|
+
"aria-label": ariaLabel,
|
|
26
|
+
get ["class"]() {
|
|
27
|
+
return classes();
|
|
28
|
+
},
|
|
29
|
+
get children() {
|
|
30
|
+
return local.children;
|
|
31
|
+
}
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
var AvatarGroup_default = AvatarGroup;
|
|
35
|
+
|
|
36
|
+
// src/components/avatar/Avatar.tsx
|
|
37
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div><img>`);
|
|
38
|
+
var _tmpl$2 = /* @__PURE__ */ template(`<div><span>`);
|
|
39
|
+
var _tmpl$3 = /* @__PURE__ */ template(`<div>`);
|
|
40
|
+
var VoidElementList2 = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "keygen", "meta", "param", "source", "track", "wbr"];
|
|
41
|
+
var Avatar = (props) => {
|
|
42
|
+
const [local, others] = splitProps(props, ["src", "letters", "size", "shape", "color", "border", "borderColor", "online", "offline", "innerClass", "as", "class", "className", "style", "children"]);
|
|
43
|
+
const Tag = local.as || "div";
|
|
44
|
+
const containerClass = () => twMerge("avatar", local.class, local.className, clsx({
|
|
45
|
+
"avatar-online": local.online,
|
|
46
|
+
"avatar-offline": local.offline,
|
|
47
|
+
"avatar-placeholder": !local.src
|
|
48
|
+
}));
|
|
49
|
+
const customSizeStyle = typeof local.size === "number" ? {
|
|
50
|
+
width: `${local.size}px`,
|
|
51
|
+
height: `${local.size}px`
|
|
52
|
+
} : void 0;
|
|
53
|
+
const baseInner = () => twMerge(local.innerClass);
|
|
54
|
+
const imgClasses = () => clsx(baseInner(), {
|
|
55
|
+
ring: local.border,
|
|
56
|
+
"ring-offset-base-100 ring-offset-2": local.border,
|
|
57
|
+
[`ring-${local.borderColor}`]: local.border && local.borderColor,
|
|
58
|
+
"rounded-full": local.shape === "circle",
|
|
59
|
+
"rounded-btn": local.shape === "square",
|
|
60
|
+
"w-32 h-32": local.size === "lg",
|
|
61
|
+
"w-24 h-24": local.size === "md",
|
|
62
|
+
"w-14 h-14": local.size === "sm",
|
|
63
|
+
"w-10 h-10": local.size === "xs"
|
|
64
|
+
});
|
|
65
|
+
const placeholderClasses = () => clsx(baseInner(), {
|
|
66
|
+
"bg-neutral-focus": !local.color,
|
|
67
|
+
"text-neutral-content": !local.color || local.color === "neutral",
|
|
68
|
+
[`bg-${local.color}`]: !!local.color,
|
|
69
|
+
[`text-${local.color}-content`]: !!local.color,
|
|
70
|
+
ring: local.border,
|
|
71
|
+
"ring-offset-base-100 ring-offset-2": local.border,
|
|
72
|
+
[`ring-${local.borderColor}`]: local.border && local.borderColor,
|
|
73
|
+
"rounded-full": local.shape === "circle",
|
|
74
|
+
"rounded-btn": local.shape === "square",
|
|
75
|
+
"w-32 h-32 text-3xl": local.size === "lg",
|
|
76
|
+
"w-24 h-24 text-xl": local.size === "md",
|
|
77
|
+
"w-14 h-14": local.size === "sm",
|
|
78
|
+
"w-10 h-10": local.size === "xs"
|
|
79
|
+
});
|
|
80
|
+
const resolved = children(() => local.children)();
|
|
81
|
+
const isStringChild = typeof resolved === "string";
|
|
82
|
+
const renderContents = () => {
|
|
83
|
+
return local.src ? (() => {
|
|
84
|
+
var _el$ = _tmpl$(), _el$2 = _el$.firstChild;
|
|
85
|
+
effect((_p$) => {
|
|
86
|
+
var _v$ = imgClasses(), _v$2 = customSizeStyle, _v$3 = local.src;
|
|
87
|
+
_v$ !== _p$.e && className(_el$, _p$.e = _v$);
|
|
88
|
+
_p$.t = style(_el$, _v$2, _p$.t);
|
|
89
|
+
_v$3 !== _p$.a && setAttribute(_el$2, "src", _p$.a = _v$3);
|
|
90
|
+
return _p$;
|
|
91
|
+
}, {
|
|
92
|
+
e: void 0,
|
|
93
|
+
t: void 0,
|
|
94
|
+
a: void 0
|
|
95
|
+
});
|
|
96
|
+
return _el$;
|
|
97
|
+
})() : local.letters || isStringChild ? (() => {
|
|
98
|
+
var _el$3 = _tmpl$2(), _el$4 = _el$3.firstChild;
|
|
99
|
+
insert(_el$4, () => local.letters ?? resolved);
|
|
100
|
+
effect((_p$) => {
|
|
101
|
+
var _v$4 = placeholderClasses(), _v$5 = customSizeStyle;
|
|
102
|
+
_v$4 !== _p$.e && className(_el$3, _p$.e = _v$4);
|
|
103
|
+
_p$.t = style(_el$3, _v$5, _p$.t);
|
|
104
|
+
return _p$;
|
|
105
|
+
}, {
|
|
106
|
+
e: void 0,
|
|
107
|
+
t: void 0
|
|
108
|
+
});
|
|
109
|
+
return _el$3;
|
|
110
|
+
})() : (() => {
|
|
111
|
+
var _el$5 = _tmpl$3();
|
|
112
|
+
insert(_el$5, () => local.children);
|
|
113
|
+
effect((_p$) => {
|
|
114
|
+
var _v$6 = imgClasses(), _v$7 = customSizeStyle;
|
|
115
|
+
_v$6 !== _p$.e && className(_el$5, _p$.e = _v$6);
|
|
116
|
+
_p$.t = style(_el$5, _v$7, _p$.t);
|
|
117
|
+
return _p$;
|
|
118
|
+
}, {
|
|
119
|
+
e: void 0,
|
|
120
|
+
t: void 0
|
|
121
|
+
});
|
|
122
|
+
return _el$5;
|
|
123
|
+
})();
|
|
124
|
+
};
|
|
125
|
+
if (VoidElementList2.includes(Tag)) {
|
|
126
|
+
return createComponent(Dynamic, mergeProps({
|
|
127
|
+
component: Tag
|
|
128
|
+
}, others, {
|
|
129
|
+
get ["data-theme"]() {
|
|
130
|
+
return others["dataTheme"];
|
|
131
|
+
},
|
|
132
|
+
get ["class"]() {
|
|
133
|
+
return containerClass();
|
|
134
|
+
},
|
|
135
|
+
get style() {
|
|
136
|
+
return local.style;
|
|
137
|
+
}
|
|
138
|
+
}));
|
|
139
|
+
}
|
|
140
|
+
return createComponent(Dynamic, mergeProps({
|
|
141
|
+
component: Tag
|
|
142
|
+
}, others, {
|
|
143
|
+
get ["data-theme"]() {
|
|
144
|
+
return others["dataTheme"];
|
|
145
|
+
},
|
|
146
|
+
get ["class"]() {
|
|
147
|
+
return containerClass();
|
|
148
|
+
},
|
|
149
|
+
get style() {
|
|
150
|
+
return local.style;
|
|
151
|
+
},
|
|
152
|
+
get children() {
|
|
153
|
+
return renderContents();
|
|
154
|
+
}
|
|
155
|
+
}));
|
|
156
|
+
};
|
|
157
|
+
var Avatar_default = Object.assign(Avatar, {
|
|
158
|
+
Group: AvatarGroup_default
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// src/components/avatar/index.ts
|
|
162
|
+
var avatar_default = Avatar_default;
|
|
163
|
+
|
|
164
|
+
export { avatar_default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { clsx } from './HUHXQCKK.js';
|
|
2
|
+
import { twMerge } from './STFCLC5R.js';
|
|
3
|
+
import { template, spread, mergeProps, insert } from 'solid-js/web';
|
|
4
|
+
import { splitProps } from 'solid-js';
|
|
5
|
+
|
|
6
|
+
var _tmpl$ = /* @__PURE__ */ template(`<div>`);
|
|
7
|
+
var Join = (props) => {
|
|
8
|
+
const [local, others] = splitProps(props, ["responsive", "vertical", "horizontal", "class", "className", "dataTheme", "style"]);
|
|
9
|
+
const classes = () => twMerge("join", clsx({
|
|
10
|
+
"join-vertical": !local.responsive && local.vertical,
|
|
11
|
+
"join-horizontal": !local.responsive && local.horizontal,
|
|
12
|
+
"join-vertical lg:join-horizontal": local.responsive
|
|
13
|
+
}), local.class, local.className);
|
|
14
|
+
return (() => {
|
|
15
|
+
var _el$ = _tmpl$();
|
|
16
|
+
spread(_el$, mergeProps(others, {
|
|
17
|
+
get ["class"]() {
|
|
18
|
+
return classes();
|
|
19
|
+
},
|
|
20
|
+
get ["data-theme"]() {
|
|
21
|
+
return local.dataTheme;
|
|
22
|
+
},
|
|
23
|
+
get style() {
|
|
24
|
+
return local.style;
|
|
25
|
+
}
|
|
26
|
+
}), false, true);
|
|
27
|
+
insert(_el$, () => props.children);
|
|
28
|
+
return _el$;
|
|
29
|
+
})();
|
|
30
|
+
};
|
|
31
|
+
var Join_default = Join;
|
|
32
|
+
|
|
33
|
+
export { Join_default };
|