funuicss 3.8.13 → 3.8.15
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/css/fun.css +10 -155
- package/package.json +1 -1
- package/ui/accordion/Accordion.js +589 -18
- package/ui/feature/Feature.d.ts +40 -70
- package/ui/feature/Feature.js +913 -175
- package/ui/form/Form.js +25 -7
- package/ui/sidebar/SideBar.js +354 -14
- package/ui/text/Text.d.ts +3 -0
- package/ui/text/Text.js +15 -2
- package/ui/vista/Vista.d.ts +8 -10
- package/ui/vista/Vista.js +57 -120
- package/utils/componentUtils.d.ts +2 -2
- package/utils/componentUtils.js +361 -310
package/ui/feature/Feature.d.ts
CHANGED
|
@@ -1,31 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
type
|
|
2
|
+
type ContentItem = {
|
|
3
3
|
icon?: string | React.ReactNode;
|
|
4
4
|
iconColor?: string;
|
|
5
5
|
iconSize?: number;
|
|
6
|
-
iconClassName?: string;
|
|
7
6
|
title?: React.ReactNode;
|
|
8
|
-
titleSize?: string;
|
|
9
|
-
titleWeight?: number;
|
|
10
|
-
titleColor?: string;
|
|
11
|
-
titleClassName?: string;
|
|
12
7
|
description?: React.ReactNode;
|
|
13
|
-
descriptionSize?: string;
|
|
14
|
-
descriptionWeight?: number;
|
|
15
|
-
descriptionColor?: string;
|
|
16
|
-
descriptionClassName?: string;
|
|
17
8
|
imageUrl?: string;
|
|
18
9
|
imageAlt?: string;
|
|
19
|
-
imageClassName?: string;
|
|
20
|
-
imageStyle?: React.CSSProperties;
|
|
21
|
-
content?: React.ReactNode;
|
|
22
10
|
className?: string;
|
|
23
11
|
style?: React.CSSProperties;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
12
|
+
customerName?: string;
|
|
13
|
+
company?: string;
|
|
14
|
+
avatar?: string;
|
|
15
|
+
role?: string;
|
|
16
|
+
project?: string;
|
|
17
|
+
rating?: number;
|
|
18
|
+
date?: string;
|
|
19
|
+
featured?: boolean;
|
|
20
|
+
content?: string;
|
|
29
21
|
};
|
|
30
22
|
interface CarouselOptions {
|
|
31
23
|
isCarousel?: boolean;
|
|
@@ -33,85 +25,63 @@ interface CarouselOptions {
|
|
|
33
25
|
gap?: number;
|
|
34
26
|
carouselFuncss?: string;
|
|
35
27
|
showDashes?: boolean;
|
|
36
|
-
allowVerticalOverflow?: boolean;
|
|
37
|
-
itemPadding?: string;
|
|
38
|
-
controlerSize?: number;
|
|
39
|
-
controlerIconSize?: number;
|
|
40
|
-
infiniteScroll?: boolean;
|
|
41
|
-
infiniteScrollSpeed?: number;
|
|
42
|
-
infiniteScrollDirection?: 'left' | 'right' | 'alternate';
|
|
43
|
-
carouselContainerClassName?: string;
|
|
44
|
-
carouselContainerStyle?: React.CSSProperties;
|
|
45
28
|
}
|
|
46
29
|
type FeatureProps = {
|
|
47
30
|
variant?: string;
|
|
48
31
|
layout?: 'checklist' | 'centered' | 'grid';
|
|
49
32
|
title?: React.ReactNode;
|
|
50
|
-
titleSize?:
|
|
51
|
-
titleWeight?: number;
|
|
33
|
+
titleSize?: 'base' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
52
34
|
titleColor?: string;
|
|
53
|
-
titleClassName?: string;
|
|
54
35
|
titleAlign?: 'left' | 'center' | 'right';
|
|
55
36
|
subtitle?: React.ReactNode;
|
|
56
|
-
subtitleSize?:
|
|
57
|
-
subtitleWeight?: number;
|
|
37
|
+
subtitleSize?: 'base' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
58
38
|
subtitleColor?: string;
|
|
59
|
-
subtitleClassName?: string;
|
|
60
39
|
description?: React.ReactNode;
|
|
61
|
-
descriptionSize?:
|
|
62
|
-
descriptionWeight?: number;
|
|
40
|
+
descriptionSize?: 'base' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
63
41
|
descriptionColor?: string;
|
|
64
|
-
|
|
65
|
-
|
|
42
|
+
isTestimonial?: boolean;
|
|
43
|
+
items?: ContentItem[] | string;
|
|
44
|
+
bucket?: string;
|
|
45
|
+
bucketPage?: number;
|
|
46
|
+
bucketSize?: number;
|
|
66
47
|
gap?: number;
|
|
67
48
|
itemMaxWidth?: string;
|
|
68
|
-
align?: 'start' | 'center' | 'end'
|
|
49
|
+
align?: 'start' | 'center' | 'end';
|
|
69
50
|
justify?: 'start' | 'center' | 'end' | 'between' | 'around';
|
|
70
51
|
wrap?: boolean;
|
|
71
52
|
card?: boolean;
|
|
72
53
|
cardPadding?: string;
|
|
73
54
|
cardRounded?: string;
|
|
74
55
|
cardShadow?: 'sm' | 'md' | 'lg' | 'xl' | 'none';
|
|
75
|
-
cardBorder?: boolean;
|
|
76
|
-
cardBorderColor?: string;
|
|
77
|
-
cardHoverEffect?: 'lift' | 'glow' | 'scale' | 'none';
|
|
78
56
|
cardClassName?: string;
|
|
79
|
-
padding?: string;
|
|
80
|
-
className?: string;
|
|
81
|
-
style?: React.CSSProperties;
|
|
82
|
-
containerClassName?: string;
|
|
83
|
-
containerStyle?: React.CSSProperties;
|
|
84
57
|
iconColor?: string;
|
|
85
58
|
iconSize?: number;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
59
|
+
itemTitleSize?: 'base' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
60
|
+
itemDescriptionSize?: 'base' | 'xs' | 'sm' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl';
|
|
61
|
+
showStars?: boolean;
|
|
62
|
+
ratingIcon?: string;
|
|
63
|
+
starColor?: string;
|
|
64
|
+
showQuote?: boolean;
|
|
65
|
+
quoteIcon?: string | React.ReactNode;
|
|
66
|
+
quoteColor?: string;
|
|
67
|
+
showDate?: boolean;
|
|
68
|
+
showCompany?: boolean;
|
|
69
|
+
showRole?: boolean;
|
|
70
|
+
showCTA?: boolean;
|
|
71
|
+
contentLimit?: number;
|
|
72
|
+
showExpand?: boolean;
|
|
73
|
+
expandText?: string;
|
|
74
|
+
collapseText?: string;
|
|
97
75
|
ctaText?: string;
|
|
98
76
|
ctaUrl?: string;
|
|
99
|
-
ctaOnClick?: () => void;
|
|
100
|
-
ctaClassName?: string;
|
|
101
|
-
ctaAlign?: 'left' | 'center' | 'right';
|
|
102
|
-
ctaStringPrefix?: string;
|
|
103
|
-
ctaStringSuffix?: string;
|
|
104
|
-
ctaStartIcon?: React.ReactNode;
|
|
105
|
-
ctaEndIcon?: React.ReactNode;
|
|
106
|
-
ctaIconSize?: number;
|
|
107
|
-
ctaIsLoading?: boolean;
|
|
108
|
-
ctaStatus?: 'success' | 'warning' | 'info' | 'error';
|
|
109
77
|
ctaBg?: string;
|
|
110
|
-
|
|
78
|
+
ctaAlign?: 'left' | 'center' | 'right';
|
|
79
|
+
padding?: string;
|
|
80
|
+
className?: string;
|
|
81
|
+
containerClassName?: string;
|
|
82
|
+
maxWidth?: string;
|
|
111
83
|
id?: string;
|
|
112
84
|
funcss?: string;
|
|
113
|
-
sectionClass?: string;
|
|
114
|
-
maxWidth?: string;
|
|
115
85
|
} & CarouselOptions;
|
|
116
86
|
declare const Feature: React.FC<FeatureProps>;
|
|
117
87
|
export default Feature;
|