jamespot-react-components 1.2.37 → 1.2.39

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 (52) hide show
  1. package/build/jamespot-react-components.js +1278 -981
  2. package/build/jamespot-react-components.js.map +1 -1
  3. package/build/src/components/Form/Common/FormMessageFeedback.stories.d.ts +7 -0
  4. package/build/src/components/Form/Input/Common/JRCFormErrors.stories.d.ts +9 -0
  5. package/build/src/components/Form/Input/Deprecated/JRCFormCheckbox/JRCFormCheckbox.types.d.ts +8 -7
  6. package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.d.ts +10 -1
  7. package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.d.ts +3 -7
  8. package/build/src/components/Form/Input/JRCInputDateTime/DayPickerStyle.d.ts +2 -0
  9. package/build/src/components/Form/Input/JRCInputDateTime/JRCInputDateTime.d.ts +5 -4
  10. package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.d.ts +4 -0
  11. package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.styles.d.ts +2 -1
  12. package/build/src/components/Form/Input/JRCInputImage/types.d.ts +2 -2
  13. package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +21 -3
  14. package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +1 -0
  15. package/build/src/components/Form/Input/JRCSelect/JRCInputAutocomplete.d.ts +1 -0
  16. package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +3 -0
  17. package/build/src/components/JRCAlert/JRCAlert.d.ts +5 -1
  18. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +1 -0
  19. package/build/src/components/JRCCalendar/JRCCalendar.d.ts +34 -2
  20. package/build/src/components/JRCCalendar/JRCCalendarEvent.d.ts +33 -2
  21. package/build/src/components/JRCCalendar/JRCCalendarModal.d.ts +3 -1
  22. package/build/src/components/JRCCalendar/JRCEventStatusButton.d.ts +3 -1
  23. package/build/src/components/JRCDragNDrop/DndProvider.d.ts +5 -0
  24. package/build/src/components/JRCDragNDrop/Draggable.d.ts +12 -0
  25. package/build/src/components/JRCDragNDrop/Droppable.d.ts +8 -0
  26. package/build/src/components/JRCDragNDrop/JRCDndTwoLevelWithStack.d.ts +2 -0
  27. package/build/src/components/JRCDragNDrop/JRCDndTwoLevelWithStack.stories.d.ts +9 -0
  28. package/build/src/components/JRCDragNDrop/index.d.ts +5 -0
  29. package/build/src/components/JRCDragNDrop/styles.d.ts +50 -0
  30. package/build/src/components/JRCDragNDrop/types.d.ts +65 -0
  31. package/build/src/components/JRCDropDown/JRCDropDown.d.ts +4 -1
  32. package/build/src/components/JRCIcon/JRCIcon.stories.d.ts +1 -1
  33. package/build/src/components/JRCIconButton/JRCIconButton.d.ts +2 -0
  34. package/build/src/components/JRCIconButton/JRCIconButton.stories.d.ts +8 -2
  35. package/build/src/components/JRCModal/JRCModal.styles.d.ts +5 -3
  36. package/build/src/components/JRCModal/JRCModalContent.d.ts +10 -4
  37. package/build/src/components/JRCModal/JRCModalContentForm.d.ts +1 -1
  38. package/build/src/components/JRCModal/JRCModalLayout.d.ts +7 -3
  39. package/build/src/components/JRCModal/templates/JRCModal.d.ts +1 -1
  40. package/build/src/components/JRCModal/templates/JRCModal.types.d.ts +7 -1
  41. package/build/src/components/JRCModal/templates/JRCModalForm.d.ts +1 -1
  42. package/build/src/components/JRCQRCode/JRCQRCode.d.ts +6 -0
  43. package/build/src/components/JRCQRCode/JRCQRCode.stories.d.ts +6 -0
  44. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.d.ts +3 -0
  45. package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.styles.d.ts +3 -1
  46. package/build/src/components/JRCTag/JRCTag.d.ts +2 -0
  47. package/build/src/components/Templates/template.styles.d.ts +0 -1
  48. package/build/src/components/index.d.ts +1 -0
  49. package/build/src/index.d.ts +1 -0
  50. package/build/src/types.d.ts +1 -0
  51. package/build/src/utils/utils.date.d.ts +1 -0
  52. package/package.json +6 -2
