jamespot-react-components 1.0.247 → 1.0.249
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/build/jamespot-react-components.js +327 -302
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputTextRaw/JRCInputTextRaw.style.d.ts +1 -3
- package/build/src/components/JRCUserStatusIcon/JRCUserStatusIcon.d.ts +7 -0
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +7 -1
- package/build/src/components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence.d.ts +13 -0
- package/build/src/components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceEditor.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceStatus.d.ts +5 -0
- package/build/src/components/Widgets/context/hooks.d.ts +7 -1
- package/build/src/index.d.ts +2 -0
- package/package.json +2 -2
|
@@ -8,9 +8,7 @@ export declare const Required: import("styled-components").StyledComponent<({ va
|
|
|
8
8
|
} & {
|
|
9
9
|
error: boolean;
|
|
10
10
|
}, "size">;
|
|
11
|
-
export declare const LabelWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
12
|
-
reducedWidth: boolean;
|
|
13
|
-
}, never>;
|
|
11
|
+
export declare const LabelWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
12
|
export declare const InputTextRawStyled: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, import("../../../../types/dataAttributes").DataCy & {
|
|
15
13
|
error?: boolean | undefined;
|
|
16
14
|
valid?: boolean | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { jUserLittle } from 'jamespot-user-api';
|
|
3
|
+
export type JRCUserStatusIconProps = {
|
|
4
|
+
user: jUserLittle;
|
|
5
|
+
isUserActive?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const JRCUserStatusIcon: ({ user, isUserActive }: JRCUserStatusIconProps) => React.JSX.Element | null;
|
|
@@ -76,17 +76,21 @@ export declare const Primary: Story<{
|
|
|
76
76
|
emailsLimit?: boolean | undefined;
|
|
77
77
|
emailsLimitValue?: number | undefined;
|
|
78
78
|
emailsPromptStatus?: string | undefined;
|
|
79
|
+
}>) | ({
|
|
80
|
+
layers?: string[] | undefined;
|
|
81
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
82
|
+
url?: string | undefined;
|
|
79
83
|
}>)>[] | undefined;
|
|
80
84
|
} & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | import("jamespot-user-api").WidgetArticleSliderContent | {
|
|
81
85
|
target?: string | undefined;
|
|
82
86
|
text?: string | undefined;
|
|
83
87
|
color?: string | undefined;
|
|
84
88
|
url?: string | undefined;
|
|
89
|
+
variant?: "contained" | "outlined" | undefined;
|
|
85
90
|
backgroundColor?: string | undefined;
|
|
86
91
|
borderRadius?: string | undefined;
|
|
87
92
|
fontSize?: string | undefined;
|
|
88
93
|
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
89
|
-
variant?: "contained" | "outlined" | undefined;
|
|
90
94
|
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
91
95
|
openingTypeLink?: {
|
|
92
96
|
target: string;
|
|
@@ -171,6 +175,8 @@ export declare const Primary: Story<{
|
|
|
171
175
|
emailsLimit?: boolean | undefined;
|
|
172
176
|
emailsLimitValue?: number | undefined;
|
|
173
177
|
emailsPromptStatus?: string | undefined;
|
|
178
|
+
} | {
|
|
179
|
+
url?: string | undefined;
|
|
174
180
|
}), args_1: boolean, ...args_2: unknown[]) => void;
|
|
175
181
|
onStateChange: (args_0: {
|
|
176
182
|
busy?: boolean | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WidgetLuccaAbsenceUser } from 'jamespot-user-api';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare const UIList: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const UIListItem: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const UIListItemAvatar: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const UIListItemNoAvatar: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
7
|
+
bgColor: string;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const UIListItemData: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const getInitial: (username: string) => string;
|
|
11
|
+
export declare const JRCWidgetLuccaAbsence: ({ list }: {
|
|
12
|
+
list: WidgetLuccaAbsenceUser[];
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetEditorActions, WidgetLuccaAbsenceContent } from 'jamespot-user-api';
|
|
3
|
+
export declare const JRCWidgetLuccaAbsenceEditor: ({ url, onChange, }: WidgetLuccaAbsenceContent & WidgetEditorActions<WidgetLuccaAbsenceContent>) => React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UIDate: import("styled-components").StyledComponent<"ul", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const JRCWidgetLuccaAbsenceStatus: ({ datetime }: {
|
|
4
|
+
datetime: string;
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -70,17 +70,21 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
70
70
|
emailsLimit?: boolean | undefined;
|
|
71
71
|
emailsLimitValue?: number | undefined;
|
|
72
72
|
emailsPromptStatus?: string | undefined;
|
|
73
|
+
}>) | ({
|
|
74
|
+
layers?: string[] | undefined;
|
|
75
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
76
|
+
url?: string | undefined;
|
|
73
77
|
}>)>[] | undefined;
|
|
74
78
|
} & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | {
|
|
75
79
|
target?: string | undefined;
|
|
76
80
|
text?: string | undefined;
|
|
77
81
|
color?: string | undefined;
|
|
78
82
|
url?: string | undefined;
|
|
83
|
+
variant?: "contained" | "outlined" | undefined;
|
|
79
84
|
backgroundColor?: string | undefined;
|
|
80
85
|
borderRadius?: string | undefined;
|
|
81
86
|
fontSize?: string | undefined;
|
|
82
87
|
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
83
|
-
variant?: "contained" | "outlined" | undefined;
|
|
84
88
|
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
85
89
|
openingTypeLink?: {
|
|
86
90
|
target: string;
|
|
@@ -165,4 +169,6 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
165
169
|
emailsLimit?: boolean | undefined;
|
|
166
170
|
emailsLimitValue?: number | undefined;
|
|
167
171
|
emailsPromptStatus?: string | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
url?: string | undefined;
|
|
168
174
|
})>>() => T;
|
package/build/src/index.d.ts
CHANGED
|
@@ -180,6 +180,8 @@ export { JRCWidgetExcelDatasourceTableEditor } from './components/Widgets/JRCWid
|
|
|
180
180
|
export { JRCWidgetArticleSliderEditor } from './components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor';
|
|
181
181
|
export { JRCWidgetSlider } from './components/Widgets/JRCWidgetSlider/JRCWidgetSlider';
|
|
182
182
|
export { JRCWidgetEmptyInplace } from './components/Widgets/JRCWidgetEmptyInplace';
|
|
183
|
+
export { JRCWidgetLuccaAbsence } from './components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsence';
|
|
184
|
+
export { JRCWidgetLuccaAbsenceEditor } from './components/Widgets/JRCWidgetLuccaAbsence/JRCWidgetLuccaAbsenceEditor';
|
|
183
185
|
export { JRCWidgetCheckList } from './components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList';
|
|
184
186
|
export { JRCWidgetCheckListEditor } from './components/Widgets/JRCWidgetCheckList/JRCWidgetCheckListEditor';
|
|
185
187
|
export { JRCWidgetPresence } from './components/Widgets/JRCWidgetPresence/JRCWidgetPresence';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.249",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"chroma-js": "^2.1.1",
|
|
81
81
|
"classnames": "^2.3.1",
|
|
82
82
|
"dompurify": "^3.0.5",
|
|
83
|
-
"jamespot-user-api": "^1.0.
|
|
83
|
+
"jamespot-user-api": "^1.0.223",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|