@atme-lab/ui-kit 0.1.26 → 0.1.27
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/dist/components/primitives/Callout/Callout.d.ts +1 -0
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs15.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs30.js +1 -1
- package/dist/index.cjs31.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs415.js +6 -1
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +6 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -6
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -6
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs424.js +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs45.js +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs64.js +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.esm10.js +2 -2
- package/dist/index.esm11.js +1 -1
- package/dist/index.esm12.js +3 -3
- package/dist/index.esm13.js +1 -1
- package/dist/index.esm14.js +1 -1
- package/dist/index.esm15.js +1 -1
- package/dist/index.esm16.js +1 -1
- package/dist/index.esm18.js +1 -1
- package/dist/index.esm19.js +1 -1
- package/dist/index.esm20.js +1 -1
- package/dist/index.esm21.js +2 -2
- package/dist/index.esm22.js +2 -2
- package/dist/index.esm23.js +1 -1
- package/dist/index.esm24.js +15 -14
- package/dist/index.esm24.js.map +1 -1
- package/dist/index.esm25.js +1 -1
- package/dist/index.esm26.js +2 -2
- package/dist/index.esm27.js +1 -1
- package/dist/index.esm28.js +1 -1
- package/dist/index.esm30.js +2 -2
- package/dist/index.esm31.js +1 -1
- package/dist/index.esm32.js +3 -3
- package/dist/index.esm389.js +1 -1
- package/dist/index.esm394.js +1 -1
- package/dist/index.esm395.js +1 -1
- package/dist/index.esm415.js +9 -5
- package/dist/index.esm415.js.map +1 -1
- package/dist/index.esm416.js +18 -5
- package/dist/index.esm416.js.map +1 -1
- package/dist/index.esm417.js +8 -2
- package/dist/index.esm417.js.map +1 -1
- package/dist/index.esm418.js +5 -6
- package/dist/index.esm418.js.map +1 -1
- package/dist/index.esm419.js +5 -15
- package/dist/index.esm419.js.map +1 -1
- package/dist/index.esm420.js +5 -17
- package/dist/index.esm420.js.map +1 -1
- package/dist/index.esm424.js +1 -1
- package/dist/index.esm425.js +2 -2
- package/dist/index.esm426.js +3 -3
- package/dist/index.esm427.js +3 -3
- package/dist/index.esm428.js +1 -1
- package/dist/index.esm429.js +2 -2
- package/dist/index.esm430.js +1 -1
- package/dist/index.esm432.js +1 -1
- package/dist/index.esm434.js +7 -7
- package/dist/index.esm437.js +1 -1
- package/dist/index.esm442.js +5 -18
- package/dist/index.esm442.js.map +1 -1
- package/dist/index.esm443.js +9 -16
- package/dist/index.esm443.js.map +1 -1
- package/dist/index.esm444.js +6 -11
- package/dist/index.esm444.js.map +1 -1
- package/dist/index.esm445.js +3 -4
- package/dist/index.esm445.js.map +1 -1
- package/dist/index.esm446.js +84 -3
- package/dist/index.esm446.js.map +1 -1
- package/dist/index.esm447.js +34 -27
- package/dist/index.esm447.js.map +1 -1
- package/dist/index.esm448.js +27 -30
- package/dist/index.esm448.js.map +1 -1
- package/dist/index.esm449.js +13 -20
- package/dist/index.esm449.js.map +1 -1
- package/dist/index.esm45.js +16 -39
- package/dist/index.esm45.js.map +1 -1
- package/dist/index.esm450.js +16 -3
- package/dist/index.esm450.js.map +1 -1
- package/dist/index.esm451.js +11 -5
- package/dist/index.esm451.js.map +1 -1
- package/dist/index.esm452.js +4 -9
- package/dist/index.esm452.js.map +1 -1
- package/dist/index.esm453.js +3 -6
- package/dist/index.esm453.js.map +1 -1
- package/dist/index.esm454.js +33 -3
- package/dist/index.esm454.js.map +1 -1
- package/dist/index.esm455.js +26 -85
- package/dist/index.esm455.js.map +1 -1
- package/dist/index.esm456.js +3 -37
- package/dist/index.esm456.js.map +1 -1
- package/dist/index.esm46.js +16 -17
- package/dist/index.esm46.js.map +1 -1
- package/dist/index.esm47.js +7 -16
- package/dist/index.esm47.js.map +1 -1
- package/dist/index.esm48.js +39 -40
- package/dist/index.esm48.js.map +1 -1
- package/dist/index.esm50.js +8 -32
- package/dist/index.esm50.js.map +1 -1
- package/dist/index.esm51.js +28 -9
- package/dist/index.esm51.js.map +1 -1
- package/dist/index.esm52.js +58 -6
- package/dist/index.esm52.js.map +1 -1
- package/dist/index.esm53.js +41 -9
- package/dist/index.esm53.js.map +1 -1
- package/dist/index.esm54.js +11 -7
- package/dist/index.esm54.js.map +1 -1
- package/dist/index.esm55.js +30 -9
- package/dist/index.esm55.js.map +1 -1
- package/dist/index.esm56.js +37 -28
- package/dist/index.esm56.js.map +1 -1
- package/dist/index.esm57.js +64 -10
- package/dist/index.esm57.js.map +1 -1
- package/dist/index.esm58.js +9 -30
- package/dist/index.esm58.js.map +1 -1
- package/dist/index.esm59.js +88 -9
- package/dist/index.esm59.js.map +1 -1
- package/dist/index.esm60.js +34 -19
- package/dist/index.esm60.js.map +1 -1
- package/dist/index.esm61.js +127 -47
- package/dist/index.esm61.js.map +1 -1
- package/dist/index.esm62.js +28 -10
- package/dist/index.esm62.js.map +1 -1
- package/dist/index.esm63.js +42 -5
- package/dist/index.esm63.js.map +1 -1
- package/dist/index.esm64.js +7 -3
- package/dist/index.esm64.js.map +1 -1
- package/dist/index.esm65.js +47 -65
- package/dist/index.esm65.js.map +1 -1
- package/dist/index.esm66.js +10 -36
- package/dist/index.esm66.js.map +1 -1
- package/dist/index.esm67.js +5 -88
- package/dist/index.esm67.js.map +1 -1
- package/dist/index.esm68.js +6 -34
- package/dist/index.esm68.js.map +1 -1
- package/dist/index.esm69.js +8 -126
- package/dist/index.esm69.js.map +1 -1
- package/dist/index.esm70.js +7 -59
- package/dist/index.esm70.js.map +1 -1
- package/dist/index.esm71.js +27 -40
- package/dist/index.esm71.js.map +1 -1
- package/dist/index.esm72.js +32 -6
- package/dist/index.esm72.js.map +1 -1
- package/dist/index.esm73.js +5 -15
- package/dist/index.esm73.js.map +1 -1
- package/dist/index.esm74.js +20 -109
- package/dist/index.esm74.js.map +1 -1
- package/dist/index.esm76.js +15 -28
- package/dist/index.esm76.js.map +1 -1
- package/dist/index.esm77.js +109 -30
- package/dist/index.esm77.js.map +1 -1
- package/dist/index.esm9.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs54.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_heading_aeupz_1",n="_headingAnchor_aeupz_8",a="_headingText_aeupz_19",h="_hashIcon_aeupz_23",t={heading:e,headingAnchor:n,headingText:a,hashIcon:h};exports.default=t;exports.hashIcon=h;exports.heading=e;exports.headingAnchor=n;exports.headingText=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs54.js.map
|
package/dist/index.cjs54.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs54.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs54.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs55.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs38.js"),r=require("react"),a=require("./index.cjs44.js"),x=require("./index.cjs420.js"),e=r.forwardRef(({decorative:s=!0,className:o,...i},n)=>t.jsxRuntimeExports.jsxs("svg",{ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":s,className:a(x.default.root,o),...i,children:[t.jsxRuntimeExports.jsx("line",{"data-hash-stick":"top",x1:"4",x2:"20",y1:"9",y2:"9"}),t.jsxRuntimeExports.jsx("line",{"data-hash-stick":"bottom",x1:"4",x2:"20",y1:"15",y2:"15"}),t.jsxRuntimeExports.jsx("line",{"data-hash-stick":"left",x1:"10",x2:"8",y1:"3",y2:"21"}),t.jsxRuntimeExports.jsx("line",{"data-hash-stick":"right",x1:"16",x2:"14",y1:"3",y2:"21"})]}));e.displayName="HashIcon";exports.HashIcon=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs55.js.map
|
package/dist/index.cjs55.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs55.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs55.js","sources":["../src/components/primitives/Icon/Icons/custom/HashIcon/HashIcon.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./HashIcon.module.pcss\";\n\nexport interface HashIconProps extends React.SVGProps<SVGSVGElement> {\n decorative?: boolean;\n}\n\nexport const HashIcon = forwardRef<SVGSVGElement, HashIconProps>(\n ({ decorative = true, className, ...props }, ref) => (\n <svg\n ref={ref}\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden={decorative}\n className={cn(styles.root, className)}\n {...props}\n >\n <line data-hash-stick=\"top\" x1=\"4\" x2=\"20\" y1=\"9\" y2=\"9\" />\n <line data-hash-stick=\"bottom\" x1=\"4\" x2=\"20\" y1=\"15\" y2=\"15\" />\n <line data-hash-stick=\"left\" x1=\"10\" x2=\"8\" y1=\"3\" y2=\"21\" />\n <line data-hash-stick=\"right\" x1=\"16\" x2=\"14\" y1=\"3\" y2=\"21\" />\n </svg>\n )\n);\n\nHashIcon.displayName = \"HashIcon\";\n"],"names":["HashIcon","forwardRef","decorative","className","props","ref","jsxs","cn","styles","jsx"],"mappings":"iNAQaA,EAAWC,EAAAA,WACtB,CAAC,CAAE,WAAAC,EAAa,GAAM,UAAAC,EAAW,GAAGC,CAAA,EAASC,IAC3CC,EAAAA,kBAAAA,KAAC,MAAA,CACC,IAAAD,EACA,MAAM,6BACN,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAa,EACb,cAAc,QACd,eAAe,QACf,cAAaH,EACb,UAAWK,EAAGC,UAAO,KAAML,CAAS,EACnC,GAAGC,EAEJ,SAAA,CAAAK,EAAAA,kBAAAA,IAAC,OAAA,CAAK,kBAAgB,MAAM,GAAG,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,GAAA,CAAI,EACzDA,EAAAA,kBAAAA,IAAC,OAAA,CAAK,kBAAgB,SAAS,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,IAAA,CAAK,EAC9DA,EAAAA,kBAAAA,IAAC,OAAA,CAAK,kBAAgB,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAA,CAAK,EAC3DA,EAAAA,kBAAAA,IAAC,OAAA,CAAK,kBAAgB,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,IAAA,CAAK,CAAA,CAAA,CAAA,CAGnE,EAEAT,EAAS,YAAc"}
|
package/dist/index.cjs56.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_badge_l5nvw_1",a="_badgeContent_l5nvw_13",d="_badge--dot_l5nvw_35",g="_badge--sm_l5nvw_28",b="_badge--md_l5nvw_42",_="_badge--lg_l5nvw_56",n="_badge--primary_l5nvw_71",r="_badge--secondary_l5nvw_76",t="_badge--success_l5nvw_81",s="_badge--warning_l5nvw_86",o="_badge--error_l5nvw_91",l="_badge--neutral_l5nvw_96",c={badge:e,badgeContent:a,badgeDot:d,"badge--sm":"_badge--sm_l5nvw_28",badgeSm:g,"badge--dot":"_badge--dot_l5nvw_35","badge--md":"_badge--md_l5nvw_42",badgeMd:b,"badge--lg":"_badge--lg_l5nvw_56",badgeLg:_,"badge--primary":"_badge--primary_l5nvw_71",badgePrimary:n,"badge--secondary":"_badge--secondary_l5nvw_76",badgeSecondary:r,"badge--success":"_badge--success_l5nvw_81",badgeSuccess:t,"badge--warning":"_badge--warning_l5nvw_86",badgeWarning:s,"badge--error":"_badge--error_l5nvw_91",badgeError:o,"badge--neutral":"_badge--neutral_l5nvw_96",badgeNeutral:l};exports.badge=e;exports.badgeContent=a;exports.badgeDot=d;exports.badgeError=o;exports.badgeLg=_;exports.badgeMd=b;exports.badgeNeutral=l;exports.badgePrimary=n;exports.badgeSecondary=r;exports.badgeSm=g;exports.badgeSuccess=t;exports.badgeWarning=s;exports.default=c;
|
|
2
2
|
//# sourceMappingURL=index.cjs56.js.map
|
package/dist/index.cjs56.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs56.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs56.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs57.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y="_typography_1c1gg_1",p="_typography--h1_1c1gg_8",g="_typography--h2_1c1gg_15",o="_typography--h3_1c1gg_22",r="_typography--h4_1c1gg_29",t="_typography--h5_1c1gg_36",a="_typography--h6_1c1gg_43",h="_typography--body_1c1gg_50",_="_typography--caption_1c1gg_57",c="_typography--overline_1c1gg_64",l="_typography--xs_1c1gg_74",s="_typography--sm_1c1gg_78",e="_typography--base_1c1gg_82",n="_typography--lg_1c1gg_86",i="_typography--xl_1c1gg_90",d="_typography--2xl_1c1gg_94",H="_typography--3xl_1c1gg_98",x="_typography--4xl_1c1gg_102",X="_typography--color-primary_1c1gg_107",b="_typography--color-secondary_1c1gg_111",m="_typography--color-disabled_1c1gg_115",C={typography:y,"typography--h1":"_typography--h1_1c1gg_8",typographyH1:p,"typography--h2":"_typography--h2_1c1gg_15",typographyH2:g,"typography--h3":"_typography--h3_1c1gg_22",typographyH3:o,"typography--h4":"_typography--h4_1c1gg_29",typographyH4:r,"typography--h5":"_typography--h5_1c1gg_36",typographyH5:t,"typography--h6":"_typography--h6_1c1gg_43",typographyH6:a,"typography--body":"_typography--body_1c1gg_50",typographyBody:h,"typography--caption":"_typography--caption_1c1gg_57",typographyCaption:_,"typography--overline":"_typography--overline_1c1gg_64",typographyOverline:c,"typography--xs":"_typography--xs_1c1gg_74",typographyXs:l,"typography--sm":"_typography--sm_1c1gg_78",typographySm:s,"typography--base":"_typography--base_1c1gg_82",typographyBase:e,"typography--lg":"_typography--lg_1c1gg_86",typographyLg:n,"typography--xl":"_typography--xl_1c1gg_90",typographyXl:i,"typography--2xl":"_typography--2xl_1c1gg_94",typography2Xl:d,"typography--3xl":"_typography--3xl_1c1gg_98",typography3Xl:H,"typography--4xl":"_typography--4xl_1c1gg_102",typography4Xl:x,"typography--color-primary":"_typography--color-primary_1c1gg_107",typographyColorPrimary:X,"typography--color-secondary":"_typography--color-secondary_1c1gg_111",typographyColorSecondary:b,"typography--color-disabled":"_typography--color-disabled_1c1gg_115",typographyColorDisabled:m};exports.default=C;exports.typography=y;exports.typography2Xl=d;exports.typography3Xl=H;exports.typography4Xl=x;exports.typographyBase=e;exports.typographyBody=h;exports.typographyCaption=_;exports.typographyColorDisabled=m;exports.typographyColorPrimary=X;exports.typographyColorSecondary=b;exports.typographyH1=p;exports.typographyH2=g;exports.typographyH3=o;exports.typographyH4=r;exports.typographyH5=t;exports.typographyH6=a;exports.typographyLg=n;exports.typographyOverline=c;exports.typographySm=s;exports.typographyXl=i;exports.typographyXs=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs57.js.map
|
package/dist/index.cjs58.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_quote_10dbe_1",e="_text_10dbe_9",o="_author_10dbe_13",u={quote:t,text:e,author:o};exports.author=o;exports.default=u;exports.quote=t;exports.text=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs58.js.map
|
package/dist/index.cjs58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs58.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs58.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs59.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=[[[0,0],[1,0],[0,1]],[[0,0],[1,0],[1,1]],[[0,0],[0,1],[1,1]],[[0,1],[1,0],[1,1]]],w=9301,F=49297,R=233280,X=4,_=1,k=8,H=.12,Y=.3,N={circle:.2,dot:.35,triangle:.5,diamond:.62,cross:.75},j=.3,v=.3,z=450,V=320,Z=300,q=.8,J=.17,h=.25,d=.25,K=.25,Q=7e3,$=2,g=5,W=.75;function M(t,o,s){return Math.floor(s()*(o-t+1))+t}function tt(t){return()=>(t=(t*w+F)%R,t/R)}function ot(t,o,s,I,i,c="right",n=2){return et(t,o,s,I,i,c,n)}function et(t,o,s,I,i,c,n){if(t<=0||o<=0)return[];const A=Math.max(X,s),E=Math.max(_,Math.floor(o/A)),r=Math.min(k,Math.max(_,n));let a=1;for(;a<E&&o/(a+1)>=A;)a++;let e=o/a;e>t&&(e=t,a=Math.max(_,Math.floor(o/e)));const L=t/r,P=o/r;if(e=Math.min(e,L,P),e<=0)return[];a=Math.max(_,Math.floor(o/e));const S=Math.max(_,Math.floor(t/e)),O=()=>i()>H,x=l=>M(Math.max(_,Math.floor(l*Y)),l,i),u=c==="right"||c==="left",D=u?a:S,f=u?S:a,C=c==="right"||c==="bottom",p=[];for(let l=0;l<D;l++){if(!O())continue;const m=x(f),U=C?f-m:0,G=C?f:m;for(let T=U;T<G;T++){const B=u?T:l,b=u?l:T;at(p,B*e,b*e,e,e,I,i)}}return p}function nt(t){const o=t();if(o<N.circle)return{shapeType:"circle"};if(o<N.dot)return{shapeType:"dot",dotScale:j+t()*v};if(o<N.triangle)return{shapeType:"triangle",triangleIndex:M(0,y.length-1,t)};if(o<N.diamond)return{shapeType:"diamond"};if(o<N.cross)return{shapeType:"cross"};const s=M($,g,t);return{shapeType:"stripes",stripeDirection:t()>.35?1:0,stripeCount:s,stripeMask:Array.from({length:s},()=>t()>1-W)}}function at(t,o,s,I,i,c,n){const A=M(0,c-1,n);let E=M(0,c-1,n);for(;E===A;)E=M(0,c-1,n);const r=nt(n),a=n();let e;a<h?e="breathe":a<h+d?e="pulse":a<h+d+K&&(e="opacity"),t.push({x:o,y:s,width:I,height:i,bgColorIndex:A,shapeColorIndex:E,shapeType:r.shapeType,triangleIndex:r.triangleIndex,stripeDirection:r.stripeDirection,stripeCount:r.stripeCount,stripeMask:r.stripeMask,animationDelay:Math.floor(n()*z),animationDuration:V+Math.floor(n()*Z),animationScaleFrom:q+n()*J,dotScale:r.dotScale,animationType:e,animationPhase:e?Math.floor(n()*Q):void 0})}exports.TRIANGLE_TEMPLATES=y;exports.createSeededRandom=tt;exports.generatePattern=ot;exports.getRandomInt=M;
|
|
2
2
|
//# sourceMappingURL=index.cjs59.js.map
|
package/dist/index.cjs59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs59.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs59.js","sources":["../src/components/content/DecorativeFrame/utils/patternGenerator.ts"],"sourcesContent":["export type Point2D = [number, number];\n\nexport const TRIANGLE_TEMPLATES: Point2D[][] = [\n [[0, 0], [1, 0], [0, 1]],\n [[0, 0], [1, 0], [1, 1]],\n [[0, 0], [0, 1], [1, 1]],\n [[0, 1], [1, 0], [1, 1]],\n];\n\nexport type ShapeType =\n | 'circle'\n | 'dot'\n | 'triangle'\n | 'diamond'\n | 'cross'\n | 'stripes'\n | null;\n\nexport interface CellConfig {\n x: number;\n y: number;\n width: number;\n height: number;\n bgColorIndex: number;\n shapeColorIndex: number;\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n animationDelay: number;\n animationDuration: number;\n animationScaleFrom?: number;\n dotScale?: number;\n animationType?: 'breathe' | 'pulse' | 'opacity';\n animationPhase?: number;\n}\n\nconst RNG_MULTIPLIER = 9301;\nconst RNG_INCREMENT = 49297;\nconst RNG_MODULUS = 233280;\n\nconst MIN_BOX_SIZE = 4;\nconst STRIP_LINES_MIN = 1;\nconst STRIP_LINES_MAX = 8;\nconst EMPTY_ROW_CHANCE = 0.12;\nconst FILL_COUNT_MIN_RATIO = 0.3;\n\nconst SHAPE_PROB = { circle: 0.2, dot: 0.35, triangle: 0.5, diamond: 0.62, cross: 0.75 } as const;\nconst DOT_SCALE_MIN = 0.3;\nconst DOT_SCALE_RANGE = 0.3;\nconst ANIM_DELAY_MAX = 450;\nconst ANIM_DURATION_MIN = 320;\nconst ANIM_DURATION_RANGE = 300;\nconst ANIM_SCALE_FROM_MIN = 0.8;\nconst ANIM_SCALE_FROM_RANGE = 0.17;\n// Animation\nconst ANIM_BREATHE_CHANCE = 0.25;\nconst ANIM_PULSE_CHANCE = 0.25;\nconst ANIM_OPACITY_CHANCE = 0.25;\nconst ANIM_PHASE_MAX = 7000;\nconst STRIPE_COUNT_MIN = 2;\nconst STRIPE_COUNT_MAX = 5;\nconst STRIPE_VISIBLE_CHANCE = 0.75;\n\nexport function getRandomInt(min: number, max: number, rng: () => number): number {\n return Math.floor(rng() * (max - min + 1)) + min;\n}\n\nexport function createSeededRandom(seed: number): () => number {\n return () => {\n seed = (seed * RNG_MULTIPLIER + RNG_INCREMENT) % RNG_MODULUS;\n return seed / RNG_MODULUS;\n };\n}\n\nexport type PatternEdge = 'top' | 'right' | 'bottom' | 'left';\n\nexport function generatePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge = 'right',\n stripDensity: number = 2\n): CellConfig[] {\n return generateEdgePattern(stripWidth, stripHeight, boxSize, colorCount, rng, edge, stripDensity);\n}\n\nfunction generateEdgePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge,\n stripDensity: number\n): CellConfig[] {\n if (stripWidth <= 0 || stripHeight <= 0) return [];\n\n const safeBoxSize = Math.max(MIN_BOX_SIZE, boxSize);\n const maxRows = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / safeBoxSize));\n const minLines = Math.min(STRIP_LINES_MAX, Math.max(STRIP_LINES_MIN, stripDensity));\n\n let rowCount = 1;\n while (rowCount < maxRows && stripHeight / (rowCount + 1) >= safeBoxSize) {\n rowCount++;\n }\n\n let cellSize = stripHeight / rowCount;\n if (cellSize > stripWidth) {\n cellSize = stripWidth;\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n }\n\n const maxCellByWidth = stripWidth / minLines;\n const maxCellByHeight = stripHeight / minLines;\n cellSize = Math.min(cellSize, maxCellByWidth, maxCellByHeight);\n if (cellSize <= 0) return [];\n\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n const colCount = Math.max(STRIP_LINES_MIN, Math.floor(stripWidth / cellSize));\n\n const shouldFill = () => rng() > EMPTY_ROW_CHANCE;\n const fillCount = (max: number) =>\n getRandomInt(Math.max(STRIP_LINES_MIN, Math.floor(max * FILL_COUNT_MIN_RATIO)), max, rng);\n\n const isVerticalStrip = edge === 'right' || edge === 'left';\n const primaryCount = isVerticalStrip ? rowCount : colCount;\n const secondaryCount = isVerticalStrip ? colCount : rowCount;\n const isEndEdge = edge === 'right' || edge === 'bottom';\n\n const cells: CellConfig[] = [];\n\n for (let i = 0; i < primaryCount; i++) {\n if (!shouldFill()) continue;\n\n const count = fillCount(secondaryCount);\n const start = isEndEdge ? secondaryCount - count : 0;\n const end = isEndEdge ? secondaryCount : count;\n\n for (let j = start; j < end; j++) {\n const col = isVerticalStrip ? j : i;\n const row = isVerticalStrip ? i : j;\n pushCell(cells, col * cellSize, row * cellSize, cellSize, cellSize, colorCount, rng);\n }\n }\n\n return cells;\n}\n\nfunction pickShapeType(rng: () => number): {\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n dotScale?: number;\n} {\n const roll = rng();\n\n if (roll < SHAPE_PROB.circle) return { shapeType: 'circle' };\n if (roll < SHAPE_PROB.dot) {\n return { shapeType: 'dot', dotScale: DOT_SCALE_MIN + rng() * DOT_SCALE_RANGE };\n }\n if (roll < SHAPE_PROB.triangle) {\n return {\n shapeType: 'triangle',\n triangleIndex: getRandomInt(0, TRIANGLE_TEMPLATES.length - 1, rng),\n };\n }\n if (roll < SHAPE_PROB.diamond) return { shapeType: 'diamond' };\n if (roll < SHAPE_PROB.cross) return { shapeType: 'cross' };\n\n const stripeCount = getRandomInt(STRIPE_COUNT_MIN, STRIPE_COUNT_MAX, rng);\n return {\n shapeType: 'stripes',\n stripeDirection: rng() > 0.35 ? 1 : 0,\n stripeCount,\n stripeMask: Array.from({ length: stripeCount }, () => rng() > 1 - STRIPE_VISIBLE_CHANCE),\n };\n}\n\nfunction pushCell(\n cells: CellConfig[],\n x: number,\n y: number,\n width: number,\n height: number,\n colorCount: number,\n rng: () => number\n): void {\n const bgColorIndex = getRandomInt(0, colorCount - 1, rng);\n let shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n while (shapeColorIndex === bgColorIndex) {\n shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n }\n\n const shape = pickShapeType(rng);\n\n const roll = rng();\n let animationType: 'breathe' | 'pulse' | 'opacity' | undefined;\n if (roll < ANIM_BREATHE_CHANCE) animationType = 'breathe';\n else if (roll < ANIM_BREATHE_CHANCE + ANIM_PULSE_CHANCE) animationType = 'pulse';\n else if (roll < ANIM_BREATHE_CHANCE + ANIM_PULSE_CHANCE + ANIM_OPACITY_CHANCE) animationType = 'opacity';\n\n cells.push({\n x,\n y,\n width,\n height,\n bgColorIndex,\n shapeColorIndex,\n shapeType: shape.shapeType,\n triangleIndex: shape.triangleIndex,\n stripeDirection: shape.stripeDirection,\n stripeCount: shape.stripeCount,\n stripeMask: shape.stripeMask,\n animationDelay: Math.floor(rng() * ANIM_DELAY_MAX),\n animationDuration: ANIM_DURATION_MIN + Math.floor(rng() * ANIM_DURATION_RANGE),\n animationScaleFrom: ANIM_SCALE_FROM_MIN + rng() * ANIM_SCALE_FROM_RANGE,\n dotScale: shape.dotScale,\n animationType,\n animationPhase: animationType ? Math.floor(rng() * ANIM_PHASE_MAX) : undefined,\n });\n}\n"],"names":["TRIANGLE_TEMPLATES","RNG_MULTIPLIER","RNG_INCREMENT","RNG_MODULUS","MIN_BOX_SIZE","STRIP_LINES_MIN","STRIP_LINES_MAX","EMPTY_ROW_CHANCE","FILL_COUNT_MIN_RATIO","SHAPE_PROB","DOT_SCALE_MIN","DOT_SCALE_RANGE","ANIM_DELAY_MAX","ANIM_DURATION_MIN","ANIM_DURATION_RANGE","ANIM_SCALE_FROM_MIN","ANIM_SCALE_FROM_RANGE","ANIM_BREATHE_CHANCE","ANIM_PULSE_CHANCE","ANIM_OPACITY_CHANCE","ANIM_PHASE_MAX","STRIPE_COUNT_MIN","STRIPE_COUNT_MAX","STRIPE_VISIBLE_CHANCE","getRandomInt","min","max","rng","createSeededRandom","seed","generatePattern","stripWidth","stripHeight","boxSize","colorCount","edge","stripDensity","generateEdgePattern","safeBoxSize","maxRows","minLines","rowCount","cellSize","maxCellByWidth","maxCellByHeight","colCount","shouldFill","fillCount","isVerticalStrip","primaryCount","secondaryCount","isEndEdge","cells","i","count","start","end","j","col","row","pushCell","pickShapeType","roll","stripeCount","x","y","width","height","bgColorIndex","shapeColorIndex","shape","animationType"],"mappings":"6FAEO,MAAMA,EAAkC,CAC7C,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,CACzB,EA+BMC,EAAiB,KACjBC,EAAgB,MAChBC,EAAc,OAEdC,EAAe,EACfC,EAAkB,EAClBC,EAAkB,EAClBC,EAAmB,IACnBC,EAAuB,GAEvBC,EAAa,CAAE,OAAQ,GAAK,IAAK,IAAM,SAAU,GAAK,QAAS,IAAM,MAAO,GAAA,EAC5EC,EAAgB,GAChBC,EAAkB,GAClBC,EAAiB,IACjBC,EAAoB,IACpBC,EAAsB,IACtBC,EAAsB,GACtBC,EAAwB,IAExBC,EAAsB,IACtBC,EAAoB,IACpBC,EAAsB,IACtBC,EAAiB,IACjBC,EAAmB,EACnBC,EAAmB,EACnBC,EAAwB,IAEvB,SAASC,EAAaC,EAAaC,EAAaC,EAA2B,CAChF,OAAO,KAAK,MAAMA,EAAA,GAASD,EAAMD,EAAM,EAAE,EA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EACAjC,EACAP,EACM,CACN,MAAMyC,EAAe5C,EAAa,EAAGU,EAAa,EAAGP,CAAG,EACxD,IAAI0C,EAAkB7C,EAAa,EAAGU,EAAa,EAAGP,CAAG,EACzD,KAAO0C,IAAoBD,GACzBC,EAAkB7C,EAAa,EAAGU,EAAa,EAAGP,CAAG,EAGvD,MAAM2C,EAAQT,GAAclC,CAAG,EAEzBmC,EAAOnC,EAAA,EACb,IAAI4C,EACAT,EAAO7C,EAAqBsD,EAAgB,UACvCT,EAAO7C,EAAsBC,EAAmBqD,EAAgB,QAChET,EAAO7C,EAAsBC,EAAoBC,IAAqBoD,EAAgB,WAE/FnB,EAAM,KAAK,CACT,EAAAY,EACA,EAAAC,EACA,MAAAC,EACA,OAAAC,EACA,aAAAC,EACA,gBAAAC,EACA,UAAWC,EAAM,UACjB,cAAeA,EAAM,cACrB,gBAAiBA,EAAM,gBACvB,YAAaA,EAAM,YACnB,WAAYA,EAAM,WAClB,eAAgB,KAAK,MAAM3C,EAAA,EAAQf,CAAc,EACjD,kBAAmBC,EAAoB,KAAK,MAAMc,EAAA,EAAQb,CAAmB,EAC7E,mBAAoBC,EAAsBY,EAAA,EAAQX,EAClD,SAAUsD,EAAM,SAChB,cAAAC,EACA,eAAgBA,EAAgB,KAAK,MAAM5C,EAAA,EAAQP,CAAc,EAAI,MAAA,CACtE,CACH"}
|
package/dist/index.cjs60.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_root_mptdu_1",o="_root--edge-top_mptdu_6",r="_root--edge-bottom_mptdu_10",e="_root--edge-left_mptdu_14",p="_root--edge-right_mptdu_18",_="_content_mptdu_22",i="_strip_mptdu_28",s="_strip--top_mptdu_36",d="_strip--bottom_mptdu_37",g="_strip--left_mptdu_42",m="_strip--right_mptdu_43",u="_stripMirror_mptdu_48",n={root:t,"root--edge-top":"_root--edge-top_mptdu_6",rootEdgeTop:o,"root--edge-bottom":"_root--edge-bottom_mptdu_10",rootEdgeBottom:r,"root--edge-left":"_root--edge-left_mptdu_14",rootEdgeLeft:e,"root--edge-right":"_root--edge-right_mptdu_18",rootEdgeRight:p,content:_,strip:i,"strip--top":"_strip--top_mptdu_36",stripTop:s,"strip--bottom":"_strip--bottom_mptdu_37",stripBottom:d,"strip--left":"_strip--left_mptdu_42",stripLeft:g,"strip--right":"_strip--right_mptdu_43",stripRight:m,stripMirror:u};exports.content=_;exports.default=n;exports.root=t;exports.rootEdgeBottom=r;exports.rootEdgeLeft=e;exports.rootEdgeRight=p;exports.rootEdgeTop=o;exports.strip=i;exports.stripBottom=d;exports.stripLeft=g;exports.stripMirror=u;exports.stripRight=m;exports.stripTop=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs60.js.map
|
package/dist/index.cjs61.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs38.js"),k=require("./index.cjs44.js"),g=require("./index.cjs59.js"),e=require("./index.cjs390.js");function S(l){return`polygon(${l.map(([d,s])=>`${d*100}% ${s*100}%`).join(", ")})`}function j({cell:l,colors:o}){const d=o[l.bgColorIndex]??o[0],s=o[l.shapeColorIndex]??o[1],a=Math.min(l.width,l.height),{x:f,y,width:C,height:E,shapeType:i,triangleIndex:c,stripeDirection:u,stripeCount:r=4,stripeMask:b,animationDelay:v,animationDuration:N,animationScaleFrom:R=.9,dotScale:m=.45,animationType:p,animationPhase:$=0}=l,h=u===1?a:a/(r*2-1),x=u===1?a/(r*2-1):a,P=b??Array(r).fill(!0),T={position:"absolute",left:f,top:y,width:C,height:E,"--cell-delay":`${v}ms`,"--cell-duration":`${N}ms`,"--cell-scale-from":R,"--cell-animation-phase":`${$}ms`};return t.jsxRuntimeExports.jsx("div",{className:e.default.cell,style:T,"aria-hidden":!0,children:t.jsxRuntimeExports.jsxs("div",{className:k(e.default.cellInner,p==="breathe"&&e.default.cellBreathes,p==="pulse"&&e.default.cellPulses,p==="opacity"&&e.default.cellOpacity),children:[t.jsxRuntimeExports.jsx("div",{className:e.default.bg,style:{backgroundColor:d}}),i==="circle"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeCircle,style:{backgroundColor:s}}),i==="dot"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeDot,style:{backgroundColor:s,width:`${m*100}%`,height:`${m*100}%`}}),i==="triangle"&&c!==void 0&&g.TRIANGLE_TEMPLATES[c]&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeTriangle,style:{backgroundColor:s,clipPath:S(g.TRIANGLE_TEMPLATES[c])}}),i==="diamond"&&t.jsxRuntimeExports.jsx("div",{className:e.default.shapeDiamond,style:{backgroundColor:s}}),i==="cross"&&t.jsxRuntimeExports.jsxs("div",{className:e.default.shapeCross,children:[t.jsxRuntimeExports.jsx("div",{className:e.default.crossBar,style:{backgroundColor:s}}),t.jsxRuntimeExports.jsx("div",{className:e.default.crossBarVertical,style:{backgroundColor:s}})]}),i==="stripes"&&t.jsxRuntimeExports.jsx("div",{className:e.default.stripes,children:Array.from({length:r},(w,n)=>P[n]?t.jsxRuntimeExports.jsx("div",{className:e.default.stripe,style:{backgroundColor:s,...u===1?{top:`${2*n*x/a*100}%`,left:0,width:"100%",height:`${x/a*100}%`}:{left:`${2*n*h/a*100}%`,top:0,width:`${h/a*100}%`,height:"100%"}}},n):null)})]})})}j.displayName="PatternCell";exports.PatternCell=j;
|
|
2
2
|
//# sourceMappingURL=index.cjs61.js.map
|
package/dist/index.cjs61.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs61.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs61.js","sources":["../src/components/content/DecorativeFrame/components/PatternCell/PatternCell.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport type { CellConfig, Point2D } from '../../utils/patternGenerator';\nimport { TRIANGLE_TEMPLATES } from '../../utils/patternGenerator';\nimport styles from './PatternCell.module.pcss';\n\nexport interface PatternCellProps {\n cell: CellConfig;\n colors: string[];\n}\n\nfunction polygonClipPath(template: Point2D[]): string {\n const points = template.map(([px, py]) => `${px * 100}% ${py * 100}%`).join(', ');\n return `polygon(${points})`;\n}\n\nexport function PatternCell({ cell, colors }: PatternCellProps) {\n const bgColor = colors[cell.bgColorIndex] ?? colors[0];\n const shapeColor = colors[cell.shapeColorIndex] ?? colors[1];\n const size = Math.min(cell.width, cell.height);\n const {\n x,\n y,\n width: cellWidth,\n height: cellHeight,\n shapeType,\n triangleIndex,\n stripeDirection,\n stripeCount = 4,\n stripeMask,\n animationDelay,\n animationDuration,\n animationScaleFrom = 0.9,\n dotScale = 0.45,\n animationType,\n animationPhase = 0,\n } = cell;\n\n const stripeWidth =\n stripeDirection === 1 ? size : size / (stripeCount * 2 - 1);\n const stripeHeight =\n stripeDirection === 1 ? size / (stripeCount * 2 - 1) : size;\n const visibleStripes = stripeMask ?? Array(stripeCount).fill(true);\n\n const cellStyle: React.CSSProperties = {\n position: 'absolute',\n left: x,\n top: y,\n width: cellWidth,\n height: cellHeight,\n '--cell-delay': `${animationDelay}ms`,\n '--cell-duration': `${animationDuration}ms`,\n '--cell-scale-from': animationScaleFrom,\n '--cell-animation-phase': `${animationPhase}ms`,\n } as React.CSSProperties;\n\n return (\n <div className={styles.cell} style={cellStyle} aria-hidden>\n <div\n className={cn(\n styles.cellInner,\n animationType === 'breathe' && styles.cellBreathes,\n animationType === 'pulse' && styles.cellPulses,\n animationType === 'opacity' && styles.cellOpacity\n )}\n >\n <div className={styles.bg} style={{ backgroundColor: bgColor }} />\n\n {shapeType === 'circle' && (\n <div\n className={styles.shapeCircle}\n style={{ backgroundColor: shapeColor }}\n />\n )}\n\n {shapeType === 'dot' && (\n <div\n className={styles.shapeDot}\n style={{\n backgroundColor: shapeColor,\n width: `${dotScale * 100}%`,\n height: `${dotScale * 100}%`,\n }}\n />\n )}\n\n {shapeType === 'triangle' &&\n triangleIndex !== undefined &&\n TRIANGLE_TEMPLATES[triangleIndex] && (\n <div\n className={styles.shapeTriangle}\n style={{\n backgroundColor: shapeColor,\n clipPath: polygonClipPath(TRIANGLE_TEMPLATES[triangleIndex]!),\n }}\n />\n )}\n\n {shapeType === 'diamond' && (\n <div\n className={styles.shapeDiamond}\n style={{ backgroundColor: shapeColor }}\n />\n )}\n\n {shapeType === 'cross' && (\n <div className={styles.shapeCross}>\n <div\n className={styles.crossBar}\n style={{ backgroundColor: shapeColor }}\n />\n <div\n className={styles.crossBarVertical}\n style={{ backgroundColor: shapeColor }}\n />\n </div>\n )}\n\n {shapeType === 'stripes' && (\n <div className={styles.stripes}>\n {Array.from({ length: stripeCount }, (_, i) =>\n visibleStripes[i] ? (\n <div\n key={i}\n className={styles.stripe}\n style={{\n backgroundColor: shapeColor,\n ...(stripeDirection === 1\n ? {\n top: `${((2 * i * stripeHeight) / size) * 100}%`,\n left: 0,\n width: '100%',\n height: `${(stripeHeight / size) * 100}%`,\n }\n : {\n left: `${((2 * i * stripeWidth) / size) * 100}%`,\n top: 0,\n width: `${(stripeWidth / size) * 100}%`,\n height: '100%',\n }),\n }}\n />\n ) : null\n )}\n </div>\n )}\n </div>\n </div>\n );\n}\n\nPatternCell.displayName = 'PatternCell';\n"],"names":["polygonClipPath","template","px","py","PatternCell","cell","colors","bgColor","shapeColor","size","x","cellWidth","cellHeight","shapeType","triangleIndex","stripeDirection","stripeCount","stripeMask","animationDelay","animationDuration","animationScaleFrom","dotScale","animationType","animationPhase","stripeWidth","stripeHeight","visibleStripes","cellStyle","jsx","styles","jsxs","cn","TRIANGLE_TEMPLATES","_","i"],"mappings":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AAO,OAClB,MAAO,CACL,gBAAiBrB,EACjB,GAAIO,IAAoB,EACtB,CACE,IAAK,GAAK,EAAImB,EAAIT,EAAgBhB,EAAQ,GAAG,IAC7C,KAAM,EACN,MAAO,OACP,OAAQ,GAAIgB,EAAehB,EAAQ,GAAG,GAAA,EAExC,CACE,KAAM,GAAK,EAAIyB,EAAIV,EAAef,EAAQ,GAAG,IAC7C,IAAK,EACL,MAAO,GAAIe,EAAcf,EAAQ,GAAG,IACpC,OAAQ,MAAA,CACV,CACJ,EAjBKyB,CAAA,EAmBL,IAAA,CACN,CACF,CAAA,CAAA,CAAA,EAGJ,CAEJ,CAEA9B,EAAY,YAAc"}
|
package/dist/index.cjs62.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r="_wrapper_1xv65_1",p="_wrapper--error_1xv65_22",e="_wrapper--disabled_1xv65_31",a="_input_1xv65_37",_="_iconStart_1xv65_62",w="_iconEnd_1xv65_63",t="_wrapper--sm_1xv65_72",n="_wrapper--md_1xv65_82",o="_wrapper--lg_1xv65_92",d="_wrapper--fullWidth_1xv65_102",i={wrapper:r,"wrapper--error":"_wrapper--error_1xv65_22",wrapperError:p,"wrapper--disabled":"_wrapper--disabled_1xv65_31",wrapperDisabled:e,input:a,iconStart:_,iconEnd:w,"wrapper--sm":"_wrapper--sm_1xv65_72",wrapperSm:t,"wrapper--md":"_wrapper--md_1xv65_82",wrapperMd:n,"wrapper--lg":"_wrapper--lg_1xv65_92",wrapperLg:o,"wrapper--fullWidth":"_wrapper--fullWidth_1xv65_102",wrapperFullWidth:d};exports.default=i;exports.iconEnd=w;exports.iconStart=_;exports.input=a;exports.wrapper=r;exports.wrapperDisabled=e;exports.wrapperError=p;exports.wrapperFullWidth=d;exports.wrapperLg=o;exports.wrapperMd=n;exports.wrapperSm=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs62.js.map
|
package/dist/index.cjs63.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_root_1lfx3_1",t="_root--sm_1lfx3_8",s="_root--md_1lfx3_14",n="_root--lg_1lfx3_20",_="_track_1lfx3_26",o="_segments_1lfx3_34",m="_segment_1lfx3_34",g="_segment--primary_1lfx3_50",r="_segment--secondary_1lfx3_54",l="_segment--success_1lfx3_58",a="_segment--warning_1lfx3_62",c="_segment--active_1lfx3_66",i="_segment--sequential_1lfx3_66",f="_segment-reveal_1lfx3_1",x="_valueLabel_1lfx3_89",u={root:e,"root--sm":"_root--sm_1lfx3_8",rootSm:t,"root--md":"_root--md_1lfx3_14",rootMd:s,"root--lg":"_root--lg_1lfx3_20",rootLg:n,track:_,segments:o,segment:m,"segment--primary":"_segment--primary_1lfx3_50",segmentPrimary:g,"segment--secondary":"_segment--secondary_1lfx3_54",segmentSecondary:r,"segment--success":"_segment--success_1lfx3_58",segmentSuccess:l,"segment--warning":"_segment--warning_1lfx3_62",segmentWarning:a,"segment--active":"_segment--active_1lfx3_66",segmentActive:c,"segment--sequential":"_segment--sequential_1lfx3_66",segmentSequential:i,"segment-reveal":"_segment-reveal_1lfx3_1",segmentReveal:f,valueLabel:x};exports.default=u;exports.root=e;exports.rootLg=n;exports.rootMd=s;exports.rootSm=t;exports.segment=m;exports.segmentActive=c;exports.segmentPrimary=g;exports.segmentReveal=f;exports.segmentSecondary=r;exports.segmentSequential=i;exports.segmentSuccess=l;exports.segmentWarning=a;exports.segments=o;exports.track=_;exports.valueLabel=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs63.js.map
|
package/dist/index.cjs64.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_labelMenuItem_fjxw4_1",l="_icon_fjxw4_32",t="_label_fjxw4_1",n={labelMenuItem:e,icon:l,label:t};exports.default=n;exports.icon=l;exports.label=t;exports.labelMenuItem=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs64.js.map
|
package/dist/index.cjs65.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs83.js"),a=require("./index.cjs84.js"),e=require("./index.cjs85.js"),n=require("./index.cjs86.js"),i=require("./index.cjs87.js"),r=require("./index.cjs88.js");exports.codeToHtml=t.codeToHtml;exports.createHighlighter=t.createHighlighter;exports.createOnigurumaEngine=a.createOnigurumaEngine;exports.loadWasm=a.loadWasm;exports.addClassToHast=e.addClassToHast;exports.applyColorReplacements=e.applyColorReplacements;exports.createBundledHighlighter=e.createBundledHighlighter;exports.createHighlighterCore=e.createHighlighterCore;exports.createPositionConverter=e.createPositionConverter;exports.createShikiInternal=e.createShikiInternal;exports.createShikiInternalSync=e.createShikiInternalSync;exports.createSingletonShorthands=e.createSingletonShorthands;exports.flatTokenVariants=e.flatTokenVariants;exports.getTokenStyleObject=e.getTokenStyleObject;exports.guessEmbeddedLanguages=e.guessEmbeddedLanguages;exports.hastToHtml=e.hastToHtml;exports.isNoneTheme=e.isNoneTheme;exports.isPlainLang=e.isPlainLang;exports.isSpecialLang=e.isSpecialLang;exports.isSpecialTheme=e.isSpecialTheme;exports.makeSingletonHighlighter=e.makeSingletonHighlighter;exports.normalizeGetter=e.normalizeGetter;exports.normalizeTheme=e.normalizeTheme;exports.resolveColorReplacements=e.resolveColorReplacements;exports.splitLines=e.splitLines;exports.splitToken=e.splitToken;exports.splitTokens=e.splitTokens;exports.stringifyTokenStyle=e.stringifyTokenStyle;exports.toArray=e.toArray;exports.tokenizeAnsiWithTheme=e.tokenizeAnsiWithTheme;exports.tokenizeWithTheme=e.tokenizeWithTheme;exports.tokensToHast=e.tokensToHast;exports.transformerDecorations=e.transformerDecorations;exports.warnDeprecated=e.warnDeprecated;exports.bundledLanguages=n.bundledLanguages;exports.bundledLanguagesAlias=n.bundledLanguagesAlias;exports.bundledLanguagesBase=n.bundledLanguagesBase;exports.bundledLanguagesInfo=n.bundledLanguagesInfo;exports.bundledThemes=i.bundledThemes;exports.bundledThemesInfo=i.bundledThemesInfo;exports.ShikiError=r.ShikiError;
|
|
2
2
|
//# sourceMappingURL=index.cjs65.js.map
|
package/dist/index.cjs66.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_root_yhe7w_1",o="_filename_yhe7w_8",r="_code_yhe7w_15",t="_error_yhe7w_50",_={root:e,filename:o,code:r,error:t};exports.code=r;exports.default=_;exports.error=t;exports.filename=o;exports.root=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs66.js.map
|
package/dist/index.cjs67.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_grid_16nbv_1",t={grid:e};exports.default=t;exports.grid=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs67.js.map
|
package/dist/index.cjs67.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs67.js","sources":["../src/components/content/DecorativeFrame/utils/patternGenerator.ts"],"sourcesContent":["export type Point2D = [number, number];\n\nexport const TRIANGLE_TEMPLATES: Point2D[][] = [\n [[0, 0], [1, 0], [0, 1]],\n [[0, 0], [1, 0], [1, 1]],\n [[0, 0], [0, 1], [1, 1]],\n [[0, 1], [1, 0], [1, 1]],\n];\n\nexport type ShapeType =\n | 'circle'\n | 'dot'\n | 'triangle'\n | 'diamond'\n | 'cross'\n | 'stripes'\n | null;\n\nexport interface CellConfig {\n x: number;\n y: number;\n width: number;\n height: number;\n bgColorIndex: number;\n shapeColorIndex: number;\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n animationDelay: number;\n animationDuration: number;\n animationScaleFrom?: number;\n dotScale?: number;\n animationType?: 'breathe' | 'pulse' | 'opacity';\n animationPhase?: number;\n}\n\nconst RNG_MULTIPLIER = 9301;\nconst RNG_INCREMENT = 49297;\nconst RNG_MODULUS = 233280;\n\nconst MIN_BOX_SIZE = 4;\nconst STRIP_LINES_MIN = 1;\nconst STRIP_LINES_MAX = 8;\nconst EMPTY_ROW_CHANCE = 0.12;\nconst FILL_COUNT_MIN_RATIO = 0.3;\n\nconst SHAPE_PROB = { circle: 0.2, dot: 0.35, triangle: 0.5, diamond: 0.62, cross: 0.75 } as const;\nconst DOT_SCALE_MIN = 0.3;\nconst DOT_SCALE_RANGE = 0.3;\nconst ANIM_DELAY_MAX = 450;\nconst ANIM_DURATION_MIN = 320;\nconst ANIM_DURATION_RANGE = 300;\nconst ANIM_SCALE_FROM_MIN = 0.8;\nconst ANIM_SCALE_FROM_RANGE = 0.17;\n// Animation\nconst ANIM_BREATHE_CHANCE = 0.25;\nconst ANIM_PULSE_CHANCE = 0.25;\nconst ANIM_OPACITY_CHANCE = 0.25;\nconst ANIM_PHASE_MAX = 7000;\nconst STRIPE_COUNT_MIN = 2;\nconst STRIPE_COUNT_MAX = 5;\nconst STRIPE_VISIBLE_CHANCE = 0.75;\n\nexport function getRandomInt(min: number, max: number, rng: () => number): number {\n return Math.floor(rng() * (max - min + 1)) + min;\n}\n\nexport function createSeededRandom(seed: number): () => number {\n return () => {\n seed = (seed * RNG_MULTIPLIER + RNG_INCREMENT) % RNG_MODULUS;\n return seed / RNG_MODULUS;\n };\n}\n\nexport type PatternEdge = 'top' | 'right' | 'bottom' | 'left';\n\nexport function generatePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge = 'right',\n stripDensity: number = 2\n): CellConfig[] {\n return generateEdgePattern(stripWidth, stripHeight, boxSize, colorCount, rng, edge, stripDensity);\n}\n\nfunction generateEdgePattern(\n stripWidth: number,\n stripHeight: number,\n boxSize: number,\n colorCount: number,\n rng: () => number,\n edge: PatternEdge,\n stripDensity: number\n): CellConfig[] {\n if (stripWidth <= 0 || stripHeight <= 0) return [];\n\n const safeBoxSize = Math.max(MIN_BOX_SIZE, boxSize);\n const maxRows = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / safeBoxSize));\n const minLines = Math.min(STRIP_LINES_MAX, Math.max(STRIP_LINES_MIN, stripDensity));\n\n let rowCount = 1;\n while (rowCount < maxRows && stripHeight / (rowCount + 1) >= safeBoxSize) {\n rowCount++;\n }\n\n let cellSize = stripHeight / rowCount;\n if (cellSize > stripWidth) {\n cellSize = stripWidth;\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n }\n\n const maxCellByWidth = stripWidth / minLines;\n const maxCellByHeight = stripHeight / minLines;\n cellSize = Math.min(cellSize, maxCellByWidth, maxCellByHeight);\n if (cellSize <= 0) return [];\n\n rowCount = Math.max(STRIP_LINES_MIN, Math.floor(stripHeight / cellSize));\n const colCount = Math.max(STRIP_LINES_MIN, Math.floor(stripWidth / cellSize));\n\n const shouldFill = () => rng() > EMPTY_ROW_CHANCE;\n const fillCount = (max: number) =>\n getRandomInt(Math.max(STRIP_LINES_MIN, Math.floor(max * FILL_COUNT_MIN_RATIO)), max, rng);\n\n const isVerticalStrip = edge === 'right' || edge === 'left';\n const primaryCount = isVerticalStrip ? rowCount : colCount;\n const secondaryCount = isVerticalStrip ? colCount : rowCount;\n const isEndEdge = edge === 'right' || edge === 'bottom';\n\n const cells: CellConfig[] = [];\n\n for (let i = 0; i < primaryCount; i++) {\n if (!shouldFill()) continue;\n\n const count = fillCount(secondaryCount);\n const start = isEndEdge ? secondaryCount - count : 0;\n const end = isEndEdge ? secondaryCount : count;\n\n for (let j = start; j < end; j++) {\n const col = isVerticalStrip ? j : i;\n const row = isVerticalStrip ? i : j;\n pushCell(cells, col * cellSize, row * cellSize, cellSize, cellSize, colorCount, rng);\n }\n }\n\n return cells;\n}\n\nfunction pickShapeType(rng: () => number): {\n shapeType: ShapeType;\n triangleIndex?: number;\n stripeDirection?: 0 | 1;\n stripeCount?: number;\n stripeMask?: boolean[];\n dotScale?: number;\n} {\n const roll = rng();\n\n if (roll < SHAPE_PROB.circle) return { shapeType: 'circle' };\n if (roll < SHAPE_PROB.dot) {\n return { shapeType: 'dot', dotScale: DOT_SCALE_MIN + rng() * DOT_SCALE_RANGE };\n }\n if (roll < SHAPE_PROB.triangle) {\n return {\n shapeType: 'triangle',\n triangleIndex: getRandomInt(0, TRIANGLE_TEMPLATES.length - 1, rng),\n };\n }\n if (roll < SHAPE_PROB.diamond) return { shapeType: 'diamond' };\n if (roll < SHAPE_PROB.cross) return { shapeType: 'cross' };\n\n const stripeCount = getRandomInt(STRIPE_COUNT_MIN, STRIPE_COUNT_MAX, rng);\n return {\n shapeType: 'stripes',\n stripeDirection: rng() > 0.35 ? 1 : 0,\n stripeCount,\n stripeMask: Array.from({ length: stripeCount }, () => rng() > 1 - STRIPE_VISIBLE_CHANCE),\n };\n}\n\nfunction pushCell(\n cells: CellConfig[],\n x: number,\n y: number,\n width: number,\n height: number,\n colorCount: number,\n rng: () => number\n): void {\n const bgColorIndex = getRandomInt(0, colorCount - 1, rng);\n let shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n while (shapeColorIndex === bgColorIndex) {\n shapeColorIndex = getRandomInt(0, colorCount - 1, rng);\n }\n\n const shape = pickShapeType(rng);\n\n const roll = rng();\n let animationType: 'breathe' | 'pulse' | 'opacity' | undefined;\n if (roll < ANIM_BREATHE_CHANCE) animationType = 'breathe';\n else if (roll < ANIM_BREATHE_CHANCE + ANIM_PULSE_CHANCE) animationType = 'pulse';\n else if (roll < ANIM_BREATHE_CHANCE + ANIM_PULSE_CHANCE + ANIM_OPACITY_CHANCE) animationType = 'opacity';\n\n cells.push({\n x,\n y,\n width,\n height,\n bgColorIndex,\n shapeColorIndex,\n shapeType: shape.shapeType,\n triangleIndex: shape.triangleIndex,\n stripeDirection: shape.stripeDirection,\n stripeCount: shape.stripeCount,\n stripeMask: shape.stripeMask,\n animationDelay: Math.floor(rng() * ANIM_DELAY_MAX),\n animationDuration: ANIM_DURATION_MIN + Math.floor(rng() * ANIM_DURATION_RANGE),\n animationScaleFrom: ANIM_SCALE_FROM_MIN + rng() * ANIM_SCALE_FROM_RANGE,\n dotScale: shape.dotScale,\n animationType,\n animationPhase: animationType ? Math.floor(rng() * ANIM_PHASE_MAX) : undefined,\n });\n}\n"],"names":["TRIANGLE_TEMPLATES","RNG_MULTIPLIER","RNG_INCREMENT","RNG_MODULUS","MIN_BOX_SIZE","STRIP_LINES_MIN","STRIP_LINES_MAX","EMPTY_ROW_CHANCE","FILL_COUNT_MIN_RATIO","SHAPE_PROB","DOT_SCALE_MIN","DOT_SCALE_RANGE","ANIM_DELAY_MAX","ANIM_DURATION_MIN","ANIM_DURATION_RANGE","ANIM_SCALE_FROM_MIN","ANIM_SCALE_FROM_RANGE","ANIM_BREATHE_CHANCE","ANIM_PULSE_CHANCE","ANIM_OPACITY_CHANCE","ANIM_PHASE_MAX","STRIPE_COUNT_MIN","STRIPE_COUNT_MAX","STRIPE_VISIBLE_CHANCE","getRandomInt","min","max","rng","createSeededRandom","seed","generatePattern","stripWidth","stripHeight","boxSize","colorCount","edge","stripDensity","generateEdgePattern","safeBoxSize","maxRows","minLines","rowCount","cellSize","maxCellByWidth","maxCellByHeight","colCount","shouldFill","fillCount","isVerticalStrip","primaryCount","secondaryCount","isEndEdge","cells","i","count","start","end","j","col","row","pushCell","pickShapeType","roll","stripeCount","x","y","width","height","bgColorIndex","shapeColorIndex","shape","animationType"],"mappings":"6FAEO,MAAMA,EAAkC,CAC7C,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,EACvB,CAAC,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,EAAG,CAAC,CAAC,CACzB,EA+BMC,EAAiB,KACjBC,EAAgB,MAChBC,EAAc,OAEdC,EAAe,EACfC,EAAkB,EAClBC,EAAkB,EAClBC,EAAmB,IACnBC,EAAuB,GAEvBC,EAAa,CAAE,OAAQ,GAAK,IAAK,IAAM,SAAU,GAAK,QAAS,IAAM,MAAO,GAAA,EAC5EC,EAAgB,GAChBC,EAAkB,GAClBC,EAAiB,IACjBC,EAAoB,IACpBC,EAAsB,IACtBC,EAAsB,GACtBC,EAAwB,IAExBC,EAAsB,IACtBC,EAAoB,IACpBC,EAAsB,IACtBC,EAAiB,IACjBC,EAAmB,EACnBC,EAAmB,EACnBC,EAAwB,IAEvB,SAASC,EAAaC,EAAaC,EAAaC,EAA2B,CAChF,OAAO,KAAK,MAAMA,EAAA,GAASD,EAAMD,EAAM,EAAE,EAAIA,CAC/C,CAEO,SAASG,GAAmBC,EAA4B,CAC7D,MAAO,KACLA,GAAQA,EAAO5B,EAAiBC,GAAiBC,EAC1C0B,EAAO1B,EAElB,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EAAGP,CAAG,EACzD,KAAO0C,IAAoBD,GACzBC,EAAkB7C,EAAa,EAAGU,EAAa,EAAGP,CAAG,EAGvD,MAAM2C,EAAQT,GAAclC,CAAG,EAEzBmC,EAAOnC,EAAA,EACb,IAAI4C,EACAT,EAAO7C,EAAqBsD,EAAgB,UACvCT,EAAO7C,EAAsBC,EAAmBqD,EAAgB,QAChET,EAAO7C,EAAsBC,EAAoBC,IAAqBoD,EAAgB,WAE/FnB,EAAM,KAAK,CACT,EAAAY,EACA,EAAAC,EACA,MAAAC,EACA,OAAAC,EACA,aAAAC,EACA,gBAAAC,EACA,UAAWC,EAAM,UACjB,cAAeA,EAAM,cACrB,gBAAiBA,EAAM,gBACvB,YAAaA,EAAM,YACnB,WAAYA,EAAM,WAClB,eAAgB,KAAK,MAAM3C,EAAA,EAAQf,CAAc,EACjD,kBAAmBC,EAAoB,KAAK,MAAMc,EAAA,EAAQb,CAAmB,EAC7E,mBAAoBC,EAAsBY,EAAA,EAAQX,EAClD,SAAUsD,EAAM,SAChB,cAAAC,EACA,eAAgBA,EAAgB,KAAK,MAAM5C,EAAA,EAAQP,CAAc,EAAI,MAAA,CACtE,CACH"}
|
|
1
|
+
{"version":3,"file":"index.cjs67.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs68.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_tagGroup_m7mju_1",e="_tagInteractive_m7mju_8",a={tagGroup:t,tagInteractive:e};exports.default=a;exports.tagGroup=t;exports.tagInteractive=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs68.js.map
|
package/dist/index.cjs69.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs38.js"),n=require("react"),u=require("./index.cjs389.js"),o=require("./index.cjs82.js"),i=require("./index.cjs11.js");function s({tag:e,baseTagProps:t}){return o.isTagGroupItem(e)?e.href?r.jsxRuntimeExports.jsx(i.Tag,{...t,href:e.href,children:e.label}):e.onClick?r.jsxRuntimeExports.jsx(u.TagGroupItemButton,{tag:e,baseTagProps:t}):r.jsxRuntimeExports.jsx(i.Tag,{...t,children:e.label}):typeof e=="object"&&n.isValidElement(e)?r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:e}):r.jsxRuntimeExports.jsx(i.Tag,{...t,children:e})}exports.TagGroupItemView=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs69.js.map
|
package/dist/index.cjs69.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs69.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"index.cjs69.js","sources":["../src/components/primitives/TagGroup/components/TagGroupItemView.tsx"],"sourcesContent":["import React from \"react\";\nimport { Tag } from \"../../Tag\";\nimport { TagGroupItemButton } from \"./TagGroupItemButton\";\nimport { isTagGroupItem, type TagGroupTag, type TagGroupBaseTagProps } from \"../types\";\n\nexport interface TagGroupItemViewProps {\n tag: TagGroupTag;\n baseTagProps: TagGroupBaseTagProps;\n}\n\nexport function TagGroupItemView({ tag, baseTagProps }: TagGroupItemViewProps) {\n if (isTagGroupItem(tag)) {\n if (tag.href) {\n return (\n <Tag {...baseTagProps} href={tag.href}>\n {tag.label}\n </Tag>\n );\n }\n if (tag.onClick) {\n return <TagGroupItemButton tag={tag} baseTagProps={baseTagProps} />;\n }\n return (\n <Tag {...baseTagProps}>\n {tag.label}\n </Tag>\n );\n }\n\n if (typeof tag === \"object\" && React.isValidElement(tag)) {\n return <>{tag}</>;\n }\n\n return <Tag {...baseTagProps}>{tag}</Tag>;\n}\n"],"names":["TagGroupItemView","tag","baseTagProps","isTagGroupItem","jsx","Tag","TagGroupItemButton","React"],"mappings":"+OAUO,SAASA,EAAiB,CAAE,IAAAC,EAAK,aAAAC,GAAuC,CAC7E,OAAIC,EAAAA,eAAeF,CAAG,EAChBA,EAAI,KAEJG,wBAACC,EAAAA,KAAK,GAAGH,EAAc,KAAMD,EAAI,KAC9B,WAAI,KAAA,CACP,EAGAA,EAAI,QACCG,EAAAA,kBAAAA,IAACE,EAAAA,mBAAA,CAAmB,IAAAL,EAAU,aAAAC,CAAA,CAA4B,EAGjEE,EAAAA,kBAAAA,IAACC,EAAAA,IAAA,CAAK,GAAGH,EACN,WAAI,MACP,EAIA,OAAOD,GAAQ,UAAYM,EAAM,eAAeN,CAAG,wDAC3C,SAAAA,CAAA,CAAI,EAGTG,EAAAA,kBAAAA,IAACC,EAAAA,IAAA,CAAK,GAAGH,EAAe,SAAAD,EAAI,CACrC"}
|
package/dist/index.cjs70.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs38.js"),t=require("./index.cjs415.js"),o=({decorative:e=!0,...n})=>r.jsxRuntimeExports.jsx(t,{"aria-hidden":e,...n});exports.ChevronUpIcon=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs70.js.map
|
package/dist/index.cjs70.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs70.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs70.js","sources":["../src/components/primitives/Icon/Icons/lucide/ChevronUpIcon.tsx"],"sourcesContent":["import React from \"react\";\nimport { ChevronUp, type LucideProps } from \"lucide-react\";\n\nexport const ChevronUpIcon: React.FC<LucideProps & { decorative?: boolean }> = ({\n decorative = true,\n ...props\n}) => <ChevronUp aria-hidden={decorative} {...props} />;\n"],"names":["ChevronUpIcon","decorative","props","jsx","ChevronUp"],"mappings":"gKAGaA,EAAkE,CAAC,CAC9E,WAAAC,EAAa,GACb,GAAGC,CACL,IAAMC,EAAAA,kBAAAA,IAACC,EAAA,CAAU,cAAaH,EAAa,GAAGC,CAAA,CAAO"}
|
package/dist/index.cjs71.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_root_1k5u2_1",t="_title_1k5u2_7",l="_list_1k5u2_13",i="_item_1k5u2_20",_="_item--level3_1k5u2_25",v="_link_1k5u2_25",k="_item--level4_1k5u2_29",m="_item--level5_1k5u2_33",n="_item--level6_1k5u2_37",o="_link--active_1k5u2_64",u="_linkText_1k5u2_64",s={root:e,title:t,list:l,item:i,"item--level3":"_item--level3_1k5u2_25",itemLevel3:_,link:v,"item--level4":"_item--level4_1k5u2_29",itemLevel4:k,"item--level5":"_item--level5_1k5u2_33",itemLevel5:m,"item--level6":"_item--level6_1k5u2_37",itemLevel6:n,"link--active":"_link--active_1k5u2_64",linkActive:o,linkText:u};exports.default=s;exports.item=i;exports.itemLevel3=_;exports.itemLevel4=k;exports.itemLevel5=m;exports.itemLevel6=n;exports.link=v;exports.linkActive=o;exports.linkText=u;exports.list=l;exports.root=e;exports.title=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs71.js.map
|
package/dist/index.cjs72.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_root_13e6p_1",t="_root--disabled_13e6p_10",c="_input_13e6p_15",n="_control_13e6p_26",l="_control--sm_13e6p_44",e="_control--md_13e6p_49",r="_control--lg_13e6p_54",_="_control--checkbox_13e6p_59",s="_control--radio_13e6p_63",d="_content_13e6p_123",i="_label_13e6p_129",p="_description_13e6p_135",a={root:o,"root--disabled":"_root--disabled_13e6p_10",rootDisabled:t,input:c,control:n,"control--sm":"_control--sm_13e6p_44",controlSm:l,"control--md":"_control--md_13e6p_49",controlMd:e,"control--lg":"_control--lg_13e6p_54",controlLg:r,"control--checkbox":"_control--checkbox_13e6p_59",controlCheckbox:_,"control--radio":"_control--radio_13e6p_63",controlRadio:s,content:d,label:i,description:p};exports.content=d;exports.control=n;exports.controlCheckbox=_;exports.controlLg=r;exports.controlMd=e;exports.controlRadio=s;exports.controlSm=l;exports.default=a;exports.description=p;exports.input=c;exports.label=i;exports.root=o;exports.rootDisabled=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs72.js.map
|
package/dist/index.cjs73.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_icon_1se7w_1",o={icon:e,"icon--custom":"_icon--custom_1se7w_9"};exports.default=o;exports.icon=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs73.js.map
|
package/dist/index.cjs74.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_callout_1vzc5_1",c="_callout--tone-info_1vzc5_16",t="_callout--tone-warning_1vzc5_23",n="_callout--tone-success_1vzc5_30",l="_icon_1vzc5_37",e="_iconSvg_1vzc5_49",u="_text_1vzc5_55",a={callout:o,"callout--tone-info":"_callout--tone-info_1vzc5_16",calloutToneInfo:c,"callout--tone-warning":"_callout--tone-warning_1vzc5_23",calloutToneWarning:t,"callout--tone-success":"_callout--tone-success_1vzc5_30",calloutToneSuccess:n,icon:l,iconSvg:e,text:u};exports.callout=o;exports.calloutToneInfo=c;exports.calloutToneSuccess=n;exports.calloutToneWarning=t;exports.default=a;exports.icon=l;exports.iconSvg=e;exports.text=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs74.js.map
|
package/dist/index.cjs74.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs74.js","sources":["../src/components/content/ArticlePreview/components/ArticlePreviewContent/ArticlePreviewContent.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { Typography } from '../../../../primitives/Typography';\nimport { EyeIcon, FileTextIcon } from '../../../../primitives/Icon/Icons';\nimport { AnimatedEyeIcon } from './AnimatedEyeIcon';\nimport type { ArticlePreviewAuthor } from '../../ArticlePreview';\nimport { AnimatedClockIcon } from './AnimatedClockIcon';\nimport styles from './ArticlePreviewContent.module.pcss';\n\nexport type ArticlePreviewContentView = 'card' | 'row';\n\nexport interface ArticlePreviewContentProps {\n title: string;\n description?: string;\n viewsCount?: number;\n readingTimeMinutes?: number;\n author?: ArticlePreviewAuthor;\n imageUrl?: string;\n imageAlt?: string;\n formattedDate: string;\n view: ArticlePreviewContentView;\n tags?: React.ReactNode;\n href?: string;\n className?: string;\n}\n\nfunction formatViews(count: number): string {\n if (count >= 1_000_000) return `${(count / 1_000_000).toFixed(1)}M`;\n if (count >= 1_000) return `${(count / 1_000).toFixed(1)}K`;\n return String(count);\n}\n\nfunction formatReadingTime(minutes: number): string {\n if (minutes < 60) return `${minutes} мин`;\n const h = Math.floor(minutes / 60);\n const m = minutes % 60;\n return m > 0 ? `${h} ч ${m} мин` : `${h} ч`;\n}\n\nexport function ArticlePreviewContent({\n title,\n description,\n viewsCount,\n readingTimeMinutes,\n author,\n imageUrl,\n imageAlt,\n formattedDate,\n view,\n tags,\n href,\n className,\n}: ArticlePreviewContentProps) {\n if (view === 'row') {\n return (\n <div className={cn(styles.content, styles['content--row'], className)}>\n <div className={styles.rowIcon} aria-hidden>\n <FileTextIcon size={24} strokeWidth={2} />\n </div>\n <div className={styles.rowBody}>\n {tags && (\n <div className={styles.tagsSlotRow} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n <Typography variant=\"h5\" as=\"h2\" className={styles.title} title={title}>\n {title}\n </Typography>\n <div className={styles.rowMeta}>\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <EyeIcon size={14} strokeWidth={2} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </div>\n </div>\n </div>\n );\n }\n\n if (view === 'card') {\n return (\n <div\n className={cn(\n styles.content,\n styles['content--card'],\n !imageUrl && styles['content--card-no-image'],\n className\n )}\n >\n <div className={styles.cardBody}>\n {author ? (\n <div className={styles.author} onClick={(e) => e.stopPropagation()}>\n {author.avatarUrl ? (\n <img\n src={author.avatarUrl}\n alt=\"\"\n className={styles.authorAvatar}\n width={32}\n height={32}\n />\n ) : (\n <div className={styles.authorAvatarPlaceholder} aria-hidden>\n {author.name.charAt(0).toUpperCase()}\n </div>\n )}\n <Typography variant=\"caption\" className={styles.authorName}>\n {author.name}\n </Typography>\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n </div>\n ) : (\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n )}\n <Typography variant=\"h5\" as=\"h2\" className={styles.title} title={title}>\n {title}\n </Typography>\n {description && (\n <Typography variant=\"caption\" className={styles.description}>\n {description}\n </Typography>\n )}\n <div className={styles.cardFooter}>\n {tags && (\n <div className={styles.tagsSlotCard} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n {href ? (\n <a href={href} className={styles.meta}>\n {readingTimeMinutes != null && (\n <span className={styles.readingTime} title=\"Время чтения\">\n <AnimatedClockIcon size={14} className={styles.clockIcon} />\n <span>{formatReadingTime(readingTimeMinutes)}</span>\n </span>\n )}\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <AnimatedEyeIcon size={14} className={styles.eyeIcon} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </a>\n ) : (\n <div className={styles.meta}>\n {readingTimeMinutes != null && (\n <span className={styles.readingTime} title=\"Время чтения\">\n <AnimatedClockIcon size={14} className={styles.clockIcon} />\n <span>{formatReadingTime(readingTimeMinutes)}</span>\n </span>\n )}\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <AnimatedEyeIcon size={14} className={styles.eyeIcon} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </div>\n )}\n </div>\n </div>\n {imageUrl && (\n <div className={styles.previewWrap}>\n <img\n src={imageUrl}\n alt={imageAlt || title}\n className={styles.previewImage}\n decoding=\"async\"\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n );\n }\n\n return null;\n}\n\nArticlePreviewContent.displayName = 'ArticlePreviewContent';\n"],"names":["formatViews","count","formatReadingTime","minutes","h","m","ArticlePreviewContent","title","description","viewsCount","readingTimeMinutes","author","imageUrl","imageAlt","formattedDate","view","tags","href","className","jsxs","cn","styles","jsx","FileTextIcon","e","Typography","EyeIcon","AnimatedClockIcon","AnimatedEyeIcon"],"mappings":"uVA0BA,SAASA,EAAYC,EAAuB,CAC1C,OAAIA,GAAS,IAAkB,IAAIA,EAAQ,KAAW,QAAQ,CAAC,CAAC,IAC5DA,GAAS,IAAc,IAAIA,EAAQ,KAAO,QAAQ,CAAC,CAAC,IACjD,OAAOA,CAAK,CACrB,CAEA,SAASC,EAAkBC,EAAyB,CAClD,GAAIA,EAAU,GAAI,MAAO,GAAGA,CAAO,OACnC,MAAMC,EAAI,KAAK,MAAMD,EAAU,EAAE,EAC3BE,EAAIF,EAAU,GACpB,OAAOE,EAAI,EAAI,GAAGD,CA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M,EAAAA,gBAAA,CAAgB,KAAM,GAAI,UAAWP,EAAAA,QAAO,QAAS,EACtDC,EAAAA,kBAAAA,IAAC,OAAA,CAAM,SAAAtB,EAAYS,CAAU,CAAA,CAAE,CAAA,CAAA,CACjC,CAAA,CAAA,CAEJ,CAAA,CAAA,CAEJ,CAAA,EACF,EACCG,GACCU,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWD,UAAO,YACrB,SAAAC,EAAAA,kBAAAA,IAAC,MAAA,CACC,IAAKV,EACL,IAAKC,GAAYN,EACjB,UAAWc,EAAAA,QAAO,aAClB,SAAS,QACT,QAAQ,MAAA,CAAA,CACV,CACF,CAAA,CAAA,CAAA,EAMD,IACT,CAEAf,EAAsB,YAAc"}
|
|
1
|
+
{"version":3,"file":"index.cjs74.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs76.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_root_iwlyv_1",t="_root--interactive_iwlyv_16",r="_cardLink_iwlyv_20",e="_root--card_iwlyv_41",i="_root--row_iwlyv_50",_={root:o,"root--interactive":"_root--interactive_iwlyv_16",rootInteractive:t,cardLink:r,"root--card":"_root--card_iwlyv_41",rootCard:e,"root--row":"_root--row_iwlyv_50",rootRow:i};exports.cardLink=r;exports.default=_;exports.root=o;exports.rootCard=e;exports.rootInteractive=t;exports.rootRow=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs76.js.map
|
package/dist/index.cjs77.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs38.js"),h=require("./index.cjs44.js"),f=require("./index.cjs391.js"),E=require("./index.cjs392.js"),s=require("./index.cjs393.js"),v=require("./index.cjs394.js"),n=require("./index.cjs9.js"),g=require("./index.cjs395.js");function u(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:String(t)}function R(t){if(t<60)return`${t} мин`;const r=Math.floor(t/60),a=t%60;return a>0?`${r} ч ${a} мин`:`${r} ч`}function N({title:t,description:r,viewsCount:a,readingTimeMinutes:o,author:i,imageUrl:x,imageAlt:y,formattedDate:d,view:m,tags:c,href:p,className:j}){return m==="row"?e.jsxRuntimeExports.jsxs("div",{className:h(s.default.content,s.default["content--row"],j),children:[e.jsxRuntimeExports.jsx("div",{className:s.default.rowIcon,"aria-hidden":!0,children:e.jsxRuntimeExports.jsx(v.FileTextIcon,{size:24,strokeWidth:2})}),e.jsxRuntimeExports.jsxs("div",{className:s.default.rowBody,children:[c&&e.jsxRuntimeExports.jsx("div",{className:s.default.tagsSlotRow,onClick:l=>l.stopPropagation(),children:c}),e.jsxRuntimeExports.jsx(n.Typography,{variant:"h5",as:"h2",className:s.default.title,title:t,children:t}),e.jsxRuntimeExports.jsxs("div",{className:s.default.rowMeta,children:[e.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:s.default.date,children:d}),a!=null&&e.jsxRuntimeExports.jsxs("span",{className:s.default.views,title:"Просмотры",children:[e.jsxRuntimeExports.jsx(g.EyeIcon,{size:14,strokeWidth:2}),e.jsxRuntimeExports.jsx("span",{children:u(a)})]})]})]})]}):m==="card"?e.jsxRuntimeExports.jsxs("div",{className:h(s.default.content,s.default["content--card"],!x&&s.default["content--card-no-image"],j),children:[e.jsxRuntimeExports.jsxs("div",{className:s.default.cardBody,children:[i?e.jsxRuntimeExports.jsxs("div",{className:s.default.author,onClick:l=>l.stopPropagation(),children:[i.avatarUrl?e.jsxRuntimeExports.jsx("img",{src:i.avatarUrl,alt:"",className:s.default.authorAvatar,width:32,height:32}):e.jsxRuntimeExports.jsx("div",{className:s.default.authorAvatarPlaceholder,"aria-hidden":!0,children:i.name.charAt(0).toUpperCase()}),e.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:s.default.authorName,children:i.name}),e.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:s.default.date,children:d})]}):e.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:s.default.date,children:d}),e.jsxRuntimeExports.jsx(n.Typography,{variant:"h5",as:"h2",className:s.default.title,title:t,children:t}),r&&e.jsxRuntimeExports.jsx(n.Typography,{variant:"caption",className:s.default.description,children:r}),e.jsxRuntimeExports.jsxs("div",{className:s.default.cardFooter,children:[c&&e.jsxRuntimeExports.jsx("div",{className:s.default.tagsSlotCard,onClick:l=>l.stopPropagation(),children:c}),p?e.jsxRuntimeExports.jsxs("a",{href:p,className:s.default.meta,children:[o!=null&&e.jsxRuntimeExports.jsxs("span",{className:s.default.readingTime,title:"Время чтения",children:[e.jsxRuntimeExports.jsx(E.AnimatedClockIcon,{size:14,className:s.default.clockIcon}),e.jsxRuntimeExports.jsx("span",{children:R(o)})]}),a!=null&&e.jsxRuntimeExports.jsxs("span",{className:s.default.views,title:"Просмотры",children:[e.jsxRuntimeExports.jsx(f.AnimatedEyeIcon,{size:14,className:s.default.eyeIcon}),e.jsxRuntimeExports.jsx("span",{children:u(a)})]})]}):e.jsxRuntimeExports.jsxs("div",{className:s.default.meta,children:[o!=null&&e.jsxRuntimeExports.jsxs("span",{className:s.default.readingTime,title:"Время чтения",children:[e.jsxRuntimeExports.jsx(E.AnimatedClockIcon,{size:14,className:s.default.clockIcon}),e.jsxRuntimeExports.jsx("span",{children:R(o)})]}),a!=null&&e.jsxRuntimeExports.jsxs("span",{className:s.default.views,title:"Просмотры",children:[e.jsxRuntimeExports.jsx(f.AnimatedEyeIcon,{size:14,className:s.default.eyeIcon}),e.jsxRuntimeExports.jsx("span",{children:u(a)})]})]})]})]}),x&&e.jsxRuntimeExports.jsx("div",{className:s.default.previewWrap,children:e.jsxRuntimeExports.jsx("img",{src:x,alt:y||t,className:s.default.previewImage,decoding:"async",loading:"lazy"})})]}):null}N.displayName="ArticlePreviewContent";exports.ArticlePreviewContent=N;
|
|
2
2
|
//# sourceMappingURL=index.cjs77.js.map
|
package/dist/index.cjs77.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs77.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs77.js","sources":["../src/components/content/ArticlePreview/components/ArticlePreviewContent/ArticlePreviewContent.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { Typography } from '../../../../primitives/Typography';\nimport { EyeIcon, FileTextIcon } from '../../../../primitives/Icon/Icons';\nimport { AnimatedEyeIcon } from './AnimatedEyeIcon';\nimport type { ArticlePreviewAuthor } from '../../ArticlePreview';\nimport { AnimatedClockIcon } from './AnimatedClockIcon';\nimport styles from './ArticlePreviewContent.module.pcss';\n\nexport type ArticlePreviewContentView = 'card' | 'row';\n\nexport interface ArticlePreviewContentProps {\n title: string;\n description?: string;\n viewsCount?: number;\n readingTimeMinutes?: number;\n author?: ArticlePreviewAuthor;\n imageUrl?: string;\n imageAlt?: string;\n formattedDate: string;\n view: ArticlePreviewContentView;\n tags?: React.ReactNode;\n href?: string;\n className?: string;\n}\n\nfunction formatViews(count: number): string {\n if (count >= 1_000_000) return `${(count / 1_000_000).toFixed(1)}M`;\n if (count >= 1_000) return `${(count / 1_000).toFixed(1)}K`;\n return String(count);\n}\n\nfunction formatReadingTime(minutes: number): string {\n if (minutes < 60) return `${minutes} мин`;\n const h = Math.floor(minutes / 60);\n const m = minutes % 60;\n return m > 0 ? `${h} ч ${m} мин` : `${h} ч`;\n}\n\nexport function ArticlePreviewContent({\n title,\n description,\n viewsCount,\n readingTimeMinutes,\n author,\n imageUrl,\n imageAlt,\n formattedDate,\n view,\n tags,\n href,\n className,\n}: ArticlePreviewContentProps) {\n if (view === 'row') {\n return (\n <div className={cn(styles.content, styles['content--row'], className)}>\n <div className={styles.rowIcon} aria-hidden>\n <FileTextIcon size={24} strokeWidth={2} />\n </div>\n <div className={styles.rowBody}>\n {tags && (\n <div className={styles.tagsSlotRow} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n <Typography variant=\"h5\" as=\"h2\" className={styles.title} title={title}>\n {title}\n </Typography>\n <div className={styles.rowMeta}>\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <EyeIcon size={14} strokeWidth={2} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </div>\n </div>\n </div>\n );\n }\n\n if (view === 'card') {\n return (\n <div\n className={cn(\n styles.content,\n styles['content--card'],\n !imageUrl && styles['content--card-no-image'],\n className\n )}\n >\n <div className={styles.cardBody}>\n {author ? (\n <div className={styles.author} onClick={(e) => e.stopPropagation()}>\n {author.avatarUrl ? (\n <img\n src={author.avatarUrl}\n alt=\"\"\n className={styles.authorAvatar}\n width={32}\n height={32}\n />\n ) : (\n <div className={styles.authorAvatarPlaceholder} aria-hidden>\n {author.name.charAt(0).toUpperCase()}\n </div>\n )}\n <Typography variant=\"caption\" className={styles.authorName}>\n {author.name}\n </Typography>\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n </div>\n ) : (\n <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n )}\n <Typography variant=\"h5\" as=\"h2\" className={styles.title} title={title}>\n {title}\n </Typography>\n {description && (\n <Typography variant=\"caption\" className={styles.description}>\n {description}\n </Typography>\n )}\n <div className={styles.cardFooter}>\n {tags && (\n <div className={styles.tagsSlotCard} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n {href ? (\n <a href={href} className={styles.meta}>\n {readingTimeMinutes != null && (\n <span className={styles.readingTime} title=\"Время чтения\">\n <AnimatedClockIcon size={14} className={styles.clockIcon} />\n <span>{formatReadingTime(readingTimeMinutes)}</span>\n </span>\n )}\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <AnimatedEyeIcon size={14} className={styles.eyeIcon} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </a>\n ) : (\n <div className={styles.meta}>\n {readingTimeMinutes != null && (\n <span className={styles.readingTime} title=\"Время чтения\">\n <AnimatedClockIcon size={14} className={styles.clockIcon} />\n <span>{formatReadingTime(readingTimeMinutes)}</span>\n </span>\n )}\n {viewsCount != null && (\n <span className={styles.views} title=\"Просмотры\">\n <AnimatedEyeIcon size={14} className={styles.eyeIcon} />\n <span>{formatViews(viewsCount)}</span>\n </span>\n )}\n </div>\n )}\n </div>\n </div>\n {imageUrl && (\n <div className={styles.previewWrap}>\n <img\n src={imageUrl}\n alt={imageAlt || title}\n className={styles.previewImage}\n decoding=\"async\"\n loading=\"lazy\"\n />\n </div>\n )}\n </div>\n );\n }\n\n return null;\n}\n\nArticlePreviewContent.displayName = 'ArticlePreviewContent';\n"],"names":["formatViews","count","formatReadingTime","minutes","h","m","ArticlePreviewContent","title","description","viewsCount","readingTimeMinutes","author","imageUrl","imageAlt","formattedDate","view","tags","href","className","jsxs","cn","styles","jsx","FileTextIcon","e","Typography","EyeIcon","AnimatedClockIcon","AnimatedEyeIcon"],"mappings":"uVA0BA,SAASA,EAAYC,EAAuB,CAC1C,OAAIA,GAAS,IAAkB,IAAIA,EAAQ,KAAW,QAAQ,CAAC,CAAC,IAC5DA,GAAS,IAAc,IAAIA,EAAQ,KAAO,QAAQ,CAAC,CAAC,IACjD,OAAOA,CAAK,CACrB,CAEA,SAASC,EAAkBC,EAAyB,CAClD,GAAIA,EAAU,GAAI,MAAO,GAAGA,CAAO,OACnC,MAAMC,EAAI,KAAK,MAAMD,EAAU,EAAE,EAC3BE,EAAIF,EAAU,GACpB,OAAOE,EAAI,EAAI,GAAGD,CAAC,MAAMC,CAAC,OAAS,GAAGD,CAAC,IACzC,CAEO,SAASE,EAAsB,C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EACtDC,EAAAA,kBAAAA,IAAC,OAAA,CAAM,SAAAtB,EAAYS,CAAU,CAAA,CAAE,CAAA,CAAA,CACjC,CAAA,CAAA,CAEJ,CAAA,CAAA,CAEJ,CAAA,EACF,EACCG,GACCU,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAWD,UAAO,YACrB,SAAAC,EAAAA,kBAAAA,IAAC,MAAA,CACC,IAAKV,EACL,IAAKC,GAAYN,EACjB,UAAWc,EAAAA,QAAO,aAClB,SAAS,QACT,QAAQ,MAAA,CAAA,CACV,CACF,CAAA,CAAA,CAAA,EAMD,IACT,CAEAf,EAAsB,YAAc"}
|
package/dist/index.cjs9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs38.js"),p=require("react"),f=require("./index.cjs44.js"),t=require("./index.
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs38.js"),p=require("react"),f=require("./index.cjs44.js"),t=require("./index.cjs57.js"),y=p.forwardRef(({variant:e="body",size:o,color:u,as:r,children:n,className:s,...a},d)=>{const l=p.useMemo(()=>r||(e.startsWith("h")?e:e==="body"?"p":"span"),[r,e]);return c.jsxRuntimeExports.jsx(l,{ref:d,"data-atme-ui":!0,className:f(t.default.typography,t.default[`typography--${e}`],o&&t.default[`typography--${o}`],u&&t.default[`typography--color-${u}`],s),...a,children:n})});y.displayName="Typography";exports.Typography=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs9.js.map
|
package/dist/index.esm10.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as e } from "./index.esm38.js";
|
|
3
3
|
import { forwardRef as g } from "react";
|
|
4
4
|
import d from "./index.esm44.js";
|
|
5
|
-
import a from "./index.
|
|
6
|
-
import { HashIcon as x } from "./index.
|
|
5
|
+
import a from "./index.esm54.js";
|
|
6
|
+
import { HashIcon as x } from "./index.esm55.js";
|
|
7
7
|
import { Typography as j } from "./index.esm9.js";
|
|
8
8
|
const y = g(
|
|
9
9
|
({
|
package/dist/index.esm11.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as s } from "./index.esm38.js";
|
|
3
3
|
import N, { forwardRef as g } from "react";
|
|
4
4
|
import R from "./index.esm44.js";
|
|
5
|
-
import a from "./index.
|
|
5
|
+
import a from "./index.esm53.js";
|
|
6
6
|
const h = g(function({ as: r, ...t }, e) {
|
|
7
7
|
return N.createElement(r, { ...t, ref: e });
|
|
8
8
|
}), y = g(
|
package/dist/index.esm12.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { j as d } from "./index.esm38.js";
|
|
3
3
|
import S, { useState as U, useMemo as k, useCallback as a } from "react";
|
|
4
4
|
import l from "./index.esm44.js";
|
|
5
|
-
import C from "./index.
|
|
6
|
-
import { TagGroupItemView as $ } from "./index.
|
|
5
|
+
import C from "./index.esm68.js";
|
|
6
|
+
import { TagGroupItemView as $ } from "./index.esm69.js";
|
|
7
7
|
import { Tag as E } from "./index.esm11.js";
|
|
8
|
-
import { ChevronUpIcon as o } from "./index.
|
|
8
|
+
import { ChevronUpIcon as o } from "./index.esm70.js";
|
|
9
9
|
const q = S.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
tags: i,
|