@atme-lab/ui-kit 0.1.4 → 0.1.6

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 CHANGED
@@ -151,45 +151,34 @@ git commit -m "feat: add Button component"
151
151
  git commit -m "fix: correct Input styles"
152
152
  ```
153
153
 
154
- ### Creating a Release
154
+ ### Creating a Release and Publishing to npm
155
155
 
156
- To create a release, use:
156
+ **1. Create a release** (bump version, update CHANGELOG, create tag and commit):
157
157
 
158
158
  ```bash
159
- # Automatic version detection based on commits
159
+ # Auto version from commits (patch/minor/major)
160
160
  pnpm release
161
161
 
162
- # Force minor release
162
+ # Or explicitly: minor
163
163
  pnpm release:minor
164
164
 
165
- # Force major release
165
+ # Or explicitly: major
166
166
  pnpm release:major
167
167
  ```
168
168
 
169
- The `pnpm release` command automatically:
170
-
171
- 1. Analyzes commits since the last release
172
- 2. Determines the version (patch/minor/major) based on commit types
173
- 3. Updates `package.json` with the new version
174
- 4. Generates/updates `CHANGELOG.md`
175
- 5. Creates a git tag (e.g., `v1.1.0`)
176
- 6. Creates a commit with the changes
177
-
178
- After creating a release:
169
+ **2. Push changes and tags to the repository:**
179
170
 
180
171
  ```bash
181
- # Push changes and tags
182
172
  git push --follow-tags
