jamespot-react-components 1.0.234 → 1.0.235
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 +669 -472
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Editors/components/EditorInputDatetime.d.ts +4 -0
- package/build/src/components/JRCDate/JRCDate.d.ts +6 -2
- package/build/src/components/JRCDate/JRCDate.stories.d.ts +1 -1
- package/build/src/components/JRCTypography/JRCTypography.d.d.ts +1 -1
- package/build/src/components/JRCTypography/JRCTypography.styles.d.ts +1 -0
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +31 -1
- package/build/src/components/Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDav.d.ts +14 -0
- package/build/src/components/Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDavEditor.d.ts +2 -0
- package/build/src/components/Widgets/JRCWidgetCalendarCalDav/styles.d.ts +12 -0
- package/build/src/components/Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDav.d.ts +10 -0
- package/build/src/components/Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDavEditor.d.ts +2 -0
- package/build/src/components/Widgets/JRCWidgetContactCardDav/styles.d.ts +6 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImap.d.ts +6 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapAttachments.d.ts +5 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapDate.d.ts +5 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapEditor.d.ts +2 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapLevel2.d.ts +11 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/WidgetEmailsImapStatus.d.ts +5 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/components/WidgetEmailsItemBody.d.ts +6 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/components/WidgetEmailsItemFooter.d.ts +4 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/components/WidgetEmailsItemHeader.d.ts +6 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/components/WidgetEmailsItemSubject.d.ts +5 -0
- package/build/src/components/Widgets/JRCWidgetEmailsImap/styles.d.ts +11 -0
- package/build/src/components/Widgets/JRCWidgetIcon.d.ts +12 -0
- package/build/src/components/Widgets/context/hooks.d.ts +31 -1
- package/build/src/hooks/useMoment.d.ts +4 -0
- package/build/src/index.d.ts +9 -0
- package/build/src/styles/theme.d.ts +3 -2
- package/build/src/utils/utils.date.d.ts +6 -1
- package/package.json +2 -2
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { DateFormat } from 'utils/utils.date';
|
|
3
3
|
export interface JRCDateProps {
|
|
4
4
|
date?: string;
|
|
5
|
+
dateSeparator?: '/' | '-' | ' ';
|
|
6
|
+
timeSeparator?: ':' | ' ';
|
|
7
|
+
useHumanDisplay?: boolean;
|
|
5
8
|
format?: DateFormat;
|
|
9
|
+
smartDate?: boolean;
|
|
6
10
|
}
|
|
7
|
-
export declare const JRCDate: (props: JRCDateProps) => React.JSX.Element
|
|
11
|
+
export declare const JRCDate: (props: JRCDateProps) => React.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { JRCDateProps } from './JRCDate';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: (props: JRCDateProps) => React.JSX.Element
|
|
5
|
+
component: (props: JRCDateProps) => React.JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
import { Story } from '@storybook/react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FastCssProps } from 'components/Common/FastCss';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Colors, FontWeight } from '../../styles/theme';
|
|
4
|
-
export type TSizes = 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
4
|
+
export type TSizes = 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
|
5
5
|
export type TVariants = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
6
6
|
export type TWeight = keyof FontWeight;
|
|
7
7
|
export type TAlignment = 'left' | 'right' | 'center';
|
|
@@ -58,7 +58,25 @@ export declare const Primary: Story<{
|
|
|
58
58
|
layers?: string[] | undefined;
|
|
59
59
|
} & import("jamespot-user-api").WidgetPresenceType) | ({
|
|
60
60
|
layers?: string[] | undefined;
|
|
61
|
-
} & import("jamespot-user-api").WidgetQuickSurveyType)
|
|
61
|
+
} & import("jamespot-user-api").WidgetQuickSurveyType) | ({
|
|
62
|
+
layers?: string[] | undefined;
|
|
63
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
64
|
+
calEventsLimit?: boolean | undefined;
|
|
65
|
+
calEventsLimitValue?: number | undefined;
|
|
66
|
+
calEventsPromptStatus?: string | undefined;
|
|
67
|
+
}>) | ({
|
|
68
|
+
layers?: string[] | undefined;
|
|
69
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
70
|
+
contactLimit?: boolean | undefined;
|
|
71
|
+
contactLimitValue?: number | undefined;
|
|
72
|
+
contactPromptStatus?: string | undefined;
|
|
73
|
+
}>) | ({
|
|
74
|
+
layers?: string[] | undefined;
|
|
75
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
76
|
+
emailsLimit?: boolean | undefined;
|
|
77
|
+
emailsLimitValue?: number | undefined;
|
|
78
|
+
emailsPromptStatus?: string | undefined;
|
|
79
|
+
}>)>[] | undefined;
|
|
62
80
|
} & (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 | {
|
|
63
81
|
url?: string | undefined;
|
|
64
82
|
target?: string | undefined;
|
|
@@ -141,6 +159,18 @@ export declare const Primary: Story<{
|
|
|
141
159
|
isNotDisabled?: boolean | 0 | 1 | undefined;
|
|
142
160
|
seeResponseAfter?: boolean | 0 | 1 | undefined;
|
|
143
161
|
anonymize?: boolean | 0 | 1 | undefined;
|
|
162
|
+
} | {
|
|
163
|
+
calEventsLimit?: boolean | undefined;
|
|
164
|
+
calEventsLimitValue?: number | undefined;
|
|
165
|
+
calEventsPromptStatus?: string | undefined;
|
|
166
|
+
} | {
|
|
167
|
+
contactLimit?: boolean | undefined;
|
|
168
|
+
contactLimitValue?: number | undefined;
|
|
169
|
+
contactPromptStatus?: string | undefined;
|
|
170
|
+
} | {
|
|
171
|
+
emailsLimit?: boolean | undefined;
|
|
172
|
+
emailsLimitValue?: number | undefined;
|
|
173
|
+
emailsPromptStatus?: string | undefined;
|
|
144
174
|
}), args_1: boolean, ...args_2: unknown[]) => void;
|
|
145
175
|
onStateChange: (args_0: {
|
|
146
176
|
busy?: boolean | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { DavCalendarEvent } from 'jamespot-user-api';
|
|
3
|
+
export type JRCWidgetCalendarCalDavProps = {
|
|
4
|
+
calendarListEvent: DavCalendarEvent[];
|
|
5
|
+
};
|
|
6
|
+
export declare const JRCWidgetCalendarCalDav: ({ calendarListEvent }: JRCWidgetCalendarCalDavProps) => React.JSX.Element;
|
|
7
|
+
export declare const EventItem: ({ event, children }: {
|
|
8
|
+
event: DavCalendarEvent;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
11
|
+
export declare const EventItemDate: ({ dateStart, dateEnd }: {
|
|
12
|
+
dateStart: string;
|
|
13
|
+
dateEnd: string;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const WidgetHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const CSSEventItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
+
status: string;
|
|
5
|
+
}, never>;
|
|
6
|
+
export declare const CSSEventItemA: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {
|
|
7
|
+
status: string;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const CssEventItemStatus: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
10
|
+
status: string;
|
|
11
|
+
}, never>;
|
|
12
|
+
export declare const Status: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { DavAddressBookContact } from 'jamespot-user-api';
|
|
3
|
+
export type JRCWidgetContactCardDavProps = {
|
|
4
|
+
contactCardList: DavAddressBookContact[];
|
|
5
|
+
};
|
|
6
|
+
export declare const JRCWidgetContactCardDav: ({ contactCardList }: JRCWidgetContactCardDavProps) => React.JSX.Element;
|
|
7
|
+
export declare const ContactItem: ({ contact, children }: {
|
|
8
|
+
contact: DavAddressBookContact;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const CSSContactItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const CSSContactItemA: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const ContactImg: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5
|
+
color: string;
|
|
6
|
+
}, never>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSMailItemCount: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const WidgetEmailsImapAttachments: ({ count }: {
|
|
4
|
+
count: number;
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSIconAbsolute: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const CSSIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const CSSIconCount: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const CSSIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const JRCWidgetEmailsImapLevel2: ({ count, img, label, maxValue, }: {
|
|
7
|
+
count: number;
|
|
8
|
+
img: string;
|
|
9
|
+
label: string;
|
|
10
|
+
maxValue?: number | undefined;
|
|
11
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSMailItemHeaderStatus: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const WidgetEmailsImapStatus: ({ read }: {
|
|
4
|
+
read: boolean;
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const CSSMailItemWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
+
read: boolean;
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const CSSMailItemHref: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const CSSMailItemHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const CSSMailItemHeaderFrom: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const CSSMailItemFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const CSSMailItemSubject: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const CSSMailItemBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
10
|
+
maxHeight: number;
|
|
11
|
+
}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSIconWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const CSSIconCount: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const CSSIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export type JRCWidgetIconProps = {
|
|
6
|
+
count: number;
|
|
7
|
+
img: string;
|
|
8
|
+
label: string;
|
|
9
|
+
url?: string;
|
|
10
|
+
maxValue?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const JRCWidgetIcon: ({ count, img, label, maxValue }: JRCWidgetIconProps) => React.JSX.Element;
|
|
@@ -52,7 +52,25 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
52
52
|
layers?: string[] | undefined;
|
|
53
53
|
} & import("jamespot-user-api").WidgetPresenceType) | ({
|
|
54
54
|
layers?: string[] | undefined;
|
|
55
|
-
} & import("jamespot-user-api").WidgetQuickSurveyType)
|
|
55
|
+
} & import("jamespot-user-api").WidgetQuickSurveyType) | ({
|
|
56
|
+
layers?: string[] | undefined;
|
|
57
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
58
|
+
calEventsLimit?: boolean | undefined;
|
|
59
|
+
calEventsLimitValue?: number | undefined;
|
|
60
|
+
calEventsPromptStatus?: string | undefined;
|
|
61
|
+
}>) | ({
|
|
62
|
+
layers?: string[] | undefined;
|
|
63
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
64
|
+
contactLimit?: boolean | undefined;
|
|
65
|
+
contactLimitValue?: number | undefined;
|
|
66
|
+
contactPromptStatus?: string | undefined;
|
|
67
|
+
}>) | ({
|
|
68
|
+
layers?: string[] | undefined;
|
|
69
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
70
|
+
emailsLimit?: boolean | undefined;
|
|
71
|
+
emailsLimitValue?: number | undefined;
|
|
72
|
+
emailsPromptStatus?: string | undefined;
|
|
73
|
+
}>)>[] | undefined;
|
|
56
74
|
} & (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 | {
|
|
57
75
|
url?: string | undefined;
|
|
58
76
|
target?: string | undefined;
|
|
@@ -135,4 +153,16 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
135
153
|
isNotDisabled?: boolean | 0 | 1 | undefined;
|
|
136
154
|
seeResponseAfter?: boolean | 0 | 1 | undefined;
|
|
137
155
|
anonymize?: boolean | 0 | 1 | undefined;
|
|
156
|
+
} | {
|
|
157
|
+
calEventsLimit?: boolean | undefined;
|
|
158
|
+
calEventsLimitValue?: number | undefined;
|
|
159
|
+
calEventsPromptStatus?: string | undefined;
|
|
160
|
+
} | {
|
|
161
|
+
contactLimit?: boolean | undefined;
|
|
162
|
+
contactLimitValue?: number | undefined;
|
|
163
|
+
contactPromptStatus?: string | undefined;
|
|
164
|
+
} | {
|
|
165
|
+
emailsLimit?: boolean | undefined;
|
|
166
|
+
emailsLimitValue?: number | undefined;
|
|
167
|
+
emailsPromptStatus?: string | undefined;
|
|
138
168
|
})>>() => T;
|
package/build/src/index.d.ts
CHANGED
|
@@ -183,6 +183,14 @@ export { JRCWidgetPresence } from './components/Widgets/JRCWidgetPresence/JRCWid
|
|
|
183
183
|
export { JRCWidgetPresenceEditor } from './components/Widgets/JRCWidgetPresence/JRCWidgetPresenceEditor';
|
|
184
184
|
export { JRCWidgetQuickSurvey } from './components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey';
|
|
185
185
|
export { JRCWidgetQuickSurveyEditor } from './components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurveyEditor';
|
|
186
|
+
export { JRCWidgetContactCardDav } from './components/Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDav';
|
|
187
|
+
export { JRCWidgetContactCardDavEditor } from './components/Widgets/JRCWidgetContactCardDav/JRCWidgetContactCardDavEditor';
|
|
188
|
+
export { JRCWidgetEmailsImap } from './components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImap';
|
|
189
|
+
export { JRCWidgetEmailsImapLevel2 } from './components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapLevel2';
|
|
190
|
+
export { JRCWidgetEmailsImapEditor } from './components/Widgets/JRCWidgetEmailsImap/JRCWidgetEmailsImapEditor';
|
|
191
|
+
export { JRCWidgetCalendarCalDav } from './components/Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDav';
|
|
192
|
+
export { JRCWidgetCalendarCalDavEditor } from './components/Widgets/JRCWidgetCalendarCalDav/JRCWidgetCalendarCalDavEditor';
|
|
193
|
+
export { JRCWidgetIcon } from './components/Widgets/JRCWidgetIcon';
|
|
186
194
|
export { JRCModalUserList } from './components/JRCModalUserList/JRCModalUserList';
|
|
187
195
|
export { LabelDescriptionOption } from './components/Form/Input/JRCSelect/JRCInputSelect.defaults';
|
|
188
196
|
export { StyledInput } from './components/Form/Input/JRCStyledInput';
|
|
@@ -191,6 +199,7 @@ export { useDidMountEffect } from './hooks/UseDidMountEffect';
|
|
|
191
199
|
export { useImageLoader } from './hooks/UseImageLoader';
|
|
192
200
|
export { useKeyPress } from './hooks/UseKeyPress';
|
|
193
201
|
export { useTimeout } from './hooks/UseTimeout';
|
|
202
|
+
export { useMoment } from './hooks/useMoment';
|
|
194
203
|
export { useCancelOnUnmount } from './hooks/useCancelOnUnmount';
|
|
195
204
|
export { useRefSize } from './hooks/useRefSize';
|
|
196
205
|
export { useWindowSize } from './hooks/useWindowSize';
|
|
@@ -17,12 +17,13 @@ export type ThemeConfigOptions = {
|
|
|
17
17
|
navBackground: string;
|
|
18
18
|
navTextColor: string;
|
|
19
19
|
bgColorNotLogged: string;
|
|
20
|
+
forest: string;
|
|
20
21
|
};
|
|
21
|
-
export type Colors = 'primary' | 'secondary' | 'headerColor' | 'headerTextColor' | 'headerUserBackground' | 'headerUserTextColor' | 'headerSearchBarTextColor' | 'headerSearchBarBackgroundColor' | 'navBackground' | 'navTextColor' | 'lavender' | 'orange' | 'yellow' | 'green' | 'navy' | 'overseas' | 'night1' | 'night2' | 'sandLight' | 'sky' | 'sky15' | 'sand' | 'grey0' | 'grey1' | 'grey2' | 'grey3' | 'grey4' | 'grey5' | 'grey6' | 'black' | 'black10' | 'black15' | 'black20' | 'white' | 'transparent';
|
|
22
|
+
export type Colors = 'primary' | 'secondary' | 'headerColor' | 'headerTextColor' | 'headerUserBackground' | 'headerUserTextColor' | 'headerSearchBarTextColor' | 'headerSearchBarBackgroundColor' | 'navBackground' | 'navTextColor' | 'lavender' | 'orange' | 'yellow' | 'green' | 'navy' | 'overseas' | 'night1' | 'night2' | 'sandLight' | 'raspberry' | 'sky' | 'sky15' | 'sand' | 'forest' | 'grey0' | 'grey1' | 'grey2' | 'grey3' | 'grey4' | 'grey5' | 'grey6' | 'black' | 'black10' | 'black15' | 'black20' | 'white' | 'transparent';
|
|
22
23
|
type ThemeConfigColorType = {
|
|
23
24
|
[color in Colors]: string;
|
|
24
25
|
};
|
|
25
|
-
export type Shades = 'primaryL15' | 'primaryL80' | 'primaryL90' | 'primaryD20' | 'secondaryL15' | 'secondaryL80' | 'secondaryL90' | 'secondaryD20' | 'greenL20' | 'greenL80' | 'greenL90' | 'greenD20' | 'orangeL15' | 'orangeL80' | 'orangeL90' | 'orangeD20';
|
|
26
|
+
export type Shades = 'primaryL15' | 'primaryL80' | 'primaryL90' | 'primaryD20' | 'secondaryL15' | 'secondaryL80' | 'secondaryL90' | 'secondaryD20' | 'greenL20' | 'greenL80' | 'greenL90' | 'greenD20' | 'raspberryL95' | 'orangeL15' | 'orangeL80' | 'orangeL90' | 'orangeD20';
|
|
26
27
|
type ThemeConfigShadeType = {
|
|
27
28
|
[color in Shades]: string;
|
|
28
29
|
};
|
|
@@ -7,7 +7,12 @@ export interface extractDateProps {
|
|
|
7
7
|
seconds: number;
|
|
8
8
|
}
|
|
9
9
|
export type DateFormat = 'date' | 'date-time' | 'date-time-sec' | 'time' | 'time-sec';
|
|
10
|
-
export declare const extractDate: (str
|
|
10
|
+
export declare const extractDate: (str?: string | Date) => extractDateProps;
|
|
11
|
+
export declare const isSameDay: (d1: string, d2: string) => boolean;
|
|
12
|
+
export declare const isToday: (datetime: string) => boolean;
|
|
13
|
+
export declare const isYesterday: (datetime: string) => boolean;
|
|
14
|
+
export declare const isTomorrow: (datetime: string) => boolean;
|
|
15
|
+
export declare const dateLabel: (date: string) => "GLOBAL_Today" | "GLOBAL_Yesterday" | "GLOBAL_Tomorrow" | null;
|
|
11
16
|
/**
|
|
12
17
|
* Convert date string to timestamp
|
|
13
18
|
* @param {string} str - Date format Y-m-d H:i:s
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.235",
|
|
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.211",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|