stp-ui-kit 0.0.1

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.
Files changed (50) hide show
  1. package/README.md +93 -0
  2. package/dist/App.d.ts +1 -0
  3. package/dist/banners/Sat.svg +3 -0
  4. package/dist/banners/SatFinished.svg +3 -0
  5. package/dist/components/Banner/Banner.d.ts +11 -0
  6. package/dist/components/Banner/Banner.stories.d.ts +6 -0
  7. package/dist/components/Banner/utils/utils.d.ts +1 -0
  8. package/dist/components/Button/Button.d.ts +10 -0
  9. package/dist/components/Button/Button.stories.d.ts +11 -0
  10. package/dist/components/Collapse/Collapse.d.ts +12 -0
  11. package/dist/components/CourseCollapse/CourseCollapse.d.ts +13 -0
  12. package/dist/components/Empty/Empty.d.ts +26 -0
  13. package/dist/components/Empty/Empty.stories.d.ts +6 -0
  14. package/dist/components/Empty/index.d.ts +10 -0
  15. package/dist/components/FormItem/FormItem.d.ts +26 -0
  16. package/dist/components/FormItem/FormItemContext.d.ts +6 -0
  17. package/dist/components/IconButton/IconButton.d.ts +11 -0
  18. package/dist/components/IconButton/IconButton.stories.d.ts +8 -0
  19. package/dist/components/Modal/Modal.d.ts +22 -0
  20. package/dist/components/NavigationItem/NavigationItem.d.ts +12 -0
  21. package/dist/components/PageHeader/PageHeader.d.ts +2 -0
  22. package/dist/components/ProgressLine/ProgressLine.d.ts +4 -0
  23. package/dist/components/SectionHeader/SectionHeader.d.ts +6 -0
  24. package/dist/components/TopBar/TopBar.d.ts +14 -0
  25. package/dist/components/Typography/Typography.d.ts +7 -0
  26. package/dist/components/index.d.ts +15 -0
  27. package/dist/icons/ArrowLine.svg +3 -0
  28. package/dist/icons/ParentLine.svg +3 -0
  29. package/dist/icons/SideLine.svg +3 -0
  30. package/dist/icons/decorativeIcons/Alert.svg +11 -0
  31. package/dist/icons/decorativeIcons/Error.svg +11 -0
  32. package/dist/icons/decorativeIcons/Locked.svg +10 -0
  33. package/dist/icons/decorativeIcons/Success.svg +10 -0
  34. package/dist/index.d.ts +2 -0
  35. package/dist/main.d.ts +0 -0
  36. package/dist/shared/i18n/config.d.ts +2 -0
  37. package/dist/shared/i18n/locales/en/index.d.ts +1 -0
  38. package/dist/shared/i18n/locales/index.d.ts +5 -0
  39. package/dist/shared/i18n/locales/kz/index.d.ts +1 -0
  40. package/dist/shared/i18n/locales/ru/index.d.ts +1 -0
  41. package/dist/shared/i18n/locales/uz/index.d.ts +1 -0
  42. package/dist/shared/i18n/types.d.ts +2 -0
  43. package/dist/stp-ui-kit.cjs.js +71 -0
  44. package/dist/stp-ui-kit.es.js +961 -0
  45. package/dist/style.css +1 -0
  46. package/dist/tokens.d.ts +515 -0
  47. package/dist/types/index.d.ts +2 -0
  48. package/dist/vite.svg +1 -0
  49. package/package.json +87 -0
  50. package/src/styles/_variables.scss +431 -0
