@tetjana/flowmakers-ds 0.1.8 → 0.1.9

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.
@@ -1,10 +1,11 @@
1
1
  import type { FC } from 'react';
2
2
  import './Question.css';
3
- export type QuestionState = 'default' | 'hover' | 'active';
3
+ export type QuestionState = 'default' | 'hover';
4
4
  export interface QuestionProps {
5
- label?: string;
5
+ title?: string;
6
+ text?: string;
7
+ open?: boolean;
6
8
  state?: QuestionState;
7
- selected?: boolean;
8
9
  onClick?: () => void;
9
10
  className?: string;
10
11
  }
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),N=({variant:s="primary",size:i="md",leftIcon:a,rightIcon:r,children:c,fullWidth:t=!1,disabled:l,className:n="",...d})=>{const o=["fm-btn",`fm-btn--${s}`,`fm-btn--${i}`,t?"fm-btn--full":"",l?"fm-btn--disabled":"",n].filter(Boolean).join(" ");return e.jsxs("button",{className:o,disabled:l,...d,children:[a&&e.jsx("span",{className:"fm-btn__icon fm-btn__icon--left",children:a}),c&&e.jsx("span",{className:"fm-btn__label",children:c}),r&&e.jsx("span",{className:"fm-btn__icon fm-btn__icon--right",children:r})]})},u=({label:s,placeholder:i,state:a="default",errorMessage:r,successMessage:c,leftIcon:t,rightIcon:l,className:n="",disabled:d,...o})=>{const m=["fm-input-wrapper",`fm-input-wrapper--${a}`,d?"fm-input-wrapper--disabled":"",n].filter(Boolean).join(" ");return e.jsxs("div",{className:m,children:[s&&e.jsx("label",{className:"fm-input__label",children:s}),e.jsxs("div",{className:"fm-input__field",children:[t&&e.jsx("span",{className:"fm-input__icon fm-input__icon--left",children:t}),e.jsx("input",{className:"fm-input__el",placeholder:i,disabled:d,...o}),l&&e.jsx("span",{className:"fm-input__icon fm-input__icon--right",children:l})]}),a==="error"&&r&&e.jsx("p",{className:"fm-input__message fm-input__message--error",children:r}),a==="success"&&c&&e.jsx("p",{className:"fm-input__message fm-input__message--success",children:c})]})},g=({children:s,color:i="grey",className:a=""})=>{const r=["fm-tag",`fm-tag--${i}`,a].filter(Boolean).join(" ");return e.jsx("span",{className:r,children:s})},v=({checked:s,onChange:i,disabled:a,label:r,className:c=""})=>e.jsxs("label",{className:["fm-toggle",a?"fm-toggle--disabled":"",c].filter(Boolean).join(" "),children:[e.jsx("input",{type:"checkbox",className:"fm-toggle__input",checked:s,onChange:t=>i(t.target.checked),disabled:a}),e.jsx("span",{className:"fm-toggle__track",children:e.jsx("span",{className:"fm-toggle__thumb"})}),r&&e.jsx("span",{className:"fm-toggle__label",children:r})]}),k=({checked:s=!1,indeterminate:i=!1,onChange:a,disabled:r,size:c="small",label:t,className:l=""})=>{const n=f.useRef(null);return f.useEffect(()=>{n.current&&(n.current.indeterminate=i)},[i]),e.jsxs("label",{className:["fm-checkbox",`fm-checkbox--${c}`,r?"fm-checkbox--disabled":"",l].filter(Boolean).join(" "),children:[e.jsx("input",{ref:n,type:"checkbox",className:"fm-checkbox__input",checked:s,onChange:d=>a==null?void 0:a(d.target.checked),disabled:r}),e.jsxs("span",{className:"fm-checkbox__box",children:[s&&!i&&e.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:e.jsx("path",{d:"M1 4L3.5 6.5L9 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),i&&e.jsx("span",{className:"fm-checkbox__minus"})]}),t&&e.jsx("span",{className:"fm-checkbox__label",children:t})]})},b=({title:s,subtitle:i,color:a="purple",leftSlot:r,rightSlot:c,className:t=""})=>{const l=["fm-header",`fm-header--${a}`,t].filter(Boolean).join(" ");return e.jsxs("div",{className:l,children:[r&&e.jsx("div",{className:"fm-header__slot fm-header__slot--left",children:r}),e.jsxs("div",{className:"fm-header__title-block",children:[e.jsx("h4",{className:"fm-header__title",children:s}),i&&e.jsx("p",{className:"fm-header__subtitle",children:i})]}),c&&e.jsx("div",{className:"fm-header__slot fm-header__slot--right",children:c})]})},w=({variant:s="light",headline:i="Є ідеї чи пропозиції?",ctaLabel:a="Написати нам",onCtaClick:r,sections:c=[],copyright:t="© 2024 Made by FlowMakers. All rights reserved",className:l=""})=>{const n=["fm-footer",`fm-footer--${s}`,l].filter(Boolean).join(" ");return e.jsxs("footer",{className:n,children:[e.jsxs("div",{className:"fm-footer__top",children:[e.jsxs("div",{className:"fm-footer__cta-block",children:[e.jsx("h3",{className:"fm-footer__headline",children:i}),e.jsx("button",{className:"fm-footer__cta-btn",onClick:r,children:a})]}),e.jsx("div",{className:"fm-footer__sections",children:c.map((d,o)=>e.jsxs("div",{className:"fm-footer__section",children:[e.jsx("p",{className:"fm-footer__section-title",children:d.title}),e.jsx("ul",{className:"fm-footer__section-links",children:d.links.map((m,p)=>e.jsx("li",{children:e.jsx("a",{href:m.href,className:"fm-footer__link",children:m.label})},p))})]},o))})]}),e.jsx("div",{className:"fm-footer__bottom",children:e.jsx("p",{className:"fm-footer__copyright",children:t})})]})},L=({icon:s,label:i,active:a=!1,href:r,onClick:c,className:t=""})=>{const l=["fm-nav-item",a?"fm-nav-item--active":"",t].filter(Boolean).join(" "),n=e.jsxs(e.Fragment,{children:[s&&e.jsx("span",{className:"fm-nav-item__icon",children:s}),e.jsx("span",{className:"fm-nav-item__label",children:i})]});return r?e.jsx("a",{className:l,href:r,children:n}):e.jsx("button",{className:l,onClick:c,type:"button",children:n})},B=({children:s,horizontal:i=!1,className:a=""})=>{const r=["fm-nav-bar",i?"fm-nav-bar--horizontal":"",a].filter(Boolean).join(" ");return e.jsx("nav",{className:r,children:s})},C={available:"Доступно","in-progress":"В процесі",completed:"Завершено",unavailable:"Недоступно"},y=({title:s,description:i,image:a,state:r="available",tags:c,meta:t,action:l,className:n=""})=>{const d=["fm-card-test",r==="unavailable"?"fm-card-test--unavailable":"",n].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsxs("div",{className:"fm-card-test__image",children:[a&&e.jsx("img",{src:a,alt:s}),e.jsx("div",{className:"fm-card-test__image-overlay"}),e.jsx("span",{className:`fm-card-test__status-tag fm-card-test__status-tag--${r}`,children:C[r]})]}),e.jsxs("div",{className:"fm-card-test__content",children:[e.jsx("h3",{className:"fm-card-test__title",children:s}),i&&e.jsx("p",{className:"fm-card-test__description",children:i})]}),c&&e.jsx("div",{className:"fm-card-test__tags",children:c}),t&&t.length>0&&e.jsx("div",{className:"fm-card-test__meta",children:t.map((o,m)=>e.jsxs("div",{className:"fm-card-test__meta-item",children:[e.jsx("span",{className:"fm-card-test__meta-icon",children:o.icon}),o.label]},m))}),l]})},_=21,j=2*Math.PI*_,$=({value:s})=>{const i=j*(1-Math.min(100,Math.max(0,s))/100),a=s>=100;return e.jsxs("div",{className:"fm-card-career__progress",children:[e.jsxs("svg",{viewBox:"0 0 50 50",children:[e.jsx("circle",{className:"fm-card-career__progress-track",cx:"25",cy:"25",r:_}),e.jsx("circle",{className:`fm-card-career__progress-fill${a?" fm-card-career__progress-fill--complete":""}`,cx:"25",cy:"25",r:_,strokeDasharray:j,strokeDashoffset:i})]}),e.jsxs("span",{className:"fm-card-career__progress-label",children:[s,"%"]})]})},W=()=>e.jsx("svg",{className:"fm-card-career__chevron",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M5 7.5l5 5 5-5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),M=({title:s,subtitle:i,statusTag:a,tasks:r=[],defaultOpen:c=!1,className:t=""})=>{const[l,n]=f.useState(c),d=["fm-card-career",l?"fm-card-career--open":"",t].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsxs("div",{className:"fm-card-career__header",onClick:()=>n(o=>!o),children:[e.jsxs("div",{className:"fm-card-career__header-content",children:[e.jsxs("div",{className:"fm-card-career__title-row",children:[e.jsx("h3",{className:"fm-card-career__title",children:s}),a]}),i&&e.jsx("p",{className:"fm-card-career__subtitle",children:i})]}),e.jsx(W,{})]}),e.jsx("div",{className:"fm-card-career__tasks",children:r.map((o,m)=>e.jsxs("div",{className:"fm-card-career__task",children:[e.jsxs("div",{className:"fm-card-career__task-info",children:[e.jsx($,{value:o.progress}),e.jsxs("div",{className:"fm-card-career__task-text",children:[e.jsx("p",{className:"fm-card-career__task-title",children:o.title}),o.subtitle&&e.jsx("p",{className:"fm-card-career__task-subtitle",children:o.subtitle})]})]}),o.action]},m))})]})},I={minus:e.jsx("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M3 9H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),plus:e.jsx("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M9 3V15M3 9H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),dots:e.jsxs("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{cx:"3.5",cy:"9",r:"1.5",fill:"currentColor"}),e.jsx("circle",{cx:"9",cy:"9",r:"1.5",fill:"currentColor"}),e.jsx("circle",{cx:"14.5",cy:"9",r:"1.5",fill:"currentColor"})]}),pen:e.jsx("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M12.5 2.5L15.5 5.5M2 16L6 15L15.5 5.5L12.5 2.5L3 12L2 16Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),link:e.jsxs("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M7 11L11 7M8 5L5.5 7.5C4.5 8.5 4.5 10 5.5 11L7 12.5C8 13.5 9.5 13.5 10.5 12.5L13 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M10 13L12.5 10.5C13.5 9.5 13.5 8 12.5 7L11 5.5C10 4.5 8.5 4.5 7.5 5.5L5 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),"arrow-left":e.jsx("svg",{viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M10.5 2.5L5 7.5L10.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-right":e.jsx("svg",{viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M4.5 2.5L10 7.5L4.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},h=({icon:s="arrow-right",size:i="regular",variant:a="filled",className:r="",disabled:c,...t})=>{const l=["fm-icon-btn",`fm-icon-btn--${i}`,`fm-icon-btn--${a}`,r].filter(Boolean).join(" ");return e.jsx("button",{className:l,disabled:c,...t,children:I[s]})},P=({options:s,value:i,onChange:a,className:r=""})=>{const c=["fm-segmented-control",r].filter(Boolean).join(" ");return e.jsx("div",{className:c,role:"tablist",children:s.map(t=>e.jsx("button",{role:"tab","aria-selected":t.value===i,className:["fm-segmented-control__item",t.value===i?"fm-segmented-control__item--active":""].filter(Boolean).join(" "),onClick:()=>a==null?void 0:a(t.value),children:t.label},t.value))})},T=({variant:s="dots",page:i=1,total:a=9,onPrev:r,onNext:c,prevDisabled:t=!1,nextDisabled:l=!1,className:n=""})=>{const d=["fm-pagination",`fm-pagination--${s}`,n].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsx(h,{icon:"arrow-left","aria-label":"Попередня",disabled:t,onClick:r}),s==="dots"&&e.jsx("div",{className:"fm-pagination__dots",children:Array.from({length:a}).map((o,m)=>e.jsx("span",{className:["fm-pagination__dot",m+1===i?"fm-pagination__dot--active":""].filter(Boolean).join(" ")},m))}),s==="numbers"&&e.jsx("div",{className:"fm-pagination__numbers",children:e.jsxs("span",{className:"fm-pagination__numbers-text",children:[i," з ",a]})}),e.jsx(h,{icon:"arrow-right","aria-label":"Наступна",disabled:l,onClick:c})]})},S=({title:s,subtitle:i,color:a="purple",leftAction:r,rightAction:c,className:t=""})=>{const l=["fm-widget-header",`fm-widget-header--${a}`,t].filter(Boolean).join(" ");return e.jsxs("div",{className:l,children:[r&&e.jsx("div",{className:"fm-widget-header__action",children:r}),e.jsxs("div",{className:"fm-widget-header__title-group",children:[e.jsx("h3",{className:"fm-widget-header__title",children:s}),i&&e.jsx("p",{className:"fm-widget-header__subtitle",children:i})]}),c&&e.jsx("div",{className:"fm-widget-header__action",children:c})]})},D=({header:s,children:i,className:a="",width:r})=>{const c=["fm-widget-card",a].filter(Boolean).join(" ");return e.jsxs("div",{className:c,style:r?{width:r}:void 0,children:[s,e.jsx("div",{className:"fm-widget-card__body",children:i})]})},q=({tag:s,title:i,text:a,className:r=""})=>e.jsxs("div",{className:["fm-widget-news",r].filter(Boolean).join(" "),children:[s&&e.jsx("div",{className:"fm-widget-news__tag",children:s}),e.jsxs("div",{className:"fm-widget-news__content",children:[e.jsx("p",{className:"fm-widget-news__title",children:i}),e.jsx("p",{className:"fm-widget-news__text",children:a})]})]}),F=({image:s,tag:i,title:a,className:r=""})=>e.jsxs("div",{className:["fm-widget-general-news",r].filter(Boolean).join(" "),children:[e.jsx("div",{className:"fm-widget-general-news__image",children:s&&e.jsx("img",{src:s,alt:a})}),e.jsxs("div",{className:"fm-widget-general-news__content",children:[i&&e.jsx("div",{className:"fm-widget-general-news__tag",children:i}),e.jsx("p",{className:"fm-widget-general-news__title",children:a})]})]}),A=({title:s,text:i,date:a,className:r=""})=>e.jsxs("div",{className:["fm-widget-notes",r].filter(Boolean).join(" "),children:[e.jsx("p",{className:"fm-widget-notes__title",children:s}),e.jsx("p",{className:"fm-widget-notes__text",children:i}),a&&e.jsx("div",{className:"fm-widget-notes__footer",children:e.jsx("span",{className:"fm-widget-notes__date",children:a})})]}),H=({tag:s,text:i,action:a,className:r=""})=>e.jsxs("div",{className:["fm-widget-advice",r].filter(Boolean).join(" "),children:[s&&e.jsx("div",{className:"fm-widget-advice__tag",children:s}),e.jsx("p",{className:"fm-widget-advice__text",children:i}),a&&e.jsx("div",{className:"fm-widget-advice__action",children:a})]}),R=({days:s=[],events:i=[],className:a=""})=>e.jsxs("div",{className:["fm-widget-calendar",a].filter(Boolean).join(" "),children:[e.jsx("div",{className:"fm-widget-calendar__days",children:s.map((r,c)=>e.jsxs("div",{className:["fm-widget-calendar__day",r.active?"fm-widget-calendar__day--active":""].filter(Boolean).join(" "),children:[e.jsx("span",{className:"fm-widget-calendar__day-label",children:r.dayLabel}),e.jsx("span",{className:"fm-widget-calendar__day-num",children:r.date}),r.hasEvent&&e.jsx("span",{className:"fm-widget-calendar__day-dot"})]},c))}),i.length>0&&e.jsx("div",{className:"fm-widget-calendar__events",children:i.map((r,c)=>e.jsxs("div",{className:"fm-widget-calendar__event",children:[e.jsx("div",{className:"fm-widget-calendar__event-bar",style:{background:r.color||"#9076dc"}}),e.jsxs("div",{className:"fm-widget-calendar__event-body",children:[e.jsx("span",{className:"fm-widget-calendar__event-title",children:r.title}),e.jsx("span",{className:"fm-widget-calendar__event-time",children:r.time})]})]},c))})]}),E=({placeholder:s="Пошук...",className:i="",...a})=>e.jsxs("div",{className:`fm-search ${i}`.trim(),children:[e.jsxs("svg",{className:"fm-search__icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("circle",{cx:"9",cy:"9",r:"6",stroke:"#91939f",strokeWidth:"1.5"}),e.jsx("path",{d:"M13.5 13.5L17 17",stroke:"#91939f",strokeWidth:"1.5",strokeLinecap:"round"})]}),e.jsx("input",{className:"fm-search__input",placeholder:s,...a})]}),O=({options:s=[],onSelect:i,className:a=""})=>e.jsx("div",{className:`fm-dropdown ${a}`.trim(),children:s.map(r=>e.jsx("button",{className:"fm-dropdown__item",type:"button",onClick:()=>i==null?void 0:i(r.value),children:r.label},r.value))}),G=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("rect",{x:"2.5",y:"4.5",width:"15",height:"13",rx:"2",stroke:"currentColor",strokeWidth:"1.3"}),e.jsx("path",{d:"M6.5 2.5v4M13.5 2.5v4M2.5 8.5h15",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),e.jsx("circle",{cx:"7",cy:"12",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"10",cy:"12",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"13",cy:"12",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"7",cy:"15",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"10",cy:"15",r:"1",fill:"currentColor"})]}),U=({label:s,helperText:i,state:a="default",disabled:r,className:c="",...t})=>{const l=r||a==="disabled",n=["fm-datepicker",`fm-datepicker--${a}`,l?"fm-datepicker--disabled":"",c].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[s&&e.jsx("label",{className:"fm-datepicker__label",children:s}),e.jsxs("div",{className:"fm-datepicker__field",children:[e.jsx("input",{type:"date",className:"fm-datepicker__input",disabled:l,...t}),e.jsx("span",{className:"fm-datepicker__icon",children:e.jsx(G,{})})]}),i&&e.jsx("p",{className:"fm-datepicker__helper",children:i})]})},V=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("circle",{cx:"10",cy:"10",r:"7",stroke:"currentColor",strokeWidth:"1.3"}),e.jsx("path",{d:"M10 6.5V10.5L13 12",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Q=({label:s,helperText:i,state:a="default",disabled:r,className:c="",...t})=>{const l=r||a==="disabled",n=["fm-timepicker",`fm-timepicker--${a}`,l?"fm-timepicker--disabled":"",c].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[s&&e.jsx("label",{className:"fm-timepicker__label",children:s}),e.jsxs("div",{className:"fm-timepicker__field",children:[e.jsx("input",{type:"time",className:"fm-timepicker__input",disabled:l,...t}),e.jsx("span",{className:"fm-timepicker__icon",children:e.jsx(V,{})})]}),i&&e.jsx("p",{className:"fm-timepicker__helper",children:i})]})},Z=({label:s,checked:i=!1,disabled:a,className:r="",onChange:c,...t})=>e.jsxs("label",{className:`fm-radio ${a?"fm-radio--disabled":""} ${r}`.trim(),children:[e.jsx("span",{className:`fm-radio__circle ${i?"fm-radio__circle--checked":""}`,children:i&&e.jsx("span",{className:"fm-radio__dot"})}),e.jsx("input",{type:"radio",className:"fm-radio__input",checked:i,disabled:a,onChange:c,...t}),s&&e.jsx("span",{className:"fm-radio__label",children:s})]}),z=()=>e.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:e.jsx("path",{d:"M1.5 6L6 10.5L14.5 1.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),K=({step:s,index:i,isLast:a})=>e.jsxs("div",{className:"fm-stepper__step",children:[e.jsxs("div",{className:`fm-stepper__circle fm-stepper__circle--${s.state}`,children:[s.state==="done"&&e.jsx(z,{}),s.state==="in-process"&&e.jsx("span",{className:"fm-stepper__num",children:i+1}),s.state==="inactive"&&e.jsx("span",{className:"fm-stepper__num fm-stepper__num--inactive",children:i+1})]}),!a&&e.jsx("div",{className:`fm-stepper__line fm-stepper__line--${s.state}`}),s.label&&e.jsx("p",{className:`fm-stepper__label fm-stepper__label--${s.state}`,children:s.label})]}),J=({steps:s,className:i=""})=>e.jsx("div",{className:`fm-stepper ${i}`.trim(),children:s.map((a,r)=>e.jsx(K,{step:a,index:r,isLast:r===s.length-1},r))}),X=()=>e.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:e.jsx("path",{d:"M1.5 6L6 10.5L14.5 1.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Y=({step:s,isLast:i})=>{const a=s.state??"inactive";return e.jsxs("div",{className:`fm-stepper-progress__step fm-stepper-progress__step--${a}`,children:[e.jsx("div",{className:"fm-stepper-progress__circle",children:e.jsx(X,{})}),!i&&e.jsx("div",{className:"fm-stepper-progress__line"}),e.jsx("p",{className:"fm-stepper-progress__label",children:s.label})]})},ee=({steps:s,className:i=""})=>e.jsx("div",{className:`fm-stepper-progress ${i}`.trim(),children:s.map((a,r)=>e.jsx(Y,{step:a,isLast:r===s.length-1},r))}),se=({avatar:s,name:i,role:a,quote:r,className:c=""})=>e.jsxs("div",{className:`fm-testimonial ${c}`.trim(),children:[e.jsxs("div",{className:"fm-testimonial__author",children:[s?e.jsx("img",{className:"fm-testimonial__avatar",src:s,alt:i}):e.jsx("div",{className:"fm-testimonial__avatar fm-testimonial__avatar--placeholder",children:i.charAt(0)}),e.jsxs("div",{className:"fm-testimonial__meta",children:[e.jsx("p",{className:"fm-testimonial__name",children:i}),a&&e.jsx("p",{className:"fm-testimonial__role",children:a})]})]}),e.jsx("p",{className:"fm-testimonial__quote",children:r})]}),ae=({icon:s,title:i,description:a,price:r,period:c="/місяць",action:t,badge:l,highlighted:n=!1,className:d=""})=>e.jsxs("div",{className:`fm-pricecard ${n?"fm-pricecard--highlighted":""} ${d}`.trim(),children:[l&&e.jsx("span",{className:"fm-pricecard__badge",children:l}),s&&e.jsx("div",{className:"fm-pricecard__icon",children:s}),e.jsxs("div",{className:"fm-pricecard__info",children:[e.jsx("h3",{className:"fm-pricecard__title",children:i}),a&&e.jsx("p",{className:"fm-pricecard__desc",children:a})]}),e.jsxs("div",{className:"fm-pricecard__footer",children:[r!==void 0&&e.jsxs("div",{className:"fm-pricecard__price",children:[e.jsx("span",{className:"fm-pricecard__amount",children:r}),e.jsx("span",{className:"fm-pricecard__period",children:c})]}),t&&e.jsx("div",{className:"fm-pricecard__action",children:t})]})]}),ie=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",children:e.jsx("path",{d:"M1 5L5.5 9.5L13 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),re=({title:s="Базовий",amount:i="₴0",period:a="/місяць",actionLabel:r="Отримати",onAction:c,features:t=[],className:l=""})=>e.jsxs("div",{className:`fm-price ${l}`.trim(),children:[e.jsx("p",{className:"fm-price__title",children:s}),e.jsxs("div",{className:"fm-price__amount-row",children:[e.jsx("span",{className:"fm-price__amount",children:i}),e.jsx("span",{className:"fm-price__period",children:a})]}),e.jsx("button",{className:"fm-price__cta",type:"button",onClick:c,children:r}),t.length>0&&e.jsx("ul",{className:"fm-price__features",children:t.map((n,d)=>e.jsxs("li",{className:"fm-price__feature",children:[e.jsx("div",{className:"fm-price__check",children:e.jsx(ie,{})}),e.jsx("span",{children:n})]},d))})]}),ce=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",children:e.jsx("path",{d:"M1 5L5.5 9.5L13 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),te=({children:s,className:i=""})=>e.jsxs("div",{className:`fm-list-item ${i}`.trim(),children:[e.jsx("div",{className:"fm-list-item__check",children:e.jsx(ce,{})}),e.jsx("span",{className:"fm-list-item__text",children:s})]}),le=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M8 1L9.5 6.5L15 8L9.5 9.5L8 15L6.5 9.5L1 8L6.5 6.5L8 1Z",fill:"url(#fm-sparkle-grad)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"fm-sparkle-grad",x1:"0",y1:"0",x2:"16",y2:"16",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"#9076dc"}),e.jsx("stop",{offset:"100%",stopColor:"#ffa8f1"})]})})]}),x=({label:s="АІ-помічник для кар'єрного розвитку",showIcon:i=!0,className:a=""})=>e.jsxs("div",{className:`fm-tag-big ${a}`.trim(),children:[i&&e.jsx("span",{className:"fm-tag-big__icon",children:e.jsx(le,{})}),e.jsx("span",{className:"fm-tag-big__label",children:s})]}),ne=({tag:s="Можливості платформи",showTag:i=!0,title:a="Все для твоєї кар'єри",subtitle:r="Комплексна платформа для пошуку роботи, навчання та професійного розвитку",showSubtitle:c=!0,variant:t="centered",className:l=""})=>e.jsx("div",{className:`fm-section-title fm-section-title--${t} ${l}`.trim(),children:t==="split"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"fm-section-title__left",children:[i&&e.jsx(x,{label:s,showIcon:!1}),e.jsx("h2",{className:"fm-section-title__heading",children:a})]}),c&&e.jsx("p",{className:"fm-section-title__subtitle",children:r})]}):e.jsxs(e.Fragment,{children:[i&&e.jsx(x,{label:s,showIcon:!1}),e.jsx("h2",{className:"fm-section-title__heading",children:a}),c&&e.jsx("p",{className:"fm-section-title__subtitle",children:r})]})}),de=({title:s="Привіт!",subtitle:i="Сьогодні чудовий день для кар'єрного зростання.",actionLabel:a="Почати тренування",showAction:r=!0,onAction:c,className:t=""})=>e.jsxs("div",{className:`fm-dashboard-title ${t}`.trim(),children:[e.jsxs("div",{className:"fm-dashboard-title__text",children:[e.jsx("h1",{className:"fm-dashboard-title__heading",children:s}),e.jsx("p",{className:"fm-dashboard-title__subtitle",children:i})]}),r&&e.jsx("button",{className:"fm-dashboard-title__action",type:"button",onClick:c,children:a})]}),oe=({number:s=1,title:i="Пройди тестування",content:a="АІ аналізує твої навички, інтерес та досвід",style:r="select",className:c=""})=>e.jsxs("div",{className:`fm-process-step fm-process-step--${r} ${c}`.trim(),children:[e.jsx("div",{className:"fm-process-step__number",children:e.jsx("span",{children:s})}),e.jsxs("div",{className:"fm-process-step__body",children:[e.jsx("h3",{className:"fm-process-step__title",children:i}),e.jsx("p",{className:"fm-process-step__content",children:a})]})]}),me=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",children:e.jsx("path",{d:"M1 5L5.5 9.5L13 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),fe=({tasks:s,className:i=""})=>e.jsx("div",{className:`fm-tasks-widget ${i}`.trim(),children:s.map((a,r)=>e.jsxs("div",{className:"fm-tasks-widget__row",children:[e.jsx("div",{className:`fm-tasks-widget__checkbox ${a.done?"fm-tasks-widget__checkbox--done":""}`,children:a.done&&e.jsx(me,{})}),e.jsx("span",{className:`fm-tasks-widget__label ${a.done?"fm-tasks-widget__label--done":""}`,children:a.label}),a.time&&e.jsx("span",{className:"fm-tasks-widget__tag",children:a.time})]},r))}),_e=({placeholder:s="Ваша електронна пошта",buttonLabel:i="Почати безкоштовно",onSubmit:a,className:r=""})=>{const[c,t]=f.useState(""),l=n=>{n.preventDefault(),a==null||a(c)};return e.jsxs("form",{className:`fm-signup-form ${r}`.trim(),onSubmit:l,children:[e.jsx("input",{type:"email",className:"fm-signup-form__input",placeholder:s,value:c,onChange:n=>t(n.target.value)}),e.jsx("button",{type:"submit",className:"fm-signup-form__btn",children:i})]})},he=({icon:s,title:i="Базовий",description:a="Ідеальний старт для знайомства з платформою та визначення кар'єрного напрямку.",variant:r="default",className:c=""})=>e.jsxs("div",{className:`fm-tariffs fm-tariffs--${r} ${c}`.trim(),children:[s&&e.jsx("div",{className:"fm-tariffs__icon",children:s}),e.jsxs("div",{className:"fm-tariffs__body",children:[e.jsx("p",{className:"fm-tariffs__title",children:i}),e.jsx("p",{className:"fm-tariffs__desc",children:a})]})]}),xe=({label:s="Творчість та інновації",state:i="default",selected:a=!1,onClick:r,className:c=""})=>{const t=i==="active"||a;return e.jsxs("div",{className:["fm-question",`fm-question--${i}`,t?"fm-question--selected":"",c].filter(Boolean).join(" "),onClick:r,role:"button",tabIndex:0,onKeyDown:l=>l.key==="Enter"&&(r==null?void 0:r()),children:[e.jsx("span",{className:"fm-question__label",children:s}),e.jsx("span",{className:`fm-question__radio ${t?"fm-question__radio--checked":""}`,children:t&&e.jsx("span",{className:"fm-question__dot"})})]})};exports.Button=N;exports.CalendarWidget=R;exports.CardCareer=M;exports.CardTest=y;exports.Checkbox=k;exports.DashboardTitle=de;exports.DatePicker=U;exports.Dropdown=O;exports.Footer=w;exports.GeneralNewsWidget=F;exports.Header=b;exports.IconButton=h;exports.Input=u;exports.ListItem=te;exports.NavBar=B;exports.NavItem=L;exports.NotesWidget=A;exports.Pagination=T;exports.PersonalAdviceWidget=H;exports.PlatformNewsWidget=q;exports.Price=re;exports.PriceCard=ae;exports.ProcessStep=oe;exports.Question=xe;exports.RadioButton=Z;exports.Search=E;exports.SectionTitle=ne;exports.SegmentedControl=P;exports.SignupForm=_e;exports.Stepper=J;exports.StepperProgress=ee;exports.Tag=g;exports.TagBig=x;exports.Tariffs=he;exports.TasksWidget=fe;exports.TestimonialCard=se;exports.TimePicker=Q;exports.Toggle=v;exports.WidgetCard=D;exports.WidgetHeader=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),f=require("react"),N=({variant:a="primary",size:i="md",leftIcon:s,rightIcon:r,children:c,fullWidth:t=!1,disabled:l,className:n="",...d})=>{const o=["fm-btn",`fm-btn--${a}`,`fm-btn--${i}`,t?"fm-btn--full":"",l?"fm-btn--disabled":"",n].filter(Boolean).join(" ");return e.jsxs("button",{className:o,disabled:l,...d,children:[s&&e.jsx("span",{className:"fm-btn__icon fm-btn__icon--left",children:s}),c&&e.jsx("span",{className:"fm-btn__label",children:c}),r&&e.jsx("span",{className:"fm-btn__icon fm-btn__icon--right",children:r})]})},u=({label:a,placeholder:i,state:s="default",errorMessage:r,successMessage:c,leftIcon:t,rightIcon:l,className:n="",disabled:d,...o})=>{const m=["fm-input-wrapper",`fm-input-wrapper--${s}`,d?"fm-input-wrapper--disabled":"",n].filter(Boolean).join(" ");return e.jsxs("div",{className:m,children:[a&&e.jsx("label",{className:"fm-input__label",children:a}),e.jsxs("div",{className:"fm-input__field",children:[t&&e.jsx("span",{className:"fm-input__icon fm-input__icon--left",children:t}),e.jsx("input",{className:"fm-input__el",placeholder:i,disabled:d,...o}),l&&e.jsx("span",{className:"fm-input__icon fm-input__icon--right",children:l})]}),s==="error"&&r&&e.jsx("p",{className:"fm-input__message fm-input__message--error",children:r}),s==="success"&&c&&e.jsx("p",{className:"fm-input__message fm-input__message--success",children:c})]})},g=({children:a,color:i="grey",className:s=""})=>{const r=["fm-tag",`fm-tag--${i}`,s].filter(Boolean).join(" ");return e.jsx("span",{className:r,children:a})},v=({checked:a,onChange:i,disabled:s,label:r,className:c=""})=>e.jsxs("label",{className:["fm-toggle",s?"fm-toggle--disabled":"",c].filter(Boolean).join(" "),children:[e.jsx("input",{type:"checkbox",className:"fm-toggle__input",checked:a,onChange:t=>i(t.target.checked),disabled:s}),e.jsx("span",{className:"fm-toggle__track",children:e.jsx("span",{className:"fm-toggle__thumb"})}),r&&e.jsx("span",{className:"fm-toggle__label",children:r})]}),k=({checked:a=!1,indeterminate:i=!1,onChange:s,disabled:r,size:c="small",label:t,className:l=""})=>{const n=f.useRef(null);return f.useEffect(()=>{n.current&&(n.current.indeterminate=i)},[i]),e.jsxs("label",{className:["fm-checkbox",`fm-checkbox--${c}`,r?"fm-checkbox--disabled":"",l].filter(Boolean).join(" "),children:[e.jsx("input",{ref:n,type:"checkbox",className:"fm-checkbox__input",checked:a,onChange:d=>s==null?void 0:s(d.target.checked),disabled:r}),e.jsxs("span",{className:"fm-checkbox__box",children:[a&&!i&&e.jsx("svg",{width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",children:e.jsx("path",{d:"M1 4L3.5 6.5L9 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),i&&e.jsx("span",{className:"fm-checkbox__minus"})]}),t&&e.jsx("span",{className:"fm-checkbox__label",children:t})]})},w=({title:a,subtitle:i,color:s="purple",leftSlot:r,rightSlot:c,className:t=""})=>{const l=["fm-header",`fm-header--${s}`,t].filter(Boolean).join(" ");return e.jsxs("div",{className:l,children:[r&&e.jsx("div",{className:"fm-header__slot fm-header__slot--left",children:r}),e.jsxs("div",{className:"fm-header__title-block",children:[e.jsx("h4",{className:"fm-header__title",children:a}),i&&e.jsx("p",{className:"fm-header__subtitle",children:i})]}),c&&e.jsx("div",{className:"fm-header__slot fm-header__slot--right",children:c})]})},b=({variant:a="light",headline:i="Є ідеї чи пропозиції?",ctaLabel:s="Написати нам",onCtaClick:r,sections:c=[],copyright:t="© 2024 Made by FlowMakers. All rights reserved",className:l=""})=>{const n=["fm-footer",`fm-footer--${a}`,l].filter(Boolean).join(" ");return e.jsxs("footer",{className:n,children:[e.jsxs("div",{className:"fm-footer__top",children:[e.jsxs("div",{className:"fm-footer__cta-block",children:[e.jsx("h3",{className:"fm-footer__headline",children:i}),e.jsx("button",{className:"fm-footer__cta-btn",onClick:r,children:s})]}),e.jsx("div",{className:"fm-footer__sections",children:c.map((d,o)=>e.jsxs("div",{className:"fm-footer__section",children:[e.jsx("p",{className:"fm-footer__section-title",children:d.title}),e.jsx("ul",{className:"fm-footer__section-links",children:d.links.map((m,p)=>e.jsx("li",{children:e.jsx("a",{href:m.href,className:"fm-footer__link",children:m.label})},p))})]},o))})]}),e.jsx("div",{className:"fm-footer__bottom",children:e.jsx("p",{className:"fm-footer__copyright",children:t})})]})},L=({icon:a,label:i,active:s=!1,href:r,onClick:c,className:t=""})=>{const l=["fm-nav-item",s?"fm-nav-item--active":"",t].filter(Boolean).join(" "),n=e.jsxs(e.Fragment,{children:[a&&e.jsx("span",{className:"fm-nav-item__icon",children:a}),e.jsx("span",{className:"fm-nav-item__label",children:i})]});return r?e.jsx("a",{className:l,href:r,children:n}):e.jsx("button",{className:l,onClick:c,type:"button",children:n})},B=({children:a,horizontal:i=!1,className:s=""})=>{const r=["fm-nav-bar",i?"fm-nav-bar--horizontal":"",s].filter(Boolean).join(" ");return e.jsx("nav",{className:r,children:a})},C={available:"Доступно","in-progress":"В процесі",completed:"Завершено",unavailable:"Недоступно"},y=({title:a,description:i,image:s,state:r="available",tags:c,meta:t,action:l,className:n=""})=>{const d=["fm-card-test",r==="unavailable"?"fm-card-test--unavailable":"",n].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsxs("div",{className:"fm-card-test__image",children:[s&&e.jsx("img",{src:s,alt:a}),e.jsx("div",{className:"fm-card-test__image-overlay"}),e.jsx("span",{className:`fm-card-test__status-tag fm-card-test__status-tag--${r}`,children:C[r]})]}),e.jsxs("div",{className:"fm-card-test__content",children:[e.jsx("h3",{className:"fm-card-test__title",children:a}),i&&e.jsx("p",{className:"fm-card-test__description",children:i})]}),c&&e.jsx("div",{className:"fm-card-test__tags",children:c}),t&&t.length>0&&e.jsx("div",{className:"fm-card-test__meta",children:t.map((o,m)=>e.jsxs("div",{className:"fm-card-test__meta-item",children:[e.jsx("span",{className:"fm-card-test__meta-icon",children:o.icon}),o.label]},m))}),l]})},_=21,j=2*Math.PI*_,$=({value:a})=>{const i=j*(1-Math.min(100,Math.max(0,a))/100),s=a>=100;return e.jsxs("div",{className:"fm-card-career__progress",children:[e.jsxs("svg",{viewBox:"0 0 50 50",children:[e.jsx("circle",{className:"fm-card-career__progress-track",cx:"25",cy:"25",r:_}),e.jsx("circle",{className:`fm-card-career__progress-fill${s?" fm-card-career__progress-fill--complete":""}`,cx:"25",cy:"25",r:_,strokeDasharray:j,strokeDashoffset:i})]}),e.jsxs("span",{className:"fm-card-career__progress-label",children:[a,"%"]})]})},W=()=>e.jsx("svg",{className:"fm-card-career__chevron",viewBox:"0 0 20 20",fill:"none",children:e.jsx("path",{d:"M5 7.5l5 5 5-5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),M=({title:a,subtitle:i,statusTag:s,tasks:r=[],defaultOpen:c=!1,className:t=""})=>{const[l,n]=f.useState(c),d=["fm-card-career",l?"fm-card-career--open":"",t].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsxs("div",{className:"fm-card-career__header",onClick:()=>n(o=>!o),children:[e.jsxs("div",{className:"fm-card-career__header-content",children:[e.jsxs("div",{className:"fm-card-career__title-row",children:[e.jsx("h3",{className:"fm-card-career__title",children:a}),s]}),i&&e.jsx("p",{className:"fm-card-career__subtitle",children:i})]}),e.jsx(W,{})]}),e.jsx("div",{className:"fm-card-career__tasks",children:r.map((o,m)=>e.jsxs("div",{className:"fm-card-career__task",children:[e.jsxs("div",{className:"fm-card-career__task-info",children:[e.jsx($,{value:o.progress}),e.jsxs("div",{className:"fm-card-career__task-text",children:[e.jsx("p",{className:"fm-card-career__task-title",children:o.title}),o.subtitle&&e.jsx("p",{className:"fm-card-career__task-subtitle",children:o.subtitle})]})]}),o.action]},m))})]})},I={minus:e.jsx("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M3 9H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),plus:e.jsx("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M9 3V15M3 9H15",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),dots:e.jsxs("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[e.jsx("circle",{cx:"3.5",cy:"9",r:"1.5",fill:"currentColor"}),e.jsx("circle",{cx:"9",cy:"9",r:"1.5",fill:"currentColor"}),e.jsx("circle",{cx:"14.5",cy:"9",r:"1.5",fill:"currentColor"})]}),pen:e.jsx("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M12.5 2.5L15.5 5.5M2 16L6 15L15.5 5.5L12.5 2.5L3 12L2 16Z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),link:e.jsxs("svg",{viewBox:"0 0 18 18",fill:"none","aria-hidden":"true",children:[e.jsx("path",{d:"M7 11L11 7M8 5L5.5 7.5C4.5 8.5 4.5 10 5.5 11L7 12.5C8 13.5 9.5 13.5 10.5 12.5L13 10",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),e.jsx("path",{d:"M10 13L12.5 10.5C13.5 9.5 13.5 8 12.5 7L11 5.5C10 4.5 8.5 4.5 7.5 5.5L5 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),"arrow-left":e.jsx("svg",{viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M10.5 2.5L5 7.5L10.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),"arrow-right":e.jsx("svg",{viewBox:"0 0 15 15",fill:"none","aria-hidden":"true",children:e.jsx("path",{d:"M4.5 2.5L10 7.5L4.5 12.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})},h=({icon:a="arrow-right",size:i="regular",variant:s="filled",className:r="",disabled:c,...t})=>{const l=["fm-icon-btn",`fm-icon-btn--${i}`,`fm-icon-btn--${s}`,r].filter(Boolean).join(" ");return e.jsx("button",{className:l,disabled:c,...t,children:I[a]})},P=({options:a,value:i,onChange:s,className:r=""})=>{const c=["fm-segmented-control",r].filter(Boolean).join(" ");return e.jsx("div",{className:c,role:"tablist",children:a.map(t=>e.jsx("button",{role:"tab","aria-selected":t.value===i,className:["fm-segmented-control__item",t.value===i?"fm-segmented-control__item--active":""].filter(Boolean).join(" "),onClick:()=>s==null?void 0:s(t.value),children:t.label},t.value))})},T=({variant:a="dots",page:i=1,total:s=9,onPrev:r,onNext:c,prevDisabled:t=!1,nextDisabled:l=!1,className:n=""})=>{const d=["fm-pagination",`fm-pagination--${a}`,n].filter(Boolean).join(" ");return e.jsxs("div",{className:d,children:[e.jsx(h,{icon:"arrow-left","aria-label":"Попередня",disabled:t,onClick:r}),a==="dots"&&e.jsx("div",{className:"fm-pagination__dots",children:Array.from({length:s}).map((o,m)=>e.jsx("span",{className:["fm-pagination__dot",m+1===i?"fm-pagination__dot--active":""].filter(Boolean).join(" ")},m))}),a==="numbers"&&e.jsx("div",{className:"fm-pagination__numbers",children:e.jsxs("span",{className:"fm-pagination__numbers-text",children:[i," з ",s]})}),e.jsx(h,{icon:"arrow-right","aria-label":"Наступна",disabled:l,onClick:c})]})},S=({title:a,subtitle:i,color:s="purple",leftAction:r,rightAction:c,className:t=""})=>{const l=["fm-widget-header",`fm-widget-header--${s}`,t].filter(Boolean).join(" ");return e.jsxs("div",{className:l,children:[r&&e.jsx("div",{className:"fm-widget-header__action",children:r}),e.jsxs("div",{className:"fm-widget-header__title-group",children:[e.jsx("h3",{className:"fm-widget-header__title",children:a}),i&&e.jsx("p",{className:"fm-widget-header__subtitle",children:i})]}),c&&e.jsx("div",{className:"fm-widget-header__action",children:c})]})},D=({header:a,children:i,className:s="",width:r})=>{const c=["fm-widget-card",s].filter(Boolean).join(" ");return e.jsxs("div",{className:c,style:r?{width:r}:void 0,children:[a,e.jsx("div",{className:"fm-widget-card__body",children:i})]})},q=({tag:a,title:i,text:s,className:r=""})=>e.jsxs("div",{className:["fm-widget-news",r].filter(Boolean).join(" "),children:[a&&e.jsx("div",{className:"fm-widget-news__tag",children:a}),e.jsxs("div",{className:"fm-widget-news__content",children:[e.jsx("p",{className:"fm-widget-news__title",children:i}),e.jsx("p",{className:"fm-widget-news__text",children:s})]})]}),F=({image:a,tag:i,title:s,className:r=""})=>e.jsxs("div",{className:["fm-widget-general-news",r].filter(Boolean).join(" "),children:[e.jsx("div",{className:"fm-widget-general-news__image",children:a&&e.jsx("img",{src:a,alt:s})}),e.jsxs("div",{className:"fm-widget-general-news__content",children:[i&&e.jsx("div",{className:"fm-widget-general-news__tag",children:i}),e.jsx("p",{className:"fm-widget-general-news__title",children:s})]})]}),R=({title:a,text:i,date:s,className:r=""})=>e.jsxs("div",{className:["fm-widget-notes",r].filter(Boolean).join(" "),children:[e.jsx("p",{className:"fm-widget-notes__title",children:a}),e.jsx("p",{className:"fm-widget-notes__text",children:i}),s&&e.jsx("div",{className:"fm-widget-notes__footer",children:e.jsx("span",{className:"fm-widget-notes__date",children:s})})]}),A=({tag:a,text:i,action:s,className:r=""})=>e.jsxs("div",{className:["fm-widget-advice",r].filter(Boolean).join(" "),children:[a&&e.jsx("div",{className:"fm-widget-advice__tag",children:a}),e.jsx("p",{className:"fm-widget-advice__text",children:i}),s&&e.jsx("div",{className:"fm-widget-advice__action",children:s})]}),H=({days:a=[],events:i=[],className:s=""})=>e.jsxs("div",{className:["fm-widget-calendar",s].filter(Boolean).join(" "),children:[e.jsx("div",{className:"fm-widget-calendar__days",children:a.map((r,c)=>e.jsxs("div",{className:["fm-widget-calendar__day",r.active?"fm-widget-calendar__day--active":""].filter(Boolean).join(" "),children:[e.jsx("span",{className:"fm-widget-calendar__day-label",children:r.dayLabel}),e.jsx("span",{className:"fm-widget-calendar__day-num",children:r.date}),r.hasEvent&&e.jsx("span",{className:"fm-widget-calendar__day-dot"})]},c))}),i.length>0&&e.jsx("div",{className:"fm-widget-calendar__events",children:i.map((r,c)=>e.jsxs("div",{className:"fm-widget-calendar__event",children:[e.jsx("div",{className:"fm-widget-calendar__event-bar",style:{background:r.color||"#9076dc"}}),e.jsxs("div",{className:"fm-widget-calendar__event-body",children:[e.jsx("span",{className:"fm-widget-calendar__event-title",children:r.title}),e.jsx("span",{className:"fm-widget-calendar__event-time",children:r.time})]})]},c))})]}),E=({placeholder:a="Пошук...",className:i="",...s})=>e.jsxs("div",{className:`fm-search ${i}`.trim(),children:[e.jsxs("svg",{className:"fm-search__icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("circle",{cx:"9",cy:"9",r:"6",stroke:"#91939f",strokeWidth:"1.5"}),e.jsx("path",{d:"M13.5 13.5L17 17",stroke:"#91939f",strokeWidth:"1.5",strokeLinecap:"round"})]}),e.jsx("input",{className:"fm-search__input",placeholder:a,...s})]}),O=({options:a=[],onSelect:i,className:s=""})=>e.jsx("div",{className:`fm-dropdown ${s}`.trim(),children:a.map(r=>e.jsx("button",{className:"fm-dropdown__item",type:"button",onClick:()=>i==null?void 0:i(r.value),children:r.label},r.value))}),V=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("rect",{x:"2.5",y:"4.5",width:"15",height:"13",rx:"2",stroke:"currentColor",strokeWidth:"1.3"}),e.jsx("path",{d:"M6.5 2.5v4M13.5 2.5v4M2.5 8.5h15",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round"}),e.jsx("circle",{cx:"7",cy:"12",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"10",cy:"12",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"13",cy:"12",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"7",cy:"15",r:"1",fill:"currentColor"}),e.jsx("circle",{cx:"10",cy:"15",r:"1",fill:"currentColor"})]}),G=({label:a,helperText:i,state:s="default",disabled:r,className:c="",...t})=>{const l=r||s==="disabled",n=["fm-datepicker",`fm-datepicker--${s}`,l?"fm-datepicker--disabled":"",c].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[a&&e.jsx("label",{className:"fm-datepicker__label",children:a}),e.jsxs("div",{className:"fm-datepicker__field",children:[e.jsx("input",{type:"date",className:"fm-datepicker__input",disabled:l,...t}),e.jsx("span",{className:"fm-datepicker__icon",children:e.jsx(V,{})})]}),i&&e.jsx("p",{className:"fm-datepicker__helper",children:i})]})},U=()=>e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[e.jsx("circle",{cx:"10",cy:"10",r:"7",stroke:"currentColor",strokeWidth:"1.3"}),e.jsx("path",{d:"M10 6.5V10.5L13 12",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]}),Q=({label:a,helperText:i,state:s="default",disabled:r,className:c="",...t})=>{const l=r||s==="disabled",n=["fm-timepicker",`fm-timepicker--${s}`,l?"fm-timepicker--disabled":"",c].filter(Boolean).join(" ");return e.jsxs("div",{className:n,children:[a&&e.jsx("label",{className:"fm-timepicker__label",children:a}),e.jsxs("div",{className:"fm-timepicker__field",children:[e.jsx("input",{type:"time",className:"fm-timepicker__input",disabled:l,...t}),e.jsx("span",{className:"fm-timepicker__icon",children:e.jsx(U,{})})]}),i&&e.jsx("p",{className:"fm-timepicker__helper",children:i})]})},Z=({label:a,checked:i=!1,disabled:s,className:r="",onChange:c,...t})=>e.jsxs("label",{className:`fm-radio ${s?"fm-radio--disabled":""} ${r}`.trim(),children:[e.jsx("span",{className:`fm-radio__circle ${i?"fm-radio__circle--checked":""}`,children:i&&e.jsx("span",{className:"fm-radio__dot"})}),e.jsx("input",{type:"radio",className:"fm-radio__input",checked:i,disabled:s,onChange:c,...t}),a&&e.jsx("span",{className:"fm-radio__label",children:a})]}),z=()=>e.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:e.jsx("path",{d:"M1.5 6L6 10.5L14.5 1.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),K=({step:a,index:i,isLast:s})=>e.jsxs("div",{className:"fm-stepper__step",children:[e.jsxs("div",{className:`fm-stepper__circle fm-stepper__circle--${a.state}`,children:[a.state==="done"&&e.jsx(z,{}),a.state==="in-process"&&e.jsx("span",{className:"fm-stepper__num",children:i+1}),a.state==="inactive"&&e.jsx("span",{className:"fm-stepper__num fm-stepper__num--inactive",children:i+1})]}),!s&&e.jsx("div",{className:`fm-stepper__line fm-stepper__line--${a.state}`}),a.label&&e.jsx("p",{className:`fm-stepper__label fm-stepper__label--${a.state}`,children:a.label})]}),J=({steps:a,className:i=""})=>e.jsx("div",{className:`fm-stepper ${i}`.trim(),children:a.map((s,r)=>e.jsx(K,{step:s,index:r,isLast:r===a.length-1},r))}),X=()=>e.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:e.jsx("path",{d:"M1.5 6L6 10.5L14.5 1.5",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Y=({step:a,isLast:i})=>{const s=a.state??"inactive";return e.jsxs("div",{className:`fm-stepper-progress__step fm-stepper-progress__step--${s}`,children:[e.jsx("div",{className:"fm-stepper-progress__circle",children:e.jsx(X,{})}),!i&&e.jsx("div",{className:"fm-stepper-progress__line"}),e.jsx("p",{className:"fm-stepper-progress__label",children:a.label})]})},ee=({steps:a,className:i=""})=>e.jsx("div",{className:`fm-stepper-progress ${i}`.trim(),children:a.map((s,r)=>e.jsx(Y,{step:s,isLast:r===a.length-1},r))}),se=({avatar:a,name:i,role:s,quote:r,className:c=""})=>e.jsxs("div",{className:`fm-testimonial ${c}`.trim(),children:[e.jsxs("div",{className:"fm-testimonial__author",children:[a?e.jsx("img",{className:"fm-testimonial__avatar",src:a,alt:i}):e.jsx("div",{className:"fm-testimonial__avatar fm-testimonial__avatar--placeholder",children:i.charAt(0)}),e.jsxs("div",{className:"fm-testimonial__meta",children:[e.jsx("p",{className:"fm-testimonial__name",children:i}),s&&e.jsx("p",{className:"fm-testimonial__role",children:s})]})]}),e.jsx("p",{className:"fm-testimonial__quote",children:r})]}),ae=({icon:a,title:i,description:s,price:r,period:c="/місяць",action:t,badge:l,highlighted:n=!1,className:d=""})=>e.jsxs("div",{className:`fm-pricecard ${n?"fm-pricecard--highlighted":""} ${d}`.trim(),children:[l&&e.jsx("span",{className:"fm-pricecard__badge",children:l}),a&&e.jsx("div",{className:"fm-pricecard__icon",children:a}),e.jsxs("div",{className:"fm-pricecard__info",children:[e.jsx("h3",{className:"fm-pricecard__title",children:i}),s&&e.jsx("p",{className:"fm-pricecard__desc",children:s})]}),e.jsxs("div",{className:"fm-pricecard__footer",children:[r!==void 0&&e.jsxs("div",{className:"fm-pricecard__price",children:[e.jsx("span",{className:"fm-pricecard__amount",children:r}),e.jsx("span",{className:"fm-pricecard__period",children:c})]}),t&&e.jsx("div",{className:"fm-pricecard__action",children:t})]})]}),ie=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",children:e.jsx("path",{d:"M1 5L5.5 9.5L13 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),re=({title:a="Базовий",amount:i="₴0",period:s="/місяць",actionLabel:r="Отримати",onAction:c,features:t=[],className:l=""})=>e.jsxs("div",{className:`fm-price ${l}`.trim(),children:[e.jsx("p",{className:"fm-price__title",children:a}),e.jsxs("div",{className:"fm-price__amount-row",children:[e.jsx("span",{className:"fm-price__amount",children:i}),e.jsx("span",{className:"fm-price__period",children:s})]}),e.jsx("button",{className:"fm-price__cta",type:"button",onClick:c,children:r}),t.length>0&&e.jsx("ul",{className:"fm-price__features",children:t.map((n,d)=>e.jsxs("li",{className:"fm-price__feature",children:[e.jsx("div",{className:"fm-price__check",children:e.jsx(ie,{})}),e.jsx("span",{children:n})]},d))})]}),ce=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",children:e.jsx("path",{d:"M1 5L5.5 9.5L13 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),te=({children:a,className:i=""})=>e.jsxs("div",{className:`fm-list-item ${i}`.trim(),children:[e.jsx("div",{className:"fm-list-item__check",children:e.jsx(ce,{})}),e.jsx("span",{className:"fm-list-item__text",children:a})]}),le=()=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[e.jsx("path",{d:"M8 1L9.5 6.5L15 8L9.5 9.5L8 15L6.5 9.5L1 8L6.5 6.5L8 1Z",fill:"url(#fm-sparkle-grad)"}),e.jsx("defs",{children:e.jsxs("linearGradient",{id:"fm-sparkle-grad",x1:"0",y1:"0",x2:"16",y2:"16",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{offset:"0%",stopColor:"#9076dc"}),e.jsx("stop",{offset:"100%",stopColor:"#ffa8f1"})]})})]}),x=({label:a="АІ-помічник для кар'єрного розвитку",showIcon:i=!0,className:s=""})=>e.jsxs("div",{className:`fm-tag-big ${s}`.trim(),children:[i&&e.jsx("span",{className:"fm-tag-big__icon",children:e.jsx(le,{})}),e.jsx("span",{className:"fm-tag-big__label",children:a})]}),ne=({tag:a="Можливості платформи",showTag:i=!0,title:s="Все для твоєї кар'єри",subtitle:r="Комплексна платформа для пошуку роботи, навчання та професійного розвитку",showSubtitle:c=!0,variant:t="centered",className:l=""})=>e.jsx("div",{className:`fm-section-title fm-section-title--${t} ${l}`.trim(),children:t==="split"?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"fm-section-title__left",children:[i&&e.jsx(x,{label:a,showIcon:!1}),e.jsx("h2",{className:"fm-section-title__heading",children:s})]}),c&&e.jsx("p",{className:"fm-section-title__subtitle",children:r})]}):e.jsxs(e.Fragment,{children:[i&&e.jsx(x,{label:a,showIcon:!1}),e.jsx("h2",{className:"fm-section-title__heading",children:s}),c&&e.jsx("p",{className:"fm-section-title__subtitle",children:r})]})}),de=({title:a="Привіт!",subtitle:i="Сьогодні чудовий день для кар'єрного зростання.",actionLabel:s="Почати тренування",showAction:r=!0,onAction:c,className:t=""})=>e.jsxs("div",{className:`fm-dashboard-title ${t}`.trim(),children:[e.jsxs("div",{className:"fm-dashboard-title__text",children:[e.jsx("h1",{className:"fm-dashboard-title__heading",children:a}),e.jsx("p",{className:"fm-dashboard-title__subtitle",children:i})]}),r&&e.jsx("button",{className:"fm-dashboard-title__action",type:"button",onClick:c,children:s})]}),oe=({number:a=1,title:i="Пройди тестування",content:s="АІ аналізує твої навички, інтерес та досвід",style:r="select",className:c=""})=>e.jsxs("div",{className:`fm-process-step fm-process-step--${r} ${c}`.trim(),children:[e.jsx("div",{className:"fm-process-step__number",children:e.jsx("span",{children:a})}),e.jsxs("div",{className:"fm-process-step__body",children:[e.jsx("h3",{className:"fm-process-step__title",children:i}),e.jsx("p",{className:"fm-process-step__content",children:s})]})]}),me=()=>e.jsx("svg",{width:"14",height:"10",viewBox:"0 0 14 10",fill:"none",children:e.jsx("path",{d:"M1 5L5.5 9.5L13 1",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),fe=({tasks:a,className:i=""})=>e.jsx("div",{className:`fm-tasks-widget ${i}`.trim(),children:a.map((s,r)=>e.jsxs("div",{className:"fm-tasks-widget__row",children:[e.jsx("div",{className:`fm-tasks-widget__checkbox ${s.done?"fm-tasks-widget__checkbox--done":""}`,children:s.done&&e.jsx(me,{})}),e.jsx("span",{className:`fm-tasks-widget__label ${s.done?"fm-tasks-widget__label--done":""}`,children:s.label}),s.time&&e.jsx("span",{className:"fm-tasks-widget__tag",children:s.time})]},r))}),_e=({placeholder:a="Ваша електронна пошта",buttonLabel:i="Почати безкоштовно",onSubmit:s,className:r=""})=>{const[c,t]=f.useState(""),l=n=>{n.preventDefault(),s==null||s(c)};return e.jsxs("form",{className:`fm-signup-form ${r}`.trim(),onSubmit:l,children:[e.jsx("input",{type:"email",className:"fm-signup-form__input",placeholder:a,value:c,onChange:n=>t(n.target.value)}),e.jsx("button",{type:"submit",className:"fm-signup-form__btn",children:i})]})},he=({icon:a,title:i="Базовий",description:s="Ідеальний старт для знайомства з платформою та визначення кар'єрного напрямку.",variant:r="default",className:c=""})=>e.jsxs("div",{className:`fm-tariffs fm-tariffs--${r} ${c}`.trim(),children:[a&&e.jsx("div",{className:"fm-tariffs__icon",children:a}),e.jsxs("div",{className:"fm-tariffs__body",children:[e.jsx("p",{className:"fm-tariffs__title",children:i}),e.jsx("p",{className:"fm-tariffs__desc",children:s})]})]}),xe=()=>e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M9 3.5V14.5M3.5 9H14.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})}),je=()=>e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:e.jsx("path",{d:"M4.5 4.5L13.5 13.5M13.5 4.5L4.5 13.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})}),pe=({title:a="Що таке Rework?",text:i="Rework — це AI-платформа для кар'єрного розвитку, яка допомагає знайти нову професію через персоналізовані тести, симуляції співбесід та розумні рекомендації вакансій.",open:s=!1,state:r="default",onClick:c,className:t=""})=>e.jsxs("div",{className:["fm-question",s?"fm-question--open":"",!s&&r==="hover"?"fm-question--hover":"",t].filter(Boolean).join(" "),onClick:c,role:"button",tabIndex:0,onKeyDown:l=>l.key==="Enter"&&(c==null?void 0:c()),"aria-expanded":s,children:[e.jsxs("div",{className:"fm-question__content",children:[e.jsx("p",{className:"fm-question__title",children:a}),s&&e.jsx("p",{className:"fm-question__text",children:i})]}),e.jsx("span",{className:`fm-question__icon ${s?"fm-question__icon--open":""}`,children:s?e.jsx(je,{}):e.jsx(xe,{})})]});exports.Button=N;exports.CalendarWidget=H;exports.CardCareer=M;exports.CardTest=y;exports.Checkbox=k;exports.DashboardTitle=de;exports.DatePicker=G;exports.Dropdown=O;exports.Footer=b;exports.GeneralNewsWidget=F;exports.Header=w;exports.IconButton=h;exports.Input=u;exports.ListItem=te;exports.NavBar=B;exports.NavItem=L;exports.NotesWidget=R;exports.Pagination=T;exports.PersonalAdviceWidget=A;exports.PlatformNewsWidget=q;exports.Price=re;exports.PriceCard=ae;exports.ProcessStep=oe;exports.Question=pe;exports.RadioButton=Z;exports.Search=E;exports.SectionTitle=ne;exports.SegmentedControl=P;exports.SignupForm=_e;exports.Stepper=J;exports.StepperProgress=ee;exports.Tag=g;exports.TagBig=x;exports.Tariffs=he;exports.TasksWidget=fe;exports.TestimonialCard=se;exports.TimePicker=Q;exports.Toggle=v;exports.WidgetCard=D;exports.WidgetHeader=S;