jamespot-react-components 1.2.15 → 1.2.17
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 +226 -160
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +1 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +1 -0
- package/build/src/components/JRCAlbum/JRCAlbum.d.ts +3 -0
- package/build/src/components/JRCAlbum/JRCAlbum.stories.d.ts +12 -0
- package/build/src/components/JRCAlbum/components/AlbumItem.d.ts +10 -0
- package/build/src/components/JRCAlbum/components/AlbumX1.d.ts +3 -0
- package/build/src/components/JRCAlbum/components/AlbumX2.d.ts +3 -0
- package/build/src/components/JRCAlbum/components/AlbumX3.d.ts +3 -0
- package/build/src/components/JRCAlbum/components/AlbumX4.d.ts +3 -0
- package/build/src/components/JRCAlbum/components/AlbumX5.d.ts +3 -0
- package/build/src/components/JRCAlbum/const.d.ts +8 -0
- package/build/src/components/JRCAlbum/styles.d.ts +20 -0
- package/build/src/components/JRCAlbum/types.d.ts +22 -0
- package/build/src/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -277,6 +277,7 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
277
277
|
theme: import("styled-components").DefaultTheme;
|
|
278
278
|
} & {
|
|
279
279
|
sizeVariant?: "s" | "md" | undefined;
|
|
280
|
+
minWidth?: string | false | undefined;
|
|
280
281
|
}, "slot" | "style" | "title" | "color" | "theme" | "ref" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">;
|
|
281
282
|
export declare const SelectedOptionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
282
283
|
export declare const SelectedOption: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JRCAlbum } from './JRCAlbum';
|
|
2
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof JRCAlbum>;
|
|
6
|
+
export declare const AlbumX1: Story;
|
|
7
|
+
export declare const AlbumX1OpenFileViewer: Story;
|
|
8
|
+
export declare const AlbumX2: Story;
|
|
9
|
+
export declare const AlbumX3WithVideo: Story;
|
|
10
|
+
export declare const AlbumX4: Story;
|
|
11
|
+
export declare const AlbumX5: Story;
|
|
12
|
+
export declare const AlbumX5WithAttachments: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { JRCAlbumItemFile } from '../types';
|
|
3
|
+
export declare const AlbumItem: ({ file, width, height }: {
|
|
4
|
+
file: JRCAlbumItemFile;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}) => React.JSX.Element;
|
|
8
|
+
export declare const AlbumItemImage: ({ uri }: {
|
|
9
|
+
uri: string;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const AlbumWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
|
+
maxWidth?: string | undefined;
|
|
3
|
+
}, never>;
|
|
4
|
+
export declare const AlbumBackgroundVideoWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const AlbumBackgroundImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
|
+
uri: string;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const AlbumImageWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
}, never>;
|
|
15
|
+
export declare const AlbumImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
16
|
+
export declare const AlbumOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
export declare const AlbumAttachments: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
18
|
+
export declare const AlbumRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
+
export declare const AlbumX1Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
20
|
+
export declare const AlbumButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jFileLittle } from 'jamespot-user-api';
|
|
2
|
+
export type JRCAlbumProps = {
|
|
3
|
+
files: jFileLittle[];
|
|
4
|
+
maxWidth?: number;
|
|
5
|
+
maxHeight?: number;
|
|
6
|
+
withAttachments?: boolean;
|
|
7
|
+
urlResolve: (file: jFileLittle) => string;
|
|
8
|
+
};
|
|
9
|
+
export type JRCAlbumItemFile = {
|
|
10
|
+
uri: string;
|
|
11
|
+
id: number;
|
|
12
|
+
title: string;
|
|
13
|
+
mimetype: string;
|
|
14
|
+
size: string;
|
|
15
|
+
};
|
|
16
|
+
export type JRCAlbumItemProps = {
|
|
17
|
+
files: JRCAlbumItemFile[];
|
|
18
|
+
maxWidth?: number;
|
|
19
|
+
maxHeight?: number;
|
|
20
|
+
withAttachments?: boolean;
|
|
21
|
+
onClick: (index: number) => void;
|
|
22
|
+
};
|
package/build/src/index.d.ts
CHANGED
|
@@ -160,6 +160,7 @@ export { JRCMainColumn } from './components/Templates/JRCMainColumn';
|
|
|
160
160
|
export { JRCPanel } from './components/Templates/JRCPanel';
|
|
161
161
|
export { JRCStepperPage } from './components/Templates/JRCStepperPage';
|
|
162
162
|
export { JRCTemplateTwoColumns } from './components/Templates/JRCTwoColumns.template';
|
|
163
|
+
export { JRCAlbum } from './components/JRCAlbum/JRCAlbum';
|
|
163
164
|
export { JRCProgressBar } from './components/JRCProgressBar/JRCProgressBar';
|
|
164
165
|
export { JRCWidgetArticleAttachmentEditor } from './components/Widgets/JRCWidgetAttachment/JRCWidgetArticleAttachmentEditor';
|
|
165
166
|
export { JRCWidgetAttachment } from './components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.17",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"chroma-js": "^2.1.1",
|
|
101
101
|
"classnames": "^2.3.1",
|
|
102
102
|
"dompurify": "^3.0.5",
|
|
103
|
-
"jamespot-user-api": "^1.2.
|
|
103
|
+
"jamespot-user-api": "^1.2.17",
|
|
104
104
|
"react": "^17.x",
|
|
105
105
|
"react-beautiful-dnd": "^13.1.1",
|
|
106
106
|
"react-dnd": "^14.0.4",
|