@@ -0,0 +1,71 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react");var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ye={exports:{}},te={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and 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 we;function De(){if(we)return te;we=1;var t=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(d,u,l){var p=null;if(l!==void 0&&(p=""+l),u.key!==void 0&&(p=""+u.key),"key"in u){l={};for(var g in u)g!=="key"&&(l[g]=u[g])}else l=u;return u=l.ref,{$$typeof:t,type:d,key:p,ref:u!==void 0?u:null,props:l}}return te.Fragment=i,te.jsx=s,te.jsxs=s,te}var ne={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and 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 xe;function Ie(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===C?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case V:return"Profiler";case R:return"StrictMode";case W:return"Suspense";case Y:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case I:return"Portal";case K:return(e.displayName||"Context")+".Provider";case fe:return(e._context.displayName||"Context")+".Consumer";case he:var c=e.render;return e=e.displayName,e||(e=c.displayName||c.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oe:return c=e.displayName||null,c!==null?c:t(e.type)||"Memo";case J:c=e._payload,e=e._init;try{return t(e(c))}catch{}}return null}function i(e){return""+e}function s(e){try{i(e);var c=!1}catch{c=!0}if(c){c=console;var h=c.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return h.call(c,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),i(e)}}function d(e){if(e===H)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===J)return"<...>";try{var c=t(e);return c?"<"+c+">":"<...>"}catch{return"<...>"}}function u(){var e=w.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function p(e){if(U.call(e,"key")){var c=Object.getOwnPropertyDescriptor(e,"key").get;if(c&&c.isReactWarning)return!1}return e.key!==void 0}function g(e,c){function h(){o||(o=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",c))}h.isReactWarning=!0,Object.defineProperty(e,"key",{get:h,configurable:!0})}function $(){var e=t(this.type);return n[e]||(n[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function y(e,c,h,v,x,b,z,P){return h=b.ref,e={$$typeof:S,type:e,key:c,props:b,_owner:x},(h!==void 0?h:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:$}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,c,h,v,x,b,z,P){var j=c.children;if(j!==void 0)if(v)if(ie(j)){for(v=0;v<j.length;v++)k(j[v]);Object.freeze&&Object.freeze(j)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else k(j);if(U.call(c,"key")){j=t(e);var T=Object.keys(c).filter(function(L){return L!=="key"});v=0<T.length?"{key: someKey, "+T.join(": ..., ")+": ...}":"{key: someKey}",m[j+v]||(T=0<T.length?"{"+T.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
22
+ <%s key={someKey} {...props} />`,v,j,T,j),m[j+v]=!0)}if(j=null,h!==void 0&&(s(h),j=""+h),p(c)&&(s(c.key),j=""+c.key),"key"in c){h={};for(var O in c)O!=="key"&&(h[O]=c[O])}else h=c;return j&&g(h,typeof e=="function"?e.displayName||e.name||"Unknown":e),y(e,j,b,x,u(),h,z,P)}function k(e){typeof e=="object"&&e!==null&&e.$$typeof===S&&e._store&&(e._store.validated=1)}var D=M,S=Symbol.for("react.transitional.element"),I=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),fe=Symbol.for("react.consumer"),K=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),C=Symbol.for("react.client.reference"),w=D.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,ie=Array.isArray,f=console.createTask?console.createTask:function(){return null};D={"react-stack-bottom-frame":function(e){return e()}};var o,n={},_=D["react-stack-bottom-frame"].bind(D,l)(),a=f(d(l)),m={};ne.Fragment=H,ne.jsx=function(e,c,h,v,x){var b=1e4>w.recentlyCreatedOwnerStacks++;return N(e,c,h,!1,v,x,b?Error("react-stack-top-frame"):_,b?f(d(e)):a)},ne.jsxs=function(e,c,h,v,x){var b=1e4>w.recentlyCreatedOwnerStacks++;return N(e,c,h,!0,v,x,b?Error("react-stack-top-frame"):_,b?f(d(e)):a)}}()),ne}process.env.NODE_ENV==="production"?ye.exports=De():ye.exports=Ie();var r=ye.exports,Ce={exports:{}};/*!
23
+ Copyright (c) 2018 Jed Watson.
24
+ Licensed under the MIT License (MIT), see
25
+ http://jedwatson.github.io/classnames
26
+ */(function(t){(function(){var i={}.hasOwnProperty;function s(){for(var l="",p=0;p<arguments.length;p++){var g=arguments[p];g&&(l=u(l,d(g)))}return l}function d(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return s.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var p="";for(var g in l)i.call(l,g)&&l[g]&&(p=u(p,g));return p}function u(l,p){return p?l?l+" "+p:l+p:l}t.exports?(s.default=s,t.exports=s):window.classNames=s})()})(Ce);var Pe=Ce.exports;const A=je(Pe),Re="_typography_18a99_29",be={"shadow-0":"_shadow-0_18a99_1","shadow-100":"_shadow-100_18a99_5","shadow-200":"_shadow-200_18a99_9","shadow-300":"_shadow-300_18a99_13","shadow-400":"_shadow-400_18a99_17","shadow-500":"_shadow-500_18a99_21","shadow-600":"_shadow-600_18a99_25",typography:Re,"heading-xl":"_heading-xl_18a99_34","heading-lg":"_heading-lg_18a99_43","heading-md":"_heading-md_18a99_52","heading-sm":"_heading-sm_18a99_61","heading-xs":"_heading-xs_18a99_70","body-lg":"_body-lg_18a99_79","body-md":"_body-md_18a99_88","body-sm":"_body-sm_18a99_97"},E=({variant:t="body-md",className:i="",children:s})=>{const d=be[t]||"";return r.jsx("div",{className:A(be.typography,d,i),children:s})},ze="_container_cgftc_29",Le="_content_cgftc_40",qe="_title_cgftc_57",Ye="_timer_cgftc_68",Fe="_timerCell_cgftc_80",He="_timerCount_cgftc_87",Be="_pattern_cgftc_102",We="_button_cgftc_129",B={container:ze,content:Le,title:qe,timer:Ye,timerCell:Fe,timerCount:He,pattern:Be,button:We};var ke={exports:{}};(function(t,i){(function(s,d){t.exports=d()})(Ae,function(){var s=1e3,d=6e4,u=36e5,l="millisecond",p="second",g="minute",$="hour",y="day",N="week",k="month",D="quarter",S="year",I="date",H="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,V=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(f){var o=["th","st","nd","rd"],n=f%100;return"["+f+(o[(n-20)%10]||o[n]||o[0])+"]"}},K=function(f,o,n){var _=String(f);return!_||_.length>=o?f:""+Array(o+1-_.length).join(n)+f},he={s:K,z:function(f){var o=-f.utcOffset(),n=Math.abs(o),_=Math.floor(n/60),a=n%60;return(o<=0?"+":"-")+K(_,2,"0")+":"+K(a,2,"0")},m:function f(o,n){if(o.date()<n.date())return-f(n,o);var _=12*(n.year()-o.year())+(n.month()-o.month()),a=o.clone().add(_,k),m=n-a<0,e=o.clone().add(_+(m?-1:1),k);return+(-(_+(n-a)/(m?a-e:e-a))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:k,y:S,w:N,d:y,D:I,h:$,m:g,s:p,ms:l,Q:D}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},W="en",Y={};Y[W]=fe;var oe="$isDayjsObject",J=function(f){return f instanceof U||!(!f||!f[oe])},Z=function f(o,n,_){var a;if(!o)return W;if(typeof o=="string"){var m=o.toLowerCase();Y[m]&&(a=m),n&&(Y[m]=n,a=m);var e=o.split("-");if(!a&&e.length>1)return f(e[0])}else{var c=o.name;Y[c]=o,a=c}return!_&&a&&(W=a),a||!_&&W},C=function(f,o){if(J(f))return f.clone();var n=typeof o=="object"?o:{};return n.date=f,n.args=arguments,new U(n)},w=he;w.l=Z,w.i=J,w.w=function(f,o){return C(f,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var U=function(){function f(n){this.$L=Z(n.locale,null,!0),this.parse(n),this.$x=this.$x||n.x||{},this[oe]=!0}var o=f.prototype;return o.parse=function(n){this.$d=function(_){var a=_.date,m=_.utc;if(a===null)return new Date(NaN);if(w.u(a))return new Date;if(a instanceof Date)return new Date(a);if(typeof a=="string"&&!/Z$/i.test(a)){var e=a.match(R);if(e){var c=e[2]-1||0,h=(e[7]||"0").substring(0,3);return m?new Date(Date.UTC(e[1],c,e[3]||1,e[4]||0,e[5]||0,e[6]||0,h)):new Date(e[1],c,e[3]||1,e[4]||0,e[5]||0,e[6]||0,h)}}return new Date(a)}(n),this.init()},o.init=function(){var n=this.$d;this.$y=n.getFullYear(),this.$M=n.getMonth(),this.$D=n.getDate(),this.$W=n.getDay(),this.$H=n.getHours(),this.$m=n.getMinutes(),this.$s=n.getSeconds(),this.$ms=n.getMilliseconds()},o.$utils=function(){return w},o.isValid=function(){return this.$d.toString()!==H},o.isSame=function(n,_){var a=C(n);return this.startOf(_)<=a&&a<=this.endOf(_)},o.isAfter=function(n,_){return C(n)<this.startOf(_)},o.isBefore=function(n,_){return this.endOf(_)<C(n)},o.$g=function(n,_,a){return w.u(n)?this[_]:this.set(a,n)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(n,_){var a=this,m=!!w.u(_)||_,e=w.p(n),c=function(T,O){var L=w.w(a.$u?Date.UTC(a.$y,O,T):new Date(a.$y,O,T),a);return m?L:L.endOf(y)},h=function(T,O){return w.w(a.toDate()[T].apply(a.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(O)),a)},v=this.$W,x=this.$M,b=this.$D,z="set"+(this.$u?"UTC":"");switch(e){case S:return m?c(1,0):c(31,11);case k:return m?c(1,x):c(0,x+1);case N:var P=this.$locale().weekStart||0,j=(v<P?v+7:v)-P;return c(m?b-j:b+(6-j),x);case y:case I:return h(z+"Hours",0);case $:return h(z+"Minutes",1);case g:return h(z+"Seconds",2);case p:return h(z+"Milliseconds",3);default:return this.clone()}},o.endOf=function(n){return this.startOf(n,!1)},o.$set=function(n,_){var a,m=w.p(n),e="set"+(this.$u?"UTC":""),c=(a={},a[y]=e+"Date",a[I]=e+"Date",a[k]=e+"Month",a[S]=e+"FullYear",a[$]=e+"Hours",a[g]=e+"Minutes",a[p]=e+"Seconds",a[l]=e+"Milliseconds",a)[m],h=m===y?this.$D+(_-this.$W):_;if(m===k||m===S){var v=this.clone().set(I,1);v.$d[c](h),v.init(),this.$d=v.set(I,Math.min(this.$D,v.daysInMonth())).$d}else c&&this.$d[c](h);return this.init(),this},o.set=function(n,_){return this.clone().$set(n,_)},o.get=function(n){return this[w.p(n)]()},o.add=function(n,_){var a,m=this;n=Number(n);var e=w.p(_),c=function(x){var b=C(m);return w.w(b.date(b.date()+Math.round(x*n)),m)};if(e===k)return this.set(k,this.$M+n);if(e===S)return this.set(S,this.$y+n);if(e===y)return c(1);if(e===N)return c(7);var h=(a={},a[g]=d,a[$]=u,a[p]=s,a)[e]||1,v=this.$d.getTime()+n*h;return w.w(v,this)},o.subtract=function(n,_){return this.add(-1*n,_)},o.format=function(n){var _=this,a=this.$locale();if(!this.isValid())return a.invalidDate||H;var m=n||"YYYY-MM-DDTHH:mm:ssZ",e=w.z(this),c=this.$H,h=this.$m,v=this.$M,x=a.weekdays,b=a.months,z=a.meridiem,P=function(O,L,ee,ce){return O&&(O[L]||O(_,m))||ee[L].slice(0,ce)},j=function(O){return w.s(c%12||12,O,"0")},T=z||function(O,L,ee){var ce=O<12?"AM":"PM";return ee?ce.toLowerCase():ce};return m.replace(V,function(O,L){return L||function(ee){switch(ee){case"YY":return String(_.$y).slice(-2);case"YYYY":return w.s(_.$y,4,"0");case"M":return v+1;case"MM":return w.s(v+1,2,"0");case"MMM":return P(a.monthsShort,v,b,3);case"MMMM":return P(b,v);case"D":return _.$D;case"DD":return w.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return P(a.weekdaysMin,_.$W,x,2);case"ddd":return P(a.weekdaysShort,_.$W,x,3);case"dddd":return x[_.$W];case"H":return String(c);case"HH":return w.s(c,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return T(c,h,!0);case"A":return T(c,h,!1);case"m":return String(h);case"mm":return w.s(h,2,"0");case"s":return String(_.$s);case"ss":return w.s(_.$s,2,"0");case"SSS":return w.s(_.$ms,3,"0");case"Z":return e}return null}(O)||e.replace(":","")})},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(n,_,a){var m,e=this,c=w.p(_),h=C(n),v=(h.utcOffset()-this.utcOffset())*d,x=this-h,b=function(){return w.m(e,h)};switch(c){case S:m=b()/12;break;case k:m=b();break;case D:m=b()/3;break;case N:m=(x-v)/6048e5;break;case y:m=(x-v)/864e5;break;case $:m=x/u;break;case g:m=x/d;break;case p:m=x/s;break;default:m=x}return a?m:w.a(m)},o.daysInMonth=function(){return this.endOf(k).$D},o.$locale=function(){return Y[this.$L]},o.locale=function(n,_){if(!n)return this.$L;var a=this.clone(),m=Z(n,_,!0);return m&&(a.$L=m),a},o.clone=function(){return w.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},f}(),ie=U.prototype;return C.prototype=ie,[["$ms",l],["$s",p],["$m",g],["$H",$],["$W",y],["$M",k],["$y",S],["$D",I]].forEach(function(f){ie[f[1]]=function(o){return this.$g(o,f[0],f[1])}}),C.extend=function(f,o){return f.$i||(f(o,U,C),f.$i=!0),C},C.locale=Z,C.isDayjs=J,C.unix=function(f){return C(1e3*f)},C.en=Y[W],C.Ls=Y,C.p={},C})})(ke);var Ue=ke.exports;const Ve=je(Ue),Je=t=>{const i=Ve(t),s=i.date(),d=s===1||s===21||s===31?"st":s===2||s===22?"nd":s===3||s===23?"rd":"th";return`${i.format("MMMM D, HH:mm").replace(s.toString(),`${s}${d}`)} (UTC +5)`},Ze=({color:t,title:i,bgPattern:s,deadline:d,bgPatternFinished:u,buttonColor:l,onClick:p})=>{const[g,$]=M.useState(!1),[y,N]=M.useState({days:0,hours:0,minutes:0,seconds:0});M.useEffect(()=>{const D=new Date(d),S=R=>({days:Math.floor(R/(1e3*60*60*24)),hours:Math.floor(R/(1e3*60*60)%24),minutes:Math.floor(R/(1e3*60)%60),seconds:Math.floor(R/1e3%60)}),I=()=>{const R=Date.now(),V=D.getTime()-R;V<=0?($(!0),N({days:0,hours:0,minutes:0,seconds:0})):N(S(V))};I();const H=setInterval(I,1e3);return()=>clearInterval(H)},[d]);const k=(D,S)=>r.jsxs("div",{className:B.timerCell,children:[r.jsx(E,{variant:"heading-lg",className:B.timerCount,children:D}),S]});return r.jsxs("div",{className:B.container,style:{backgroundColor:t},children:[r.jsxs("div",{className:B.content,children:[r.jsxs("div",{className:B.title,children:[r.jsx(E,{variant:"heading-md",children:i}),r.jsx(E,{variant:"body-md",children:Je(d)})]}),r.jsxs("div",{className:B.timer,children:[k(y.days,"Days"),k(y.hours,"Hours"),k(y.minutes,"Minutes"),k(y.seconds,"Seconds")]})]}),r.jsx("div",{className:B.pattern,style:{"--pattern-color":t,"--pattern-url":`url(${g?u??s:s})`},children:g&&r.jsx("button",{className:B.button,style:{backgroundColor:l},onClick:p,children:r.jsx(E,{variant:"heading-md",children:"Start"})})})]})},Ge="_btn_12gio_29",Xe="_small_12gio_44",Qe="_medium_12gio_47",Ke="_large_12gio_50",et="_primary_12gio_71",tt="_tertiary_12gio_87",nt="_plain_12gio_102",le={"shadow-0":"_shadow-0_12gio_1","shadow-100":"_shadow-100_12gio_5","shadow-200":"_shadow-200_12gio_9","shadow-300":"_shadow-300_12gio_13","shadow-400":"_shadow-400_12gio_17","shadow-500":"_shadow-500_12gio_21","shadow-600":"_shadow-600_12gio_25",btn:Ge,small:Xe,medium:Qe,large:Ke,default:"_default_12gio_53","default-selected":"_default-selected_12gio_64",primary:et,"primary-selected":"_primary-selected_12gio_81",tertiary:tt,"tertiary-selected":"_tertiary-selected_12gio_96",plain:nt,"plain-selected":"_plain-selected_12gio_113"},rt=({state:t="default",size:i="medium",selected:s=!1,disabled:d=!1,children:u,onClick:l=()=>{},className:p="",...g})=>{const $=A(le.btn,le[t],le[i],{[le[`${t}-selected`]]:s},p);return r.jsx("button",{className:$,onClick:l,disabled:d,...g,children:u})};/**
27
+ * @license lucide-react v0.511.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const st=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),at=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,d)=>d?d.toUpperCase():s.toLowerCase()),$e=t=>{const i=at(t);return i.charAt(0).toUpperCase()+i.slice(1)},Ne=(...t)=>t.filter((i,s,d)=>!!i&&i.trim()!==""&&d.indexOf(i)===s).join(" ").trim(),ot=t=>{for(const i in t)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
32
+ * @license lucide-react v0.511.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */var it={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
37
+ * @license lucide-react v0.511.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const ct=M.forwardRef(({color:t="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:d,className:u="",children:l,iconNode:p,...g},$)=>M.createElement("svg",{ref:$,...it,width:i,height:i,stroke:t,strokeWidth:d?Number(s)*24/Number(i):s,className:Ne("lucide",u),...!l&&!ot(g)&&{"aria-hidden":"true"},...g},[...p.map(([y,N])=>M.createElement(y,N)),...Array.isArray(l)?l:[l]]));/**
42
+ * @license lucide-react v0.511.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const ae=(t,i)=>{const s=M.forwardRef(({className:d,...u},l)=>M.createElement(ct,{ref:l,iconNode:i,className:Ne(`lucide-${st($e(t))}`,`lucide-${t}`,d),...u}));return s.displayName=$e(t),s};/**
47
+ * @license lucide-react v0.511.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const lt=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],dt=ae("check-check",lt);/**
52
+ * @license lucide-react v0.511.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const ut=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Oe=ae("chevron-down",ut);/**
57
+ * @license lucide-react v0.511.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const _t=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Se=ae("chevron-up",_t);/**
62
+ * @license lucide-react v0.511.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const ft=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],ht=ae("circle-alert",ft);/**
67
+ * @license lucide-react v0.511.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const mt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],pt=ae("x",mt),gt="_navigationItem_1uz1o_29",yt="_container_1uz1o_45",vt="_IconContainer_1uz1o_51",wt="_ParentLine_1uz1o_57",xt="_secondaryIcon_1uz1o_69",bt="_active_1uz1o_80",$t="_collapsed_1uz1o_88",jt="_label_1uz1o_92",F={navigationItem:gt,container:yt,IconContainer:vt,ParentLine:wt,secondaryIcon:xt,active:bt,collapsed:$t,label:jt},se=({icon:t,label:i,secondaryIcon:s,collapsed:d=!1,active:u=!1,isParentNode:l=!1,onClick:p,className:g})=>r.jsxs("div",{className:A(F.navigationItem,u&&F.active,g),onClick:p,children:[r.jsxs("div",{className:F.container,children:[r.jsxs("div",{className:F.IconContainer,children:[t,l&&r.jsx("img",{src:"/assets/icons/ParentLine.svg",alt:"Arrow Indicator",className:F.ParentLine})]}),r.jsx(E,{variant:"body-md",className:A(d&&F.collapsed,F.label),children:i})]}),s&&r.jsx("div",{className:A(F.secondaryIcon,d&&F.collapsed),children:s})]}),Ct="_ArrowContainer_i9cnp_29",kt="_active_i9cnp_44",Nt="_arrowBlock_i9cnp_54",Ot="_isOpen_i9cnp_58",re={ArrowContainer:Ct,active:kt,arrowBlock:Nt,isOpen:Ot},St=({activeItemId:t,onChange:i,item:s})=>{var g,$;const d=(g=s.children)==null?void 0:g.findIndex(y=>y.id===t),[u,l]=M.useState(d!==-1),p=()=>{s.children&&l(!u),i(s)};return r.jsxs("div",{children:[r.jsx(se,{icon:s.icon,label:s.name,secondaryIcon:u?r.jsx(Se,{size:20}):r.jsx(Oe,{size:20}),onClick:p,isParentNode:u&&d!==-1,active:d!==-1&&!u,className:A(u&&d===-1&&re.isOpen)}),r.jsx("div",{className:re.childContainer,children:u&&(($=s.children)==null?void 0:$.map((y,N)=>r.jsxs("div",{className:A(re.ArrowContainer,t===y.id?re.active:""),onClick:()=>i(y),children:[r.jsxs("div",{className:re.arrowBlock,children:[d===N&&r.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),N<(d??-1)&&r.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),r.jsx(se,{icon:y.icon,label:y.name,active:y.id===t})]},y.id)))})]})},Et="_ArrowContainer_17ds0_29",Tt="_iconCheck_17ds0_37",Mt="_active_17ds0_47",At="_arrowBlock_17ds0_57",Dt="_isOpen_17ds0_61",G={ArrowContainer:Et,iconCheck:Tt,active:Mt,arrowBlock:At,isOpen:Dt},It=({activeItemId:t,onChange:i,item:s})=>{var g,$;const d=(g=s.children)==null?void 0:g.findIndex(y=>y.id===t),[u,l]=M.useState(d!==-1),p=()=>{s.children&&l(!u),i(s)};return r.jsxs("div",{children:[r.jsx(se,{icon:s.icon,label:s.name,secondaryIcon:u?r.jsx(Se,{size:20}):r.jsx(Oe,{size:20}),onClick:p,isParentNode:u&&d!==-1,active:d!==-1&&!u,className:A(u&&d===-1&&G.isOpen)}),r.jsx("div",{className:G.childContainer,children:u&&(($=s.children)==null?void 0:$.map((y,N)=>r.jsxs("div",{className:A(G.ArrowContainer,t===y.id?G.active:""),onClick:()=>i(y),children:[r.jsxs("div",{className:G.arrowBlock,children:[d===N&&r.jsx("img",{src:"/assets/icons/ArrowLine.svg",alt:"Arrow Indicator"}),N<(d??-1)&&r.jsx("img",{src:"/assets/icons/SideLine.svg",alt:"Side Indicator"})]}),r.jsx(se,{icon:y.icon,label:y.name,active:y.id===t,secondaryIcon:y.completed&&r.jsx(dt,{size:20,className:G.iconCheck})},y.id)]},y.id)))})]})},Pt="_emptyContainer_tmvlz_29",Rt={emptyContainer:Pt},zt=({children:t,className:i=""})=>r.jsx("div",{className:`${Rt.emptyContainer} ${i}`,children:t}),Lt="_formItem_96xeh_29",qt="_critical_96xeh_36",Yt="_message_96xeh_40",Ft="_error_96xeh_46",Ht="_label_96xeh_50",Bt="_disabled_96xeh_53",Wt="_readOnly_96xeh_56",Ut="_input_96xeh_60",q={"shadow-0":"_shadow-0_96xeh_1","shadow-100":"_shadow-100_96xeh_5","shadow-200":"_shadow-200_96xeh_9","shadow-300":"_shadow-300_96xeh_13","shadow-400":"_shadow-400_96xeh_17","shadow-500":"_shadow-500_96xeh_21","shadow-600":"_shadow-600_96xeh_25",formItem:Lt,critical:qt,message:Yt,error:Ft,label:Ht,disabled:Bt,readOnly:Wt,input:Ut},Ee=M.createContext({state:"default"}),ve=()=>M.useContext(Ee),ue=({children:t,error:i,disabled:s,readOnly:d})=>{let u="default";return i?u="error":s?u="disabled":d&&(u="readOnly"),r.jsx(Ee.Provider,{value:{state:u},children:r.jsx("div",{className:q.formItem,children:t})})},Vt=({children:t})=>{const{state:i}=ve();return r.jsx("label",{className:A(q.label,i==="disabled"&&q.disabled,i==="readOnly"&&q.readOnly),children:t})},Te=M.forwardRef(({as:t="input",className:i,...s},d)=>{const{state:u}=ve();return r.jsx(t,{ref:d,className:A(q.input,q[u],i),disabled:u==="disabled",readOnly:u==="readOnly",...s})});Te.displayName="FormItem.Input";const Jt=({children:t})=>{const{state:i}=ve();return t?r.jsxs("div",{className:A(q.message,i==="error"?q.error:q.default),children:[i==="error"&&r.jsx(ht,{className:q.critical}),t]}):null};ue.Label=Vt;ue.Input=Te;ue.Message=Jt;const Zt="_btn_z8qng_29",Gt="_small_z8qng_42",Xt="_medium_z8qng_45",Qt="_large_z8qng_48",Kt="_primary_z8qng_69",en="_tertiary_z8qng_85",tn="_plain_z8qng_100",de={"shadow-0":"_shadow-0_z8qng_1","shadow-100":"_shadow-100_z8qng_5","shadow-200":"_shadow-200_z8qng_9","shadow-300":"_shadow-300_z8qng_13","shadow-400":"_shadow-400_z8qng_17","shadow-500":"_shadow-500_z8qng_21","shadow-600":"_shadow-600_z8qng_25",btn:Zt,small:Gt,medium:Xt,large:Qt,default:"_default_z8qng_51","default-selected":"_default-selected_z8qng_62",primary:Kt,"primary-selected":"_primary-selected_z8qng_79",tertiary:en,"tertiary-selected":"_tertiary-selected_z8qng_94",plain:tn,"plain-selected":"_plain-selected_z8qng_111"},Me=({state:t="default",size:i="medium",selected:s=!1,disabled:d=!1,children:u,onClick:l=()=>{},className:p="",...g})=>{const $=A(de.btn,de[t],de[i],{[de[`${t}-selected`]]:s},p);return r.jsx("button",{className:$,onClick:l,disabled:d,...g,children:u})},nn="_modalLayout_1jmpu_29",rn="_modalContainer_1jmpu_40",sn="_header_1jmpu_64",an="_close_1jmpu_73",on="_content_1jmpu_83",cn="_footer_1jmpu_91",Q={modalLayout:nn,modalContainer:rn,header:sn,close:an,content:on,footer:cn},_e=({open:t,onClose:i,children:s})=>t?r.jsx("div",{className:Q.modalLayout,onClick:i,children:r.jsx("div",{className:Q.modalContainer,onClick:d=>d.stopPropagation(),children:s})}):null,ln=({children:t,onClose:i})=>r.jsxs("div",{className:Q.header,children:[r.jsx(E,{variant:"heading-sm",children:t}),r.jsx(Me,{size:"small",state:"default",className:Q.close,onClick:i,children:r.jsx(pt,{})})]}),dn=({children:t})=>r.jsx(E,{variant:"body-md",className:Q.content,children:t}),un=({children:t})=>r.jsx("div",{className:Q.footer,children:t});_e.Header=ln;_e.Content=dn;_e.Footer=un;const _n="_pageHeader_1lrq1_29",fn="_mg_1lrq1_38",hn="_lg_1lrq1_39",me={pageHeader:_n,mg:fn,lg:hn},mn=({children:t})=>r.jsxs("header",{className:me.pageHeader,children:[r.jsx(E,{variant:"heading-xl",className:me.lg,children:t}),r.jsx(E,{variant:"heading-md",className:me.mg,children:t})]}),pn="_container_1g19z_29",gn="_line_1g19z_35",yn="_progress_1g19z_41",pe={container:pn,line:gn,progress:yn},vn=({percent:t})=>r.jsx("div",{className:pe.container,children:r.jsx("div",{className:pe.line,children:r.jsx("div",{className:pe.progress,style:{width:`${t}%`}})})}),wn="_container_1gn8d_29",xn="_notMobile_1gn8d_38",bn="_mobile_1gn8d_47",ge={container:wn,notMobile:xn,mobile:bn},$n=({title:t,extra:i})=>r.jsxs("div",{className:ge.container,children:[r.jsx(E,{variant:"heading-md",className:ge.notMobile,children:t}),r.jsx(E,{variant:"heading-sm",className:ge.mobile,children:t}),i]}),jn="_topBar_xnlee_29",Cn="_section_xnlee_66",kn="_scretched_xnlee_73",Nn="_active_xnlee_90",On="_sm_xnlee_99",Sn="_md_xnlee_100",X={topBar:jn,section:Cn,scretched:kn,active:Nn,sm:On,md:Sn},En=({sections:t,activeTab:i,onTabSelect:s,isStretched:d=!0})=>{var u;return r.jsxs("div",{children:[r.jsx("div",{className:X.topBar,children:t.map(l=>r.jsxs("div",{className:A(X.section,d&&X.scretched,i===l.id&&X.active),onClick:()=>s(l.id),children:[r.jsx(E,{variant:"heading-xs",className:X.sm,children:l.title}),r.jsx(E,{variant:"heading-md",className:X.md,children:l.title})]},l.id))}),((u=t.find(l=>l.id===i))==null?void 0:u.component)??r.jsx(E,{variant:"body-lg",children:"Not Found"})]})};exports.Banner=Ze;exports.Button=rt;exports.Collapse=St;exports.CourseCollapse=It;exports.Empty=zt;exports.FormItem=ue;exports.IconButton=Me;exports.Modal=_e;exports.NavigationItem=se;exports.PageHeader=mn;exports.ProgressLine=vn;exports.SectionHeader=$n;exports.TopBar=En;exports.Typography=E;