@edifice.io/react 2.6.1-develop.20260729194603 → 2.6.2-develop-b2school.20260730181758
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/components/DatePicker/DatePicker.d.ts +5 -0
- package/dist/components/DatePicker/DatePicker.js +2 -0
- package/dist/modules/homepage/components/Communities/Communities.d.ts +10 -0
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +9 -0
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.d.ts +5 -0
- package/dist/modules/homepage/components/Communities/CommunityItem.d.ts +11 -0
- package/dist/modules/homepage/components/Communities/index.d.ts +8 -0
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +13 -0
- package/package.json +6 -6
|
@@ -28,6 +28,11 @@ export interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLElement>,
|
|
|
28
28
|
* Maximum selectable date
|
|
29
29
|
*/
|
|
30
30
|
maxDate?: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Disables the input and prevents the calendar popup from opening.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
38
|
* Type for DatePicker ref
|
|
@@ -17,6 +17,7 @@ const DatePicker = /* @__PURE__ */ forwardRef(({
|
|
|
17
17
|
dateFormat = "DD / MM / YYYY",
|
|
18
18
|
minDate,
|
|
19
19
|
maxDate,
|
|
20
|
+
disabled,
|
|
20
21
|
...htmlProps
|
|
21
22
|
}, ref) => {
|
|
22
23
|
const handleChange = (date) => {
|
|
@@ -27,6 +28,7 @@ const DatePicker = /* @__PURE__ */ forwardRef(({
|
|
|
27
28
|
format: dateFormat,
|
|
28
29
|
minDate: minDate ? dayjs(minDate) : void 0,
|
|
29
30
|
maxDate: maxDate ? dayjs(maxDate) : void 0,
|
|
31
|
+
disabled,
|
|
30
32
|
ref,
|
|
31
33
|
// Cast necessary because AntDatePicker expects a specific type, but our API exposes only HTMLElement to avoid dependency on Ant Design-specific features.
|
|
32
34
|
...htmlProps
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CommunityItemProps } from './CommunityItem';
|
|
2
|
+
export interface CommunitiesProps {
|
|
3
|
+
communitiesList?: CommunityItemProps[];
|
|
4
|
+
handleActionClick: () => void;
|
|
5
|
+
}
|
|
6
|
+
declare const Communities: {
|
|
7
|
+
({ communitiesList, handleActionClick, }: CommunitiesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default Communities;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommunitiesModel } from './useCommunities';
|
|
2
|
+
export type CommunitiesContainerProps = {
|
|
3
|
+
onCommunityClick?: (community: CommunitiesModel) => void;
|
|
4
|
+
onHeaderActionClick: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function CommunitiesContainer({ onCommunityClick, onHeaderActionClick, }: CommunitiesContainerProps): import("react/jsx-runtime").JSX.Element | "An error occurred while loading communities.";
|
|
7
|
+
export declare namespace CommunitiesContainer {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface CommunityItemProps {
|
|
2
|
+
title: string;
|
|
3
|
+
communityImage: string;
|
|
4
|
+
onActionClick: () => void;
|
|
5
|
+
nbNotifications?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const CommunityItem: {
|
|
8
|
+
({ title, communityImage, nbNotifications, onActionClick, }: CommunityItemProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default CommunityItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './Communities';
|
|
2
|
+
export { default as Communities } from './Communities';
|
|
3
|
+
export * from './CommunitiesContainer';
|
|
4
|
+
export * from './CommunitiesSkeleton';
|
|
5
|
+
export { default as CommunitiesSkeleton } from './CommunitiesSkeleton';
|
|
6
|
+
export * from './CommunityItem';
|
|
7
|
+
export { default as CommunitiesItem } from './CommunityItem';
|
|
8
|
+
export * from './useCommunities';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CommunitiesModel {
|
|
2
|
+
id: number | string;
|
|
3
|
+
title: string;
|
|
4
|
+
communityImage?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
nbNotifications?: number;
|
|
7
|
+
notifications?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function useCommunities(): {
|
|
10
|
+
communities: CommunitiesModel[];
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
error: Error | null;
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2-develop-b2school.20260730181758",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -140,9 +140,9 @@
|
|
|
140
140
|
"swiper": "10.1.0",
|
|
141
141
|
"ua-parser-js": "1.0.36",
|
|
142
142
|
"zustand": "4.5.7",
|
|
143
|
-
"@edifice.io/bootstrap": "2.6.
|
|
144
|
-
"@edifice.io/tiptap-extensions": "2.6.
|
|
145
|
-
"@edifice.io/utilities": "2.6.
|
|
143
|
+
"@edifice.io/bootstrap": "2.6.2-develop-b2school.20260730181758",
|
|
144
|
+
"@edifice.io/tiptap-extensions": "2.6.2-develop-b2school.20260730181758",
|
|
145
|
+
"@edifice.io/utilities": "2.6.2-develop-b2school.20260730181758"
|
|
146
146
|
},
|
|
147
147
|
"devDependencies": {
|
|
148
148
|
"@babel/plugin-transform-react-pure-annotations": "7.27.1",
|
|
@@ -173,8 +173,8 @@
|
|
|
173
173
|
"vite": "5.4.14",
|
|
174
174
|
"vite-plugin-dts": "4.5.4",
|
|
175
175
|
"vite-tsconfig-paths": "5.1.4",
|
|
176
|
-
"@edifice.io/
|
|
177
|
-
"@edifice.io/
|
|
176
|
+
"@edifice.io/config": "2.6.2-develop-b2school.20260730181758",
|
|
177
|
+
"@edifice.io/client": "2.6.2-develop-b2school.20260730181758"
|
|
178
178
|
},
|
|
179
179
|
"peerDependencies": {
|
|
180
180
|
"@react-spring/web": "9.7.5",
|