sevago-library 1.5.7 → 1.5.8

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.
@@ -0,0 +1,19 @@
1
+ export declare const LAUNCHER_SIZE = 64;
2
+ export declare const LAUNCHER_INNER_SIZE = 48;
3
+ export declare const LAUNCHER_ICON_SIZE = 30;
4
+ export declare const LAUNCHER_Z_INDEX = 1400;
5
+ export declare const EDGE_GAP = 18;
6
+ export declare const MIN_TOP = 76;
7
+ export declare const DIALOG_WIDTH = 800;
8
+ export declare const DIALOG_MAX_WIDTH = "calc(100vw - 32px)";
9
+ export declare const DIALOG_CONTENT_MAX_HEIGHT = "78vh";
10
+ export declare const DRAG_ELASTIC = 0.08;
11
+ export declare const DRAG_CLICK_GUARD_MS = 160;
12
+ export declare const ROUTE_CHANGE_EVENT = "finish-good-gallery-route-change";
13
+ export declare const LAUNCHER_INNER_BACKGROUND = "rgba(255,255,255,0.18)";
14
+ export declare const LAUNCHER_INNER_BORDER = "1px solid rgba(255,255,255,0.45)";
15
+ export declare const SNAP_TRANSITION: {
16
+ readonly type: "spring";
17
+ readonly stiffness: 520;
18
+ readonly damping: 34;
19
+ };
@@ -1,5 +1,6 @@
1
1
  export * as APPS from './apps.const';
2
2
  export * as COLOR from './color.const';
3
+ export * as FINISH_GOOD_IMAGE_GALLERY from './finish-good-image-gallery.const';
3
4
  export * from './icons.const';
4
5
  export * as MODE from './mode.const';
5
6
  export * as OTHER from './other.const';
@@ -0,0 +1,7 @@
1
+ import { FinishGoodGalleryLauncherPosition, FinishGoodGalleryViewportSize } from './finish-good-image-gallery.interface';
2
+ export declare const useFinishGoodGalleryPathname: () => string;
3
+ export declare const useFinishGoodGalleryViewportSize: () => FinishGoodGalleryViewportSize;
4
+ export declare const useFinishGoodGalleryLauncherPosition: (viewportSize: FinishGoodGalleryViewportSize) => {
5
+ launcherPosition: FinishGoodGalleryLauncherPosition;
6
+ setLauncherPosition: import('react').Dispatch<import('react').SetStateAction<FinishGoodGalleryLauncherPosition>>;
7
+ };
@@ -4,6 +4,15 @@ import { FinishGoodImageResult } from '../../../../apis/product-management';
4
4
  import { ImageGalleryElementProps, ImageGalleryItem } from '../image-gallery';
5
5
  export type { FinishGoodImageResult };
6
6
  export type FinishGoodImageGalleryImages = ImageGalleryItem[] | FinishGoodImageResult;
7
+ export type FinishGoodGalleryLauncherSide = 'left' | 'right';
8
+ export interface FinishGoodGalleryLauncherPosition {
9
+ side: FinishGoodGalleryLauncherSide;
10
+ top: number;
11
+ }
12
+ export interface FinishGoodGalleryViewportSize {
13
+ width: number;
14
+ height: number;
15
+ }
7
16
  export interface FinishGoodImageGalleryElementProps extends Omit<ImageGalleryElementProps, 'images'> {
8
17
  images?: FinishGoodImageGalleryImages;
9
18
  isLoading?: boolean;
@@ -15,5 +24,8 @@ export interface FinishGoodImageGalleryElementProps extends Omit<ImageGalleryEle
15
24
  loadingContent?: ReactNode;
16
25
  textEmpty?: string;
17
26
  axiosProductManagement?: AxiosInstance;
27
+ blacklist?: string[];
28
+ launcherLabel?: string;
29
+ panelTitle?: string;
18
30
  onSearch?: (itemNoCode: string) => void | Promise<void>;
19
31
  }
@@ -0,0 +1,12 @@
1
+ import { FinishGoodGalleryLauncherPosition, FinishGoodGalleryLauncherSide, FinishGoodGalleryViewportSize, FinishGoodImageGalleryImages } from './finish-good-image-gallery.interface';
2
+ interface FinishGoodGalleryPoint {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ export declare const clampFinishGoodGalleryValue: (value: number, min: number, max: number) => number;
7
+ export declare const getFinishGoodGalleryMaxTop: (viewportHeight: number) => number;
8
+ export declare const getFinishGoodGalleryLauncherX: (side: FinishGoodGalleryLauncherSide, viewportWidth: number) => number;
9
+ export declare const getFinishGoodGallerySnappedPosition: (point: FinishGoodGalleryPoint, viewportSize: FinishGoodGalleryViewportSize) => FinishGoodGalleryLauncherPosition;
10
+ export declare const isFinishGoodGalleryRouteBlacklisted: (pathname: string, blacklist?: string[]) => boolean;
11
+ export declare const getFinishGoodGalleryImages: (data?: FinishGoodImageGalleryImages) => import('..').ImageGalleryItem[];
12
+ export {};
@@ -1,14 +1,17 @@
1
1
  import { MotionProps } from 'framer-motion';
2
2
  import { default as React } from 'react';
3
3
  export type AnimationPreset = 'fadeInUp' | 'fadeInDown' | 'fadeInLeft' | 'fadeInRight' | 'scaleIn' | 'slideInUp' | 'staggerItem' | 'tabContent' | 'tabUnderline';
4
- export interface MotionBoxProps extends Omit<MotionProps, 'initial' | 'animate' | 'transition'> {
4
+ export interface MotionBoxProps extends MotionProps {
5
5
  children: React.ReactNode;
6
6
  sx?: React.CSSProperties;
7
- onClick?: () => void;
8
- preset?: AnimationPreset;
7
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
8
+ preset?: AnimationPreset | false;
9
9
  delay?: number;
10
10
  index?: number;
11
11
  hover?: boolean;
12
+ title?: string;
13
+ role?: React.AriaRole;
14
+ 'aria-label'?: string;
12
15
  }
13
16
  export declare const animationPresets: {
14
17
  fadeInUp: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sevago-library",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "Sevago SSO Frontend Library - A comprehensive SSO solution with React components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",