sgc-coppel-ui 0.1.0
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/README.md +73 -0
- package/dist/App.d.ts +2 -0
- package/dist/components/atoms/CopelIcon/CopelIcon.d.ts +14 -0
- package/dist/components/atoms/CopelLogo/CopelLogo.d.ts +25 -0
- package/dist/components/atoms/CopelSEOHead/CopelSEOHead.d.ts +17 -0
- package/dist/components/molecules/CopelDialogoGenerico/CopelDialogoGenerico.d.ts +26 -0
- package/dist/components/organisms/Comparador/ComparadorModal.d.ts +12 -0
- package/dist/components/organisms/CopelFooter/CopelFooter.d.ts +5 -0
- package/dist/components/organisms/CopelFooter/FooterStyles.d.ts +31 -0
- package/dist/components/organisms/CopelFooter/footer-1/footer-1.d.ts +1 -0
- package/dist/components/organisms/CopelFooter/footer-2/footer-2.d.ts +1 -0
- package/dist/components/organisms/CopelFooter/footer-inner/footer-inner.d.ts +1 -0
- package/dist/components/organisms/CopelMenuComponent/CopelMenuComponent.d.ts +2 -0
- package/dist/index.d.ts +7 -0
- package/dist/main.d.ts +0 -0
- package/dist/sgc-coppel-ui.css +2 -0
- package/dist/sgc-coppel-ui.js +272 -0
- package/dist/sgc-coppel-ui.umd.cjs +6 -0
- package/dist/types/Supplier-items-interfaces.d.ts +173 -0
- package/dist/vite.svg +1 -0
- package/package.json +79 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(['dist']),
|
|
21
|
+
{
|
|
22
|
+
files: ['**/*.{ts,tsx}'],
|
|
23
|
+
extends: [
|
|
24
|
+
// Other configs...
|
|
25
|
+
|
|
26
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
+
tseslint.configs.recommendedTypeChecked,
|
|
28
|
+
// Alternatively, use this for stricter rules
|
|
29
|
+
tseslint.configs.strictTypeChecked,
|
|
30
|
+
// Optionally, add this for stylistic rules
|
|
31
|
+
tseslint.configs.stylisticTypeChecked,
|
|
32
|
+
|
|
33
|
+
// Other configs...
|
|
34
|
+
],
|
|
35
|
+
languageOptions: {
|
|
36
|
+
parserOptions: {
|
|
37
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
+
tsconfigRootDir: import.meta.dirname,
|
|
39
|
+
},
|
|
40
|
+
// other options...
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// eslint.config.js
|
|
50
|
+
import reactX from 'eslint-plugin-react-x'
|
|
51
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
52
|
+
|
|
53
|
+
export default defineConfig([
|
|
54
|
+
globalIgnores(['dist']),
|
|
55
|
+
{
|
|
56
|
+
files: ['**/*.{ts,tsx}'],
|
|
57
|
+
extends: [
|
|
58
|
+
// Other configs...
|
|
59
|
+
// Enable lint rules for React
|
|
60
|
+
reactX.configs['recommended-typescript'],
|
|
61
|
+
// Enable lint rules for React DOM
|
|
62
|
+
reactDom.configs.recommended,
|
|
63
|
+
],
|
|
64
|
+
languageOptions: {
|
|
65
|
+
parserOptions: {
|
|
66
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
+
tsconfigRootDir: import.meta.dirname,
|
|
68
|
+
},
|
|
69
|
+
// other options...
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
])
|
|
73
|
+
```
|
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CopelIconProps {
|
|
3
|
+
icon: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
onClick?: (event: React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent<HTMLSpanElement>) => void;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
/** Si es decorativo, se ocultará de screen readers */
|
|
9
|
+
decorative?: boolean;
|
|
10
|
+
/** Tamaño del icono para mejor accesibilidad */
|
|
11
|
+
size?: 'small' | 'medium' | 'large';
|
|
12
|
+
}
|
|
13
|
+
export declare const CopelIcon: React.FC<CopelIconProps>;
|
|
14
|
+
export default CopelIcon;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface CopelLogoProps {
|
|
3
|
+
/** Tamaño del logo */
|
|
4
|
+
size?: 'small' | 'medium' | 'large' | 'xlarge' | 'responsive';
|
|
5
|
+
/** Texto alternativo para accesibilidad */
|
|
6
|
+
alt?: string;
|
|
7
|
+
/** Clase CSS adicional */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Si el logo es clickeable */
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
/** Título que aparece al hacer hover */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Mostrar como enlace */
|
|
14
|
+
href?: string;
|
|
15
|
+
/** Abrir enlace en nueva pestaña */
|
|
16
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
17
|
+
/** Variante del logo (normal, white, dark) */
|
|
18
|
+
variant?: 'normal' | 'white' | 'dark';
|
|
19
|
+
/** Lazy loading de la imagen */
|
|
20
|
+
loading?: 'lazy' | 'eager';
|
|
21
|
+
/** Prioridad de carga para optimización */
|
|
22
|
+
priority?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const CopelLogo: React.FC<CopelLogoProps>;
|
|
25
|
+
export default CopelLogo;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CopelSEOHeadProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
keywords?: string;
|
|
6
|
+
author?: string;
|
|
7
|
+
image?: string;
|
|
8
|
+
url?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
siteName?: string;
|
|
11
|
+
locale?: string;
|
|
12
|
+
twitterCard?: 'summary' | 'summary_large_image' | 'app' | 'player';
|
|
13
|
+
noIndex?: boolean;
|
|
14
|
+
canonical?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const CopelSEOHead: React.FC<CopelSEOHeadProps>;
|
|
17
|
+
export default CopelSEOHead;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface CopelDialogoGenericoProps {
|
|
3
|
+
icon?: string;
|
|
4
|
+
dialogTitle?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
titleCenter?: boolean;
|
|
7
|
+
message?: string;
|
|
8
|
+
messageCenter?: boolean;
|
|
9
|
+
onAccept?: () => void;
|
|
10
|
+
acceptLabel?: string;
|
|
11
|
+
cancelLabel?: string;
|
|
12
|
+
onReject?: () => void;
|
|
13
|
+
rejectLabel?: string;
|
|
14
|
+
showRejectButton?: boolean;
|
|
15
|
+
position?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
16
|
+
isVisible: boolean;
|
|
17
|
+
onHide: () => void;
|
|
18
|
+
styles?: React.CSSProperties;
|
|
19
|
+
iconStyle?: React.CSSProperties;
|
|
20
|
+
confirmation?: boolean;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
dialogHeaderClassName?: string;
|
|
23
|
+
hideCancel?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export default function CopelDialogoGenerico({ icon, dialogTitle, title, titleCenter, message, acceptLabel, cancelLabel, rejectLabel, onAccept, onReject, showRejectButton, position, isVisible, onHide, styles, iconStyle, confirmation, children, dialogHeaderClassName, hideCancel, }: CopelDialogoGenericoProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SupplierItem } from '../../../types/Supplier-items-interfaces';
|
|
3
|
+
interface ComparadorModalProps {
|
|
4
|
+
productosComparar: SupplierItem[];
|
|
5
|
+
onRemoveProduct: (producto: SupplierItem) => void;
|
|
6
|
+
onMoverProducto: (from: number, to: number) => void;
|
|
7
|
+
onLimpiarTodo: () => void;
|
|
8
|
+
onComparar: () => void;
|
|
9
|
+
maxProducts?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const ComparadorModal: React.FC<ComparadorModalProps>;
|
|
12
|
+
export default ComparadorModal;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const irArribaStyle: {
|
|
2
|
+
width: string;
|
|
3
|
+
height: string;
|
|
4
|
+
angle: string;
|
|
5
|
+
opacity: number;
|
|
6
|
+
display: string;
|
|
7
|
+
justifyContent: string;
|
|
8
|
+
alignContent: string;
|
|
9
|
+
color: string;
|
|
10
|
+
flexWrap: string;
|
|
11
|
+
background: string;
|
|
12
|
+
gap: string;
|
|
13
|
+
cursor: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const FooterHomeStyle: {
|
|
16
|
+
display: string;
|
|
17
|
+
justifyContent: string;
|
|
18
|
+
alignContent: string;
|
|
19
|
+
angle: string;
|
|
20
|
+
opacity: number;
|
|
21
|
+
gap: number;
|
|
22
|
+
background: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const FooterHomeGridStyle: {
|
|
25
|
+
width: string;
|
|
26
|
+
padding: string;
|
|
27
|
+
display: string;
|
|
28
|
+
gridTemplateColumns: string;
|
|
29
|
+
color: string;
|
|
30
|
+
listStyle: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Footer1Component(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Footer2Component(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function FooterInner(): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './components/atoms/CopelLogo/CopelLogo';
|
|
2
|
+
export * from './components/atoms/CopelIcon/CopelIcon';
|
|
3
|
+
export * from './components/atoms/CopelSEOHead/CopelSEOHead';
|
|
4
|
+
export * from './components/molecules/CopelDialogoGenerico/CopelDialogoGenerico';
|
|
5
|
+
export * from './components/organisms/CopelMenuComponent/CopelMenuComponent';
|
|
6
|
+
export * from './components/organisms/CopelFooter/CopelFooter';
|
|
7
|
+
export * from './components/organisms/Comparador/ComparadorModal';
|
package/dist/main.d.ts
ADDED
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.coppel-logo{line-height:0;transition:all .3s;display:inline-block}.coppel-logo__image{object-fit:contain;opacity:0;height:auto;transition:opacity .3s,filter .3s;display:block}.coppel-logo__fallback{color:#333;background:0 0;border:1px solid #ddd;border-radius:4px;justify-content:center;align-items:center;padding:.5rem 1rem;font-family:system-ui,-apple-system,sans-serif;font-weight:600;display:flex}.coppel-logo__text{letter-spacing:.05em;font-size:1.2rem}.coppel-logo--loaded .coppel-logo__image,.coppel-logo--error .coppel-logo__fallback{opacity:1}.coppel-logo--small{width:80px;height:32px}.coppel-logo--small .coppel-logo__fallback{height:32px;padding:.25rem .5rem;font-size:.8rem}.coppel-logo--medium{width:120px;height:48px}.coppel-logo--medium .coppel-logo__fallback{height:48px;padding:.5rem .75rem;font-size:1rem}.coppel-logo--large{width:160px;height:64px}.coppel-logo--large .coppel-logo__fallback{height:64px;padding:.75rem 1rem;font-size:1.25rem}.coppel-logo--xlarge{width:280px;height:112px}.coppel-logo--xlarge .coppel-logo__fallback{height:112px;padding:1.5rem 2rem;font-size:2rem}.coppel-logo--responsive{width:100%;min-width:80px;max-width:200px;height:auto}.coppel-logo--responsive .coppel-logo__fallback{height:auto;min-height:32px;padding:.5rem 1rem;font-size:clamp(.8rem,2vw,1.2rem)}@media (max-width:768px){.coppel-logo--responsive{max-width:120px}}@media (max-width:480px){.coppel-logo--responsive{max-width:100px}}.coppel-logo--white .coppel-logo__fallback{color:#fff;background:0 0;border:1px solid #ffffff4d}.coppel-logo--dark .coppel-logo__fallback{color:#333;background:0 0;border:1px solid #0003}.coppel-logo--clickable{cursor:pointer}.coppel-logo--clickable:hover{filter:brightness(1.05);transform:translateY(-1px)}.coppel-logo--clickable:active{filter:brightness(.95);transform:translateY(0)}.coppel-logo--clickable:focus{outline-offset:2px;border-radius:4px;outline:2px solid #007bff}.coppel-logo--clickable:focus-visible{outline-offset:2px;outline:2px solid #007bff}.coppel-logo--clickable:focus:not(:focus-visible){outline:none}.coppel-logo button.coppel-logo{background:0 0;border:none;margin:0;padding:0}.coppel-logo button.coppel-logo:disabled{opacity:.6;cursor:not-allowed}.coppel-logo button.coppel-logo:disabled:hover{filter:none;transform:none}.coppel-logo a.coppel-logo{color:inherit;text-decoration:none}.coppel-logo a.coppel-logo:visited{color:inherit}@keyframes fadeIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.coppel-logo--loaded{animation:.3s ease-out fadeIn}@media (prefers-contrast:high){.coppel-logo__fallback{border:2px solid}}@media (prefers-reduced-motion:reduce){.coppel-logo,.coppel-logo__image,.coppel-logo__fallback{transition:none;animation:none}.coppel-logo--clickable:hover{transform:none}}@media (prefers-color-scheme:dark){.coppel-logo--normal .coppel-logo__fallback{color:#fff;background:0 0;border:1px solid #ffffff4d}}.coppel-logo-container{align-items:center;gap:.5rem;display:flex}.coppel-logo-container--center{justify-content:center}.coppel-logo-container--start{justify-content:flex-start}.coppel-logo-container--end{justify-content:flex-end}.coppel-logo-placeholder{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%) 0 0/200% 100%;border-radius:4px;animation:1.5s infinite loading;display:inline-block}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.coppel-logo-placeholder{background:#f0f0f0;animation:none}}.icon-small{font-size:1rem}.icon-medium{font-size:1.5rem}.icon-large{font-size:2rem}.icon-interactive{transition:opacity .2s ease-in-out}.icon-interactive:hover{opacity:.7}.icon-interactive:active{opacity:.5}.cursor-pointer{cursor:pointer}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
Object.create, Object.defineProperty, Object.getOwnPropertyDescriptor, Object.getOwnPropertyNames, Object.getPrototypeOf, Object.prototype.hasOwnProperty;
|
|
3
|
+
var __commonJSMin = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), __require = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
4
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
5
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function.");
|
|
6
|
+
}), coppel_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOkAAAAwCAYAAAD0Bl0EAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAt6SURBVHgB7Z1rUiO7FYCPPObfTV17BRFVkEp+5GJWMM0KLrMCzAoGVjDtFTCsALMCZlbgzgp43JtKqi4pOiuwCfdXMFbO6Vbjpmm9+gEO6KvS2LglnZZaR4+jox4GnlYQQvTwYxfDFoYAA/3Nc1FiGS4w/I0x9g087xJsKwNI20oZvl00DVZ4gGEi3JliOMHAwfOuwGc+1LSLYQc8jZApJ36lEIA7NNIOMdx4ZfXk8UpaE5rWYjiC6spZxpDyw3x3wfPu8UpaAznanWM4gObhGM5QxhfwvGu8klZEKiiNnhzaJfSK+r7pgseZigoaY5jJkFl6e5ZpSVFv0QL8FTwejxkH6y3FOxDpdkxZPgNp2buxzG8AnjeHMFh3weMGVtpnC2W6wRA45hta5HsOnjeHV9IGwQrjwjzqTYRi5LTIn0bWqSH/NoxUnlfEK2mDiHT/UscZ1ESk+606plU7Ac9qYlJSa8PR9PzPHLpzDoJxYCJOfvxhftFfj2fwfgg012IM+1ATNA5F+GBG+FVl0e3J+7B2FxPpWpbS/BGWxqp/Q+qSGKFM62coNE4WmE9ciBvgB8nekj/NMrlUTqgvc5a/d9l55cuaybyEtJwxNIS8pwBSA2AmK6vTiyZlaZn+shHcXm0cza42b2ZXG0IRJtOrzeH0H6jEbxhDbydEg0YdkTpI6Ka9E8s8vgjz9Jk4E5ZraKExmuXi2BjDbuT9cQuZ2npwKOu5qDl9lGWbCDMTW1nCMJKyskSkcOx+Tl40Dh4vLMYMj/tb129ymwDLdgKpJ1AZ37HnbNQ7SKTeRkrFR3mhJu1n/KDrrtPiMYaRbhSQihEoLvcxnIGb51UsZY5BLVMoLkWQzl6qbIftuIx2Iu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237uR/EPoznkQI6dIjLqSjstGz0I24+3kvKWFz6Jv8d1ln7byksdcimapaKEriEZSdgnmAi/72b9a9zLP0dApmPsc82j0Fk+udXRS1KkoFlfdC90CdBodm2S+63DkoaVWeldVBSauyrjgMQHVqGjWprcbyO7eIX9bxDcHmzQzT880B+yCaa3Q41extXW/DG0YqKk3dOLSHVkFz98LBfXR3ltuykj5rwFJmm0qqm6FwaLZOaeDYLhl9h2DzZgYavWiKCU0gWCwW3TrnEP8vkOsK04mOqtADPbRRUHkvMehPXrhwaiu3QWJI7/8l0Zaz4TolDpmbq2bCE48jWgPiFskOKRlUJxKL+23VOvStIY9CUe9PRp0YmiGCtMe1MSbl74U6je2a9zGSR7uqcArViMDxxWCS/FTTFatyNlSnpOQ7zOK0ThnP3AJpi0QsPuwIwVwrnIw1h72frnfaXg+uIrlzknWUNYL0YVZpsNl9ZJ3GyPE+Iik7hIrIRk9ybZ9/NluoWt6k8YNb5xCBYzlzI6qrpRtkmnXmfnB+KV93MXkhducBLbBolVMblSJUzu+wmI/fo3KqkNseFMiiyaF83RpD2mjIw2Xc9CZ5zmHgZ/lZXFvRKEH7g98cHAKUa1LMgxXkkmV1UJCbnUQhuVZl1qxJH62yUiZZVD/Cc+NNDKll+1sdZcnJCaC8bASVJ/NMsi1fAGonmVMGlpAFGLrLc6EwJ+H3sVdMe/J7eVVHypryqUH16si3UVKN3FmVjshGSVUyX6Kec8+1Uvk8nkYRFm+wb0Gmigm8A/z/9O3xrDheST2eFccrqcez4ngl9XhWHK+kHs+K45XU41lxvJJ6PCuOV1KPZ8XxSurxrDj/A0o03A5IzKjZAAAAAElFTkSuQmCC", require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
7
|
+
var t = Symbol.for("react.transitional.element");
|
|
8
|
+
function n(e, n, r) {
|
|
9
|
+
var i = null;
|
|
10
|
+
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
11
|
+
else r = n;
|
|
12
|
+
return n = r.ref, {
|
|
13
|
+
$$typeof: t,
|
|
14
|
+
type: e,
|
|
15
|
+
key: i,
|
|
16
|
+
ref: n === void 0 ? null : n,
|
|
17
|
+
props: r
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
e.jsx = n;
|
|
21
|
+
})), require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
22
|
+
process.env.NODE_ENV !== "production" && (function() {
|
|
23
|
+
function t(e) {
|
|
24
|
+
if (e == null) return null;
|
|
25
|
+
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
26
|
+
if (typeof e == "string") return e;
|
|
27
|
+
switch (e) {
|
|
28
|
+
case v: return "Fragment";
|
|
29
|
+
case b: return "Profiler";
|
|
30
|
+
case y: return "StrictMode";
|
|
31
|
+
case w: return "Suspense";
|
|
32
|
+
case T: return "SuspenseList";
|
|
33
|
+
case O: return "Activity";
|
|
34
|
+
}
|
|
35
|
+
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
36
|
+
case _: return "Portal";
|
|
37
|
+
case S: return e.displayName || "Context";
|
|
38
|
+
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
39
|
+
case C:
|
|
40
|
+
var n = e.render;
|
|
41
|
+
return e = e.displayName, e ||= (e = n.displayName || n.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
42
|
+
case E: return n = e.displayName || null, n === null ? t(e.type) || "Memo" : n;
|
|
43
|
+
case D:
|
|
44
|
+
n = e._payload, e = e._init;
|
|
45
|
+
try {
|
|
46
|
+
return t(e(n));
|
|
47
|
+
} catch {}
|
|
48
|
+
}
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
function r(e) {
|
|
52
|
+
return "" + e;
|
|
53
|
+
}
|
|
54
|
+
function i(e) {
|
|
55
|
+
try {
|
|
56
|
+
r(e);
|
|
57
|
+
var t = !1;
|
|
58
|
+
} catch {
|
|
59
|
+
t = !0;
|
|
60
|
+
}
|
|
61
|
+
if (t) {
|
|
62
|
+
t = console;
|
|
63
|
+
var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
64
|
+
return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function a(e) {
|
|
68
|
+
if (e === v) return "<>";
|
|
69
|
+
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
70
|
+
try {
|
|
71
|
+
var n = t(e);
|
|
72
|
+
return n ? "<" + n + ">" : "<...>";
|
|
73
|
+
} catch {
|
|
74
|
+
return "<...>";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function o() {
|
|
78
|
+
var e = A.A;
|
|
79
|
+
return e === null ? null : e.getOwner();
|
|
80
|
+
}
|
|
81
|
+
function s() {
|
|
82
|
+
return Error("react-stack-top-frame");
|
|
83
|
+
}
|
|
84
|
+
function c(e) {
|
|
85
|
+
if (j.call(e, "key")) {
|
|
86
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
87
|
+
if (t && t.isReactWarning) return !1;
|
|
88
|
+
}
|
|
89
|
+
return e.key !== void 0;
|
|
90
|
+
}
|
|
91
|
+
function l(e, t) {
|
|
92
|
+
function n() {
|
|
93
|
+
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
94
|
+
}
|
|
95
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
96
|
+
get: n,
|
|
97
|
+
configurable: !0
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function u() {
|
|
101
|
+
var e = t(this.type);
|
|
102
|
+
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
103
|
+
}
|
|
104
|
+
function d(e, t, n, r, i, a) {
|
|
105
|
+
var o = n.ref;
|
|
106
|
+
return e = {
|
|
107
|
+
$$typeof: g,
|
|
108
|
+
type: e,
|
|
109
|
+
key: t,
|
|
110
|
+
props: n,
|
|
111
|
+
_owner: r
|
|
112
|
+
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
113
|
+
enumerable: !1,
|
|
114
|
+
value: null
|
|
115
|
+
}) : Object.defineProperty(e, "ref", {
|
|
116
|
+
enumerable: !1,
|
|
117
|
+
get: u
|
|
118
|
+
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
119
|
+
configurable: !1,
|
|
120
|
+
enumerable: !1,
|
|
121
|
+
writable: !0,
|
|
122
|
+
value: 0
|
|
123
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
124
|
+
configurable: !1,
|
|
125
|
+
enumerable: !1,
|
|
126
|
+
writable: !0,
|
|
127
|
+
value: null
|
|
128
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
129
|
+
configurable: !1,
|
|
130
|
+
enumerable: !1,
|
|
131
|
+
writable: !0,
|
|
132
|
+
value: i
|
|
133
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
134
|
+
configurable: !1,
|
|
135
|
+
enumerable: !1,
|
|
136
|
+
writable: !0,
|
|
137
|
+
value: a
|
|
138
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
139
|
+
}
|
|
140
|
+
function f(e, n, r, a, s, u) {
|
|
141
|
+
var f = n.children;
|
|
142
|
+
if (f !== void 0) if (a) if (M(f)) {
|
|
143
|
+
for (a = 0; a < f.length; a++) p(f[a]);
|
|
144
|
+
Object.freeze && Object.freeze(f);
|
|
145
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
146
|
+
else p(f);
|
|
147
|
+
if (j.call(n, "key")) {
|
|
148
|
+
f = t(e);
|
|
149
|
+
var m = Object.keys(n).filter(function(e) {
|
|
150
|
+
return e !== "key";
|
|
151
|
+
});
|
|
152
|
+
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
|
|
153
|
+
}
|
|
154
|
+
if (f = null, r !== void 0 && (i(r), f = "" + r), c(n) && (i(n.key), f = "" + n.key), "key" in n) for (var h in r = {}, n) h !== "key" && (r[h] = n[h]);
|
|
155
|
+
else r = n;
|
|
156
|
+
return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
|
|
157
|
+
}
|
|
158
|
+
function p(e) {
|
|
159
|
+
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
160
|
+
}
|
|
161
|
+
function m(e) {
|
|
162
|
+
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
163
|
+
}
|
|
164
|
+
var h = __require("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
165
|
+
return null;
|
|
166
|
+
};
|
|
167
|
+
h = { react_stack_bottom_frame: function(e) {
|
|
168
|
+
return e();
|
|
169
|
+
} };
|
|
170
|
+
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
|
|
171
|
+
e.Fragment = v, e.jsx = function(e, t, n) {
|
|
172
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
173
|
+
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
174
|
+
}, e.jsxs = function(e, t, n) {
|
|
175
|
+
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
176
|
+
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
177
|
+
};
|
|
178
|
+
})();
|
|
179
|
+
})), import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
180
|
+
process.env.NODE_ENV === "production" ? t.exports = require_react_jsx_runtime_production() : t.exports = require_react_jsx_runtime_development();
|
|
181
|
+
})))();
|
|
182
|
+
const CopelLogo = ({ size: t = "medium", alt: n = "Coppel Logo", className: i = "", onClick: a, title: s = "Coppel", href: c, target: l = "_self", variant: u = "normal", loading: d = "lazy", priority: f = !1 }) => {
|
|
183
|
+
let [p, m] = useState(!1), [h, g] = useState(!1), _ = () => {
|
|
184
|
+
switch (u) {
|
|
185
|
+
case "white": return coppel_default;
|
|
186
|
+
case "dark": return coppel_default;
|
|
187
|
+
default: return coppel_default;
|
|
188
|
+
}
|
|
189
|
+
}, v = () => {
|
|
190
|
+
m(!0);
|
|
191
|
+
}, y = () => {
|
|
192
|
+
g(!0);
|
|
193
|
+
}, b = (e) => {
|
|
194
|
+
a && (e.preventDefault(), a());
|
|
195
|
+
}, x = (e) => {
|
|
196
|
+
a && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), a());
|
|
197
|
+
}, S = [
|
|
198
|
+
"coppel-logo",
|
|
199
|
+
`coppel-logo--${t}`,
|
|
200
|
+
`coppel-logo--${u}`,
|
|
201
|
+
i,
|
|
202
|
+
a || c ? "coppel-logo--clickable" : "",
|
|
203
|
+
h ? "coppel-logo--loaded" : "",
|
|
204
|
+
p ? "coppel-logo--error" : ""
|
|
205
|
+
].filter(Boolean).join(" "), C = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", {
|
|
206
|
+
src: p ? coppel_default : _(),
|
|
207
|
+
alt: n,
|
|
208
|
+
title: s,
|
|
209
|
+
className: "coppel-logo__image",
|
|
210
|
+
onError: v,
|
|
211
|
+
onLoad: y,
|
|
212
|
+
loading: f ? "eager" : d,
|
|
213
|
+
draggable: "false"
|
|
214
|
+
}), w = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
215
|
+
className: "coppel-logo__fallback",
|
|
216
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
217
|
+
className: "coppel-logo__text",
|
|
218
|
+
children: "Coppel"
|
|
219
|
+
})
|
|
220
|
+
}), T = p && !_() ? w : C;
|
|
221
|
+
return c ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
222
|
+
href: c,
|
|
223
|
+
target: l,
|
|
224
|
+
rel: l === "_blank" ? "noopener noreferrer" : void 0,
|
|
225
|
+
className: S,
|
|
226
|
+
title: s,
|
|
227
|
+
"aria-label": `${n} - ${s}`,
|
|
228
|
+
children: T
|
|
229
|
+
}) : a ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
230
|
+
type: "button",
|
|
231
|
+
onClick: b,
|
|
232
|
+
onKeyDown: x,
|
|
233
|
+
className: S,
|
|
234
|
+
title: s,
|
|
235
|
+
"aria-label": `${n} - ${s}`,
|
|
236
|
+
children: T
|
|
237
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
238
|
+
className: S,
|
|
239
|
+
title: s,
|
|
240
|
+
children: T
|
|
241
|
+
});
|
|
242
|
+
}, CopelIcon = ({ icon: e = "", className: t = "", onClick: n, children: r, ariaLabel: i = "", decorative: a = !1, size: s = "medium" }) => {
|
|
243
|
+
let c = !!n, l = (e) => {
|
|
244
|
+
n && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), n(e));
|
|
245
|
+
}, u = e ? `clt-${e}` : "", d = {
|
|
246
|
+
small: "icon-small",
|
|
247
|
+
medium: "icon-medium",
|
|
248
|
+
large: "icon-large"
|
|
249
|
+
}, f = a ? { "aria-hidden": "true" } : { "aria-label": i || (typeof r == "string" ? void 0 : e) }, p = `${u} ${d[s]} ${t}`.trim();
|
|
250
|
+
return c ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
251
|
+
type: "button",
|
|
252
|
+
"data-testid": "icon-element",
|
|
253
|
+
className: `${p} icon-interactive cursor-pointer`,
|
|
254
|
+
onClick: n,
|
|
255
|
+
onKeyDown: l,
|
|
256
|
+
style: {
|
|
257
|
+
background: "none",
|
|
258
|
+
border: "none",
|
|
259
|
+
padding: 0,
|
|
260
|
+
font: "inherit",
|
|
261
|
+
cursor: "pointer"
|
|
262
|
+
},
|
|
263
|
+
...!a && { "aria-label": i || e },
|
|
264
|
+
children: r
|
|
265
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
266
|
+
"data-testid": "icon-element",
|
|
267
|
+
className: p,
|
|
268
|
+
...f,
|
|
269
|
+
children: r
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
export { CopelIcon, CopelLogo };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`)):typeof define==`function`&&define.amd?define([`exports`,`react`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.SgcCoppelUi={},e.React))})(this,function(e,t){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};t=((e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(t);var u=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOkAAAAwCAYAAAD0Bl0EAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAt6SURBVHgB7Z1rUiO7FYCPPObfTV17BRFVkEp+5GJWMM0KLrMCzAoGVjDtFTCsALMCZlbgzgp43JtKqi4pOiuwCfdXMFbO6Vbjpmm9+gEO6KvS2LglnZZaR4+jox4GnlYQQvTwYxfDFoYAA/3Nc1FiGS4w/I0x9g087xJsKwNI20oZvl00DVZ4gGEi3JliOMHAwfOuwGc+1LSLYQc8jZApJ36lEIA7NNIOMdx4ZfXk8UpaE5rWYjiC6spZxpDyw3x3wfPu8UpaAznanWM4gObhGM5QxhfwvGu8klZEKiiNnhzaJfSK+r7pgseZigoaY5jJkFl6e5ZpSVFv0QL8FTwejxkH6y3FOxDpdkxZPgNp2buxzG8AnjeHMFh3weMGVtpnC2W6wRA45hta5HsOnjeHV9IGwQrjwjzqTYRi5LTIn0bWqSH/NoxUnlfEK2mDiHT/UscZ1ESk+606plU7Ac9qYlJSa8PR9PzPHLpzDoJxYCJOfvxhftFfj2fwfgg012IM+1ATNA5F+GBG+FVl0e3J+7B2FxPpWpbS/BGWxqp/Q+qSGKFM62coNE4WmE9ciBvgB8nekj/NMrlUTqgvc5a/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/z/9O3xrDheST2eFccrqcez4ngl9XhWHK+kHs+K45XU41lxvJJ6PCuOV1KPZ8XxSurxrDj/A0o03A5IzKjZAAAAAElFTkSuQmCC`,d=c((e=>{var t=Symbol.for(`react.transitional.element`);function n(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.jsx=n})),f=c((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),p=c(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=d():t.exports=f()}))();e.CopelIcon=({icon:e=``,className:t=``,onClick:n,children:r,ariaLabel:i=``,decorative:a=!1,size:o=`medium`})=>{let s=!!n,c=e=>{n&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),n(e))},l=e?`clt-${e}`:``,u={small:`icon-small`,medium:`icon-medium`,large:`icon-large`},d=a?{"aria-hidden":`true`}:{"aria-label":i||(typeof r==`string`?void 0:e)},f=`${l} ${u[o]} ${t}`.trim();return s?(0,p.jsx)(`button`,{type:`button`,"data-testid":`icon-element`,className:`${f} icon-interactive cursor-pointer`,onClick:n,onKeyDown:c,style:{background:`none`,border:`none`,padding:0,font:`inherit`,cursor:`pointer`},...!a&&{"aria-label":i||e},children:r}):(0,p.jsx)(`span`,{"data-testid":`icon-element`,className:f,...d,children:r})},e.CopelLogo=({size:e=`medium`,alt:n=`Coppel Logo`,className:r=``,onClick:i,title:a=`Coppel`,href:o,target:s=`_self`,variant:c=`normal`,loading:l=`lazy`,priority:d=!1})=>{let[f,m]=(0,t.useState)(!1),[h,g]=(0,t.useState)(!1),_=()=>{switch(c){case`white`:return u;case`dark`:return u;default:return u}},v=()=>{m(!0)},y=()=>{g(!0)},b=e=>{i&&(e.preventDefault(),i())},x=e=>{i&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i())},S=[`coppel-logo`,`coppel-logo--${e}`,`coppel-logo--${c}`,r,i||o?`coppel-logo--clickable`:``,h?`coppel-logo--loaded`:``,f?`coppel-logo--error`:``].filter(Boolean).join(` `),C=(0,p.jsx)(`img`,{src:f?u:_(),alt:n,title:a,className:`coppel-logo__image`,onError:v,onLoad:y,loading:d?`eager`:l,draggable:`false`}),w=(0,p.jsx)(`div`,{className:`coppel-logo__fallback`,children:(0,p.jsx)(`span`,{className:`coppel-logo__text`,children:`Coppel`})}),T=f&&!_()?w:C;return o?(0,p.jsx)(`a`,{href:o,target:s,rel:s===`_blank`?`noopener noreferrer`:void 0,className:S,title:a,"aria-label":`${n} - ${a}`,children:T}):i?(0,p.jsx)(`button`,{type:`button`,onClick:b,onKeyDown:x,className:S,title:a,"aria-label":`${n} - ${a}`,children:T}):(0,p.jsx)(`div`,{className:S,title:a,children:T})}});
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
export interface SupplierItem {
|
|
2
|
+
id: string;
|
|
3
|
+
supplierId: string;
|
|
4
|
+
requestId: string;
|
|
5
|
+
categoryId: string;
|
|
6
|
+
brickId: string;
|
|
7
|
+
buyerId: string;
|
|
8
|
+
folio: string;
|
|
9
|
+
hierarchyCode: string;
|
|
10
|
+
isImport: boolean;
|
|
11
|
+
statusName: string;
|
|
12
|
+
supplierType: string;
|
|
13
|
+
supplierName: string;
|
|
14
|
+
originCountry: string;
|
|
15
|
+
productMOQ: string;
|
|
16
|
+
productionTime: string;
|
|
17
|
+
shipmentPort: string;
|
|
18
|
+
productName: string;
|
|
19
|
+
article: string;
|
|
20
|
+
brand: string;
|
|
21
|
+
model: string;
|
|
22
|
+
total: string;
|
|
23
|
+
suggestedPriceMargen: string;
|
|
24
|
+
cost: string;
|
|
25
|
+
picture: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
attrs: ItemAttr[];
|
|
28
|
+
}
|
|
29
|
+
export interface MerchHierarchyGroup {
|
|
30
|
+
_id: string;
|
|
31
|
+
functionId: string;
|
|
32
|
+
name: string;
|
|
33
|
+
function: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ItemAttr {
|
|
36
|
+
_id: string;
|
|
37
|
+
name: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}
|
|
40
|
+
export interface DeliveryTime {
|
|
41
|
+
lapse: string;
|
|
42
|
+
value: number;
|
|
43
|
+
}
|
|
44
|
+
export interface Material {
|
|
45
|
+
_id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ShipmentPort {
|
|
49
|
+
_id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}
|
|
52
|
+
export interface AssemblyDetails {
|
|
53
|
+
timeMinutes: number;
|
|
54
|
+
timeCost: number;
|
|
55
|
+
relativeCost: number;
|
|
56
|
+
}
|
|
57
|
+
export interface BaseCost {
|
|
58
|
+
amount: number;
|
|
59
|
+
currencyCode: string;
|
|
60
|
+
}
|
|
61
|
+
export interface JewelryCost {
|
|
62
|
+
cost: number;
|
|
63
|
+
labour: number;
|
|
64
|
+
currencyCode: string;
|
|
65
|
+
quotation: number;
|
|
66
|
+
}
|
|
67
|
+
export interface ItemCosts {
|
|
68
|
+
internalCost: number;
|
|
69
|
+
borderCost: number;
|
|
70
|
+
baseCosts: BaseCost[];
|
|
71
|
+
jewelryCosts: JewelryCost[];
|
|
72
|
+
jewelryWeight: number;
|
|
73
|
+
jewelryFactorPercentage: number;
|
|
74
|
+
jewelryTariffPercentage: number;
|
|
75
|
+
borderTariffPercentage: number;
|
|
76
|
+
tariffFactorPercentage: number;
|
|
77
|
+
freightCost: number;
|
|
78
|
+
hazardTypeCode: string;
|
|
79
|
+
freightPercentage: number;
|
|
80
|
+
royaltyWithTariffPercentage: number;
|
|
81
|
+
royaltyWithoutTariffPercentage: number;
|
|
82
|
+
compensatoryFee: number;
|
|
83
|
+
importCharges: number;
|
|
84
|
+
exchangeRateToBuyAmount: number;
|
|
85
|
+
exchangeRateToSellAmount: number;
|
|
86
|
+
}
|
|
87
|
+
export interface Overprice {
|
|
88
|
+
name: string;
|
|
89
|
+
percentage: number;
|
|
90
|
+
}
|
|
91
|
+
export interface Tax {
|
|
92
|
+
type: string;
|
|
93
|
+
internalPercentage: number;
|
|
94
|
+
borderPercentage: number;
|
|
95
|
+
}
|
|
96
|
+
export interface ItemPrices {
|
|
97
|
+
internalPrice: number;
|
|
98
|
+
borderPrice: number;
|
|
99
|
+
suggestedPrice: number;
|
|
100
|
+
internalSuggestedPrice: number;
|
|
101
|
+
borderSuggestedPrice: number;
|
|
102
|
+
promotionPrice: number;
|
|
103
|
+
seasonalPrice: number;
|
|
104
|
+
discountPromotionPercentage: number;
|
|
105
|
+
seasonalDiscountPercentage: number;
|
|
106
|
+
profitMarginPercentage: number;
|
|
107
|
+
suggestedPriceMarginPercentage: number;
|
|
108
|
+
overprices: Overprice[];
|
|
109
|
+
overpriceTotalPercentage: number;
|
|
110
|
+
impuestos: Tax[];
|
|
111
|
+
profitFactorPercentage: number;
|
|
112
|
+
expectedProfitFactorPercentage: number;
|
|
113
|
+
advertising: number;
|
|
114
|
+
}
|
|
115
|
+
export interface SupplierItemDetail {
|
|
116
|
+
folio: string;
|
|
117
|
+
typeCode: string;
|
|
118
|
+
itemStatusCode: string;
|
|
119
|
+
shipmentPort: ShipmentPort;
|
|
120
|
+
isImported: boolean;
|
|
121
|
+
mainPictureBucketUrl: string;
|
|
122
|
+
merchHierarchyGroup: MerchHierarchyGroup[];
|
|
123
|
+
name: string;
|
|
124
|
+
brandName: string;
|
|
125
|
+
modelName: string;
|
|
126
|
+
attrs: ItemAttr[];
|
|
127
|
+
comments: string;
|
|
128
|
+
channelCode: string;
|
|
129
|
+
countryCode: string;
|
|
130
|
+
minimumOrderQuantity: number;
|
|
131
|
+
deliveryTime: DeliveryTime;
|
|
132
|
+
karatCode: string;
|
|
133
|
+
material: Material;
|
|
134
|
+
piecesPerContainer: number;
|
|
135
|
+
productionTime: number;
|
|
136
|
+
assemblyDetails: AssemblyDetails;
|
|
137
|
+
costs: ItemCosts;
|
|
138
|
+
prices: ItemPrices;
|
|
139
|
+
id: string;
|
|
140
|
+
supplierId: string;
|
|
141
|
+
}
|
|
142
|
+
export interface SupplierItemDetailApiResponse {
|
|
143
|
+
meta: {
|
|
144
|
+
transactionID: string;
|
|
145
|
+
timestamp: string;
|
|
146
|
+
};
|
|
147
|
+
data: SupplierItemDetail;
|
|
148
|
+
}
|
|
149
|
+
export interface UpdateInformacionGeneralPayload {
|
|
150
|
+
itemStatusCode: string;
|
|
151
|
+
merchHierarchyGroup?: MerchHierarchyGroup[];
|
|
152
|
+
name?: string;
|
|
153
|
+
brandName?: string;
|
|
154
|
+
modelName?: string;
|
|
155
|
+
attrs?: ItemAttr[];
|
|
156
|
+
comments?: string;
|
|
157
|
+
channelCode?: string;
|
|
158
|
+
countryCode?: string;
|
|
159
|
+
minimumOrderQuantity?: number;
|
|
160
|
+
}
|
|
161
|
+
export interface UpdateInformacionComercialPayload {
|
|
162
|
+
itemStatusCode: string;
|
|
163
|
+
deliveryTime?: DeliveryTime;
|
|
164
|
+
karatCode?: string;
|
|
165
|
+
material?: Material;
|
|
166
|
+
piecesPerContainer?: number;
|
|
167
|
+
productionTime?: number;
|
|
168
|
+
assemblyDetails?: AssemblyDetails;
|
|
169
|
+
costs?: ItemCosts;
|
|
170
|
+
prices?: ItemPrices;
|
|
171
|
+
}
|
|
172
|
+
export interface UpdateSupplierItemPayload extends UpdateInformacionGeneralPayload, UpdateInformacionComercialPayload {
|
|
173
|
+
}
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sgc-coppel-ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Librería de componentes UI para Coppel SGC",
|
|
7
|
+
"author": "Coppel",
|
|
8
|
+
"main": "./dist/sgc-coppel-ui.umd.cjs",
|
|
9
|
+
"module": "./dist/sgc-coppel-ui.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"style": "./dist/sgc-coppel-ui.css",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"**/*.css"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"import": "./dist/sgc-coppel-ui.js",
|
|
19
|
+
"require": "./dist/sgc-coppel-ui.umd.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./style.css": "./dist/sgc-coppel-ui.css"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"dev": "vite",
|
|
31
|
+
"build": "tsc -b && vite build",
|
|
32
|
+
"lint": "eslint .",
|
|
33
|
+
"preview": "vite preview",
|
|
34
|
+
"storybook": "storybook dev -p 6006",
|
|
35
|
+
"build-storybook": "storybook build"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"primeicons": "^7.0.0",
|
|
39
|
+
"primereact": "^10.9.7",
|
|
40
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
41
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"react-helmet": "^6.1.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
48
|
+
"@eslint/js": "^9.39.1",
|
|
49
|
+
"@modern-js/runtime": "^2.69.7",
|
|
50
|
+
"@storybook/addon-a11y": "^10.1.11",
|
|
51
|
+
"@storybook/addon-docs": "^10.1.11",
|
|
52
|
+
"@storybook/addon-onboarding": "^10.1.11",
|
|
53
|
+
"@storybook/addon-vitest": "^10.1.11",
|
|
54
|
+
"@storybook/react-vite": "^10.1.11",
|
|
55
|
+
"@types/node": "^24.10.4",
|
|
56
|
+
"@types/react": "^19.2.5",
|
|
57
|
+
"@types/react-dom": "^19.2.3",
|
|
58
|
+
"@types/react-helmet": "^6.1.11",
|
|
59
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
60
|
+
"@vitest/browser-playwright": "^4.0.16",
|
|
61
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
62
|
+
"eslint": "^9.39.1",
|
|
63
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
64
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
65
|
+
"eslint-plugin-storybook": "^10.1.11",
|
|
66
|
+
"globals": "^16.5.0",
|
|
67
|
+
"playwright": "^1.57.0",
|
|
68
|
+
"sass": "^1.97.2",
|
|
69
|
+
"storybook": "^10.1.11",
|
|
70
|
+
"typescript": "~5.9.3",
|
|
71
|
+
"typescript-eslint": "^8.46.4",
|
|
72
|
+
"vite": "npm:rolldown-vite@7.2.5",
|
|
73
|
+
"vite-plugin-dts": "^4.5.4",
|
|
74
|
+
"vitest": "^4.0.16"
|
|
75
|
+
},
|
|
76
|
+
"overrides": {
|
|
77
|
+
"vite": "npm:rolldown-vite@7.2.5"
|
|
78
|
+
}
|
|
79
|
+
}
|