jamespot-react-components 1.3.49 → 1.3.51

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.
Files changed (43) hide show
  1. package/dist/jamespot-react-components.cjs +1270 -1191
  2. package/dist/jamespot-react-components.js +12226 -11729
  3. package/dist/src/components/Common/Outline.d.ts +2 -2
  4. package/dist/src/components/Editors/components/EditorImageUpload.d.ts +3 -1
  5. package/dist/src/components/Editors/components/EditorInputCheckbox.d.ts +2 -1
  6. package/dist/src/components/Editors/components/EditorInputNumber.d.ts +2 -1
  7. package/dist/src/components/Editors/components/EditorPositionToggle.d.ts +3 -2
  8. package/dist/src/components/Editors/components/EditorRichTextDialog.d.ts +14 -0
  9. package/dist/src/components/Form/Input/{JRCInputCSSPosition/JRCInputCSSPosition.d.ts → JRCInputPosition/JRCInputPosition.d.ts} +2 -1
  10. package/dist/src/components/Form/Input/{JRCInputCSSPosition/JRCInputCSSPositionRaw.d.ts → JRCInputPosition/JRCInputPositionRaw.d.ts} +2 -1
  11. package/dist/src/components/Form/Input/JRCInputPosition/const.d.ts +17 -0
  12. package/dist/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +8 -8
  13. package/dist/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.style.d.ts +4 -4
  14. package/dist/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +2 -2
  15. package/dist/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +8 -8
  16. package/dist/src/components/JRCButton/types.d.ts +6 -6
  17. package/dist/src/components/JRCButtonDownload/JRCButtonDownload.d.ts +2 -2
  18. package/dist/src/components/JRCDragNDrop/OneLevelStyles.d.ts +4 -4
  19. package/dist/src/components/JRCDragNDrop/styles.d.ts +12 -12
  20. package/dist/src/components/JRCEmptySpace/JRCEmptySpace.d.ts +1 -1
  21. package/dist/src/components/JRCIconButton/JRCIconButton.d.ts +13 -13
  22. package/dist/src/components/JRCTooltip/JRCBaseTooltip.d.ts +1 -0
  23. package/dist/src/components/JRCTypography/JRCTypography.d.d.ts +3 -3
  24. package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor.d.ts +1 -1
  25. package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditorSlide.d.ts +3 -3
  26. package/dist/src/components/Widgets/JRCWidgetSlider/JRCWidgetSlider.d.ts +3 -1
  27. package/dist/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderImage.d.ts +7 -0
  28. package/dist/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderSlide.d.ts +2 -0
  29. package/dist/src/components/Widgets/JRCWidgetSlider/components/ArticleSliderSlideTitle.d.ts +2 -0
  30. package/dist/src/components/Widgets/JRCWidgetSlider/types.d.ts +11 -1
  31. package/dist/src/components/Widgets/JRCWidgetText/JRCWidgetText.d.ts +16 -0
  32. package/dist/src/components/Widgets/JRCWidgetText/JRCWidgetTextEditor.d.ts +18 -0
  33. package/dist/src/components/Widgets/const.d.ts +40 -0
  34. package/dist/src/components/index.d.ts +7 -0
  35. package/dist/src/styles/Theme.stories.d.ts +1 -1
  36. package/dist/src/styles/theme.d.ts +20 -8
  37. package/dist/src/translation/lang.json.d.ts +7 -0
  38. package/dist/src/types.d.ts +1 -1
  39. package/dist/src/utils/utils.color.d.ts +4 -1
  40. package/dist/src/utils/utils.string.d.ts +1 -0
  41. package/package.json +2 -2
  42. package/dist/src/components/Widgets/JRCWidgetSlider/components/SliderImage.d.ts +0 -7
  43. package/dist/src/components/Widgets/JRCWidgetSlider/components/SliderSlideTitle.d.ts +0 -2
@@ -75,6 +75,45 @@ export declare const PositionOptions: {
75
75
  value: Position;
76
76
  iconName: string;
77
77
  }[];
