cecomponent 1.0.86 → 1.0.87
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/ce-component-lib.css +1 -1
- package/dist/ce-component-lib.js +22 -22
- package/dist/ce-component-lib.mjs +888 -887
- package/dist/components/Common/CEAutoSuggestInput/CEAutoSuggestInput.d.ts +3 -0
- package/dist/components/Common/CEFaqExpander/CEFaqExpander.d.ts +27 -0
- package/dist/components/Common/CEHoverCards/CEHoverCards.d.ts +31 -0
- package/package.json +1 -1
|
@@ -13,6 +13,9 @@ interface AutoSuggestInputProps {
|
|
|
13
13
|
multipleSelection?: boolean;
|
|
14
14
|
showSearchIcon?: boolean;
|
|
15
15
|
showDropdownIcon?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
showError?: boolean;
|
|
18
|
+
errorMessage?: string;
|
|
16
19
|
}
|
|
17
20
|
declare const CEAutoSuggestInput: React.FC<AutoSuggestInputProps>;
|
|
18
21
|
export default CEAutoSuggestInput;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CEFaqExpanderSize = "small" | "medium" | "large";
|
|
3
|
+
interface CEFaqItemProps {
|
|
4
|
+
question: string;
|
|
5
|
+
answer: string | React.ReactNode;
|
|
6
|
+
isOpen?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
interface CEFaqExpanderProps {
|
|
11
|
+
items: Omit<CEFaqItemProps, "isOpen" | "onClick">[];
|
|
12
|
+
title?: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
size?: CEFaqExpanderSize;
|
|
16
|
+
maxItems?: number;
|
|
17
|
+
allowMultiple?: boolean;
|
|
18
|
+
defaultOpenIndex?: number;
|
|
19
|
+
showItemCount?: boolean;
|
|
20
|
+
maxWidth?: string;
|
|
21
|
+
theme?: "light" | "dark" | "auto";
|
|
22
|
+
}
|
|
23
|
+
declare const CEFaqItem: React.FC<CEFaqItemProps>;
|
|
24
|
+
declare const CEFaqExpander: React.FC<CEFaqExpanderProps>;
|
|
25
|
+
export default CEFaqExpander;
|
|
26
|
+
export { CEFaqItem };
|
|
27
|
+
export type { CEFaqExpanderProps, CEFaqItemProps, CEFaqExpanderSize };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CardVariant = "tilt" | "glow" | "lift" | "borderShimmer" | "colorChange" | "reveal" | "shine" | "squishy" | "outline";
|
|
3
|
+
type CardSize = "small" | "medium" | "large";
|
|
4
|
+
interface CEHoverCardProps {
|
|
5
|
+
variant?: CardVariant;
|
|
6
|
+
size?: CardSize;
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
imageSrc?: string;
|
|
14
|
+
badge?: string;
|
|
15
|
+
footer?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
interface CEHoverCardsProps {
|
|
18
|
+
cards: CEHoverCardProps[];
|
|
19
|
+
cardsPerRow?: number;
|
|
20
|
+
cardSize?: CardSize;
|
|
21
|
+
className?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const useCEHoverCardName: (initialName: string) => {
|
|
25
|
+
name: string;
|
|
26
|
+
setName: (newName: string) => void;
|
|
27
|
+
};
|
|
28
|
+
declare const CEHoverCard: React.FC<CEHoverCardProps>;
|
|
29
|
+
declare const CEHoverCards: React.FC<CEHoverCardsProps>;
|
|
30
|
+
export default CEHoverCards;
|
|
31
|
+
export { CEHoverCard };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.87",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|