jamespot-react-components 1.3.96 → 1.3.97
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/jamespot-react-components.cjs +1240 -1136
- package/dist/jamespot-react-components.js +10090 -9774
- package/dist/src/components/Editors/components/EditorButtonToggle.d.ts +2 -1
- package/dist/src/components/JRCGifSelector/JRCGifSelector.d.ts +2 -1
- package/dist/src/components/JRCGifSelector/JRCGifSelector.stories.d.ts +2 -0
- package/dist/src/components/Widgets/JRCWidgetBirthday/BirthdayCard.d.ts +11 -0
- package/dist/src/components/Widgets/JRCWidgetBirthday/JRCWidgetBirthday.const.d.ts +11 -0
- package/dist/src/components/Widgets/JRCWidgetBirthday/JRCWidgetBirthday.d.ts +11 -0
- package/dist/src/components/Widgets/JRCWidgetBirthday/JRCWidgetBirthday.stories.d.ts +9 -0
- package/dist/src/components/Widgets/JRCWidgetBirthday/JRCWidgetBirthdayEditor.d.ts +11 -0
- package/dist/src/components/Widgets/JRCWidgetBirthday/TemplatePreview.d.ts +10 -0
- package/dist/src/components/index.d.ts +4 -2
- package/dist/src/translation/lang.json.d.ts +11 -0
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Sizes, ToggleListOption, ToggleValue } from '../../Form/Input/JRCInputCheckbox/JRCInputToggle';
|
|
2
|
-
export declare const EditorButtonToggle: <T extends ToggleValue>({ name, label, initialValue, description, options, onChange, size, }: {
|
|
2
|
+
export declare const EditorButtonToggle: <T extends ToggleValue>({ name, label, initialValue, description, options, onChange, size, dataCy, }: {
|
|
3
3
|
name?: string;
|
|
4
4
|
label?: string;
|
|
5
5
|
initialValue: T | undefined;
|
|
@@ -7,4 +7,5 @@ export declare const EditorButtonToggle: <T extends ToggleValue>({ name, label,
|
|
|
7
7
|
options: ToggleListOption[];
|
|
8
8
|
onChange: (value: T) => void;
|
|
9
9
|
size?: Sizes;
|
|
10
|
+
dataCy?: string;
|
|
10
11
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,7 @@ type JRCGifSelectorProps = {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
onSelectGif: (url: string) => void;
|
|
10
10
|
onReachEnd: () => void;
|
|
11
|
+
gifProvider?: 'giphy' | 'heypster';
|
|
11
12
|
};
|
|
12
|
-
export declare const JRCGifSelector: ({ gifs, onSearch, loading, onSelectGif, onReachEnd }: JRCGifSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const JRCGifSelector: ({ gifs, onSearch, loading, onSelectGif, onReachEnd, gifProvider }: JRCGifSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type BirthdayCardProps = {
|
|
2
|
+
avatarSrc: string;
|
|
3
|
+
isLarge: boolean;
|
|
4
|
+
textColor?: string;
|
|
5
|
+
firstName: string;
|
|
6
|
+
fullName?: string;
|
|
7
|
+
happyBirthdayLabel: string;
|
|
8
|
+
avatarTitle?: string;
|
|
9
|
+
onAvatarClick?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const BirthdayCard: ({ avatarSrc, isLarge, textColor, firstName, fullName, happyBirthdayLabel, avatarTitle, onAvatarClick, }: BirthdayCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const DEFAULT_BACKGROUND_ONE = "radial-gradient(#ffd08a, #ffc670)";
|
|
2
|
+
export declare const DEFAULT_BACKGROUND_TWO = "radial-gradient(#c7bdf5, #b4a7f1)";
|
|
3
|
+
export declare const DEFAULT_EMPTY_BACKGROUND = "radial-gradient(#ee96d3, #ea80ca)";
|
|
4
|
+
export declare const DEFAULT_TEXT_COLOR = "#ffffff";
|
|
5
|
+
export declare const DEFAULT_BACKGROUND_ONE_COLOR = "#ffc670";
|
|
6
|
+
export declare const DEFAULT_BACKGROUND_TWO_COLOR = "#b4a7f1";
|
|
7
|
+
export declare const BG_ONE_DECORATION = "url(\"/img/fast-intranet/widget-birthday-bg-one.png\")";
|
|
8
|
+
export declare const BG_TWO_DECORATION = "url(\"/img/fast-intranet/widget-birthday-bg-two.png\") right top / 50% no-repeat, url(\"/img/fast-intranet/widget-birthday-bg-two-bis.png\") left top / 50% no-repeat";
|
|
9
|
+
export declare const SIZE_SMALL = 1;
|
|
10
|
+
export declare const SIZE_LARGE = 2;
|
|
11
|
+
export declare const composeBackground: (templateIndex: number, customColor?: string) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UserBirthday, WidgetBirthdayCss } from 'jamespot-user-api';
|
|
2
|
+
export type JRCWidgetBirthdayProps = {
|
|
3
|
+
users: UserBirthday[];
|
|
4
|
+
css?: WidgetBirthdayCss | undefined;
|
|
5
|
+
size?: number | undefined;
|
|
6
|
+
emptyImageSrc?: string;
|
|
7
|
+
avatarSrc?: (user: UserBirthday) => string;
|
|
8
|
+
onSendMessage?: (idUser: number) => void;
|
|
9
|
+
isLoading?: boolean | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const JRCWidgetBirthday: ({ users, css, size, emptyImageSrc, avatarSrc, onSendMessage, isLoading, }: JRCWidgetBirthdayProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { JRCWidgetBirthday } from './JRCWidgetBirthday';
|
|
3
|
+
declare const meta: Meta<typeof JRCWidgetBirthday>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof JRCWidgetBirthday>;
|
|
6
|
+
export declare const SingleUser: Story;
|
|
7
|
+
export declare const MultipleUsers: Story;
|
|
8
|
+
export declare const LargeSize: Story;
|
|
9
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WidgetBirthdayContent } from 'jamespot-user-api';
|
|
2
|
+
export interface JRCWidgetBirthdayEditorProps {
|
|
3
|
+
uniqid: string;
|
|
4
|
+
content: WidgetBirthdayContent;
|
|
5
|
+
onChangeContent: (uniqid: string, content: WidgetBirthdayContent) => void;
|
|
6
|
+
/** Avatar shown in the previews. Falls back to a generic placeholder. */
|
|
7
|
+
previewAvatarSrc?: string;
|
|
8
|
+
/** First name shown in the previews. Falls back to the FirstName label. */
|
|
9
|
+
previewFirstName?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const JRCWidgetBirthdayEditor: ({ uniqid, content, onChangeContent, previewAvatarSrc, previewFirstName, }: JRCWidgetBirthdayEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type TemplatePreviewProps = {
|
|
2
|
+
templateIndex: number;
|
|
3
|
+
customBackground?: string | undefined;
|
|
4
|
+
customTextColor?: string | undefined;
|
|
5
|
+
isLarge: boolean;
|
|
6
|
+
avatarSrc: string;
|
|
7
|
+
firstName: string;
|
|
8
|
+
happyBirthdayLabel: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const TemplatePreview: ({ templateIndex, customBackground, customTextColor, isLarge, avatarSrc, firstName, happyBirthdayLabel, }: TemplatePreviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -149,8 +149,6 @@ export { JRCMainColumn } from './Templates/JRCMainColumn';
|
|
|
149
149
|
export { JRCPanel } from './Templates/JRCPanel';
|
|
150
150
|
export { JRCStepperPage } from './Templates/JRCStepperPage';
|
|
151
151
|
export { JRCTemplateTwoColumns } from './Templates/JRCTwoColumns.template';
|
|
152
|
-
export { JRCWidgetAccessibility } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibility';
|
|
153
|
-
export { JRCWidgetAccessibilityEditor } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibilityEditor';
|
|
154
152
|
export { JRCWidgetArticleGallery } from './Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery';
|
|
155
153
|
export { JRCWidgetArticleGalleryEditor } from './Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGalleryEditor';
|
|
156
154
|
export { ArticleSliderSlide } from './Widgets/JRCWidgetArticleSlider/components/ArticleSliderSlide';
|
|
@@ -168,6 +166,10 @@ export { JRCWidgetCalendarCalDav } from './Widgets/JRCWidgetCalendarCalDav/JRCWi
|
|
|
168
166
|
export { JRCWidgetCalendarCalDavEditor } from './Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDavEditor';
|
|
169
167
|
export { JRCWidgetCheckList } from './Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
|
|
170
168
|
export { JRCWidgetCheckListEditor } from './Widgets/JRCWidgetCheckList/JRCWidgetCheckListEditor';
|
|
169
|
+
export { JRCWidgetAccessibility } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibility';
|
|
170
|
+
export { JRCWidgetAccessibilityEditor } from './Widgets/JRCWidgetAccessibility/JRCWidgetAccessibilityEditor';
|
|
171
|
+
export { JRCWidgetBirthday } from './Widgets/JRCWidgetBirthday/JRCWidgetBirthday';
|
|
172
|
+
export { JRCWidgetBirthdayEditor } from './Widgets/JRCWidgetBirthday/JRCWidgetBirthdayEditor';
|
|
171
173
|
export { JRCWidgetColor } from './Widgets/JRCWidgetColor/JRCWidgetColor';
|
|
172
174
|
export { JRCWidgetColorEditor } from './Widgets/JRCWidgetColor/JRCWidgetColorEditor';
|
|
173
175
|
export { JRCWidgetSeparator } from './Widgets/JRCWidgetSeparator/JRCWidgetSeparator';
|
|
@@ -252,6 +252,7 @@ declare const _default: {
|
|
|
252
252
|
"GLOBAL_Search": "Search",
|
|
253
253
|
"GLOBAL_See_Less": "See less",
|
|
254
254
|
"GLOBAL_See_More": "See more",
|
|
255
|
+
"GLOBAL_See_More_X_Elements":"({value} more elements)",
|
|
255
256
|
"GLOBAL_Select_Date_In_Calendar": "Select a date in the calendar",
|
|
256
257
|
"GLOBAL_Select_Time": "Select time",
|
|
257
258
|
"GLOBAL_Select": "Select",
|
|
@@ -375,6 +376,10 @@ declare const _default: {
|
|
|
375
376
|
"WIDGET_Agenda_Declined": "You don't participate",
|
|
376
377
|
"WIDGET_Agenda_Pending": "You haven't responded yet",
|
|
377
378
|
"WIDGET_Agenda": "Agenda",
|
|
379
|
+
"WIDGET_BIRTHDAY": "Birthdays",
|
|
380
|
+
"WIDGET_BIRTHDAY_TEXT": "Display today's birthdays",
|
|
381
|
+
"WIDGET_Birthday_No_Birthday": "No birthday today",
|
|
382
|
+
"WIDGET_Birthday_Send_Msg": "Send a message",
|
|
378
383
|
"WIDGET_Builder": "Widget Builder",
|
|
379
384
|
"WIDGET_Button_Empty_Text": "Ajouter un label",
|
|
380
385
|
"WIDGET_Calendar_CalDav": "Office Agenda",
|
|
@@ -470,6 +475,12 @@ declare const _default: {
|
|
|
470
475
|
"WIDGET_User_Profil_Text": "Permettez à vos utilisateur un accès vers leur propre profil en un clic ! Idéal pour les encourager à le compléter. ",
|
|
471
476
|
"WIDGET_User_Profil_Tooltip_Link_Text": "Accéder à votre profil",
|
|
472
477
|
"WIDGET_User_Profil": "Profil utilisateur",
|
|
478
|
+
"WIDGET_Happy_Birthday": "Happy Birthday!",
|
|
479
|
+
"Widget_Birthday_Template_One": "Template 1",
|
|
480
|
+
"Widget_Birthday_Template_Two": "Template 2",
|
|
481
|
+
"SELECTION_Panel_Size": "Size",
|
|
482
|
+
"SELECTION_Panel_Size_Small": "Small",
|
|
483
|
+
"SELECTION_Panel_Size_Large": "Large",
|
|
473
484
|
"WIDGET_Welcome_Default_Message": "Bienvenue",
|
|
474
485
|
"WIDGET_Welcome_Linebreak_Label": "Saut de ligne (après le message)",
|
|
475
486
|
"WIDGET_Welcome": "Message d'accueil",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.97",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/jamespot-react-components.cjs",
|
|
6
6
|
"module": "dist/jamespot-react-components.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@types/react-dom": "^19.2.3",
|
|
47
47
|
"@types/uuid": "^10.0.0",
|
|
48
48
|
"@vitejs/plugin-react": "^5.2.0",
|
|
49
|
-
"@vitest/browser-playwright": "^4.1.
|
|
50
|
-
"@vitest/coverage-v8": "^4.1.
|
|
49
|
+
"@vitest/browser-playwright": "^4.1.8",
|
|
50
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
51
51
|
"date-fns": "^4.1.0",
|
|
52
52
|
"dompurify": "^3.3.3",
|
|
53
53
|
"eslint": "^9.39.4",
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"eslint-plugin-storybook": "10.3.6",
|
|
60
60
|
"globals": "^16.5.0",
|
|
61
61
|
"html2canvas": "^1.4.1",
|
|
62
|
-
"jamespot-front-business": "^1.3.
|
|
63
|
-
"jamespot-user-api": "^1.3.
|
|
62
|
+
"jamespot-front-business": "^1.3.97",
|
|
63
|
+
"jamespot-user-api": "^1.3.97",
|
|
64
64
|
"jsdom": "^26.1.0",
|
|
65
65
|
"knip": "^5.88.1",
|
|
66
66
|
"lint-staged": "^16.4.0",
|
|
67
|
-
"playwright": "^1.
|
|
67
|
+
"playwright": "^1.60.0",
|
|
68
68
|
"prettier": "^3.8.1",
|
|
69
69
|
"react": "^19.2.4",
|
|
70
70
|
"react-day-picker": "^9.14.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"vite": "^7.3.1",
|
|
89
89
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
90
90
|
"vite-plugin-dts": "^4.5.4",
|
|
91
|
-
"vitest": "^4.1.
|
|
91
|
+
"vitest": "^4.1.8"
|
|
92
92
|
},
|
|
93
93
|
"lint-staged": {
|
|
94
94
|
"*.{js,jsx,ts,tsx}": [
|