jamespot-react-components 1.2.52 → 1.2.54
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 +791 -758
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Common/ClickAwayListener.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputDateTime/JRCInputDateTIme.stories.d.ts +7 -7
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +0 -1
- package/build/src/components/JRCAlert/JRCAlert.d.ts +1 -1
- package/build/src/components/JRCButtonDropdown/JRCButtonDropdown.types.d.ts +1 -0
- package/build/src/components/JRCCalendar/JRCCalendar.d.ts +1 -1
- package/build/src/components/JRCCalendar/types.d.ts +5 -0
- package/build/src/components/JRCCard/JRCCard.d.ts +1 -1
- package/build/src/components/JRCDropDown/JRCDropDown.stories.d.ts +6 -5
- package/build/src/components/JRCFlex/JRCFlexBox.stories.d.ts +6 -0
- package/build/src/hooks/UseDebounce.stories.d.ts +5 -0
- package/build/src/types.d.ts +1 -1
- package/build/src/utils/utils.color.d.ts +6 -0
- package/package.json +5 -2
- package/build/src/components/Common/util/getColor.util.d.ts +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Meta } from '@storybook/react-webpack5';
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { JRCInputDateTime } from './JRCInputDateTime';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof JRCInputDateTime>;
|
|
6
|
+
export declare const InputDateTime: Story;
|
|
7
|
+
export declare const InputDate: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { MessageType } from '../Common/util/getColor.util';
|
|
3
2
|
import { JRCButtonProps } from '../JRCButton/JRCButton';
|
|
3
|
+
import { MessageType } from '../../utils/utils.color';
|
|
4
4
|
export interface JRCAlertProps extends ComponentPropsWithoutRef<'div'> {
|
|
5
5
|
/** Alert title */
|
|
6
6
|
label: string | ReactNode;
|
|
@@ -3,4 +3,4 @@ export type CalendarOption = {
|
|
|
3
3
|
label: string;
|
|
4
4
|
value: CalendarView;
|
|
5
5
|
};
|
|
6
|
-
export declare const JRCCalendar: ({ events, loading, views, handler, defaultView, fluid, mode, fullScreen, deportedToolbar, withPadding, eventModalExtraComponent, onChangeView, onChangeDates, onError, onSuccess, onDeleteEvent, onClickUpdateEvent, onUpdateStatus, isUpdateStatusLoading, }: JRCCalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const JRCCalendar: ({ events, loading, views, handler, defaultView, fluid, mode, fullScreen, deportedToolbar, withPadding, eventModalExtraComponent, onChangeView, onChangeDates, onError, onSuccess, onDeleteEvent, onClickUpdateEvent, onUpdateStatus, isUpdateStatusLoading, onSelect, }: JRCCalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -44,6 +44,11 @@ export type JRCCalendarProps = {
|
|
|
44
44
|
type: string;
|
|
45
45
|
}) => void;
|
|
46
46
|
isUpdateStatusLoading: (id: number) => boolean;
|
|
47
|
+
onSelect?: (params: {
|
|
48
|
+
start: Date;
|
|
49
|
+
end: Date;
|
|
50
|
+
allDay: boolean;
|
|
51
|
+
} | null) => void;
|
|
47
52
|
};
|
|
48
53
|
export type JRCCalendarEventProps = {
|
|
49
54
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { MessageType } from '
|
|
2
|
+
import { MessageType } from '../../utils/utils.color';
|
|
3
3
|
export type TVariants = 'span' | 'div';
|
|
4
4
|
export type JRCCardProps = ComponentPropsWithoutRef<'div'> & {
|
|
5
5
|
variant?: TVariants;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
5
|
-
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { JRCDropDown } from './JRCDropDown';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof JRCDropDown>;
|
|
6
|
+
export declare const Default: Story;
|
package/build/src/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export type { CalendarApi } from '@fullcalendar/core';
|
|
|
2
2
|
export type { Editor } from 'tinymce';
|
|
3
3
|
export type { JRCDragAndDropProps } from './components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop';
|
|
4
4
|
export type { JRCConditionalWrapperProps } from './components/Common/JRCConditionalWrapper';
|
|
5
|
-
export type { MessageType } from './
|
|
5
|
+
export type { MessageType } from './utils/utils.color';
|
|
6
6
|
export type { JRCEllipsisProps } from './components/Deprecated/Deprecated_JRCEllipsis/Deprecated_JRCEllipsis';
|
|
7
7
|
export * from './components/Form/Common/types';
|
|
8
8
|
export type { JRCInputFieldProps, NameControl } from './components/Form/Input/Common/JRCFormFieldRenderer.types';
|
|
@@ -52,4 +52,10 @@ export declare const colorimetry: {
|
|
|
52
52
|
export declare const getContrast50: (hexcolor: string) => "black" | "white";
|
|
53
53
|
export declare const getContrastYIQ: (hexcolor: string) => "black" | "white";
|
|
54
54
|
export declare function isValidHexColor(color: string): boolean;
|
|
55
|
+
export type MessageType = 'success' | 'error' | 'warning';
|
|
56
|
+
export declare const MessageColor: {
|
|
57
|
+
readonly success: "green";
|
|
58
|
+
readonly error: "orange";
|
|
59
|
+
readonly warning: "yellow";
|
|
60
|
+
};
|
|
55
61
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.54",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"html-webpack-plugin": "^5.6.4",
|
|
69
69
|
"husky": "^7.0.4",
|
|
70
70
|
"identity-obj-proxy": "^3.0.0",
|
|
71
|
-
"jamespot-user-api": "^1.2.
|
|
71
|
+
"jamespot-user-api": "^1.2.54",
|
|
72
72
|
"jest": "^30.2.0",
|
|
73
73
|
"jest-environment-jsdom": "^30.2.0",
|
|
74
74
|
"jest-styled-components": "^7.2.0",
|
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
"node": ">=20.17.0 <21.0.0",
|
|
130
130
|
"pnpm": ">=9.9.0 <10"
|
|
131
131
|
},
|
|
132
|
+
"dependencies": {
|
|
133
|
+
"@fullcalendar/interaction": "^6.1.19"
|
|
134
|
+
},
|
|
132
135
|
"scripts": {
|
|
133
136
|
"dev": "webpack --env NODE_ENV=development",
|
|
134
137
|
"local": "webpack --env NODE_ENV=development WATCH=true",
|