183
-
184
- # Publish to npm (if needed)
185
- npm publish
186
173
  ```
187
174
 
188
- ### Workflow
175
+ **3. Publish the package to npm:**
176
+
177
+ ```bash
178
+ pnpm publish
179
+ ```
189
180
 
190
- 1. **Development**: Create commits with the correct format (use `pnpm commit` for convenience)
191
- 2. **Release**: Run `pnpm release` when ready to create a release
192
- 3. **Publishing**: Push changes and tags, then publish to npm (if needed)
181
+ Before publishing, `prepublishOnly` runs `npm run build`: the `dist` folder is built and only the built output is published (see the `files` field in package.json). No need to run build manually.
193
182
 
194
183
  ## License
195
184
 
@@ -0,0 +1,35 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react");function Ve(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ot={exports:{}},Z={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Xt;function Ge(){if(Xt)return Z;Xt=1;var e=d,o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function u(_,y,v){var f,b={},w=null,j=null;v!==void 0&&(w=""+v),y.key!==void 0&&(w=""+y.key),y.ref!==void 0&&(j=y.ref);for(f in y)i.call(y,f)&&!n.hasOwnProperty(f)&&(b[f]=y[f]);if(_&&_.defaultProps)for(f in y=_.defaultProps,y)b[f]===void 0&&(b[f]=y[f]);return{$$typeof:o,type:_,key:w,ref:j,props:b,_owner:c.current}}return Z.Fragment=s,Z.jsx=u,Z.jsxs=u,Z}var Q={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var qt;function Je(){return qt||(qt=1,process.env.NODE_ENV!=="production"&&(function(){var e=d,o=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),_=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),S=Symbol.iterator,N="@@iterator";function L(t){if(t===null||typeof t!="object")return null;var r=S&&t[S]||t[N];return typeof r=="function"?r:null}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function k(t){{for(var r=arguments.length,a=new Array(r>1?r-1:0),p=1;p<r;p++)a[p-1]=arguments[p];I("error",t,a)}}function I(t,r,a){{var p=C.ReactDebugCurrentFrame,m=p.getStackAddendum();m!==""&&(r+="%s",a=a.concat([m]));var x=a.map(function(h){return String(h)});x.unshift("Warning: "+r),Function.prototype.apply.call(console[t],console,x)}}var H=!1,U=!1,X=!1,_e=!1,fe=!1,jt;jt=Symbol.for("react.module.reference");function de(t){return!!(typeof t=="string"||typeof t=="function"||t===i||t===n||fe||t===c||t===v||t===f||_e||t===j||H||U||X||typeof t=="object"&&t!==null&&(t.$$typeof===w||t.$$typeof===b||t.$$typeof===u||t.$$typeof===_||t.$$typeof===y||t.$$typeof===jt||t.getModuleId!==void 0))}function ye(t,r,a){var p=t.displayName;if(p)return p;var m=r.displayName||r.name||"";return m!==""?a+"("+m+")":a}function Et(t){return t.displayName||"Context"}function B(t){if(t==null)return null;if(typeof t.tag=="number"&&k("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case i:return"Fragment";case s:return"Portal";case n:return"Profiler";case c:return"StrictMode";case v:return"Suspense";case f:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _:var r=t;return Et(r)+".Consumer";case u:var a=t;return Et(a._context)+".Provider";case y:return ye(t,t.render,"ForwardRef");case b:var p=t.displayName||null;return p!==null?p:B(t.type)||"Memo";case w:{var m=t,x=m._payload,h=m._init;try{return B(h(x))}catch{return null}}}return null}var z=Object.assign,q=0,Rt,Ct,St,Tt,Ot,Pt,It;function Nt(){}Nt.__reactDisabledLog=!0;function ge(){{if(q===0){Rt=console.log,Ct=console.info,St=console.warn,Tt=console.error,Ot=console.group,Pt=console.groupCollapsed,It=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Nt,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}q++}}function he(){{if(q--,q===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},t,{value:Rt}),info:z({},t,{value:Ct}),warn:z({},t,{value:St}),error:z({},t,{value:Tt}),group:z({},t,{value:Ot}),groupCollapsed:z({},t,{value:Pt}),groupEnd:z({},t,{value:It})})}q<0&&k("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=C.ReactCurrentDispatcher,ct;function et(t,r,a){{if(ct===void 0)try{throw Error()}catch(m){var p=m.stack.trim().match(/\n( *(at )?)/);ct=p&&p[1]||""}return`
18
+ `+ct+t}}var lt=!1,rt;{var ve=typeof WeakMap=="function"?WeakMap:Map;rt=new ve}function At(t,r){if(!t||lt)return"";{var a=rt.get(t);if(a!==void 0)return a}var p;lt=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=it.current,it.current=null,ge();try{if(r){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(O){p=O}Reflect.construct(t,[],h)}else{try{h.call()}catch(O){p=O}t.call(h.prototype)}}else{try{throw Error()}catch(O){p=O}t()}}catch(O){if(O&&p&&typeof O.stack=="string"){for(var g=O.stack.split(`
19
+ `),T=p.stack.split(`
20
+ `),E=g.length-1,R=T.length-1;E>=1&&R>=0&&g[E]!==T[R];)R--;for(;E>=1&&R>=0;E--,R--)if(g[E]!==T[R]){if(E!==1||R!==1)do if(E--,R--,R<0||g[E]!==T[R]){var A=`
21
+ `+g[E].replace(" at new "," at ");return t.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",t.displayName)),typeof t=="function"&&rt.set(t,A),A}while(E>=1&&R>=0);break}}}finally{lt=!1,it.current=x,he(),Error.prepareStackTrace=m}var J=t?t.displayName||t.name:"",V=J?et(J):"";return typeof t=="function"&&rt.set(t,V),V}function me(t,r,a){return At(t,!1)}function be(t){var r=t.prototype;return!!(r&&r.isReactComponent)}function nt(t,r,a){if(t==null)return"";if(typeof t=="function")return At(t,be(t));if(typeof t=="string")return et(t);switch(t){case v:return et("Suspense");case f:return et("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case y:return me(t.render);case b:return nt(t.type,r,a);case w:{var p=t,m=p._payload,x=p._init;try{return nt(x(m),r,a)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Dt={},Wt=C.ReactDebugCurrentFrame;function at(t){if(t){var r=t._owner,a=nt(t.type,t._source,r?r.type:null);Wt.setExtraStackFrame(a)}else Wt.setExtraStackFrame(null)}function ke(t,r,a,p,m){{var x=Function.call.bind(K);for(var h in t)if(x(t,h)){var g=void 0;try{if(typeof t[h]!="function"){var T=Error((p||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}g=t[h](r,h,p,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){g=E}g&&!(g instanceof Error)&&(at(m),k("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",a,h,typeof g),at(null)),g instanceof Error&&!(g.message in Dt)&&(Dt[g.message]=!0,at(m),k("Failed %s type: %s",a,g.message),at(null))}}}var xe=Array.isArray;function ut(t){return xe(t)}function we(t){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&t[Symbol.toStringTag]||t.constructor.name||"Object";return a}}function je(t){try{return $t(t),!1}catch{return!0}}function $t(t){return""+t}function Bt(t){if(je(t))return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",we(t)),$t(t)}var Ft=C.ReactCurrentOwner,Ee={key:!0,ref:!0,__self:!0,__source:!0},Mt,Lt;function Re(t){if(K.call(t,"ref")){var r=Object.getOwnPropertyDescriptor(t,"ref").get;if(r&&r.isReactWarning)return!1}return t.ref!==void 0}function Ce(t){if(K.call(t,"key")){var r=Object.getOwnPropertyDescriptor(t,"key").get;if(r&&r.isReactWarning)return!1}return t.key!==void 0}function Se(t,r){typeof t.ref=="string"&&Ft.current}function Te(t,r){{var a=function(){Mt||(Mt=!0,k("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(t,"key",{get:a,configurable:!0})}}function Oe(t,r){{var a=function(){Lt||(Lt=!0,k("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(t,"ref",{get:a,configurable:!0})}}var Pe=function(t,r,a,p,m,x,h){var g={$$typeof:o,type:t,key:r,ref:a,props:h,_owner:x};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Ie(t,r,a,p,m){{var x,h={},g=null,T=null;a!==void 0&&(Bt(a),g=""+a),Ce(r)&&(Bt(r.key),g=""+r.key),Re(r)&&(T=r.ref,Se(r,m));for(x in r)K.call(r,x)&&!Ee.hasOwnProperty(x)&&(h[x]=r[x]);if(t&&t.defaultProps){var E=t.defaultProps;for(x in E)h[x]===void 0&&(h[x]=E[x])}if(g||T){var R=typeof t=="function"?t.displayName||t.name||"Unknown":t;g&&Te(h,R),T&&Oe(h,R)}return Pe(t,g,T,m,p,Ft.current,h)}}var pt=C.ReactCurrentOwner,zt=C.ReactDebugCurrentFrame;function G(t){if(t){var r=t._owner,a=nt(t.type,t._source,r?r.type:null);zt.setExtraStackFrame(a)}else zt.setExtraStackFrame(null)}var _t;_t=!1;function ft(t){return typeof t=="object"&&t!==null&&t.$$typeof===o}function Vt(){{if(pt.current){var t=B(pt.current.type);if(t)return`
22
+
23
+ Check the render method of \``+t+"`."}return""}}function Ne(t){return""}var Gt={};function Ae(t){{var r=Vt();if(!r){var a=typeof t=="string"?t:t.displayName||t.name;a&&(r=`
24
+
25
+ Check the top-level render call using <`+a+">.")}return r}}function Jt(t,r){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var a=Ae(r);if(Gt[a])return;Gt[a]=!0;var p="";t&&t._owner&&t._owner!==pt.current&&(p=" It was passed a child from "+B(t._owner.type)+"."),G(t),k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,p),G(null)}}function Yt(t,r){{if(typeof t!="object")return;if(ut(t))for(var a=0;a<t.length;a++){var p=t[a];ft(p)&&Jt(p,r)}else if(ft(t))t._store&&(t._store.validated=!0);else if(t){var m=L(t);if(typeof m=="function"&&m!==t.entries)for(var x=m.call(t),h;!(h=x.next()).done;)ft(h.value)&&Jt(h.value,r)}}}function De(t){{var r=t.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===b))a=r.propTypes;else return;if(a){var p=B(r);ke(a,t.props,"prop",p,t)}else if(r.PropTypes!==void 0&&!_t){_t=!0;var m=B(r);k("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&k("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function We(t){{for(var r=Object.keys(t.props),a=0;a<r.length;a++){var p=r[a];if(p!=="children"&&p!=="key"){G(t),k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),G(null);break}}t.ref!==null&&(G(t),k("Invalid attribute `ref` supplied to `React.Fragment`."),G(null))}}var Ht={};function Ut(t,r,a,p,m,x){{var h=de(t);if(!h){var g="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=Ne();T?g+=T:g+=Vt();var E;t===null?E="null":ut(t)?E="array":t!==void 0&&t.$$typeof===o?(E="<"+(B(t.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):E=typeof t,k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,g)}var R=Ie(t,r,a,m,x);if(R==null)return R;if(h){var A=r.children;if(A!==void 0)if(p)if(ut(A)){for(var J=0;J<A.length;J++)Yt(A[J],t);Object.freeze&&Object.freeze(A)}else k("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Yt(A,t)}if(K.call(r,"key")){var V=B(t),O=Object.keys(r).filter(function(ze){return ze!=="key"}),dt=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Ht[V+dt]){var Le=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";k(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,dt,V,Le,V),Ht[V+dt]=!0}}return t===i?We(R):De(R),R}}function $e(t,r,a){return Ut(t,r,a,!0)}function Be(t,r,a){return Ut(t,r,a,!1)}var Fe=Be,Me=$e;Q.Fragment=i,Q.jsx=Fe,Q.jsxs=Me})()),Q}var Kt;function Ye(){return Kt||(Kt=1,process.env.NODE_ENV==="production"?ot.exports=Ge():ot.exports=Je()),ot.exports}var l=Ye(),yt={exports:{}};/*!
31
+ Copyright (c) 2018 Jed Watson.
32
+ Licensed under the MIT License (MIT), see
33
+ http://jedwatson.github.io/classnames
34
+ */var Zt;function He(){return Zt||(Zt=1,(function(e){(function(){var o={}.hasOwnProperty;function s(){for(var n="",u=0;u<arguments.length;u++){var _=arguments[u];_&&(n=c(n,i(_)))}return n}function i(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return s.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var u="";for(var _ in n)o.call(n,_)&&n[_]&&(u=c(u,_));return u}function c(n,u){return u?n?n+" "+u:n+u:n}e.exports?(s.default=s,e.exports=s):window.classNames=s})()})(yt)),yt.exports}var Ue=He();const P=Ve(Ue),Xe="_typography_11hr8_1",qe="_typography--h1_11hr8_8",Ke="_typography--h2_11hr8_15",Ze="_typography--h3_11hr8_22",Qe="_typography--h4_11hr8_29",tr="_typography--h5_11hr8_36",er="_typography--h6_11hr8_43",rr="_typography--body_11hr8_50",nr="_typography--caption_11hr8_57",ar="_typography--overline_11hr8_64",or="_typography--xs_11hr8_74",sr="_typography--sm_11hr8_78",ir="_typography--base_11hr8_82",cr="_typography--lg_11hr8_86",lr="_typography--xl_11hr8_90",ur="_typography--2xl_11hr8_94",pr="_typography--3xl_11hr8_98",_r="_typography--4xl_11hr8_102",fr="_typography--color-primary_11hr8_107",dr="_typography--color-secondary_11hr8_111",yr="_typography--color-disabled_11hr8_115",st={typography:Xe,"typography--h1":"_typography--h1_11hr8_8",typographyH1:qe,"typography--h2":"_typography--h2_11hr8_15",typographyH2:Ke,"typography--h3":"_typography--h3_11hr8_22",typographyH3:Ze,"typography--h4":"_typography--h4_11hr8_29",typographyH4:Qe,"typography--h5":"_typography--h5_11hr8_36",typographyH5:tr,"typography--h6":"_typography--h6_11hr8_43",typographyH6:er,"typography--body":"_typography--body_11hr8_50",typographyBody:rr,"typography--caption":"_typography--caption_11hr8_57",typographyCaption:nr,"typography--overline":"_typography--overline_11hr8_64",typographyOverline:ar,"typography--xs":"_typography--xs_11hr8_74",typographyXs:or,"typography--sm":"_typography--sm_11hr8_78",typographySm:sr,"typography--base":"_typography--base_11hr8_82",typographyBase:ir,"typography--lg":"_typography--lg_11hr8_86",typographyLg:cr,"typography--xl":"_typography--xl_11hr8_90",typographyXl:lr,"typography--2xl":"_typography--2xl_11hr8_94",typography2Xl:ur,"typography--3xl":"_typography--3xl_11hr8_98",typography3Xl:pr,"typography--4xl":"_typography--4xl_11hr8_102",typography4Xl:_r,"typography--color-primary":"_typography--color-primary_11hr8_107",typographyColorPrimary:fr,"typography--color-secondary":"_typography--color-secondary_11hr8_111",typographyColorSecondary:dr,"typography--color-disabled":"_typography--color-disabled_11hr8_115",typographyColorDisabled:yr},Y=d.forwardRef(({variant:e="body",size:o,color:s,as:i,children:c,className:n,...u},_)=>{const v=d.useMemo(()=>i||(e.startsWith("h")?e:e==="body"?"p":"span"),[i,e]);return l.jsx(v,{ref:_,className:P(st.typography,st[`typography--${e}`],o&&st[`typography--${o}`],s&&st[`typography--color-${s}`],n),...u,children:c})});Y.displayName="Typography";const gr="_tag_10ar5_1",hr="_tag--link_10ar5_13",vr="_tagContent_10ar5_23",mr="_tagIcon_10ar5_28",br="_tagClose_10ar5_34",kr="_tag--sm_10ar5_60",xr="_tag--md_10ar5_65",wr="_tag--lg_10ar5_70",jr="_tag--primary_10ar5_76",Er="_tag--secondary_10ar5_81",Rr="_tag--success_10ar5_86",Cr="_tag--warning_10ar5_91",Sr="_tag--error_10ar5_96",Tr="_tag--neutral_10ar5_101",F={tag:gr,"tag--link":"_tag--link_10ar5_13",tagLink:hr,tagContent:vr,tagIcon:mr,tagClose:br,"tag--sm":"_tag--sm_10ar5_60",tagSm:kr,"tag--md":"_tag--md_10ar5_65",tagMd:xr,"tag--lg":"_tag--lg_10ar5_70",tagLg:wr,"tag--primary":"_tag--primary_10ar5_76",tagPrimary:jr,"tag--secondary":"_tag--secondary_10ar5_81",tagSecondary:Er,"tag--success":"_tag--success_10ar5_86",tagSuccess:Rr,"tag--warning":"_tag--warning_10ar5_91",tagWarning:Cr,"tag--error":"_tag--error_10ar5_96",tagError:Sr,"tag--neutral":"_tag--neutral_10ar5_101",tagNeutral:Tr},Or=d.forwardRef(function({as:o,...s},i){return d.createElement(o,{...s,ref:i})}),M=d.forwardRef(({variant:e="primary",size:o="md",icon:s,iconPosition:i="left",closeable:c=!1,onClose:n,children:u,className:_,href:y,...v},f)=>{const b=S=>{S.stopPropagation(),n==null||n(S)},w=y?{...v,href:y,as:"a"}:{...v,as:"span"},j=P(F.tag,F[`tag--${e}`],F[`tag--${o}`],y&&F["tag--link"],_);return l.jsxs(Or,{ref:f,className:j,...w,children:[s&&i==="left"&&l.jsx("span",{className:F.tagIcon,children:s}),l.jsx("span",{className:F.tagContent,children:u}),s&&i==="right"&&l.jsx("span",{className:F.tagIcon,children:s}),c&&l.jsx("button",{type:"button",className:F.tagClose,onClick:b,"aria-label":"Close tag",children:"×"})]})});M.displayName="Tag";const Pr="_tagGroup_1b8va_1",Ir={tagGroup:Pr},Nr=e=>e.stopPropagation();function Ar({tag:e,baseTagProps:o}){const s=d.useCallback(c=>{var n;Nr(c),(n=e.onClick)==null||n.call(e,c)},[e.onClick]),i=d.useCallback(c=>{var n;(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),(n=e.onClick)==null||n.call(e,c))},[e.onClick]);return l.jsx(M,{...o,role:"button",tabIndex:0,onClick:s,onKeyDown:i,style:{cursor:"pointer"},children:e.label})}function Dr(e){return typeof e=="object"&&e!==null&&"label"in e}function Wr({tag:e,baseTagProps:o}){return Dr(e)?e.href?l.jsx(M,{...o,href:e.href,children:e.label}):e.onClick?l.jsx(Ar,{tag:e,baseTagProps:o}):l.jsx(M,{...o,children:e.label}):typeof e=="object"&&d.isValidElement(e)?l.jsx(l.Fragment,{children:e}):l.jsx(M,{...o,children:e})}const Qt=d.forwardRef(({tags:e,maxVisible:o=5,overflowTagProps:s,collapseTagProps:i,collapseText:c="Свернуть",size:n,variant:u,className:_,...y},v)=>{const[f,b]=d.useState(!1),{visibleTags:w,hiddenCount:j}=d.useMemo(()=>e.length<=o||f?{visibleTags:e,hiddenCount:0}:{visibleTags:e.slice(0,o),hiddenCount:e.length-o},[e,o,f]),S=d.useCallback(()=>b(!0),[]),N=d.useCallback(()=>b(!1),[]),L=d.useCallback(I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),S())},[S]),C=d.useCallback(I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),N())},[N]),k=d.useMemo(()=>({...n&&{size:n},...u&&{variant:u}}),[n,u]);return l.jsxs("div",{ref:v,className:P(Ir.tagGroup,_),...y,children:[w.map((I,H)=>l.jsx(Wr,{tag:I,baseTagProps:k},H)),!f&&j>0&&l.jsxs(M,{...k,...s,onClick:S,onKeyDown:L,role:"button",tabIndex:0,"aria-label":`Показать еще ${j} тегов`,style:{cursor:"pointer",...s==null?void 0:s.style},children:["+",j]}),f&&l.jsx(M,{...k,...i,onClick:N,onKeyDown:C,role:"button",tabIndex:0,"aria-label":c,style:{cursor:"pointer",...i==null?void 0:i.style},children:c})]})});Qt.displayName="TagGroup";const $r="_button_t5esz_1",Br="_buttonContent_t5esz_32",Fr="_buttonIcon_t5esz_37",Mr="_buttonSpinner_t5esz_43",Lr="_spin_t5esz_1",zr="_button--sm_t5esz_60",Vr="_button--md_t5esz_66",Gr="_button--lg_t5esz_72",Jr="_button--fullWidth_t5esz_78",Yr="_button--primary_t5esz_83",Hr="_button--secondary_t5esz_106",Ur="_button--outline_t5esz_129",Xr="_button--ghost_t5esz_152",qr="_button--loading_t5esz_181",W={button:$r,buttonContent:Br,buttonIcon:Fr,buttonSpinner:Mr,spin:Lr,"button--sm":"_button--sm_t5esz_60",buttonSm:zr,"button--md":"_button--md_t5esz_66",buttonMd:Vr,"button--lg":"_button--lg_t5esz_72",buttonLg:Gr,"button--fullWidth":"_button--fullWidth_t5esz_78",buttonFullWidth:Jr,"button--primary":"_button--primary_t5esz_83",buttonPrimary:Yr,"button--secondary":"_button--secondary_t5esz_106",buttonSecondary:Hr,"button--outline":"_button--outline_t5esz_129",buttonOutline:Ur,"button--ghost":"_button--ghost_t5esz_152",buttonGhost:Xr,"button--loading":"_button--loading_t5esz_181",buttonLoading:qr},te=d.forwardRef(({variant:e="primary",size:o="md",startIcon:s,endIcon:i,fullWidth:c=!1,loading:n=!1,disabled:u,children:_,className:y,...v},f)=>{const b=u||n;return l.jsxs("button",{ref:f,type:"button",className:P(W.button,W[`button--${e}`],W[`button--${o}`],c&&W["button--fullWidth"],n&&W["button--loading"],y),disabled:b,"aria-busy":n,"aria-disabled":b,...v,children:[n&&l.jsx("span",{className:W.buttonSpinner,"aria-hidden":"true"}),s&&!n&&l.jsx("span",{className:W.buttonIcon,children:s}),l.jsx("span",{className:W.buttonContent,children:_}),i&&!n&&l.jsx("span",{className:W.buttonIcon,children:i})]})});te.displayName="Button";const Kr="_icon_1se7w_1",gt={icon:Kr,"icon--custom":"_icon--custom_1se7w_9"},xt=d.forwardRef(({color:e="currentColor",children:o,svg:s,name:i,decorative:c=!1,className:n,viewBox:u="0 0 24 24",fill:_="none",xmlns:y="http://www.w3.org/2000/svg",...v},f)=>{if(s){const b=s.replace(/<svg[^>]*>/,"").replace(/<\/svg>/,"");return l.jsx("svg",{ref:f,className:P(gt.icon,gt["icon--custom"],n),viewBox:u,xmlns:y,"aria-hidden":c,"aria-label":!c&&i?i:void 0,role:c?void 0:"img",dangerouslySetInnerHTML:{__html:b},...v})}return l.jsx("svg",{ref:f,className:P(gt.icon,n),viewBox:u,fill:_,xmlns:y,color:e,"aria-hidden":c,"aria-label":!c&&i?i:void 0,role:c?void 0:"img",...v,children:o})});xt.displayName="Icon";const Zr="_labelMenuItem_fjxw4_1",Qr="_icon_fjxw4_32",tn="_label_fjxw4_1",ht={labelMenuItem:Zr,icon:Qr,label:tn},ee=({label:e,icon:o,onClick:s,disabled:i=!1,className:c,iconSize:n="50px"})=>l.jsxs("button",{className:P(ht.labelMenuItem,c),onClick:s,disabled:i,children:[l.jsx("div",{className:ht.icon,children:l.jsx(o,{decorative:!0,width:n,height:n})}),l.jsx(Y,{as:"span",variant:"body",color:"secondary",className:ht.label,children:e})]});ee.displayName="LabelMenuItem";const en="_heartIconOutline_137aq_1",rn={heartIconOutline:en},nn=({filled:e=!1,className:o,...s})=>l.jsx(xt,{viewBox:"0 0 24 24",fill:e?"currentColor":"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:P(!e&&rn.heartIconOutline,o),...s,children:l.jsx("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),an="_likeButton_1nv5d_1",on="_heartWrap_1nv5d_49",sn="_heart_1nv5d_49",cn="_countWrap_1nv5d_112",ln="_count_1nv5d_112",$={likeButton:an,"likeButton--disabled":"_likeButton--disabled_1nv5d_19","likeButton--liked":"_likeButton--liked_1nv5d_25","likeButton--pop":"_likeButton--pop_1nv5d_49",heartWrap:on,heart:sn,countWrap:cn,"countWrap--bump":"_countWrap--bump_1nv5d_119",count:ln},re=d.forwardRef(({liked:e,defaultLiked:o=!1,count:s,onLike:i,onClick:c,className:n,testId:u,disabled:_,...y},v)=>{const f=e!==void 0,[b,w]=d.useState(o),[j,S]=d.useState(!1),[N,L]=d.useState(!1),C=f?e:b,k=d.useCallback(U=>{if(_)return;const X=!C;f||w(X),i==null||i(X),c==null||c(U),X&&(S(!0),s!==void 0&&L(!0))},[_,C,f,i,c,s]),I=d.useCallback(()=>{S(!1)},[]),H=d.useCallback(U=>{U.stopPropagation(),L(!1)},[]);return l.jsxs("button",{ref:v,type:"button",className:P($.likeButton,C&&$["likeButton--liked"],j&&$["likeButton--pop"],_&&$["likeButton--disabled"],n),"aria-pressed":C,"aria-label":C?"Убрать лайк":"Поставить лайк",disabled:_,"data-testid":u,onClick:k,onAnimationEnd:I,...y,children:[l.jsx("span",{className:$.heartWrap,children:l.jsx(nn,{filled:C,className:$.heart,decorative:!0})}),s!==void 0&&l.jsx("span",{className:P($.countWrap,N&&$["countWrap--bump"]),onAnimationEnd:H,children:l.jsx(Y,{variant:"caption",className:$.count,as:"span",children:s})})]})});re.displayName="LikeButton";function ne(e,o){if(o==null)return e;if(typeof o!="object"||Array.isArray(o)||typeof e!="object"||Array.isArray(e))return o;const s={...e};return Object.keys(o).forEach(i=>{const c=o[i],n=e[i];c!=null&&typeof c=="object"&&!Array.isArray(c)&&typeof n=="object"&&!Array.isArray(n)&&n!==null?s[i]=ne(n,c):s[i]=c}),s}function ae(e,o){return ne(e,o)}function oe(e){if(e!==void 0)return typeof e=="number"?`${e*4}px`:e}const un="_stack_45gcn_1",pn="_stack--direction-row_45gcn_6",_n="_stack--direction-column_45gcn_10",fn="_stack--direction-row-reverse_45gcn_14",dn="_stack--direction-column-reverse_45gcn_18",yn="_stack--align-start_45gcn_23",gn="_stack--align-end_45gcn_27",hn="_stack--align-center_45gcn_31",vn="_stack--align-stretch_45gcn_35",mn="_stack--align-baseline_45gcn_39",bn="_stack--justify-start_45gcn_44",kn="_stack--justify-end_45gcn_48",xn="_stack--justify-center_45gcn_52",wn="_stack--justify-between_45gcn_56",jn="_stack--justify-around_45gcn_60",En="_stack--justify-evenly_45gcn_64",Rn="_stack--wrap-nowrap_45gcn_69",Cn="_stack--wrap-wrap_45gcn_73",Sn="_stack--wrap-wrap-reverse_45gcn_77",tt={stack:un,"stack--direction-row":"_stack--direction-row_45gcn_6",stackDirectionRow:pn,"stack--direction-column":"_stack--direction-column_45gcn_10",stackDirectionColumn:_n,"stack--direction-row-reverse":"_stack--direction-row-reverse_45gcn_14",stackDirectionRowReverse:fn,"stack--direction-column-reverse":"_stack--direction-column-reverse_45gcn_18",stackDirectionColumnReverse:dn,"stack--align-start":"_stack--align-start_45gcn_23",stackAlignStart:yn,"stack--align-end":"_stack--align-end_45gcn_27",stackAlignEnd:gn,"stack--align-center":"_stack--align-center_45gcn_31",stackAlignCenter:hn,"stack--align-stretch":"_stack--align-stretch_45gcn_35",stackAlignStretch:vn,"stack--align-baseline":"_stack--align-baseline_45gcn_39",stackAlignBaseline:mn,"stack--justify-start":"_stack--justify-start_45gcn_44",stackJustifyStart:bn,"stack--justify-end":"_stack--justify-end_45gcn_48",stackJustifyEnd:kn,"stack--justify-center":"_stack--justify-center_45gcn_52",stackJustifyCenter:xn,"stack--justify-between":"_stack--justify-between_45gcn_56",stackJustifyBetween:wn,"stack--justify-around":"_stack--justify-around_45gcn_60",stackJustifyAround:jn,"stack--justify-evenly":"_stack--justify-evenly_45gcn_64",stackJustifyEvenly:En,"stack--wrap-nowrap":"_stack--wrap-nowrap_45gcn_69",stackWrapNowrap:Rn,"stack--wrap-wrap":"_stack--wrap-wrap_45gcn_73",stackWrapWrap:Cn,"stack--wrap-wrap-reverse":"_stack--wrap-wrap-reverse_45gcn_77",stackWrapWrapReverse:Sn},se=d.forwardRef(({direction:e="row",align:o="stretch",justify:s="start",wrap:i="nowrap",gap:c=0,as:n="div",children:u,className:_,testId:y,...v},f)=>{const b=oe(c);return l.jsx(n,{ref:f,className:P(tt.stack,tt[`stack--direction-${e}`],tt[`stack--align-${o}`],tt[`stack--justify-${s}`],tt[`stack--wrap-${i}`],_),style:{gap:b,...v.style},...y&&{"data-testid":y},...v,children:u})});se.displayName="Stack";const Tn="_grid_16nbv_1",On={grid:Tn},ie=d.forwardRef(({columns:e=12,gap:o=4,minColumnWidth:s,as:i="div",children:c,className:n,testId:u,..._},y)=>{const v=oe(o),b=(()=>{const w={gap:v};if(s)return w.gridTemplateColumns=`repeat(auto-fit, minmax(${s}, 1fr))`,w;if(typeof e=="number")return w.gridTemplateColumns=`repeat(${e}, 1fr)`,w;if(typeof e=="object"){const j={};e.xs!==void 0&&(j["--grid-cols-xs"]=String(e.xs)),e.sm!==void 0&&(j["--grid-cols-sm"]=String(e.sm)),e.md!==void 0&&(j["--grid-cols-md"]=String(e.md)),e.lg!==void 0&&(j["--grid-cols-lg"]=String(e.lg)),e.xl!==void 0&&(j["--grid-cols-xl"]=String(e.xl)),e["2xl"]!==void 0&&(j["--grid-cols-2xl"]=String(e["2xl"]));const S=e.xs||e.sm||e.md||e.lg||e.xl||e["2xl"]||1;return w.gridTemplateColumns=`repeat(${S}, 1fr)`,{...w,...j}}return w})();return l.jsx(i,{ref:y,className:P(On.grid,n),style:{...b,..._.style},...u&&{"data-testid":u},..._,children:c})});ie.displayName="Grid";const Pn="_content_8ltuo_1",In="_content--tile_8ltuo_8",Nn="_previewWrap_8ltuo_8",An="_body_8ltuo_14",Dn="_content--row_8ltuo_22",Wn="_tagsSlotTile_8ltuo_48",$n="_tagsSlotRow_8ltuo_60",Bn="_previewImage_8ltuo_68",Fn="_previewPlaceholder_8ltuo_76",Mn="_title_8ltuo_90",Ln="_date_8ltuo_101",D={content:Pn,"content--tile":"_content--tile_8ltuo_8",contentTile:In,previewWrap:Nn,body:An,"content--row":"_content--row_8ltuo_22",contentRow:Dn,tagsSlotTile:Wn,tagsSlotRow:$n,previewImage:Bn,previewPlaceholder:Fn,title:Mn,date:Ln};function mt({title:e,imageUrl:o,imageAlt:s,formattedDate:i,view:c,tags:n}){return l.jsxs("div",{className:P(D.content,D[`content--${c}`]),children:[l.jsxs("div",{className:D.previewWrap,children:[n&&c==="tile"&&l.jsx("div",{className:D.tagsSlotTile,onClick:u=>u.stopPropagation(),children:n}),o?l.jsx("img",{src:o,alt:s||e,className:D.previewImage,decoding:"async",loading:"lazy"}):l.jsx("div",{className:D.previewPlaceholder,"aria-hidden":"true"})]}),l.jsxs("div",{className:D.body,children:[n&&c==="row"&&l.jsx("div",{className:D.tagsSlotRow,onClick:u=>u.stopPropagation(),children:n}),l.jsx(Y,{variant:"h5",as:"h2",className:D.title,title:e,children:e}),l.jsx(Y,{variant:"caption",className:D.date,children:i})]})]})}mt.displayName="ArticlePreviewContent";const zn="_root_19jmt_1",Vn="_root--interactive_19jmt_17",Gn="_root--tile_19jmt_33",Jn="_root--row_19jmt_37",vt={root:zn,"root--interactive":"_root--interactive_19jmt_17",rootInteractive:Vn,"root--tile":"_root--tile_19jmt_33",rootTile:Gn,"root--row":"_root--row_19jmt_37",rootRow:Jn};function Yn(e){return(typeof e=="string"?new Date(e):e).toLocaleDateString("ru-RU",{day:"numeric",month:"long",year:"numeric"})}const ce=d.forwardRef(({title:e,publishedAt:o,imageUrl:s,view:i="tile",imageAlt:c="",href:n,tags:u,className:_,testId:y,onClick:v,onKeyDown:f,...b},w)=>{const j=d.useMemo(()=>Yn(o),[o]),S=k=>{!n&&v&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),v(k)),f==null||f(k)},N=!!(n||v),C={className:P(vt.root,vt[`root--${i}`],N&&vt["root--interactive"],_),onClick:v,onKeyDown:N?S:f,"data-testid":y,...b};return n?l.jsx("a",{ref:w,href:n,...C,children:l.jsx(mt,{title:e,imageUrl:s,imageAlt:c,formattedDate:j,view:i,tags:u})}):l.jsx("div",{ref:w,role:N?"button":void 0,tabIndex:N?0:void 0,...C,children:l.jsx(mt,{title:e,imageUrl:s,imageAlt:c,formattedDate:j,view:i,tags:u})})});ce.displayName="ArticlePreview";const wt={spacing:{unit:4},typography:{fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem"},fontWeight:{normal:400,medium:500,semibold:600,bold:700},lineHeight:{tight:1.25,normal:1.5,relaxed:1.75}},shadows:{sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",none:"none"},border:{base:"2px"},borderRadius:{none:"0",round:"50%",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem",full:"9999px"},transitions:{duration:{fast:"150ms",base:"200ms",slow:"300ms"},easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",easeOut:"cubic-bezier(0, 0, 0.2, 1)"}},zIndex:{dropdown:1e3,sticky:1020,fixed:1030,modalBackdrop:1040,modal:1050,popover:1060,tooltip:1070}},bt={...wt,palette:{primary:{main:"#3971b8",hover:"#4a82c9",active:"#2d5a96",contrastText:"#ffffff"},secondary:{main:"#c8d69b",hover:"#d4e0b0",active:"#b8c882",contrastText:"#343b1b"},error:{main:"#ef4444",hover:"#f87171",active:"#dc2626"},warning:{main:"#f59e0b",hover:"#fbbf24",active:"#d97706"},success:{main:"#22c55e",hover:"#4ade80",active:"#16a34a"},text:{primary:"#fbfcee",secondary:"#5a6342",disabled:"#a3a3a3"},background:{default:"#fbfcee",accent:"#f6e6a5",paper:"#ffffff"},border:{default:"#c8d69b",subtle:"#e5e5e5",strong:"#5a6342"}}},Hn={...wt,palette:{primary:{main:"#0ea5e9",hover:"#38bdf8",active:"#0284c7",contrastText:"#ffffff"},secondary:{main:"#a855f7",hover:"#c084fc",active:"#9333ea",contrastText:"#ffffff"},error:{main:"#ef4444",hover:"#f87171",active:"#dc2626"},warning:{main:"#f59e0b",hover:"#fbbf24",active:"#d97706"},success:{main:"#22c55e",hover:"#4ade80",active:"#16a34a"},text:{primary:"#fafafa",secondary:"#a3a3a3",disabled:"#525252"},background:{default:"#171717",accent:"#212121",paper:"#262626"},border:{default:"#404040",subtle:"#262626",strong:"#525252"}}};function Un(e){return e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}function Xn(e){return`--${e.join("-")}`}function kt(e,o,s){if(e!=null){if(typeof e=="string"||typeof e=="number"||typeof e=="boolean"){const i=Xn(o);s[i]=String(e);return}if(Array.isArray(e)){e.forEach((i,c)=>{kt(i,[...o,String(c)],s)});return}typeof e=="object"&&Object.entries(e).forEach(([i,c])=>{const n=Un(i);kt(c,[...o,n],s)})}}function le(e){const o={};return kt(e,[],o),o}const ue=d.createContext(void 0),qn=({theme:e=bt,children:o})=>{const s=d.useMemo(()=>"palette"in e&&e.palette&&"primary"in e.palette?e:ae(bt,e),[e]),i=d.useMemo(()=>le(s),[s]);d.useEffect(()=>{const n=document.documentElement;return Object.entries(i).forEach(([u,_])=>{n.style.setProperty(u,_)}),()=>{Object.keys(i).forEach(u=>{n.style.removeProperty(u)})}},[i]);const c=d.useMemo(()=>({theme:s}),[s]);return l.jsx(ue.Provider,{value:c,children:o})};function pe(){const e=d.useContext(ue);if(e===void 0)throw new Error("useThemeContext must be used within a ThemeProvider");return e}function Kn(){const{theme:e}=pe();return e}exports.ArticlePreview=ce;exports.Button=te;exports.Grid=ie;exports.Icon=xt;exports.LabelMenuItem=ee;exports.LikeButton=re;exports.Stack=se;exports.Tag=M;exports.TagGroup=Qt;exports.ThemeProvider=qn;exports.Typography=Y;exports.baseTheme=wt;exports.darkTheme=Hn;exports.lightTheme=bt;exports.mergeTheme=ae;exports.themeToCssVars=le;exports.useTheme=Kn;exports.useThemeContext=pe;
35
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js","../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js","../src/components/primitives/Typography/Typography.tsx","../src/components/primitives/Tag/Tag.tsx","../src/components/primitives/TagGroup/components/TagGroupItemButton.tsx","../src/components/primitives/TagGroup/types.ts","../src/components/primitives/TagGroup/components/TagGroupItemView.tsx","../src/components/primitives/TagGroup/TagGroup.tsx","../src/components/primitives/Button/Button.tsx","../src/components/primitives/Icon/Icon.tsx","../src/components/primitives/LabelMenuItem/LabelMenuItem.tsx","../src/components/primitives/Icon/Icons/HeartIcon.tsx","../src/components/primitives/LikeButton/LikeButton.tsx","../src/utils/deepMerge.ts","../src/tokens/utils.ts","../src/components/layout/Stack/Stack.tsx","../src/components/layout/Grid/Grid.tsx","../src/components/content/ArticlePreview/components/ArticlePreviewContent/ArticlePreviewContent.tsx","../src/components/content/ArticlePreview/ArticlePreview.tsx","../src/tokens/themes/baseTheme.ts","../src/tokens/themes/lightTheme.ts","../src/tokens/themes/darkTheme.ts","../src/tokens/generate-css-vars.ts","../src/themes/ThemeProvider.tsx","../src/hooks/useTheme.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nvar React = require('react');\n\n// ATTENTION\n// When adding new symbols to this file,\n// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'\n// The Symbol used to tag the ReactElement-like types.\nvar REACT_ELEMENT_TYPE = Symbol.for('react.element');\nvar REACT_PORTAL_TYPE = Symbol.for('react.portal');\nvar REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');\nvar REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');\nvar REACT_PROFILER_TYPE = Symbol.for('react.profiler');\nvar REACT_PROVIDER_TYPE = Symbol.for('react.provider');\nvar REACT_CONTEXT_TYPE = Symbol.for('react.context');\nvar REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');\nvar REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');\nvar REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');\nvar REACT_MEMO_TYPE = Symbol.for('react.memo');\nvar REACT_LAZY_TYPE = Symbol.for('react.lazy');\nvar REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');\nvar MAYBE_ITERATOR_SYMBOL = Symbol.iterator;\nvar FAUX_ITERATOR_SYMBOL = '@@iterator';\nfunction getIteratorFn(maybeIterable) {\n if (maybeIterable === null || typeof maybeIterable !== 'object') {\n return null;\n }\n\n var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];\n\n if (typeof maybeIterator === 'function') {\n return maybeIterator;\n }\n\n return null;\n}\n\nvar ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n\nfunction error(format) {\n {\n {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n printWarning('error', format, args);\n }\n }\n}\n\nfunction printWarning(level, format, args) {\n // When changing this logic, you might want to also\n // update consoleWithStackDev.www.js as well.\n {\n var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n var stack = ReactDebugCurrentFrame.getStackAddendum();\n\n if (stack !== '') {\n format += '%s';\n args = args.concat([stack]);\n } // eslint-disable-next-line react-internal/safe-string-coercion\n\n\n var argsWithFormat = args.map(function (item) {\n return String(item);\n }); // Careful: RN currently depends on this prefix\n\n argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it\n // breaks IE9: https://github.com/facebook/react/issues/13610\n // eslint-disable-next-line react-internal/no-production-logging\n\n Function.prototype.apply.call(console[level], console, argsWithFormat);\n }\n}\n\n// -----------------------------------------------------------------------------\n\nvar enableScopeAPI = false; // Experimental Create Event Handle API.\nvar enableCacheElement = false;\nvar enableTransitionTracing = false; // No known bugs, but needs performance testing\n\nvar enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber\n// stuff. Intended to enable React core members to more easily debug scheduling\n// issues in DEV builds.\n\nvar enableDebugTracing = false; // Track which Fiber(s) schedule render work.\n\nvar REACT_MODULE_REFERENCE;\n\n{\n REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');\n}\n\nfunction isValidElementType(type) {\n if (typeof type === 'string' || typeof type === 'function') {\n return true;\n } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).\n\n\n if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {\n return true;\n }\n\n if (typeof type === 'object' && type !== null) {\n if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction getWrappedName(outerType, innerType, wrapperName) {\n var displayName = outerType.displayName;\n\n if (displayName) {\n return displayName;\n }\n\n var functionName = innerType.displayName || innerType.name || '';\n return functionName !== '' ? wrapperName + \"(\" + functionName + \")\" : wrapperName;\n} // Keep in sync with react-reconciler/getComponentNameFromFiber\n\n\nfunction getContextName(type) {\n return type.displayName || 'Context';\n} // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.\n\n\nfunction getComponentNameFromType(type) {\n if (type == null) {\n // Host root, text node or just invalid type.\n return null;\n }\n\n {\n if (typeof type.tag === 'number') {\n error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');\n }\n }\n\n if (typeof type === 'function') {\n return type.displayName || type.name || null;\n }\n\n if (typeof type === 'string') {\n return type;\n }\n\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return 'Fragment';\n\n case REACT_PORTAL_TYPE:\n return 'Portal';\n\n case REACT_PROFILER_TYPE:\n return 'Profiler';\n\n case REACT_STRICT_MODE_TYPE:\n return 'StrictMode';\n\n case REACT_SUSPENSE_TYPE:\n return 'Suspense';\n\n case REACT_SUSPENSE_LIST_TYPE:\n return 'SuspenseList';\n\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_CONTEXT_TYPE:\n var context = type;\n return getContextName(context) + '.Consumer';\n\n case REACT_PROVIDER_TYPE:\n var provider = type;\n return getContextName(provider._context) + '.Provider';\n\n case REACT_FORWARD_REF_TYPE:\n return getWrappedName(type, type.render, 'ForwardRef');\n\n case REACT_MEMO_TYPE:\n var outerName = type.displayName || null;\n\n if (outerName !== null) {\n return outerName;\n }\n\n return getComponentNameFromType(type.type) || 'Memo';\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n return getComponentNameFromType(init(payload));\n } catch (x) {\n return null;\n }\n }\n\n // eslint-disable-next-line no-fallthrough\n }\n }\n\n return null;\n}\n\nvar assign = Object.assign;\n\n// Helpers to patch console.logs to avoid logging during side-effect free\n// replaying on render function. This currently only patches the object\n// lazily which won't cover if the log function was extracted eagerly.\n// We could also eagerly patch the method.\nvar disabledDepth = 0;\nvar prevLog;\nvar prevInfo;\nvar prevWarn;\nvar prevError;\nvar prevGroup;\nvar prevGroupCollapsed;\nvar prevGroupEnd;\n\nfunction disabledLog() {}\n\ndisabledLog.__reactDisabledLog = true;\nfunction disableLogs() {\n {\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099\n\n var props = {\n configurable: true,\n enumerable: true,\n value: disabledLog,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n disabledDepth++;\n }\n}\nfunction reenableLogs() {\n {\n disabledDepth--;\n\n if (disabledDepth === 0) {\n /* eslint-disable react-internal/no-production-logging */\n var props = {\n configurable: true,\n enumerable: true,\n writable: true\n }; // $FlowFixMe Flow thinks console is immutable.\n\n Object.defineProperties(console, {\n log: assign({}, props, {\n value: prevLog\n }),\n info: assign({}, props, {\n value: prevInfo\n }),\n warn: assign({}, props, {\n value: prevWarn\n }),\n error: assign({}, props, {\n value: prevError\n }),\n group: assign({}, props, {\n value: prevGroup\n }),\n groupCollapsed: assign({}, props, {\n value: prevGroupCollapsed\n }),\n groupEnd: assign({}, props, {\n value: prevGroupEnd\n })\n });\n /* eslint-enable react-internal/no-production-logging */\n }\n\n if (disabledDepth < 0) {\n error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');\n }\n }\n}\n\nvar ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;\nvar prefix;\nfunction describeBuiltInComponentFrame(name, source, ownerFn) {\n {\n if (prefix === undefined) {\n // Extract the VM specific prefix used by each line.\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = match && match[1] || '';\n }\n } // We use the prefix to ensure our stacks line up with native stack frames.\n\n\n return '\\n' + prefix + name;\n }\n}\nvar reentry = false;\nvar componentFrameCache;\n\n{\n var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;\n componentFrameCache = new PossiblyWeakMap();\n}\n\nfunction describeNativeComponentFrame(fn, construct) {\n // If something asked for a stack inside a fake render, it should get ignored.\n if ( !fn || reentry) {\n return '';\n }\n\n {\n var frame = componentFrameCache.get(fn);\n\n if (frame !== undefined) {\n return frame;\n }\n }\n\n var control;\n reentry = true;\n var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.\n\n Error.prepareStackTrace = undefined;\n var previousDispatcher;\n\n {\n previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function\n // for warnings.\n\n ReactCurrentDispatcher.current = null;\n disableLogs();\n }\n\n try {\n // This should throw.\n if (construct) {\n // Something should be setting the props in the constructor.\n var Fake = function () {\n throw Error();\n }; // $FlowFixMe\n\n\n Object.defineProperty(Fake.prototype, 'props', {\n set: function () {\n // We use a throwing setter instead of frozen or non-writable props\n // because that won't throw in a non-strict mode function.\n throw Error();\n }\n });\n\n if (typeof Reflect === 'object' && Reflect.construct) {\n // We construct a different control for this case to include any extra\n // frames added by the construct call.\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n control = x;\n }\n\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x) {\n control = x;\n }\n\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x) {\n control = x;\n }\n\n fn();\n }\n } catch (sample) {\n // This is inlined manually because closure doesn't do it for us.\n if (sample && control && typeof sample.stack === 'string') {\n // This extracts the first frame from the sample that isn't also in the control.\n // Skipping one frame that we assume is the frame that calls the two.\n var sampleLines = sample.stack.split('\\n');\n var controlLines = control.stack.split('\\n');\n var s = sampleLines.length - 1;\n var c = controlLines.length - 1;\n\n while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {\n // We expect at least one stack frame to be shared.\n // Typically this will be the root most one. However, stack frames may be\n // cut off due to maximum stack limits. In this case, one maybe cut off\n // earlier than the other. We assume that the sample is longer or the same\n // and there for cut off earlier. So we should find the root most frame in\n // the sample somewhere in the control.\n c--;\n }\n\n for (; s >= 1 && c >= 0; s--, c--) {\n // Next we find the first one that isn't the same which should be the\n // frame that called our sample function and the control.\n if (sampleLines[s] !== controlLines[c]) {\n // In V8, the first line is describing the message but other VMs don't.\n // If we're about to return the first line, and the control is also on the same\n // line, that's a pretty good indicator that our sample threw at same line as\n // the control. I.e. before we entered the sample frame. So we ignore this result.\n // This can happen if you passed a class to function component, or non-function.\n if (s !== 1 || c !== 1) {\n do {\n s--;\n c--; // We may still have similar intermediate frames from the construct call.\n // The next one that isn't the same should be our match though.\n\n if (c < 0 || sampleLines[s] !== controlLines[c]) {\n // V8 adds a \"new\" prefix for native classes. Let's remove it to make it prettier.\n var _frame = '\\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled \"<anonymous>\"\n // but we have a user-provided \"displayName\"\n // splice it in to make the stack more readable.\n\n\n if (fn.displayName && _frame.includes('<anonymous>')) {\n _frame = _frame.replace('<anonymous>', fn.displayName);\n }\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, _frame);\n }\n } // Return the line we found.\n\n\n return _frame;\n }\n } while (s >= 1 && c >= 0);\n }\n\n break;\n }\n }\n }\n } finally {\n reentry = false;\n\n {\n ReactCurrentDispatcher.current = previousDispatcher;\n reenableLogs();\n }\n\n Error.prepareStackTrace = previousPrepareStackTrace;\n } // Fallback to just using the name if we couldn't make it throw.\n\n\n var name = fn ? fn.displayName || fn.name : '';\n var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';\n\n {\n if (typeof fn === 'function') {\n componentFrameCache.set(fn, syntheticFrame);\n }\n }\n\n return syntheticFrame;\n}\nfunction describeFunctionComponentFrame(fn, source, ownerFn) {\n {\n return describeNativeComponentFrame(fn, false);\n }\n}\n\nfunction shouldConstruct(Component) {\n var prototype = Component.prototype;\n return !!(prototype && prototype.isReactComponent);\n}\n\nfunction describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {\n\n if (type == null) {\n return '';\n }\n\n if (typeof type === 'function') {\n {\n return describeNativeComponentFrame(type, shouldConstruct(type));\n }\n }\n\n if (typeof type === 'string') {\n return describeBuiltInComponentFrame(type);\n }\n\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame('Suspense');\n\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame('SuspenseList');\n }\n\n if (typeof type === 'object') {\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return describeFunctionComponentFrame(type.render);\n\n case REACT_MEMO_TYPE:\n // Memo may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);\n\n case REACT_LAZY_TYPE:\n {\n var lazyComponent = type;\n var payload = lazyComponent._payload;\n var init = lazyComponent._init;\n\n try {\n // Lazy may contain any component type so we recursively resolve it.\n return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);\n } catch (x) {}\n }\n }\n }\n\n return '';\n}\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar loggedTypeFailures = {};\nvar ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame.setExtraStackFrame(null);\n }\n }\n}\n\nfunction checkPropTypes(typeSpecs, values, location, componentName, element) {\n {\n // $FlowFixMe This is okay but Flow doesn't know it.\n var has = Function.call.bind(hasOwnProperty);\n\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n // eslint-disable-next-line react-internal/prod-error-codes\n var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');\n err.name = 'Invariant Violation';\n throw err;\n }\n\n error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');\n } catch (ex) {\n error$1 = ex;\n }\n\n if (error$1 && !(error$1 instanceof Error)) {\n setCurrentlyValidatingElement(element);\n\n error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);\n\n setCurrentlyValidatingElement(null);\n }\n\n if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error$1.message] = true;\n setCurrentlyValidatingElement(element);\n\n error('Failed %s type: %s', location, error$1.message);\n\n setCurrentlyValidatingElement(null);\n }\n }\n }\n }\n}\n\nvar isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare\n\nfunction isArray(a) {\n return isArrayImpl(a);\n}\n\n/*\n * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol\n * and Temporal.* types. See https://github.com/facebook/react/pull/22064.\n *\n * The functions in this module will throw an easier-to-understand,\n * easier-to-debug exception with a clear errors message message explaining the\n * problem. (Instead of a confusing exception thrown inside the implementation\n * of the `value` object).\n */\n// $FlowFixMe only called in DEV, so void return is not possible.\nfunction typeName(value) {\n {\n // toStringTag is needed for namespaced types like Temporal.Instant\n var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;\n var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';\n return type;\n }\n} // $FlowFixMe only called in DEV, so void return is not possible.\n\n\nfunction willCoercionThrow(value) {\n {\n try {\n testStringCoercion(value);\n return false;\n } catch (e) {\n return true;\n }\n }\n}\n\nfunction testStringCoercion(value) {\n // If you ended up here by following an exception call stack, here's what's\n // happened: you supplied an object or symbol value to React (as a prop, key,\n // DOM attribute, CSS property, string ref, etc.) and when React tried to\n // coerce it to a string using `'' + value`, an exception was thrown.\n //\n // The most common types that will cause this exception are `Symbol` instances\n // and Temporal objects like `Temporal.Instant`. But any object that has a\n // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this\n // exception. (Library authors do this to prevent users from using built-in\n // numeric operators like `+` or comparison operators like `>=` because custom\n // methods are needed to perform accurate arithmetic or comparison.)\n //\n // To fix the problem, coerce this object or symbol value to a string before\n // passing it to React. The most reliable way is usually `String(value)`.\n //\n // To find which value is throwing, check the browser or debugger console.\n // Before this exception was thrown, there should be `console.error` output\n // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the\n // problem and how that type was used: key, atrribute, input value prop, etc.\n // In most cases, this console output also shows the component and its\n // ancestor components where the exception happened.\n //\n // eslint-disable-next-line react-internal/safe-string-coercion\n return '' + value;\n}\nfunction checkKeyStringCoercion(value) {\n {\n if (willCoercionThrow(value)) {\n error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));\n\n return testStringCoercion(value); // throw (to help callers find troubleshooting comments)\n }\n }\n}\n\nvar ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;\nvar RESERVED_PROPS = {\n key: true,\n ref: true,\n __self: true,\n __source: true\n};\nvar specialPropKeyWarningShown;\nvar specialPropRefWarningShown;\nvar didWarnAboutStringRefs;\n\n{\n didWarnAboutStringRefs = {};\n}\n\nfunction hasValidRef(config) {\n {\n if (hasOwnProperty.call(config, 'ref')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.ref !== undefined;\n}\n\nfunction hasValidKey(config) {\n {\n if (hasOwnProperty.call(config, 'key')) {\n var getter = Object.getOwnPropertyDescriptor(config, 'key').get;\n\n if (getter && getter.isReactWarning) {\n return false;\n }\n }\n }\n\n return config.key !== undefined;\n}\n\nfunction warnIfStringRefCannotBeAutoConverted(config, self) {\n {\n if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {\n var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);\n\n if (!didWarnAboutStringRefs[componentName]) {\n error('Component \"%s\" contains the string ref \"%s\". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);\n\n didWarnAboutStringRefs[componentName] = true;\n }\n }\n }\n}\n\nfunction defineKeyPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingKey = function () {\n if (!specialPropKeyWarningShown) {\n specialPropKeyWarningShown = true;\n\n error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingKey.isReactWarning = true;\n Object.defineProperty(props, 'key', {\n get: warnAboutAccessingKey,\n configurable: true\n });\n }\n}\n\nfunction defineRefPropWarningGetter(props, displayName) {\n {\n var warnAboutAccessingRef = function () {\n if (!specialPropRefWarningShown) {\n specialPropRefWarningShown = true;\n\n error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);\n }\n };\n\n warnAboutAccessingRef.isReactWarning = true;\n Object.defineProperty(props, 'ref', {\n get: warnAboutAccessingRef,\n configurable: true\n });\n }\n}\n/**\n * Factory method to create a new React element. This no longer adheres to\n * the class pattern, so do not use new to call it. Also, instanceof check\n * will not work. Instead test $$typeof field against Symbol.for('react.element') to check\n * if something is a React Element.\n *\n * @param {*} type\n * @param {*} props\n * @param {*} key\n * @param {string|object} ref\n * @param {*} owner\n * @param {*} self A *temporary* helper to detect places where `this` is\n * different from the `owner` when React.createElement is called, so that we\n * can warn. We want to get rid of owner and replace string `ref`s with arrow\n * functions, and as long as `this` and owner are the same, there will be no\n * change in behavior.\n * @param {*} source An annotation object (added by a transpiler or otherwise)\n * indicating filename, line number, and/or other information.\n * @internal\n */\n\n\nvar ReactElement = function (type, key, ref, self, source, owner, props) {\n var element = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: REACT_ELEMENT_TYPE,\n // Built-in properties that belong on the element\n type: type,\n key: key,\n ref: ref,\n props: props,\n // Record the component responsible for creating this element.\n _owner: owner\n };\n\n {\n // The validation flag is currently mutative. We put it on\n // an external backing store so that we can freeze the whole object.\n // This can be replaced with a WeakMap once they are implemented in\n // commonly used development environments.\n element._store = {}; // To make comparing ReactElements easier for testing purposes, we make\n // the validation flag non-enumerable (where possible, which should\n // include every environment we run tests in), so the test framework\n // ignores it.\n\n Object.defineProperty(element._store, 'validated', {\n configurable: false,\n enumerable: false,\n writable: true,\n value: false\n }); // self and source are DEV only properties.\n\n Object.defineProperty(element, '_self', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: self\n }); // Two elements created in two different places should be considered\n // equal for testing purposes and therefore we hide it from enumeration.\n\n Object.defineProperty(element, '_source', {\n configurable: false,\n enumerable: false,\n writable: false,\n value: source\n });\n\n if (Object.freeze) {\n Object.freeze(element.props);\n Object.freeze(element);\n }\n }\n\n return element;\n};\n/**\n * https://github.com/reactjs/rfcs/pull/107\n * @param {*} type\n * @param {object} props\n * @param {string} key\n */\n\nfunction jsxDEV(type, config, maybeKey, source, self) {\n {\n var propName; // Reserved names are extracted\n\n var props = {};\n var key = null;\n var ref = null; // Currently, key can be spread in as a prop. This causes a potential\n // issue if key is also explicitly declared (ie. <div {...props} key=\"Hi\" />\n // or <div key=\"Hi\" {...props} /> ). We want to deprecate key spread,\n // but as an intermediary step, we will use jsxDEV for everything except\n // <div {...props} key=\"Hi\" />, because we aren't currently able to tell if\n // key is explicitly declared to be undefined or not.\n\n if (maybeKey !== undefined) {\n {\n checkKeyStringCoercion(maybeKey);\n }\n\n key = '' + maybeKey;\n }\n\n if (hasValidKey(config)) {\n {\n checkKeyStringCoercion(config.key);\n }\n\n key = '' + config.key;\n }\n\n if (hasValidRef(config)) {\n ref = config.ref;\n warnIfStringRefCannotBeAutoConverted(config, self);\n } // Remaining properties are added to a new props object\n\n\n for (propName in config) {\n if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {\n props[propName] = config[propName];\n }\n } // Resolve default props\n\n\n if (type && type.defaultProps) {\n var defaultProps = type.defaultProps;\n\n for (propName in defaultProps) {\n if (props[propName] === undefined) {\n props[propName] = defaultProps[propName];\n }\n }\n }\n\n if (key || ref) {\n var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;\n\n if (key) {\n defineKeyPropWarningGetter(props, displayName);\n }\n\n if (ref) {\n defineRefPropWarningGetter(props, displayName);\n }\n }\n\n return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);\n }\n}\n\nvar ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;\nvar ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;\n\nfunction setCurrentlyValidatingElement$1(element) {\n {\n if (element) {\n var owner = element._owner;\n var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);\n ReactDebugCurrentFrame$1.setExtraStackFrame(stack);\n } else {\n ReactDebugCurrentFrame$1.setExtraStackFrame(null);\n }\n }\n}\n\nvar propTypesMisspellWarningShown;\n\n{\n propTypesMisspellWarningShown = false;\n}\n/**\n * Verifies the object is a ReactElement.\n * See https://reactjs.org/docs/react-api.html#isvalidelement\n * @param {?object} object\n * @return {boolean} True if `object` is a ReactElement.\n * @final\n */\n\n\nfunction isValidElement(object) {\n {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n }\n}\n\nfunction getDeclarationErrorAddendum() {\n {\n if (ReactCurrentOwner$1.current) {\n var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);\n\n if (name) {\n return '\\n\\nCheck the render method of `' + name + '`.';\n }\n }\n\n return '';\n }\n}\n\nfunction getSourceInfoErrorAddendum(source) {\n {\n if (source !== undefined) {\n var fileName = source.fileName.replace(/^.*[\\\\\\/]/, '');\n var lineNumber = source.lineNumber;\n return '\\n\\nCheck your code at ' + fileName + ':' + lineNumber + '.';\n }\n\n return '';\n }\n}\n/**\n * Warn if there's no key explicitly set on dynamic arrays of children or\n * object keys are not valid. This allows us to keep track of children between\n * updates.\n */\n\n\nvar ownerHasKeyUseWarning = {};\n\nfunction getCurrentComponentErrorInfo(parentType) {\n {\n var info = getDeclarationErrorAddendum();\n\n if (!info) {\n var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;\n\n if (parentName) {\n info = \"\\n\\nCheck the top-level render call using <\" + parentName + \">.\";\n }\n }\n\n return info;\n }\n}\n/**\n * Warn if the element doesn't have an explicit key assigned to it.\n * This element is in an array. The array could grow and shrink or be\n * reordered. All children that haven't already been validated are required to\n * have a \"key\" property assigned to it. Error statuses are cached so a warning\n * will only be shown once.\n *\n * @internal\n * @param {ReactElement} element Element that requires a key.\n * @param {*} parentType element's parent's type.\n */\n\n\nfunction validateExplicitKey(element, parentType) {\n {\n if (!element._store || element._store.validated || element.key != null) {\n return;\n }\n\n element._store.validated = true;\n var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);\n\n if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {\n return;\n }\n\n ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a\n // property, it may be the creator of the child that's responsible for\n // assigning it a key.\n\n var childOwner = '';\n\n if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {\n // Give the component that originally created this child.\n childOwner = \" It was passed a child from \" + getComponentNameFromType(element._owner.type) + \".\";\n }\n\n setCurrentlyValidatingElement$1(element);\n\n error('Each child in a list should have a unique \"key\" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);\n\n setCurrentlyValidatingElement$1(null);\n }\n}\n/**\n * Ensure that every element either is passed in a static location, in an\n * array with an explicit keys property defined, or in an object literal\n * with valid key property.\n *\n * @internal\n * @param {ReactNode} node Statically passed child of any type.\n * @param {*} parentType node's parent's type.\n */\n\n\nfunction validateChildKeys(node, parentType) {\n {\n if (typeof node !== 'object') {\n return;\n }\n\n if (isArray(node)) {\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n\n if (isValidElement(child)) {\n validateExplicitKey(child, parentType);\n }\n }\n } else if (isValidElement(node)) {\n // This element was passed in a valid location.\n if (node._store) {\n node._store.validated = true;\n }\n } else if (node) {\n var iteratorFn = getIteratorFn(node);\n\n if (typeof iteratorFn === 'function') {\n // Entry iterators used to provide implicit keys,\n // but now we print a separate warning for them later.\n if (iteratorFn !== node.entries) {\n var iterator = iteratorFn.call(node);\n var step;\n\n while (!(step = iterator.next()).done) {\n if (isValidElement(step.value)) {\n validateExplicitKey(step.value, parentType);\n }\n }\n }\n }\n }\n }\n}\n/**\n * Given an element, validate that its props follow the propTypes definition,\n * provided by the type.\n *\n * @param {ReactElement} element\n */\n\n\nfunction validatePropTypes(element) {\n {\n var type = element.type;\n\n if (type === null || type === undefined || typeof type === 'string') {\n return;\n }\n\n var propTypes;\n\n if (typeof type === 'function') {\n propTypes = type.propTypes;\n } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n type.$$typeof === REACT_MEMO_TYPE)) {\n propTypes = type.propTypes;\n } else {\n return;\n }\n\n if (propTypes) {\n // Intentionally inside to avoid triggering lazy initializers:\n var name = getComponentNameFromType(type);\n checkPropTypes(propTypes, element.props, 'prop', name, element);\n } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {\n propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:\n\n var _name = getComponentNameFromType(type);\n\n error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');\n }\n\n if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {\n error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');\n }\n }\n}\n/**\n * Given a fragment, validate that it can only be provided with fragment props\n * @param {ReactElement} fragment\n */\n\n\nfunction validateFragmentProps(fragment) {\n {\n var keys = Object.keys(fragment.props);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n\n if (key !== 'children' && key !== 'key') {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);\n\n setCurrentlyValidatingElement$1(null);\n break;\n }\n }\n\n if (fragment.ref !== null) {\n setCurrentlyValidatingElement$1(fragment);\n\n error('Invalid attribute `ref` supplied to `React.Fragment`.');\n\n setCurrentlyValidatingElement$1(null);\n }\n }\n}\n\nvar didWarnAboutKeySpread = {};\nfunction jsxWithValidation(type, props, key, isStaticChildren, source, self) {\n {\n var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to\n // succeed and there will likely be errors in render.\n\n if (!validType) {\n var info = '';\n\n if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {\n info += ' You likely forgot to export your component from the file ' + \"it's defined in, or you might have mixed up default and named imports.\";\n }\n\n var sourceInfo = getSourceInfoErrorAddendum(source);\n\n if (sourceInfo) {\n info += sourceInfo;\n } else {\n info += getDeclarationErrorAddendum();\n }\n\n var typeString;\n\n if (type === null) {\n typeString = 'null';\n } else if (isArray(type)) {\n typeString = 'array';\n } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {\n typeString = \"<\" + (getComponentNameFromType(type.type) || 'Unknown') + \" />\";\n info = ' Did you accidentally export a JSX literal instead of a component?';\n } else {\n typeString = typeof type;\n }\n\n error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);\n }\n\n var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.\n // TODO: Drop this when these are no longer allowed as the type argument.\n\n if (element == null) {\n return element;\n } // Skip key warning if the type isn't valid since our key validation logic\n // doesn't expect a non-string/function type and can throw confusing errors.\n // We don't want exception behavior to differ between dev and prod.\n // (Rendering will throw with a helpful message and as soon as the type is\n // fixed, the key warnings will appear.)\n\n\n if (validType) {\n var children = props.children;\n\n if (children !== undefined) {\n if (isStaticChildren) {\n if (isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n validateChildKeys(children[i], type);\n }\n\n if (Object.freeze) {\n Object.freeze(children);\n }\n } else {\n error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');\n }\n } else {\n validateChildKeys(children, type);\n }\n }\n }\n\n {\n if (hasOwnProperty.call(props, 'key')) {\n var componentName = getComponentNameFromType(type);\n var keys = Object.keys(props).filter(function (k) {\n return k !== 'key';\n });\n var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';\n\n if (!didWarnAboutKeySpread[componentName + beforeExample]) {\n var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';\n\n error('A props object containing a \"key\" prop is being spread into JSX:\\n' + ' let props = %s;\\n' + ' <%s {...props} />\\n' + 'React keys must be passed directly to JSX without using spread:\\n' + ' let props = %s;\\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);\n\n didWarnAboutKeySpread[componentName + beforeExample] = true;\n }\n }\n }\n\n if (type === REACT_FRAGMENT_TYPE) {\n validateFragmentProps(element);\n } else {\n validatePropTypes(element);\n }\n\n return element;\n }\n} // These two functions exist to still get child warnings in dev\n// even with the prod transform. This means that jsxDEV is purely\n// opt-in behavior for better messages but that we won't stop\n// giving you warnings if you use production apis.\n\nfunction jsxWithValidationStatic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, true);\n }\n}\nfunction jsxWithValidationDynamic(type, props, key) {\n {\n return jsxWithValidation(type, props, key, false);\n }\n}\n\nvar jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.\n// for now we can ship identical prod functions\n\nvar jsxs = jsxWithValidationStatic ;\n\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsx;\nexports.jsxs = jsxs;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./Typography.module.pcss\";\n\nexport type TypographyVariant =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"body\"\n | \"caption\"\n | \"overline\";\nexport type TypographySize =\n | \"xs\"\n | \"sm\"\n | \"base\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\";\n\nexport type TypographyColor = \"primary\" | \"secondary\" | \"disabled\";\n\nexport interface TypographyProps extends React.HTMLAttributes<HTMLElement> {\n variant?: TypographyVariant;\n size?: TypographySize;\n color?: TypographyColor;\n as?: React.ElementType;\n children: React.ReactNode;\n}\n\nexport const Typography = forwardRef<HTMLElement, TypographyProps>(\n (\n { variant = \"body\", size, color, as, children, className, ...props },\n ref\n ) => {\n const defaultElement = React.useMemo(() => {\n if (as) return as;\n if (variant.startsWith(\"h\")) return variant;\n if (variant === \"body\") return \"p\";\n return \"span\";\n }, [as, variant]);\n\n const Component = defaultElement as React.ElementType;\n\n return (\n <Component\n ref={ref}\n className={cn(\n styles.typography,\n styles[`typography--${variant}`],\n size && styles[`typography--${size}`],\n color && styles[`typography--color-${color}`],\n className\n )}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nTypography.displayName = \"Typography\";\n","import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./Tag.module.pcss\";\n\nexport type TagVariant =\n | \"primary\"\n | \"secondary\"\n | \"success\"\n | \"warning\"\n | \"error\"\n | \"neutral\";\nexport type TagSize = \"sm\" | \"md\" | \"lg\";\n\nexport interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {\n variant?: TagVariant;\n size?: TagSize;\n icon?: React.ReactNode;\n iconPosition?: \"left\" | \"right\";\n closeable?: boolean;\n onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n children: React.ReactNode;\n href?: string;\n}\n\ntype TagRootElement = HTMLAnchorElement | HTMLSpanElement;\n\nconst TagRoot = forwardRef<\n TagRootElement,\n (\n | (React.ComponentPropsWithoutRef<\"a\"> & { as: \"a\" })\n | (React.ComponentPropsWithoutRef<\"span\"> & { as: \"span\" })\n ) & { as: \"a\" | \"span\" }\n>(function TagRoot({ as: Component, ...props }, ref) {\n return React.createElement(Component, { ...props, ref });\n});\n\nexport const Tag = forwardRef<TagRootElement, TagProps>(\n (\n {\n variant = \"primary\",\n size = \"md\",\n icon,\n iconPosition = \"left\",\n closeable = false,\n onClose,\n children,\n className,\n href,\n ...props\n },\n ref\n ) => {\n const handleClose = (event: React.MouseEvent<HTMLButtonElement>) => {\n event.stopPropagation();\n onClose?.(event);\n };\n\n const rootProps = href ? { ...props, href, as: \"a\" as const } : { ...props, as: \"span\" as const };\n const classNameComputed = cn(\n styles.tag,\n styles[`tag--${variant}`],\n styles[`tag--${size}`],\n href && styles[\"tag--link\"],\n className\n );\n\n return (\n <TagRoot ref={ref} className={classNameComputed} {...rootProps}>\n {icon && iconPosition === \"left\" && (\n <span className={styles.tagIcon}>{icon}</span>\n )}\n <span className={styles.tagContent}>{children}</span>\n {icon && iconPosition === \"right\" && (\n <span className={styles.tagIcon}>{icon}</span>\n )}\n {closeable && (\n <button\n type=\"button\"\n className={styles.tagClose}\n onClick={handleClose}\n aria-label=\"Close tag\"\n >\n ×\n </button>\n )}\n </TagRoot>\n );\n }\n);\n\nTag.displayName = \"Tag\";\n","import React, { useCallback } from \"react\";\nimport { Tag } from \"../../Tag\";\nimport type { TagGroupItem, TagGroupBaseTagProps } from \"../types\";\n\nconst stopPropagation = (e: React.MouseEvent) => e.stopPropagation();\n\nexport interface TagGroupItemButtonProps {\n tag: TagGroupItem;\n baseTagProps: TagGroupBaseTagProps;\n}\n\nexport function TagGroupItemButton({ tag, baseTagProps }: TagGroupItemButtonProps) {\n const handleClick = useCallback(\n (e: React.MouseEvent<HTMLElement>) => {\n stopPropagation(e);\n tag.onClick?.(e);\n },\n [tag.onClick]\n );\n\n const handleKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n tag.onClick?.(e as unknown as React.MouseEvent<HTMLElement>);\n }\n },\n [tag.onClick]\n );\n\n return (\n <Tag\n {...baseTagProps}\n role=\"button\"\n tabIndex={0}\n onClick={handleClick}\n onKeyDown={handleKeyDown}\n style={{ cursor: \"pointer\" }}\n >\n {tag.label}\n </Tag>\n );\n}\n","import type { TagProps } from \"../Tag\";\n\nexport interface TagGroupItem {\n label: React.ReactNode;\n href?: string;\n onClick?: (event: React.MouseEvent<HTMLElement>) => void;\n}\n\nexport type TagGroupTag = React.ReactNode | TagGroupItem;\n\nexport function isTagGroupItem(tag: TagGroupTag): tag is TagGroupItem {\n return typeof tag === \"object\" && tag !== null && \"label\" in tag;\n}\n\nexport type TagGroupBaseTagProps = Partial<Pick<TagProps, \"size\" | \"variant\">>;\n","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","import React, { useState, useMemo, useCallback } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./TagGroup.module.pcss\";\nimport { Tag, TagProps } from \"../Tag\";\nimport { TagGroupItemView } from \"./components\";\nimport type { TagGroupTag } from \"./types\";\n\nexport type { TagGroupItem, TagGroupTag } from \"./types\";\nexport { isTagGroupItem } from \"./types\";\n\nexport interface TagGroupProps extends React.HTMLAttributes<HTMLDivElement> {\n tags: TagGroupTag[];\n maxVisible?: number;\n overflowTagProps?: Omit<TagProps, \"children\">;\n collapseTagProps?: Omit<TagProps, \"children\">;\n collapseText?: string;\n size?: TagProps[\"size\"];\n variant?: TagProps[\"variant\"];\n}\n\nexport const TagGroup = React.forwardRef<HTMLDivElement, TagGroupProps>(\n (\n {\n tags,\n maxVisible = 5,\n overflowTagProps,\n collapseTagProps,\n collapseText = \"Свернуть\",\n size,\n variant,\n className,\n ...props\n },\n ref\n ) => {\n const [isExpanded, setIsExpanded] = useState(false);\n\n const { visibleTags, hiddenCount } = useMemo(() => {\n if (tags.length <= maxVisible || isExpanded) {\n return {\n visibleTags: tags,\n hiddenCount: 0,\n };\n }\n\n return {\n visibleTags: tags.slice(0, maxVisible),\n hiddenCount: tags.length - maxVisible,\n };\n }, [tags, maxVisible, isExpanded]);\n\n const handleExpand = useCallback(() => setIsExpanded(true), []);\n const handleCollapse = useCallback(() => setIsExpanded(false), []);\n\n const handleExpandKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n handleExpand();\n }\n },\n [handleExpand]\n );\n\n const handleCollapseKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n handleCollapse();\n }\n },\n [handleCollapse]\n );\n\n const baseTagProps = useMemo(\n () => ({\n ...(size && { size }),\n ...(variant && { variant }),\n }),\n [size, variant]\n );\n\n return (\n <div ref={ref} className={cn(styles.tagGroup, className)} {...props}>\n {visibleTags.map((tag, index) => (\n <TagGroupItemView key={index} tag={tag} baseTagProps={baseTagProps} />\n ))}\n\n {!isExpanded && hiddenCount > 0 && (\n <Tag\n {...baseTagProps}\n {...overflowTagProps}\n onClick={handleExpand}\n onKeyDown={handleExpandKeyDown}\n role=\"button\"\n tabIndex={0}\n aria-label={`Показать еще ${hiddenCount} тегов`}\n style={{ cursor: \"pointer\", ...overflowTagProps?.style }}\n >\n +{hiddenCount}\n </Tag>\n )}\n\n {isExpanded && (\n <Tag\n {...baseTagProps}\n {...collapseTagProps}\n onClick={handleCollapse}\n onKeyDown={handleCollapseKeyDown}\n role=\"button\"\n tabIndex={0}\n aria-label={collapseText}\n style={{ cursor: \"pointer\", ...collapseTagProps?.style }}\n >\n {collapseText}\n </Tag>\n )}\n </div>\n );\n }\n);\n\nTagGroup.displayName = \"TagGroup\";\n","import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport styles from \"./Button.module.pcss\";\n\nexport type ButtonVariant = \"primary\" | \"secondary\" | \"outline\" | \"ghost\";\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\n\nexport interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n variant?: ButtonVariant;\n size?: ButtonSize;\n startIcon?: React.ReactNode;\n endIcon?: React.ReactNode;\n fullWidth?: boolean;\n loading?: boolean;\n children: React.ReactNode;\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n variant = \"primary\",\n size = \"md\",\n startIcon,\n endIcon,\n fullWidth = false,\n loading = false,\n disabled,\n children,\n className,\n ...props\n },\n ref\n ) => {\n const isDisabled = disabled || loading;\n\n return (\n <button\n ref={ref}\n type=\"button\"\n className={cn(\n styles.button,\n styles[`button--${variant}`],\n styles[`button--${size}`],\n fullWidth && styles[\"button--fullWidth\"],\n loading && styles[\"button--loading\"],\n className\n )}\n disabled={isDisabled}\n aria-busy={loading}\n aria-disabled={isDisabled}\n {...props}\n >\n {loading && (\n <span className={styles.buttonSpinner} aria-hidden=\"true\" />\n )}\n {startIcon && !loading && (\n <span className={styles.buttonIcon}>{startIcon}</span>\n )}\n <span className={styles.buttonContent}>{children}</span>\n {endIcon && !loading && (\n <span className={styles.buttonIcon}>{endIcon}</span>\n )}\n </button>\n );\n }\n);\n\nButton.displayName = \"Button\";\n","import React, { forwardRef } from 'react';\nimport cn from 'classnames';\nimport styles from './Icon.module.pcss';\n\nexport interface IconProps extends React.SVGProps<SVGSVGElement> {\n color?: string;\n children?: React.ReactNode;\n svg?: string;\n name?: string;\n decorative?: boolean;\n}\n\nexport const Icon = forwardRef<SVGSVGElement, IconProps>(\n (\n {\n color = 'currentColor',\n children,\n svg,\n name,\n decorative = false,\n className,\n viewBox = '0 0 24 24',\n fill = 'none',\n xmlns = 'http://www.w3.org/2000/svg',\n ...props\n },\n ref\n ) => {\n if (svg) {\n const svgContent = svg.replace(/<svg[^>]*>/, '').replace(/<\\/svg>/, '');\n\n return (\n <svg\n ref={ref}\n className={cn(styles.icon, styles['icon--custom'], className)}\n viewBox={viewBox}\n xmlns={xmlns}\n aria-hidden={decorative}\n aria-label={!decorative && name ? name : undefined}\n role={!decorative ? 'img' : undefined}\n dangerouslySetInnerHTML={{ __html: svgContent }}\n {...props}\n />\n );\n }\n\n return (\n <svg\n ref={ref}\n className={cn(styles.icon, className)}\n viewBox={viewBox}\n fill={fill}\n xmlns={xmlns}\n color={color}\n aria-hidden={decorative}\n aria-label={!decorative && name ? name : undefined}\n role={!decorative ? 'img' : undefined}\n {...props}\n >\n {children}\n </svg>\n );\n }\n);\n\nIcon.displayName = 'Icon';\n\n","import React from \"react\";\nimport cn from \"classnames\";\nimport { Typography } from \"../Typography\";\nimport type { IconProps } from \"../Icon\";\nimport styles from \"./LabelMenuItem.module.pcss\";\n\nexport interface LabelMenuItemProps {\n label: string;\n icon: React.ComponentType<Partial<IconProps>>;\n onClick: () => void;\n disabled?: boolean;\n className?: string;\n iconSize?: string | number;\n}\n\nexport const LabelMenuItem: React.FC<LabelMenuItemProps> = ({\n label,\n icon: IconComponent,\n onClick,\n disabled = false,\n className,\n iconSize = \"50px\",\n}) => {\n return (\n <button\n className={cn(styles.labelMenuItem, className)}\n onClick={onClick}\n disabled={disabled}\n >\n <div className={styles.icon}>\n <IconComponent decorative width={iconSize} height={iconSize} />\n </div>\n <Typography\n as=\"span\"\n variant=\"body\"\n color=\"secondary\"\n className={styles.label}\n >\n {label}\n </Typography>\n </button>\n );\n};\n\nLabelMenuItem.displayName = \"LabelMenuItem\";\n","import React from 'react';\nimport cn from 'classnames';\nimport { Icon, IconProps } from '../Icon';\nimport styles from './HeartIcon.module.pcss';\n\nexport interface HeartIconProps extends Omit<IconProps, 'children' | 'svg'> {\n /** Залитое сердечко (лайк поставлен) */\n filled?: boolean;\n}\n\nexport const HeartIcon: React.FC<HeartIconProps> = ({ filled = false, className, ...props }) => (\n <Icon\n viewBox=\"0 0 24 24\"\n fill={filled ? 'currentColor' : 'none'}\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n className={cn(!filled && styles.heartIconOutline, className)}\n {...props}\n >\n <path d=\"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z\" />\n </Icon>\n);\n","import React, { forwardRef, useState, useCallback } from 'react';\nimport cn from 'classnames';\nimport { BaseComponentProps } from '@components/types';\nimport { Typography } from '../Typography';\nimport { HeartIcon } from '../Icon/Icons';\nimport styles from './LikeButton.module.pcss';\n\nexport interface LikeButtonProps\n extends BaseComponentProps,\n Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'children'> {\n liked?: boolean;\n defaultLiked?: boolean;\n count?: number;\n onLike?: (liked: boolean) => void;\n onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;\n}\n\nexport const LikeButton = forwardRef<HTMLButtonElement, LikeButtonProps>(\n (\n {\n liked: likedProp,\n defaultLiked = false,\n count,\n onLike,\n onClick,\n className,\n testId,\n disabled,\n ...props\n },\n ref\n ) => {\n const isControlled = likedProp !== undefined;\n const [uncontrolledLiked, setUncontrolledLiked] = useState(defaultLiked);\n const [isPopping, setIsPopping] = useState(false);\n const [countBump, setCountBump] = useState(false);\n\n const liked = isControlled ? likedProp : uncontrolledLiked;\n\n const handleClick = useCallback(\n (e: React.MouseEvent<HTMLButtonElement>) => {\n if (disabled) return;\n const nextLiked = !liked;\n if (!isControlled) setUncontrolledLiked(nextLiked);\n onLike?.(nextLiked);\n onClick?.(e);\n if (nextLiked) {\n setIsPopping(true);\n if (count !== undefined) setCountBump(true);\n }\n },\n [disabled, liked, isControlled, onLike, onClick, count]\n );\n\n const handleHeartAnimationEnd = useCallback(() => {\n setIsPopping(false);\n }, []);\n\n const handleCountAnimationEnd = useCallback((e: React.AnimationEvent<HTMLSpanElement>) => {\n e.stopPropagation();\n setCountBump(false);\n }, []);\n\n return (\n <button\n ref={ref}\n type=\"button\"\n className={cn(\n styles.likeButton,\n liked && styles['likeButton--liked'],\n isPopping && styles['likeButton--pop'],\n disabled && styles['likeButton--disabled'],\n className\n )}\n aria-pressed={liked}\n aria-label={liked ? 'Убрать лайк' : 'Поставить лайк'}\n disabled={disabled}\n data-testid={testId}\n onClick={handleClick}\n onAnimationEnd={handleHeartAnimationEnd}\n {...props}\n >\n <span className={styles.heartWrap}>\n <HeartIcon filled={liked} className={styles.heart} decorative />\n </span>\n {count !== undefined && (\n <span\n className={cn(styles.countWrap, countBump && styles['countWrap--bump'])}\n onAnimationEnd={handleCountAnimationEnd}\n >\n <Typography variant=\"caption\" className={styles.count} as=\"span\">\n {count}\n </Typography>\n </span>\n )}\n </button>\n );\n }\n);\n\nLikeButton.displayName = 'LikeButton';\n","export function deepMerge<T>(target: T, source: Partial<T>): T {\n if (source === null || source === undefined) {\n return target;\n }\n\n if (typeof source !== 'object' || Array.isArray(source)) {\n return source as T;\n }\n\n if (typeof target !== 'object' || Array.isArray(target)) {\n return source as T;\n }\n\n const result = { ...target };\n\n Object.keys(source).forEach((key) => {\n const sourceValue = (source as Record<string, unknown>)[key];\n const targetValue = (target as Record<string, unknown>)[key];\n\n if (\n sourceValue !== null &&\n sourceValue !== undefined &&\n typeof sourceValue === 'object' &&\n !Array.isArray(sourceValue) &&\n typeof targetValue === 'object' &&\n !Array.isArray(targetValue) &&\n targetValue !== null\n ) {\n (result as Record<string, unknown>)[key] = deepMerge(targetValue, sourceValue);\n } else {\n (result as Record<string, unknown>)[key] = sourceValue;\n }\n });\n\n return result;\n}\n\n","import type { Theme } from './types';\nimport { deepMerge } from '../utils';\n\nexport function mergeTheme(\n baseTheme: Theme,\n overrides: Partial<Theme>\n): Theme {\n return deepMerge(baseTheme, overrides);\n}\n\nexport function getSpacingVar(\n spacing: number | string | undefined\n): string | undefined {\n if (spacing === undefined) return undefined;\n\n if (typeof spacing === 'number') {\n return `${spacing * 4}px`;\n }\n\n return spacing;\n}\n","import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport type { BaseComponentProps } from \"../../types\";\nimport { getSpacingVar } from \"@tokens/utils\";\nimport styles from \"./Stack.module.pcss\";\n\nexport type StackDirection =\n | \"row\"\n | \"column\"\n | \"row-reverse\"\n | \"column-reverse\";\nexport type StackAlign = \"start\" | \"end\" | \"center\" | \"stretch\" | \"baseline\";\nexport type StackJustify =\n | \"start\"\n | \"end\"\n | \"center\"\n | \"between\"\n | \"around\"\n | \"evenly\";\nexport type StackWrap = \"nowrap\" | \"wrap\" | \"wrap-reverse\";\n\nexport type StackGap = number | string;\n\ntype StackElement =\n | \"div\"\n | \"section\"\n | \"article\"\n | \"main\"\n | \"header\"\n | \"footer\"\n | \"aside\"\n | \"nav\";\n\nexport interface StackProps\n extends\n BaseComponentProps,\n Omit<React.HTMLAttributes<HTMLDivElement>, \"ref\"> {\n direction?: StackDirection;\n align?: StackAlign;\n justify?: StackJustify;\n wrap?: StackWrap;\n gap?: StackGap;\n as?: StackElement;\n children: React.ReactNode;\n}\n\nexport const Stack = forwardRef<HTMLDivElement, StackProps>(\n (\n {\n direction = \"row\",\n align = \"stretch\",\n justify = \"start\",\n wrap = \"nowrap\",\n gap = 0,\n as: Component = \"div\",\n children,\n className,\n testId,\n ...props\n },\n ref\n ) => {\n // Вычисляем значение gap через утилиту\n const gapValue = getSpacingVar(gap);\n\n return (\n <Component\n ref={ref}\n className={cn(\n styles.stack,\n styles[`stack--direction-${direction}`],\n styles[`stack--align-${align}`],\n styles[`stack--justify-${justify}`],\n styles[`stack--wrap-${wrap}`],\n className\n )}\n style={{ gap: gapValue, ...props.style }}\n {...(testId && { \"data-testid\": testId })}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nStack.displayName = \"Stack\";\n","import React, { forwardRef } from \"react\";\nimport cn from \"classnames\";\nimport { getSpacingVar } from \"@tokens/utils\";\nimport styles from \"./Grid.module.pcss\";\nimport type { BaseComponentProps } from \"../../types\";\n\nexport type GridGap = number | string;\n\nexport type GridColumns =\n | number\n | {\n xs?: number;\n sm?: number;\n md?: number;\n lg?: number;\n xl?: number;\n \"2xl\"?: number;\n };\n\ntype GridElement =\n | \"div\"\n | \"section\"\n | \"article\"\n | \"main\"\n | \"header\"\n | \"footer\"\n | \"aside\"\n | \"nav\";\n\nexport interface GridProps\n extends\n BaseComponentProps,\n Omit<React.HTMLAttributes<HTMLDivElement>, \"ref\"> {\n columns?: GridColumns;\n gap?: GridGap;\n minColumnWidth?: string;\n as?: GridElement;\n children: React.ReactNode;\n}\n\nexport const Grid = forwardRef<HTMLDivElement, GridProps>(\n (\n {\n columns = 12,\n gap = 4,\n minColumnWidth,\n as: Component = \"div\",\n children,\n className,\n testId,\n ...props\n },\n ref\n ) => {\n const gapValue = getSpacingVar(gap);\n\n const getGridStyles = () => {\n const baseStyle: React.CSSProperties = {\n gap: gapValue,\n };\n\n if (minColumnWidth) {\n baseStyle.gridTemplateColumns = `repeat(auto-fit, minmax(${minColumnWidth}, 1fr))`;\n return baseStyle;\n }\n\n if (typeof columns === \"number\") {\n baseStyle.gridTemplateColumns = `repeat(${columns}, 1fr)`;\n return baseStyle;\n }\n\n if (typeof columns === \"object\") {\n const cssVars: Record<string, string> = {};\n\n if (columns.xs !== undefined) {\n cssVars[\"--grid-cols-xs\"] = String(columns.xs);\n }\n if (columns.sm !== undefined) {\n cssVars[\"--grid-cols-sm\"] = String(columns.sm);\n }\n if (columns.md !== undefined) {\n cssVars[\"--grid-cols-md\"] = String(columns.md);\n }\n if (columns.lg !== undefined) {\n cssVars[\"--grid-cols-lg\"] = String(columns.lg);\n }\n if (columns.xl !== undefined) {\n cssVars[\"--grid-cols-xl\"] = String(columns.xl);\n }\n if (columns[\"2xl\"] !== undefined) {\n cssVars[\"--grid-cols-2xl\"] = String(columns[\"2xl\"]);\n }\n\n const baseColumns =\n columns.xs ||\n columns.sm ||\n columns.md ||\n columns.lg ||\n columns.xl ||\n columns[\"2xl\"] ||\n 1;\n baseStyle.gridTemplateColumns = `repeat(${baseColumns}, 1fr)`;\n\n return { ...baseStyle, ...cssVars };\n }\n\n return baseStyle;\n };\n\n const gridStyles = getGridStyles();\n\n return (\n <Component\n ref={ref}\n className={cn(styles.grid, className)}\n style={{\n ...gridStyles,\n ...props.style,\n }}\n {...(testId && { \"data-testid\": testId })}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nGrid.displayName = \"Grid\";\n","import React from 'react';\nimport cn from 'classnames';\nimport { Typography } from '../../../../primitives/Typography';\nimport styles from './ArticlePreviewContent.module.pcss';\n\nexport type ArticlePreviewContentView = 'tile' | 'row';\n\nexport interface ArticlePreviewContentProps {\n title: string;\n imageUrl?: string | undefined;\n imageAlt: string;\n formattedDate: string;\n view: ArticlePreviewContentView;\n tags?: React.ReactNode;\n}\n\nexport function ArticlePreviewContent({\n title,\n imageUrl,\n imageAlt,\n formattedDate,\n view,\n tags,\n}: ArticlePreviewContentProps) {\n return (\n <div className={cn(styles.content, styles[`content--${view}`])}>\n <div className={styles.previewWrap}>\n {tags && view === 'tile' && (\n <div className={styles.tagsSlotTile} onClick={(e) => e.stopPropagation()}>\n {tags}\n </div>\n )}\n {imageUrl ? (\n <img\n src={imageUrl}\n alt={imageAlt || title}\n className={styles.previewImage}\n decoding=\"async\"\n loading=\"lazy\"\n />\n ) : (\n <div className={styles.previewPlaceholder} aria-hidden=\"true\" />\n )}\n </div>\n <div className={styles.body}>\n {tags && view === 'row' && (\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 <Typography variant=\"caption\" className={styles.date}>\n {formattedDate}\n </Typography>\n </div>\n </div>\n );\n}\n\nArticlePreviewContent.displayName = 'ArticlePreviewContent';\n","import React, { forwardRef, useMemo } from 'react';\nimport cn from 'classnames';\nimport { BaseComponentProps } from '@components/types';\nimport { ArticlePreviewContent } from './components/ArticlePreviewContent';\nimport styles from './ArticlePreview.module.pcss';\n\nexport type ArticlePreviewView = 'tile' | 'row';\n\nexport interface ArticlePreviewProps\n extends BaseComponentProps,\n Omit<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.HTMLAttributes<HTMLDivElement>, 'title'> {\n title: string;\n publishedAt: Date | string;\n imageUrl?: string;\n view?: ArticlePreviewView;\n imageAlt?: string;\n href?: string;\n tags?: React.ReactNode;\n}\n\nfunction formatDate(value: Date | string): string {\n const date = typeof value === 'string' ? new Date(value) : value;\n return date.toLocaleDateString('ru-RU', {\n day: 'numeric',\n month: 'long',\n year: 'numeric',\n });\n}\n\nexport const ArticlePreview = forwardRef<HTMLDivElement | HTMLAnchorElement, ArticlePreviewProps>(\n (\n {\n title,\n publishedAt,\n imageUrl,\n view = 'tile',\n imageAlt = '',\n href,\n tags,\n className,\n testId,\n onClick,\n onKeyDown,\n ...props\n },\n ref\n ) => {\n const formattedDate = useMemo(() => formatDate(publishedAt), [publishedAt]);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLElement>) => {\n if (!href && onClick && (e.key === 'Enter' || e.key === ' ')) {\n e.preventDefault();\n onClick(e as unknown as React.MouseEvent<HTMLDivElement>);\n }\n (onKeyDown as React.KeyboardEventHandler<HTMLElement>)?.(e);\n };\n\n const isInteractive = Boolean(href || onClick);\n const sharedClassName = cn(\n styles.root,\n styles[`root--${view}`],\n isInteractive && styles['root--interactive'],\n className\n );\n const sharedProps = {\n className: sharedClassName,\n onClick,\n onKeyDown: isInteractive ? handleKeyDown : onKeyDown,\n 'data-testid': testId,\n ...props,\n };\n\n if (href) {\n return (\n <a ref={ref as React.Ref<HTMLAnchorElement>} href={href} {...sharedProps}>\n <ArticlePreviewContent\n title={title}\n imageUrl={imageUrl}\n imageAlt={imageAlt}\n formattedDate={formattedDate}\n view={view}\n tags={tags}\n />\n </a>\n );\n }\n\n return (\n <div\n ref={ref as React.Ref<HTMLDivElement>}\n role={isInteractive ? 'button' : undefined}\n tabIndex={isInteractive ? 0 : undefined}\n {...sharedProps}\n >\n <ArticlePreviewContent\n title={title}\n imageUrl={imageUrl}\n imageAlt={imageAlt}\n formattedDate={formattedDate}\n view={view}\n tags={tags}\n />\n </div>\n );\n }\n);\n\nArticlePreview.displayName = 'ArticlePreview';\n","import type { Theme } from '../types';\n\n\nexport const baseTheme: Omit<Theme, 'palette'> = {\n spacing: {\n unit: 4,\n },\n typography: {\n fontFamily: '-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, sans-serif',\n fontSize: {\n xs: '0.75rem',\n sm: '0.875rem',\n base: '1rem',\n lg: '1.125rem',\n xl: '1.25rem',\n '2xl': '1.5rem',\n '3xl': '1.875rem',\n '4xl': '2.25rem',\n },\n fontWeight: {\n normal: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n },\n lineHeight: {\n tight: 1.25,\n normal: 1.5,\n relaxed: 1.75,\n },\n },\n shadows: {\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',\n base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',\n md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',\n none: 'none',\n },\n border: {\n base: '2px'\n },\n borderRadius: {\n none: '0',\n round: '50%',\n sm: '0.125rem',\n base: '0.25rem',\n md: '0.375rem',\n lg: '0.5rem',\n xl: '0.75rem',\n '2xl': '1rem',\n full: '9999px',\n },\n transitions: {\n duration: {\n fast: '150ms',\n base: '200ms',\n slow: '300ms',\n },\n easing: {\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n easeOut: 'cubic-bezier(0, 0, 0.2, 1)',\n },\n },\n zIndex: {\n dropdown: 1000,\n sticky: 1020,\n fixed: 1030,\n modalBackdrop: 1040,\n modal: 1050,\n popover: 1060,\n tooltip: 1070,\n },\n} as const;\n\n","import type { Theme } from '../types';\nimport { baseTheme } from './baseTheme';\n\nexport const lightTheme = {\n ...baseTheme,\n palette: {\n primary: {\n main: '#3971b8',\n hover: '#4a82c9',\n active: '#2d5a96',\n contrastText: '#ffffff',\n },\n secondary: {\n main: '#c8d69b',\n hover: '#d4e0b0',\n active: '#b8c882',\n contrastText: '#343b1b',\n },\n error: {\n main: '#ef4444',\n hover: '#f87171',\n active: '#dc2626',\n },\n warning: {\n main: '#f59e0b',\n hover: '#fbbf24',\n active: '#d97706',\n },\n success: {\n main: '#22c55e',\n hover: '#4ade80',\n active: '#16a34a',\n },\n text: {\n primary: '#fbfcee',\n secondary: '#5a6342',\n disabled: '#a3a3a3',\n },\n background: {\n default: '#fbfcee',\n accent: '#f6e6a5',\n paper: '#ffffff',\n },\n border: {\n default: '#c8d69b',\n subtle: '#e5e5e5',\n strong: '#5a6342',\n },\n },\n} satisfies Theme;\n\n","import type { Theme } from '../types';\nimport { baseTheme } from './baseTheme';\n\n/**\n * Темная тема\n * Расширяет базовую тему, добавляя темную цветовую палитру\n */\nexport const darkTheme = {\n ...baseTheme,\n palette: {\n primary: {\n main: '#0ea5e9',\n hover: '#38bdf8',\n active: '#0284c7',\n contrastText: '#ffffff',\n },\n secondary: {\n main: '#a855f7',\n hover: '#c084fc',\n active: '#9333ea',\n contrastText: '#ffffff',\n },\n error: {\n main: '#ef4444',\n hover: '#f87171',\n active: '#dc2626',\n },\n warning: {\n main: '#f59e0b',\n hover: '#fbbf24',\n active: '#d97706',\n },\n success: {\n main: '#22c55e',\n hover: '#4ade80',\n active: '#16a34a',\n },\n text: {\n primary: '#fafafa',\n secondary: '#a3a3a3',\n disabled: '#525252',\n },\n background: {\n default: '#171717',\n accent: '#212121',\n paper: '#262626',\n },\n border: {\n default: '#404040',\n subtle: '#262626',\n strong: '#525252',\n },\n },\n} satisfies Theme;\n\n","import type { Theme } from './types';\n\nfunction camelToKebab(str: string): string {\n return str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase();\n}\n\nfunction pathToCssVarName(path: string[]): string {\n return `--${path.join('-')}`;\n}\n\nfunction traverseObject(\n obj: unknown,\n path: string[],\n vars: Record<string, string>\n): void {\n if (obj === null || obj === undefined) {\n return;\n }\n\n if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean') {\n const varName = pathToCssVarName(path);\n vars[varName] = String(obj);\n return;\n }\n\n if (Array.isArray(obj)) {\n obj.forEach((item, index) => {\n traverseObject(item, [...path, String(index)], vars);\n });\n return;\n }\n\n if (typeof obj === 'object') {\n Object.entries(obj).forEach(([key, value]) => {\n const kebabKey = camelToKebab(key);\n traverseObject(value, [...path, kebabKey], vars);\n });\n }\n}\n\nexport function themeToCssVars(theme: Theme): Record<string, string> {\n const vars: Record<string, string> = {};\n traverseObject(theme, [], vars);\n return vars;\n}\n","import { createContext, useContext, useMemo, useEffect, type FC, type ReactNode } from 'react';\nimport type { Theme } from '../tokens';\nimport { lightTheme } from '../tokens';\nimport { themeToCssVars } from '../tokens/generate-css-vars';\nimport { mergeTheme } from '../tokens/utils';\n\ninterface ThemeContextValue {\n theme: Theme;\n}\n\nconst ThemeContext = createContext<ThemeContextValue | undefined>(undefined);\n\nexport interface ThemeProviderProps {\n theme?: Theme | Partial<Theme>;\n children: ReactNode;\n}\n\nexport const ThemeProvider: FC<ThemeProviderProps> = ({ theme = lightTheme, children }) => {\n const fullTheme = useMemo(() => {\n if ('palette' in theme && theme.palette && 'primary' in theme.palette) {\n return theme as Theme;\n }\n return mergeTheme(lightTheme, theme);\n }, [theme]);\n\n const cssVars = useMemo(() => themeToCssVars(fullTheme), [fullTheme]);\n\n\n useEffect(() => {\n const root = document.documentElement;\n Object.entries(cssVars).forEach(([key, value]) => {\n root.style.setProperty(key, value);\n });\n\n return () => {\n Object.keys(cssVars).forEach((key) => {\n root.style.removeProperty(key);\n });\n };\n }, [cssVars]);\n\n const contextValue = useMemo(\n () => ({\n theme: fullTheme,\n }),\n [fullTheme]\n );\n\n return (\n <ThemeContext.Provider value={contextValue}>\n {children}\n </ThemeContext.Provider>\n );\n};\n\nexport function useThemeContext(): ThemeContextValue {\n const context = useContext(ThemeContext);\n if (context === undefined) {\n throw new Error('useThemeContext must be used within a ThemeProvider');\n }\n return context;\n}\n","import type { Theme } from '../tokens';\nimport { useThemeContext } from '../themes/ThemeProvider';\n\nexport function useTheme(): Theme {\n const { theme } = useThemeContext();\n return theme;\n}\n\n"],"names":["f","require$$0","k","l","m","n","p","q","c","a","g","b","d","e","h","reactJsxRuntime_production_min","React","REACT_ELEMENT_TYPE","REACT_PORTAL_TYPE","REACT_FRAGMENT_TYPE","REACT_STRICT_MODE_TYPE","REACT_PROFILER_TYPE","REACT_PROVIDER_TYPE","REACT_CONTEXT_TYPE","REACT_FORWARD_REF_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_MEMO_TYPE","REACT_LAZY_TYPE","REACT_OFFSCREEN_TYPE","MAYBE_ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","maybeIterator","ReactSharedInternals","error","format","_len2","args","_key2","printWarning","level","ReactDebugCurrentFrame","stack","argsWithFormat","item","enableScopeAPI","enableCacheElement","enableTransitionTracing","enableLegacyHidden","enableDebugTracing","REACT_MODULE_REFERENCE","isValidElementType","type","getWrappedName","outerType","innerType","wrapperName","displayName","functionName","getContextName","getComponentNameFromType","context","provider","outerName","lazyComponent","payload","init","assign","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","disabledLog","disableLogs","props","reenableLogs","ReactCurrentDispatcher","prefix","describeBuiltInComponentFrame","name","source","ownerFn","x","match","reentry","componentFrameCache","PossiblyWeakMap","describeNativeComponentFrame","fn","construct","frame","control","previousPrepareStackTrace","previousDispatcher","Fake","sample","sampleLines","controlLines","s","_frame","syntheticFrame","describeFunctionComponentFrame","shouldConstruct","Component","prototype","describeUnknownElementTypeFrameInDEV","hasOwnProperty","loggedTypeFailures","setCurrentlyValidatingElement","element","owner","checkPropTypes","typeSpecs","values","location","componentName","has","typeSpecName","error$1","err","ex","isArrayImpl","isArray","typeName","value","hasToStringTag","willCoercionThrow","testStringCoercion","checkKeyStringCoercion","ReactCurrentOwner","RESERVED_PROPS","specialPropKeyWarningShown","specialPropRefWarningShown","hasValidRef","config","getter","hasValidKey","warnIfStringRefCannotBeAutoConverted","self","defineKeyPropWarningGetter","warnAboutAccessingKey","defineRefPropWarningGetter","warnAboutAccessingRef","ReactElement","key","ref","jsxDEV","maybeKey","propName","defaultProps","ReactCurrentOwner$1","ReactDebugCurrentFrame$1","setCurrentlyValidatingElement$1","propTypesMisspellWarningShown","isValidElement","object","getDeclarationErrorAddendum","getSourceInfoErrorAddendum","ownerHasKeyUseWarning","getCurrentComponentErrorInfo","parentType","info","parentName","validateExplicitKey","currentComponentErrorInfo","childOwner","validateChildKeys","node","i","child","iteratorFn","iterator","step","validatePropTypes","propTypes","_name","validateFragmentProps","fragment","keys","didWarnAboutKeySpread","jsxWithValidation","isStaticChildren","validType","sourceInfo","typeString","children","beforeExample","afterExample","jsxWithValidationStatic","jsxWithValidationDynamic","jsx","jsxs","reactJsxRuntime_development","jsxRuntimeModule","require$$1","hasOwn","classNames","classes","arg","appendClass","parseValue","newClass","module","Typography","forwardRef","variant","size","color","as","className","cn","styles","TagRoot","Tag","icon","iconPosition","closeable","onClose","href","handleClose","event","rootProps","classNameComputed","stopPropagation","TagGroupItemButton","tag","baseTagProps","handleClick","useCallback","_a","handleKeyDown","isTagGroupItem","TagGroupItemView","TagGroup","tags","maxVisible","overflowTagProps","collapseTagProps","collapseText","isExpanded","setIsExpanded","useState","visibleTags","hiddenCount","useMemo","handleExpand","handleCollapse","handleExpandKeyDown","handleCollapseKeyDown","index","Button","startIcon","endIcon","fullWidth","loading","disabled","isDisabled","Icon","svg","decorative","viewBox","fill","xmlns","svgContent","LabelMenuItem","label","IconComponent","onClick","iconSize","HeartIcon","filled","LikeButton","likedProp","defaultLiked","count","onLike","testId","isControlled","uncontrolledLiked","setUncontrolledLiked","isPopping","setIsPopping","countBump","setCountBump","liked","nextLiked","handleHeartAnimationEnd","handleCountAnimationEnd","deepMerge","target","result","sourceValue","targetValue","mergeTheme","baseTheme","overrides","getSpacingVar","spacing","Stack","direction","align","justify","wrap","gap","gapValue","Grid","columns","minColumnWidth","gridStyles","baseStyle","cssVars","baseColumns","ArticlePreviewContent","title","imageUrl","imageAlt","formattedDate","view","formatDate","ArticlePreview","publishedAt","onKeyDown","isInteractive","sharedProps","lightTheme","darkTheme","camelToKebab","str","pathToCssVarName","path","traverseObject","obj","vars","varName","kebabKey","themeToCssVars","theme","ThemeContext","createContext","ThemeProvider","fullTheme","useEffect","root","contextValue","useThemeContext","useContext","useTheme"],"mappings":";;;;;;;;4CASa,IAAIA,EAAEC,EAAiBC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,UAAU,eAAeC,EAAEL,EAAE,mDAAmD,kBAAkBM,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAA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