78
+ export declare const cssFromPosition: {
79
+ readonly "top-left": {
80
+ readonly justifyContent: "flex-start";
81
+ readonly alignItems: "flex-start";
82
+ };
83
+ readonly "top-center": {
84
+ readonly justifyContent: "center";
85
+ readonly alignItems: "flex-start";
86
+ };
87
+ readonly "top-right": {
88
+ readonly justifyContent: "flex-end";
89
+ readonly alignItems: "flex-start";
90
+ };
91
+ readonly "center-left": {
92
+ readonly justifyContent: "flex-start";
93
+ readonly alignItems: "center";
94
+ };
95
+ readonly center: {
96
+ readonly justifyContent: "center";
97
+ readonly alignItems: "center";
98
+ };
99
+ readonly "center-right": {
100
+ readonly justifyContent: "flex-end";
101
+ readonly alignItems: "center";
102
+ };
103
+ readonly "bottom-left": {
104
+ readonly justifyContent: "flex-start";
105
+ readonly alignItems: "flex-end";
106
+ };
107
+ readonly "bottom-center": {
108
+ readonly justifyContent: "center";
109
+ readonly alignItems: "flex-end";
110
+ };
111
+ readonly "bottom-right": {
112
+ readonly justifyContent: "flex-end";
113
+ readonly alignItems: "flex-end";
114
+ };
115
+ };
116
+ export declare function getPositionFromCss(justifyContent: string | undefined, alignItems: string | undefined): Position;
78
117
  export declare enum ProfileDisplayType {
79
118
  OnlyPicture = "1",
80
119
  WithFirstName = "2",
@@ -96,6 +135,7 @@ export declare const ProfilePictureSizeOptions: {
96
135
  export declare enum TextFontWeight {
97
136
  Normal = 400,
98
137
  Medium = 500,
138
+ SemiBold = 600,
99
139
  Bold = 700
100
140
  }
101
141
  export declare const TextFontWeightOptions: {
@@ -6,6 +6,10 @@ export { JRCDraggingPlaceholder } from './Common/JRCDraggingPlaceholder';
6
6
  export { SkipToContent } from './Common/SkipToContent';
7
7
  export { Deprecated_ClickAwayListener } from './Deprecated/Deprecated_ClickAwayListener/Deprecated_ClickAwayListener';
8
8
  export { Deprecated_JRCEllipsis } from './Deprecated/Deprecated_JRCEllipsis/Deprecated_JRCEllipsis';
9
+ export { EditorButtonToggle } from './Editors/components/EditorButtonToggle';
10
+ export { EditorCheckbox } from './Editors/components/EditorCheckbox';
11
+ export { CSSEditorComponentSeparator } from './Editors/components/Editor.style';
12
+ export { TextFontWeightOptions, TextFontWeight, TextAlignOptions, TextAlign } from './Widgets/const';
9
13
  export { JRCDriveDropbox } from './Drives/JRCDriveDropbox';
10
14
  export { JRCDriveMSGraph } from './Drives/JRCDriveMSGraph';
11
15
  export { JRCCheckbox } from './Form/Input/JRCInputCheckbox/components/JRCCheckbox';
@@ -172,11 +176,14 @@ export { JRCWidgetQuickSurvey } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQu
172
176
  export { JRCWidgetQuickSurveyEditor } from './Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor';
173
177
  export { JRCWidgetArticleSliderEditor } from './Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor';
174
178
  export { JRCWidgetSlider } from './Widgets/JRCWidgetSlider/JRCWidgetSlider';
179
+ export { ArticleSliderSlide } from './Widgets/JRCWidgetSlider/components/ArticleSliderSlide';
175
180
  export { JRCWidgetSurveyDate } from './Widgets/JRCWidgetSurveyDate/JRCWidgetSurveyDate';
176
181
  export { JRCWidgetDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor';
177
182
  export { JRCWidgetExcelDatasourceTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor';
178
183
  export { JRCWidgetTable } from './Widgets/JRCWidgetTable/JRCWidgetTable';
179
184
  export { JRCWidgetTableEditor } from './Widgets/JRCWidgetTable/JRCWidgetTableEditor';
185
+ export { JRCWidgetText } from './Widgets/JRCWidgetText/JRCWidgetText';
186
+ export { JRCWidgetTextEditor } from './Widgets/JRCWidgetText/JRCWidgetTextEditor';
180
187
  export { JRCWidgetUserProfile } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfile';
181
188
  export { JRCWidgetUserProfileEditor } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfileEditor';
182
189
  export { JRCWidgetWelcome } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcome';
@@ -2,4 +2,4 @@ declare const _default: {
2
2
  title: string;
3
3
  };
4
4
  export default _default;
5
- export declare const Colors: () => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Palettes: () => import("react/jsx-runtime").JSX.Element;
@@ -19,16 +19,28 @@ export type ThemeConfigOptions = {
19
19
  bgColorNotLogged: string;
20
20
  forest: string;
21
21
  };
22
- export type Colors = 'primary' | 'primaryLight' | 'primaryTextLight' | 'secondary' | 'headerColor' | 'headerTextColor' | 'headerUserBackground' | 'headerUserTextColor' | 'headerSearchBarTextColor' | 'headerSearchBarBackgroundColor' | 'navBackground' | 'navTextColor' | 'lavender' | 'orange' | 'orangeLight' | 'orangeTextLight' | 'yellow' | 'green' | 'greenLight' | 'greenTextLight' | 'navy' | 'overseas' | 'night1' | 'night2' | 'sandLight' | 'raspberry' | 'sky' | 'sky15' | 'sand' | 'forest' | 'grey0' | 'grey1' | 'grey2' | 'grey3' | 'grey4' | 'grey5' | 'grey6' | 'black' | 'black10' | 'black15' | 'black20' | 'white' | 'transparent' | 'transparentHexa';
23
- export declare const Palettes: Colors[];
22
+ export type ColorPalette = {
23
+ light: string;
24
+ medium: string;
25
+ base: string;
26
+ strong: string;
27
+ dark: string;
28
+ };
29
+ type PaletteVariants = Capitalize<keyof Omit<ColorPalette, 'base'>>;
30
+ export type GeneratedPaletteKeys<T extends string> = `${T}${PaletteVariants}`;
31
+ export declare const paletteColorsPrimary: readonly ["primary", "secondary", "green", "red"];
32
+ type PaletteColorsPrimaryKey = (typeof paletteColorsPrimary)[number];
33
+ type PaletteColorsPrimaryKeys = `${PaletteColorsPrimaryKey}${PaletteVariants}` | `${PaletteColorsPrimaryKey}`;
34
+ export declare const paletteColorsSecondary: readonly ["lavender", "navy", "overseas", "night1", "night2", "sky", "sand", "yellow"];
35
+ export type PaletteColorsSecondaryKey = (typeof paletteColorsSecondary)[number];
36
+ type PaletteColorsSecondaryKeys = `${PaletteColorsSecondaryKey}${PaletteVariants}` | `${PaletteColorsSecondaryKey}`;
37
+ export declare const paletteColorsGreys: readonly ["grey0", "grey1", "grey2", "grey3", "grey4", "grey5", "grey6"];
38
+ export declare const paletteColorsUtils: readonly ["black", "black10", "black15", "black20", "white", "transparent", "transparentHexa"];
39
+ export declare const paletteColorsPlatform: readonly ["headerColor", "headerTextColor", "headerUserBackground", "headerUserTextColor", "headerSearchBarTextColor", "headerSearchBarBackgroundColor", "navBackground", "navTextColor"];
40
+ export type Colors = PaletteColorsPrimaryKeys | PaletteColorsSecondaryKeys | (typeof paletteColorsGreys)[number] | (typeof paletteColorsUtils)[number] | (typeof paletteColorsPlatform)[number];
24
41
  type ThemeConfigColorType = {
25
42
  [color in Colors]: string;
26
43
  };
27
- export type Shades = 'primaryL15' | 'primaryL80' | 'primaryL90' | 'primaryD20' | 'primaryLight' | 'primaryLightHover' | 'secondaryL15' | 'secondaryL80' | 'secondaryL90' | 'secondaryD20' | 'greenL20' | 'greenL80' | 'greenL90' | 'greenD20' | 'greenLight' | 'greenLightHover' | 'raspberryL95' | 'orangeL15' | 'orangeL80' | 'orangeL90' | 'orangeD20' | 'orangeLight' | 'orangeLightHover' | 'yellowL80' | 'yellowL90';
28
- type ThemeConfigShadeType = {
29
- [color in Shades]: string;
30
- };
31
- export type ColorsOrShades = Colors | Shades;
32
44
  export type FontWeight = {
33
45
  light: number;
34
46
  normal: number;
@@ -49,7 +61,7 @@ export type ThemeType = {
49
61
  lineHeight: string;
50
62
  weight: FontWeight;
51
63
  };
52
- color: ThemeConfigColorType & ThemeConfigShadeType;
64
+ color: ThemeConfigColorType;
53
65
  zIndex: {
54
66
  forceTop: number;
55
67
  tinyMCEModal: number;
@@ -295,6 +295,7 @@ declare const _default: {
295
295
  "PANEL_Widget_Url": "Copier l'url du widget",
296
296
  "PANEL_Widget_Selection": "Style & décorations",
297
297
  "PANEL_Widget_Settings": "Configuration du widget",
298
+ "PANEL_Widget_Text": "Ajouter du texte",
298
299
  "PLUGIN_Manager_CalDav_Prompt": "Tester la connexion CalDav",
299
300
  "PLUGIN_Manager_CardDav_Prompt": "Tester la connexion CardDav",
300
301
  "PLUGIN_Manager_Connection_Error": "Connexion impossible. Vérifiez vos identifiants",
@@ -317,10 +318,13 @@ declare const _default: {
317
318
  "STYLE_Border_Style_None": "Aucune bordure",
318
319
  "STYLE_Border_Style_Solid": "Bordure continue",
319
320
  "STYLE_Border_Width": "Taille de la bordure",
321
+ "STYLE_Box_Shadow": "Ombre portée",
320
322
  "STYLE_Font_Weight": "Epaisseur du texte",
321
323
  "STYLE_Font_Weight_Bold": "Bold",
322
324
  "STYLE_Font_Weight_Medium": "Medium",
323
325
  "STYLE_Font_Weight_Normal": "Normal",
326
+ "STYLE_Font_Weight_Semi_Bold": "Semi bold",
327
+ "STYLE_Line_Height": "Hauteur de ligne",
324
328
  "STYLE_Padding": "Marge interne",
325
329
  "STYLE_Position": "Position",
326
330
  "STYLE_Position_Top_Left": "Position haut gauche",
@@ -389,6 +393,8 @@ declare const _default: {
389
393
  "WIDGET_Quick_Survey_Reset": "Reset the survey answers",
390
394
  "WIDGET_Quick_Survey_isStarted_no_modification": "The survey has already some answers, some modifications are not possible, if needed, please start a new survey.",
391
395
  "WIDGET_Set_Widget": "Configurer",
396
+ "WIDGET_Slider_Autoplay": "Défilement automatique",
397
+ "WIDGET_Slider_Delay": "Délai de défilement",
392
398
  "WIDGET_Survey_After_Help": "Respondents will only see the results once after they respond. They will no longer be able to edit their answer.",
393
399
  "WIDGET_Survey_Anonymize_Help": "Les réponses de ce sondage seront anonymes : personne ne pourra savoir qui a répondu quoi, seulement les pourcentages.",
394
400
  "WIDGET_Survey_Close_Survey": "Close the survey",
@@ -399,6 +405,7 @@ declare const _default: {
399
405
  "WIDGET_Survey_Multiple_Help": "Allow multiple responses",
400
406
  "WIDGET_Survey_Open": "Open survey",
401
407
  "WIDGET_Survey_Open_Help": "Allows other users to add suggestion",
408
+ "WIDGET_Text_Use_Flex_Label": "Disposition flexible",
402
409
  "WIDGET_User_Profil": "Profil utilisateur",
403
410
  "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. ",
404
411
  "WIDGET_User_Profil_Font_Weight_Label": "Gras",
@@ -83,7 +83,7 @@ export type { JRCTemplateBaseProps } from './components/Templates/JRCBase.templa
83
83
  export type { JRCTemplateTwoColumnsProps } from './components/Templates/JRCTwoColumns.template';
84
84
  export type { JRCAppColumnProps, JRCAppTabsProps, JRCColumnProps, JRCContainerProps, JRCMainColumnProps, JRCTabEntry, LayoutMode, TabEventProps, } from './components/Templates/template.type';
85
85
  export type { JRCWidgetCheckListEntries } from './components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
86
- export type { Colors, ColorsOrShades, Shades, ThemeConfigOptions, ThemeType } from './styles/theme';
86
+ export type { Colors, ThemeConfigOptions, ThemeType } from './styles/theme';
87
87
  export type { MessageType } from './utils/utils.color';
88
88
  export type { OneLevelMainItemComponentProps, OneLevelStackItemComponentProps, OneLevelEmptyStateComponentProps, JRCDndOneLevelWithStackProps, } from './components/JRCDragNDrop/types';
89
89
  export { OneLevelItemTypes } from './components/JRCDragNDrop/types';
@@ -1,3 +1,4 @@
1
+ import { ColorPalette, GeneratedPaletteKeys } from '../styles/theme';
1
2
  type ColorTransparencyPercent = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
2
3
  export declare function colorTransparency(color: string, percent: ColorTransparencyPercent): string;
3
4
  export declare const colorimetry: {
@@ -87,7 +88,9 @@ export declare const getLightShade: (hex: string, lightPercentage: number) => st
87
88
  export type MessageType = 'success' | 'error' | 'warning';
88
89
  export declare const MessageColor: {
89
90
  readonly success: "green";
90
- readonly error: "orange";
91
+ readonly error: "red";
91
92
  readonly warning: "yellow";
92
93
  };
94
+ export declare const getColorPalette: (color: string) => ColorPalette;
95
+ export declare const buildPaletteObject: <T extends string>(key: T, hex: string) => Record<GeneratedPaletteKeys<T> | T, string>;
93
96
  export {};
@@ -2,3 +2,4 @@ export declare function suffixIfDoesNotExist(str: string | undefined, suffix: st
2
2
  export declare function removeIfStartsWith(str: string | undefined, prefix: string): string | undefined;
3
3
  export declare function padStartTwoDigits(val: string | number): string;
4
4
  export declare function limitSize(str: string, length: number): string;
5
+ export declare function capitalize(str: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.3.49",
3
+ "version": "1.3.51",
4
4
  "description": "",
5
5
  "main": "dist/jamespot-react-components.js",
6
6
  "module": "dist/jamespot-react-components.mjs",
@@ -78,7 +78,7 @@
78
78
  "globals": "^16.5.0",
79
79
  "html2canvas": "^1.4.1",
80
80
  "husky": "^9.1.7",
81
- "jamespot-user-api": "^1.3.49",
81
+ "jamespot-user-api": "^1.3.51",
82
82
  "jest": "^30.2.0",
83
83
  "jest-environment-jsdom": "^30.2.0",
84
84
  "knip": "^5.82.1",
@@ -1,7 +0,0 @@
1
- import { WidgetSliderSlide } from '../types';
2
- export declare const SliderImage: ({ initialUri, maxWidth, maxHeight, onClick, }: {
3
- initialUri: string;
4
- maxWidth: number;
5
- maxHeight: number;
6
- onClick?: () => void;
7
- } & Pick<WidgetSliderSlide, "displayAs" | "backgroundSize" | "backgroundPosition">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { WidgetSliderSlide } from '../types';
2
- export declare const SliderSlideTitle: ({ title, titleHeading }: Pick<WidgetSliderSlide, "title" | "titleHeading">) => import("react/jsx-runtime").JSX.Element;