@rubenpazch/skeleton 0.0.0-stage → 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 +30 -2
- package/dist/Skeleton.d.ts +18 -0
- package/dist/Skeleton.d.ts.map +1 -0
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/package.json +75 -3
package/README.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @rubenpazch/skeleton
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<!-- catalogo:inicio (generado por pnpm catalogo, no editar) -->
|
|
4
|
+
|
|
5
|
+
Marcador de carga (texto, bloque o círculo) con la forma del contenido; respeta reducir movimiento.
|
|
6
|
+
|
|
7
|
+
- **Usar cuando:** Mientras cargan tarjetas, filas o perfiles, para que la página no salte al llegar los datos.
|
|
8
|
+
- **Evitar cuando:** Operaciones que bloquean la pantalla: usa OverlayLoader. Esperas dentro de un botón: usa LoadingSpinner.
|
|
9
|
+
|
|
10
|
+
Se recomienda instalar el paquete completo `@rubenpazch/ui` (incluye este). Por separado:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @rubenpazch/skeleton
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Skeleton
|
|
17
|
+
|
|
18
|
+
Marcador de carga con la forma del contenido. Es decorativo (aria-hidden): anuncia la carga
|
|
19
|
+
en el contenedor con aria-busy o un texto oculto.
|
|
20
|
+
|
|
21
|
+
| Prop | Tipo | Req. | Por defecto | Descripción |
|
|
22
|
+
| ----------- | ------------------------------ | ---- | ----------- | ------------------------------------------------------------------------------------ |
|
|
23
|
+
| `className` | `string` | | | Clase extra. |
|
|
24
|
+
| `height` | `string \| number` | | | Alto (número = px o valor CSS). Por defecto según la variante. |
|
|
25
|
+
| `lines` | `number` | | `1` | Con variant="text": cuántas líneas (la última más corta). |
|
|
26
|
+
| `variant` | `"text" \| "rect" \| "circle"` | | `text` | text (línea de texto, por defecto), rect (bloque) o circle (avatar). |
|
|
27
|
+
| `width` | `string \| number` | | | Ancho (número = px o cualquier valor CSS). Por defecto 100% (circle: igual al alto). |
|
|
28
|
+
|
|
29
|
+
Tipos: `SkeletonProps`.
|
|
30
|
+
|
|
31
|
+
<!-- catalogo:fin -->
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface SkeletonProps {
|
|
2
|
+
/** text (línea de texto, por defecto), rect (bloque) o circle (avatar). */
|
|
3
|
+
variant?: "text" | "rect" | "circle";
|
|
4
|
+
/** Ancho (número = px o cualquier valor CSS). Por defecto 100% (circle: igual al alto). */
|
|
5
|
+
width?: number | string;
|
|
6
|
+
/** Alto (número = px o valor CSS). Por defecto según la variante. */
|
|
7
|
+
height?: number | string;
|
|
8
|
+
/** Con variant="text": cuántas líneas (la última más corta). */
|
|
9
|
+
lines?: number;
|
|
10
|
+
/** Clase extra. */
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Marcador de carga con la forma del contenido. Es decorativo (aria-hidden): anuncia la carga
|
|
15
|
+
* en el contenedor con aria-busy o un texto oculto.
|
|
16
|
+
*/
|
|
17
|
+
export default function Skeleton({ variant, width, height, lines, className, }: SkeletonProps): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../src/Skeleton.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;IACrC,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,qEAAqE;IACrE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAOD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAC/B,OAAgB,EAChB,KAAK,EACL,MAAM,EACN,KAAS,EACT,SAAS,GACV,EAAE,aAAa,+BA4Bf"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime");var n={skeleton:"Skeleton-module_skeleton__3RuiR",shimmer:"Skeleton-module_shimmer__aDrid",text:"Skeleton-module_text__owMtj",rect:"Skeleton-module_rect__kvw3q",circle:"Skeleton-module_circle__u7IZQ",stack:"Skeleton-module_stack__RxqpH"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".Skeleton-module_skeleton__3RuiR {\n display: block;\n background: linear-gradient(\n 90deg,\n var(--lb-color-muted) 25%,\n var(--lb-color-neutral-200) 37%,\n var(--lb-color-muted) 63%\n );\n background-size: 400% 100%;\n animation: Skeleton-module_shimmer__aDrid 1.4s ease infinite;\n}\n\n.Skeleton-module_text__owMtj {\n width: 100%;\n height: 0.875em;\n border-radius: var(--lb-radius-sm);\n}\n\n.Skeleton-module_rect__kvw3q {\n width: 100%;\n height: 6rem;\n border-radius: var(--lb-radius-lg);\n}\n\n.Skeleton-module_circle__u7IZQ {\n border-radius: var(--lb-radius-full);\n flex: none;\n}\n\n.Skeleton-module_stack__RxqpH {\n display: flex;\n flex-direction: column;\n gap: var(--lb-space-2);\n width: 100%;\n}\n\n@keyframes Skeleton-module_shimmer__aDrid {\n 0% { background-position: 100% 50%; }\n 100% { background-position: 0 50%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .Skeleton-module_skeleton__3RuiR {\n animation: none;\n }\n}\n");const t=(...e)=>e.filter(Boolean).join(" "),o=e=>"number"==typeof e?`${e}px`:e;module.exports=function({variant:r="text",width:l,height:i,lines:d=1,className:a}){if("text"===r&&d>1)return e.jsx("span",{className:t(n.stack,a),"aria-hidden":"true",children:Array.from({length:d},(r,a)=>e.jsx("span",{className:t(n.skeleton,n.text),style:{width:a===d-1?"60%":o(l),height:o(i)}},a))});const s="circle"===r?i??l??40:void 0;return e.jsx("span",{"aria-hidden":"true",className:t(n.skeleton,n[r],a),style:{width:o("circle"===r?s:l),height:o("circle"===r?s:i)}})};
|
|
2
|
+
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../src/Skeleton.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import styles from \"./Skeleton.module.css\";\n\nexport interface SkeletonProps {\n /** text (línea de texto, por defecto), rect (bloque) o circle (avatar). */\n variant?: \"text\" | \"rect\" | \"circle\";\n /** Ancho (número = px o cualquier valor CSS). Por defecto 100% (circle: igual al alto). */\n width?: number | string;\n /** Alto (número = px o valor CSS). Por defecto según la variante. */\n height?: number | string;\n /** Con variant=\"text\": cuántas líneas (la última más corta). */\n lines?: number;\n /** Clase extra. */\n className?: string;\n}\n\nconst cx = (...c: Array<string | false | undefined>) =>\n c.filter(Boolean).join(\" \");\nconst css = (v: number | string | undefined) =>\n typeof v === \"number\" ? `${v}px` : v;\n\n/**\n * Marcador de carga con la forma del contenido. Es decorativo (aria-hidden): anuncia la carga\n * en el contenedor con aria-busy o un texto oculto.\n */\nexport default function Skeleton({\n variant = \"text\",\n width,\n height,\n lines = 1,\n className,\n}: SkeletonProps) {\n if (variant === \"text\" && lines > 1) {\n return (\n <span className={cx(styles.stack, className)} aria-hidden=\"true\">\n {Array.from({ length: lines }, (_, i) => (\n <span\n key={i}\n className={cx(styles.skeleton, styles.text)}\n style={{\n width: i === lines - 1 ? \"60%\" : css(width),\n height: css(height),\n }}\n />\n ))}\n </span>\n );\n }\n const size = variant === \"circle\" ? (height ?? width ?? 40) : undefined;\n return (\n <span\n aria-hidden=\"true\"\n className={cx(styles.skeleton, styles[variant], className)}\n style={{\n width: css(variant === \"circle\" ? size : width),\n height: css(variant === \"circle\" ? size : height),\n }}\n />\n );\n}\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","cx","c","filter","Boolean","join","v","variant","width","height","lines","className","_jsx","styles","stack","Array","from","length","_","i","skeleton","text","size","undefined"],"mappings":"+RAAA,SAAqBA,EAAKC,YACnBA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,q+BCVA,MAAMe,EAAK,IAAIC,IACbA,EAAEC,OAAOC,SAASC,KAAK,KACnBnB,EAAOoB,GACE,iBAANA,EAAiB,GAAGA,MAAQA,iBAMvB,UAAmBC,QAC/BA,EAAU,OAAMC,MAChBA,EAAKC,OACLA,EAAMC,MACNA,EAAQ,EAACC,UACTA,IAEA,GAAgB,SAAZJ,GAAsBG,EAAQ,EAChC,OACEE,EAAAA,YAAMD,UAAWV,EAAGY,EAAOC,MAAOH,GAAU,cAAc,gBACvDI,MAAMC,KAAK,CAAEC,OAAQP,GAAS,CAACQ,EAAGC,IACjCP,EAAAA,IAAA,OAAA,CAEED,UAAWV,EAAGY,EAAOO,SAAUP,EAAOQ,MACtC7B,MAAO,CACLgB,MAAOW,IAAMT,EAAQ,EAAI,MAAQxB,EAAIsB,GACrCC,OAAQvB,EAAIuB,KAJTU,MAWf,MAAMG,EAAmB,WAAZf,EAAwBE,GAAUD,GAAS,QAAMe,EAC9D,OACEX,EAAAA,0BACc,OACZD,UAAWV,EAAGY,EAAOO,SAAUP,EAAON,GAAUI,GAChDnB,MAAO,CACLgB,MAAOtB,EAAgB,WAAZqB,EAAuBe,EAAOd,GACzCC,OAAQvB,EAAgB,WAAZqB,EAAuBe,EAAOb,KAIlD","x_google_ignoreList":[0]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
interface SkeletonProps {
|
|
4
|
+
/** text (línea de texto, por defecto), rect (bloque) o circle (avatar). */
|
|
5
|
+
variant?: "text" | "rect" | "circle";
|
|
6
|
+
/** Ancho (número = px o cualquier valor CSS). Por defecto 100% (circle: igual al alto). */
|
|
7
|
+
width?: number | string;
|
|
8
|
+
/** Alto (número = px o valor CSS). Por defecto según la variante. */
|
|
9
|
+
height?: number | string;
|
|
10
|
+
/** Con variant="text": cuántas líneas (la última más corta). */
|
|
11
|
+
lines?: number;
|
|
12
|
+
/** Clase extra. */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Marcador de carga con la forma del contenido. Es decorativo (aria-hidden): anuncia la carga
|
|
17
|
+
* en el contenedor con aria-busy o un texto oculto.
|
|
18
|
+
*/
|
|
19
|
+
declare function Skeleton({ variant, width, height, lines, className, }: SkeletonProps): react.JSX.Element;
|
|
20
|
+
|
|
21
|
+
export { Skeleton as default };
|
|
22
|
+
export type { SkeletonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";var n={skeleton:"Skeleton-module_skeleton__3RuiR",shimmer:"Skeleton-module_shimmer__aDrid",text:"Skeleton-module_text__owMtj",rect:"Skeleton-module_rect__kvw3q",circle:"Skeleton-module_circle__u7IZQ",stack:"Skeleton-module_stack__RxqpH"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}(".Skeleton-module_skeleton__3RuiR {\n display: block;\n background: linear-gradient(\n 90deg,\n var(--lb-color-muted) 25%,\n var(--lb-color-neutral-200) 37%,\n var(--lb-color-muted) 63%\n );\n background-size: 400% 100%;\n animation: Skeleton-module_shimmer__aDrid 1.4s ease infinite;\n}\n\n.Skeleton-module_text__owMtj {\n width: 100%;\n height: 0.875em;\n border-radius: var(--lb-radius-sm);\n}\n\n.Skeleton-module_rect__kvw3q {\n width: 100%;\n height: 6rem;\n border-radius: var(--lb-radius-lg);\n}\n\n.Skeleton-module_circle__u7IZQ {\n border-radius: var(--lb-radius-full);\n flex: none;\n}\n\n.Skeleton-module_stack__RxqpH {\n display: flex;\n flex-direction: column;\n gap: var(--lb-space-2);\n width: 100%;\n}\n\n@keyframes Skeleton-module_shimmer__aDrid {\n 0% { background-position: 100% 50%; }\n 100% { background-position: 0 50%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n .Skeleton-module_skeleton__3RuiR {\n animation: none;\n }\n}\n");const t=(...e)=>e.filter(Boolean).join(" "),o=e=>"number"==typeof e?`${e}px`:e;function l({variant:l="text",width:r,height:i,lines:a=1,className:d}){if("text"===l&&a>1)return e("span",{className:t(n.stack,d),"aria-hidden":"true",children:Array.from({length:a},(l,d)=>e("span",{className:t(n.skeleton,n.text),style:{width:d===a-1?"60%":o(r),height:o(i)}},d))});const s="circle"===l?i??r??40:void 0;return e("span",{"aria-hidden":"true",className:t(n.skeleton,n[l],d),style:{width:o("circle"===l?s:r),height:o("circle"===l?s:i)}})}export{l as default};
|
|
2
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.js","../src/Skeleton.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import styles from \"./Skeleton.module.css\";\n\nexport interface SkeletonProps {\n /** text (línea de texto, por defecto), rect (bloque) o circle (avatar). */\n variant?: \"text\" | \"rect\" | \"circle\";\n /** Ancho (número = px o cualquier valor CSS). Por defecto 100% (circle: igual al alto). */\n width?: number | string;\n /** Alto (número = px o valor CSS). Por defecto según la variante. */\n height?: number | string;\n /** Con variant=\"text\": cuántas líneas (la última más corta). */\n lines?: number;\n /** Clase extra. */\n className?: string;\n}\n\nconst cx = (...c: Array<string | false | undefined>) =>\n c.filter(Boolean).join(\" \");\nconst css = (v: number | string | undefined) =>\n typeof v === \"number\" ? `${v}px` : v;\n\n/**\n * Marcador de carga con la forma del contenido. Es decorativo (aria-hidden): anuncia la carga\n * en el contenedor con aria-busy o un texto oculto.\n */\nexport default function Skeleton({\n variant = \"text\",\n width,\n height,\n lines = 1,\n className,\n}: SkeletonProps) {\n if (variant === \"text\" && lines > 1) {\n return (\n <span className={cx(styles.stack, className)} aria-hidden=\"true\">\n {Array.from({ length: lines }, (_, i) => (\n <span\n key={i}\n className={cx(styles.skeleton, styles.text)}\n style={{\n width: i === lines - 1 ? \"60%\" : css(width),\n height: css(height),\n }}\n />\n ))}\n </span>\n );\n }\n const size = variant === \"circle\" ? (height ?? width ?? 40) : undefined;\n return (\n <span\n aria-hidden=\"true\"\n className={cx(styles.skeleton, styles[variant], className)}\n style={{\n width: css(variant === \"circle\" ? size : width),\n height: css(variant === \"circle\" ? size : height),\n }}\n />\n );\n}\n"],"names":["css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","cx","c","filter","Boolean","join","v","Skeleton","variant","width","height","lines","className","_jsx","styles","stack","Array","from","length","_","i","skeleton","text","size","undefined"],"mappings":"uRAAA,SAAqBA,EAAKC,YACnBA,IAAiBA,EAAM,CAAA,GAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAgC,oBAAbC,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,GAnBW,CAqBzD,q+BCVA,MAAMe,EAAK,IAAIC,IACbA,EAAEC,OAAOC,SAASC,KAAK,KACnBnB,EAAOoB,GACE,iBAANA,EAAiB,GAAGA,MAAQA,EAMvB,SAAUC,GAASC,QAC/BA,EAAU,OAAMC,MAChBA,EAAKC,OACLA,EAAMC,MACNA,EAAQ,EAACC,UACTA,IAEA,GAAgB,SAAZJ,GAAsBG,EAAQ,EAChC,OACEE,UAAMD,UAAWX,EAAGa,EAAOC,MAAOH,GAAU,cAAc,gBACvDI,MAAMC,KAAK,CAAEC,OAAQP,GAAS,CAACQ,EAAGC,IACjCP,EAAA,OAAA,CAEED,UAAWX,EAAGa,EAAOO,SAAUP,EAAOQ,MACtC9B,MAAO,CACLiB,MAAOW,IAAMT,EAAQ,EAAI,MAAQzB,EAAIuB,GACrCC,OAAQxB,EAAIwB,KAJTU,MAWf,MAAMG,EAAmB,WAAZf,EAAwBE,GAAUD,GAAS,QAAMe,EAC9D,OACEX,wBACc,OACZD,UAAWX,EAAGa,EAAOO,SAAUP,EAAON,GAAUI,GAChDpB,MAAO,CACLiB,MAAOvB,EAAgB,WAAZsB,EAAuBe,EAAOd,GACzCC,OAAQxB,EAAgB,WAAZsB,EAAuBe,EAAOb,KAIlD","x_google_ignoreList":[0]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubenpazch/skeleton",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Marcador de carga con la forma del contenido",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/rubenpazch/lbyte-ui-library.git",
|
|
8
|
+
"directory": "packages/skeleton"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"main": "dist/index.cjs.js",
|
|
12
|
+
"module": "dist/index.esm.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.esm.js",
|
|
18
|
+
"require": "./dist/index.cjs.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css"
|
|
26
|
+
],
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": "^19.2.3",
|
|
29
|
+
"react-dom": "^19.2.3",
|
|
30
|
+
"@rubenpazch/tokens": "0.4.0"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@rubenpazch/shared": "5.2.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
37
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
38
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
39
|
+
"@rollup/plugin-typescript": "^12.3.0",
|
|
40
|
+
"@testing-library/react": "^16.3.3",
|
|
41
|
+
"@types/jest": "^30.0.0",
|
|
42
|
+
"@types/react": "^19.2.18",
|
|
43
|
+
"@types/react-dom": "^19.2.5",
|
|
44
|
+
"autoprefixer": "^10.5.4",
|
|
45
|
+
"eslint": "^9.39.5",
|
|
46
|
+
"identity-obj-proxy": "^3.0.0",
|
|
47
|
+
"jest": "^30.5.0",
|
|
48
|
+
"jest-environment-jsdom": "^30.5.0",
|
|
49
|
+
"postcss": "^8.5.26",
|
|
50
|
+
"prettier": "^3.9.6",
|
|
51
|
+
"react": "^19.2.8",
|
|
52
|
+
"react-dom": "^19.2.8",
|
|
53
|
+
"rollup": "^4.63.1",
|
|
54
|
+
"rollup-plugin-dts": "^6.5.1",
|
|
55
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
56
|
+
"rollup-plugin-typescript2": "^0.37.0",
|
|
57
|
+
"tslib": "^2.8.1",
|
|
58
|
+
"typescript": "^6.0.3",
|
|
59
|
+
"@rubenpazch/eslint-config": "4.0.0",
|
|
60
|
+
"@rubenpazch/typescript-config": "3.0.0"
|
|
61
|
+
},
|
|
62
|
+
"publishConfig": {
|
|
63
|
+
"access": "public"
|
|
64
|
+
},
|
|
65
|
+
"lbyte": {
|
|
66
|
+
"categoria": "retroalimentacion",
|
|
67
|
+
"resumen": "Marcador de carga (texto, bloque o círculo) con la forma del contenido; respeta reducir movimiento.",
|
|
68
|
+
"usarCuando": "Mientras cargan tarjetas, filas o perfiles, para que la página no salte al llegar los datos.",
|
|
69
|
+
"evitarCuando": "Operaciones que bloquean la pantalla: usa OverlayLoader. Esperas dentro de un botón: usa LoadingSpinner."
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "rollup -c",
|
|
73
|
+
"test": "jest --passWithNoTests",
|
|
74
|
+
"test:watch": "jest --watch",
|
|
75
|
+
"lint": "eslint src",
|
|
76
|
+
"clean": "rm -rf dist"
|
|
77
|
+
}
|
|
6
78
|
}
|