@@ -8,4 +8,4 @@ export type JRCModalContentFormProps = JRCModalContentBase & {
8
8
  export interface JRCModalFormButtonType extends JRCModalButtonType {
9
9
  isSubmit?: boolean;
10
10
  }
11
- export declare const JRCModalContentForm: ({ onSubmit, children, loading, title, onClickIconClose, options, buttons, overflow, }: JRCModalContentFormProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const JRCModalContentForm: ({ onSubmit, children, loading, title, onClickIconClose, options, buttons, overflow, subTitle, }: JRCModalContentFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
2
  import { ModalBorderRadius } from './JRCModal.styles';
3
+ import { JRCIconButtonProps } from '../JRCIconButton/JRCIconButton';
3
4
  import { ModalVariant } from './types';
4
5
  export interface JRCModalLayoutProps {
5
6
  open: boolean;
@@ -11,10 +12,13 @@ export interface JRCModalLayoutProps {
11
12
  inPlace?: boolean;
12
13
  className?: string;
13
14
  maxHeight?: string;
14
- variant?: ModalVariant;
15
- overflow?: 'visible' | 'hidden';
16
- zIndex?: number;
17
15
  minHeight?: string;
18
16
  focusOnCloseRef?: RefObject<HTMLElement>;
17
+ extraTopButtons?: JRCIconButtonProps[];
18
+ maxWidth?: string;
19
+ variant?: ModalVariant;
20
+ contentBackgroundColor?: boolean;
21
+ overflow?: 'hidden' | 'scroll' | 'visible' | 'auto';
22
+ zIndex?: number;
19
23
  }
20
24
  export declare const JRCModalLayout: import("react").ForwardRefExoticComponent<JRCModalLayoutProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
1
  import { JRCModalProps } from './JRCModal.types';
2
- export declare const JRCModal: ({ children, open, closeHandler, buttons, title, options, portalId, inPlace, ref, zIndex, enableClickAwayCloseModal, variant, focusOnCloseRef, }: JRCModalProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const JRCModal: ({ children, open, closeHandler, buttons, title, subTitle, options, portalId, inPlace, ref, zIndex, enableClickAwayCloseModal, variant, maxWidth, focusOnCloseRef, extraTopButtons, overflow, contentBackgroundColor, }: JRCModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,11 @@
1
1
  import { FormEvent, ForwardedRef, ReactNode, RefObject } from 'react';
2
2
  import { JRCModalButtonType } from '../JRCModalContent';
3
- import { JRCModalFormButtonType } from '../JRCModalContentForm';
3
+ import { JRCIconButtonProps } from '../../JRCIconButton/JRCIconButton';
4
4
  import { ModalVariant } from '../types';
5
+ import { JRCModalFormButtonType } from '../JRCModalContentForm';
5
6
  type JRCModalBaseProps = {
6
7
  title?: ReactNode;
8
+ subTitle?: ReactNode;
7
9
  children?: ReactNode;
8
10
  options?: ReactNode;
9
11
  open: boolean;
@@ -11,9 +13,13 @@ type JRCModalBaseProps = {
11
13
  portalId?: string;
12
14
  inPlace?: boolean;
13
15
  ref?: ForwardedRef<HTMLDivElement>;
16
+ overflow?: 'hidden' | 'scroll' | 'visible' | 'auto';
17
+ maxWidth?: string;
14
18
  enableClickAwayCloseModal?: boolean;
15
19
  zIndex?: number;
16
20
  focusOnCloseRef?: RefObject<HTMLElement>;
21
+ extraTopButtons?: JRCIconButtonProps[];
22
+ contentBackgroundColor?: boolean;
17
23
  };
18
24
  export type JRCModalProps = JRCModalBaseProps & {
19
25
  buttons?: JRCModalButtonType[];
@@ -1,2 +1,2 @@
1
1
  import { JRCModalFormProps } from './JRCModal.types';
2
- export declare const JRCModalForm: ({ title, children, options, open, closeHandler, buttons, onSubmit, loading, portalId, inPlace, ref, enableClickAwayCloseModal, maxHeight, zIndex, }: JRCModalFormProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const JRCModalForm: ({ title, children, options, open, closeHandler, buttons, onSubmit, loading, portalId, inPlace, ref, enableClickAwayCloseModal, maxHeight, zIndex, subTitle, extraTopButtons, focusOnCloseRef, }: JRCModalFormProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Colors } from '../../styles/theme';
2
+ export type JRCQRCodeProps = {
3
+ value: string;
4
+ color?: Colors;
5
+ };
6
+ export declare const JRCQRCode: ({ value, color }: JRCQRCodeProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-webpack5';
2
+ import { JRCQRCode } from './JRCQRCode';
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj<typeof JRCQRCode>;
6
+ export declare const Default: Story;
@@ -1,4 +1,5 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
+ import { JRCIconButtonProps } from '../JRCIconButton/JRCIconButton';
2
3
  import { JRCButtonDropdownOptionProps } from '../JRCButtonDropdown/JRCButtonDropdown.types';
3
4
  /**
4
5
  * Type for JRCSidePanelModal props
@@ -17,6 +18,8 @@ export type JRCSidePanelModalProps = {
17
18
  offsetTop?: number;
18
19
  optionsButton?: JRCButtonDropdownOptionProps[];
19
20
  zIndex?: number;
21
+ fixedFooter?: boolean;
22
+ extraTopButtons?: JRCIconButtonProps[];
20
23
  focusOnCloseRef?: RefObject<HTMLElement>;
21
24
  };
22
25
  /**
@@ -14,5 +14,7 @@ export declare const JRCModalContent: import("styled-components").StyledComponen
14
14
  export declare const JRCModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
15
  removePadding?: boolean;
16
16
  }, never>;
17
- export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
+ export declare const JRCModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
18
+ $fixed?: boolean;
19
+ }, never>;
18
20
  export declare const JRCModalClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -34,7 +34,9 @@ export type JRCTagProps<T> = UriOrTypeId & {
34
34
  defaultIcon?: string;
35
35
  iconOptions?: {
36
36
  size?: number;
37
+ background?: 'none';
37
38
  };
38
39
  onLoad?: () => void;
40
+ href?: string;
39
41
  };
40
42
  export declare function JRCTag<T>(props: JRCTagProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -15,7 +15,6 @@ export declare const MaxWidthWrapper: import("styled-components").StyledComponen
15
15
  $flexDirection?: FlexDirection;
16
16
  $hasPadding?: boolean;
17
17
  }, never>;
18
- export declare const PanelContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
19
18
  export declare const BaseColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
20
19
  $width: number;
21
20
  $position?: ColumnPosition;
@@ -83,6 +83,7 @@ export { JRCCommentsBloc } from './JRCCommentsBloc/JRCCommentsBloc';
83
83
  export { JRCCropImage } from './JRCCropImage/JRCCropImage';
84
84
  export { JRCDate } from './JRCDate/JRCDate';
85
85
  export { JRCDisplayCard } from './JRCDisplayCard/JRCDisplayCard';
86
+ export { DndProvider, Draggable, Droppable, JRCDndTwoLevelWithStack } from './JRCDragNDrop';
86
87
  export { JRCDropDown } from './JRCDropDown/JRCDropDown';
87
88
  export { JRCEmptySpace } from './JRCEmptySpace/JRCEmptySpace';
88
89
  export { JRCFile } from './JRCFile/JRCFile';
@@ -37,4 +37,5 @@ export { useRefSize } from './hooks/useRefSize';
37
37
  export { useTimeout } from './hooks/UseTimeout';
38
38
  export { useWindowSize } from './hooks/useWindowSize';
39
39
  export * from './types';
40
+ export { modifyColorBrightness } from './styles/utils';
40
41
  export { Utils } from './utils';
@@ -56,6 +56,7 @@ export type { JRCColumnRightProps } from './components/JRCColumnRight/JRCColumnR
56
56
  export type { Area } from './components/JRCCropImage/JRCCropImage';
57
57
  export type { JRCDateProps } from './components/JRCDate/JRCDate';
58
58
  export type { JRCDisplayCardProps } from './components/JRCDisplayCard/JRCDisplayCard';
59
+ export type { BaseDndItem, DndData, DndDragItem, DndEmptyStateComponentProps, DndItemComponentProps, DndSection, DndSectionComponentProps, ItemTypes, JRCDndTwoLevelWithStackProps, } from './components/JRCDragNDrop/types';
59
60
  export type { JRCDropDownProps } from './components/JRCDropDown/JRCDropDown';
60
61
  export type { JRCFileOpenProps } from './components/JRCFileOpen/JRCFileOpen';
61
62
  export type { JRCFileViewerOpenWithOptionsType } from './components/JRCFileViewer/types';
@@ -14,6 +14,7 @@ export declare const extractDate: (str?: string | Date) => extractDateProps;
14
14
  * @returns {string} Formatted date string
15
15
  */
16
16
  export declare const formatDate: (date: Date) => string;
17
+ export declare const formatTime: (date: Date) => string;
17
18
  /**
18
19
  * Format date to YYYY-MM-DD hh:mm:ss format
19
20
  * @param {Date} date - Date to format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.2.37",
3
+ "version": "1.2.39",
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.37",
71
+ "jamespot-user-api": "^1.2.39",
72
72
  "jest": "^30.1.2",
73
73
  "jest-environment-jsdom": "^30.1.2",
74
74
  "jest-styled-components": "^7.2.0",
@@ -77,17 +77,21 @@
77
77
  "prettier": "^3.6.2",
78
78
  "react": "^18.3.1",
79
79
  "react-beautiful-dnd": "^13.1.1",
80
+ "react-day-picker": "^9.8.1",
80
81
  "react-dnd": "^14.0.5",
81
82
  "react-dnd-html5-backend": "^14.1.0",
83
+ "react-dnd-test-backend": "^16.0.1",
82
84
  "react-dom": "^18.3.1",
83
85
  "react-hook-form": "^7.62.0",
84
86
  "react-image-crop": "^11.0.10",
85
87
  "react-intl": "7.1.11",
88
+ "react-qr-code": "^2.0.18",
86
89
  "react-redux": "^8.1.3",
87
90
  "react-router-dom": "^6.30.1",
88
91
  "react-select": "^5.10.2",
89
92
  "react-slick": "^0.31.0",
90
93
  "react-table": "^7.8.0",
94
+ "react-test-renderer": "^17.0.2",
91
95
  "react-tooltip": "^4.5.1",
92
96
  "redux": "^4.2.1",
93
97
  "redux-form": "^8.3.10",