@deckai/deck-ui 0.0.15 → 0.0.16

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 (79) hide show
  1. package/README.md +12 -2
  2. package/dist/components/AboutCard.cjs +9 -1
  3. package/dist/components/AboutCard.cjs.map +1 -1
  4. package/dist/components/AboutCard.js +9 -1
  5. package/dist/components/AboutCard.js.map +1 -1
  6. package/dist/components/AddWorkCard.cjs +2 -2
  7. package/dist/components/AddWorkCard.cjs.map +1 -1
  8. package/dist/components/AddWorkCard.js +2 -2
  9. package/dist/components/AddWorkCard.js.map +1 -1
  10. package/dist/components/Breadcrumbs.cjs +1 -1
  11. package/dist/components/Breadcrumbs.cjs.map +1 -1
  12. package/dist/components/Breadcrumbs.d.cts +1 -0
  13. package/dist/components/Breadcrumbs.d.ts +1 -0
  14. package/dist/components/Breadcrumbs.js +1 -1
  15. package/dist/components/Breadcrumbs.js.map +1 -1
  16. package/dist/components/Button.cjs +2 -2
  17. package/dist/components/Button.cjs.map +1 -1
  18. package/dist/components/Button.js +2 -2
  19. package/dist/components/Button.js.map +1 -1
  20. package/dist/components/Carousel.cjs +1 -1
  21. package/dist/components/Carousel.cjs.map +1 -1
  22. package/dist/components/Carousel.d.cts +3 -1
  23. package/dist/components/Carousel.d.ts +3 -1
  24. package/dist/components/Carousel.js +1 -1
  25. package/dist/components/Carousel.js.map +1 -1
  26. package/dist/components/Collapsible.cjs +9 -1
  27. package/dist/components/Collapsible.cjs.map +1 -1
  28. package/dist/components/Collapsible.js +9 -1
  29. package/dist/components/Collapsible.js.map +1 -1
  30. package/dist/components/Combobox.cjs +1 -1
  31. package/dist/components/Combobox.cjs.map +1 -1
  32. package/dist/components/Combobox.js +1 -1
  33. package/dist/components/Combobox.js.map +1 -1
  34. package/dist/components/EditButton.cjs +2 -2
  35. package/dist/components/EditButton.cjs.map +1 -1
  36. package/dist/components/EditButton.js +2 -2
  37. package/dist/components/EditButton.js.map +1 -1
  38. package/dist/components/MultiSelectCombobox.cjs +1 -1
  39. package/dist/components/MultiSelectCombobox.cjs.map +1 -1
  40. package/dist/components/MultiSelectCombobox.js +1 -1
  41. package/dist/components/MultiSelectCombobox.js.map +1 -1
  42. package/dist/components/Navbar.cjs +1 -1
  43. package/dist/components/Navbar.cjs.map +1 -1
  44. package/dist/components/Navbar.js +1 -1
  45. package/dist/components/Navbar.js.map +1 -1
  46. package/dist/components/ProfileCard.cjs +1 -1
  47. package/dist/components/ProfileCard.cjs.map +1 -1
  48. package/dist/components/ProfileCard.js +1 -1
  49. package/dist/components/ProfileCard.js.map +1 -1
  50. package/dist/components/SegmentedTabs.cjs +2 -2
  51. package/dist/components/SegmentedTabs.cjs.map +1 -1
  52. package/dist/components/SegmentedTabs.js +2 -2
  53. package/dist/components/SegmentedTabs.js.map +1 -1
  54. package/dist/components/SocialCard.cjs +1 -1
  55. package/dist/components/SocialCard.cjs.map +1 -1
  56. package/dist/components/SocialCard.js +1 -1
  57. package/dist/components/SocialCard.js.map +1 -1
  58. package/dist/components/Tabs.cjs +2 -2
  59. package/dist/components/Tabs.cjs.map +1 -1
  60. package/dist/components/Tabs.js +2 -2
  61. package/dist/components/Tabs.js.map +1 -1
  62. package/dist/components/Toast.cjs +2 -2
  63. package/dist/components/Toast.cjs.map +1 -1
  64. package/dist/components/Toast.js +2 -2
  65. package/dist/components/Toast.js.map +1 -1
  66. package/dist/components/Tooltip.cjs +1 -1
  67. package/dist/components/Tooltip.cjs.map +1 -1
  68. package/dist/components/Tooltip.d.cts +3 -1
  69. package/dist/components/Tooltip.d.ts +3 -1
  70. package/dist/components/Tooltip.js +1 -1
  71. package/dist/components/Tooltip.js.map +1 -1
  72. package/dist/index.cjs +5 -5
  73. package/dist/index.cjs.map +1 -1
  74. package/dist/index.d.cts +4 -1
  75. package/dist/index.d.ts +4 -1
  76. package/dist/index.js +5 -5
  77. package/dist/index.js.map +1 -1
  78. package/dist/styles/styles.css +1 -1
  79. package/package.json +1 -1
package/README.md CHANGED
@@ -132,8 +132,18 @@ import { Button } from "@deckai/deck-ui";
132
132
 
133
133
  The following components must be used within Client Components (you'll need to add the `'use client'` directive to the top of any file using these components):
134
134
 
135
- - `Tabs`
136
- - `Combobox`
135
+ - Accordion
136
+ - Collapsible
137
+ - Combobox
138
+ - Dialog/Modal
139
+ - Dropdown
140
+ - MultiSelectCombobox
141
+ - Popover
142
+ - Switch
143
+ - Tabs
144
+ - Toast/ToastProvider
145
+ - Tooltip
146
+ - IconRenderer
137
147
  - Any components using event handlers or React hooks
138
148
 
139
149
  Example usage in a Client Component:
@@ -1,2 +1,10 @@
1
- 'use strict';var a=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),y=require('@radix-ui/react-collapsible');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__default=/*#__PURE__*/_interopDefault(a);var y__namespace=/*#__PURE__*/_interopNamespace(y);var A={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},R=e=>{let[t,r]=e.split("-");return t==="heading"?A[r]||"p":t==="label"?"label":"p"},$={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},P=e=>e?(Array.isArray(e)?e:[e]).map(r=>{if(r.includes(":")){let[o,s]=r.split(":");return `${o}:text-${s}`}return `text-${r}`}).join(" "):"text-body-default",p=a__default.default.forwardRef(({variant:e="body-default",color:t="primary",as:r,className:o,children:s,weight:n,...i},m)=>{let d=P(e),b=t==="inherit"?"text-inherit":`text-text-${t}`,f=a__default.default.useMemo(()=>{let C=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return R(C)},[e]);return a__default.default.createElement(r||f,{ref:m,className:`font-sans antialiased ${d} ${b} ${n?`!${$[n]}`:""} ${o??""}`,...i},s)});p.displayName="Text";var h=({icon:e,size:t=40,className:r})=>{let o=a.useMemo(()=>{let i=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)return null;i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("preserveAspectRatio","xMidYMid meet");let m=i.getAttribute("viewBox")||"0 0 40 40";return i.setAttribute("viewBox",m),i.outerHTML},[e]);return o?a__default.default.createElement("div",{style:{width:t,height:t,display:"flex",alignItems:"center",justifyContent:"center"},className:r,dangerouslySetInnerHTML:{__html:o}}):null};h.displayName="IconRenderer";function c(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var u="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";var L=({children:e,color:t="inherit",variant:r="body-default-semibold",href:o,className:s,...n})=>a__default.default.createElement(p,{variant:r,color:t},a__default.default.createElement("a",{href:o,className:c("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline",u,s),...n},e));var E=({icon:e,children:t,href:r,...o})=>a__default.default.createElement("div",{className:"row gap-2 flex items-center"},a__default.default.createElement("div",{className:"bg-secondary-400 rounded-full p-2.5 items-center justify-center"},a__default.default.createElement(h,{icon:e,size:18,className:"text-text"})),a__default.default.createElement(L,{className:"hover:underline",href:r,...o,variant:["body-default-semibold","md:body-default-semibold"]},t));var x=a__default.default.forwardRef(({children:e,type:t="button",className:r,disabled:o,...s},n)=>a__default.default.createElement("button",{ref:n,type:t,disabled:o,className:c("appearance-none hover:opacity-80 transition-all active:scale-95",u,o&&"opacity-50 cursor-not-allowed",r),...s},e));x.displayName="Pressable";var H=({children:e,maxHeight:t=100})=>{let[r,o]=a__default.default.useState(!1),s=a.useRef(null),[n,i]=a.useState(t);a.useLayoutEffect(()=>{if(!s.current)return;let d=new ResizeObserver(b=>{for(let f of b)i(f.target.scrollHeight);});return d.observe(s.current),()=>d.disconnect()},[]);let m=n>t;return a__default.default.createElement(y__namespace.Root,{open:r,onOpenChange:o},a__default.default.createElement("div",{className:"relative"},a__default.default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:r?`${n}px`:`${t}px`}},a__default.default.createElement("div",{ref:s,className:"w-full"},e)),m&&a__default.default.createElement(y__namespace.Trigger,{asChild:!0},a__default.default.createElement(x,{className:c("absolute -bottom-8 left-0 right-0","flex items-end justify-center","h-16 pt-8 pb-2",!r&&"bg-gradient-to-b from-transparent via-white to-white","hover:opacity-100 transition-opacity")},a__default.default.createElement(p,{variant:"label-default",color:"secondary"},r?"See less":"See more")))))};H.displayName="Collapsible";var he=({contactItems:e,description:t,isEditMode:r=!1,onEditClick:o,...s})=>a__default.default.createElement("div",{className:"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4",...s},a__default.default.createElement("div",{className:"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},a__default.default.createElement(H,{maxHeight:120},a__default.default.createElement(p,{variant:"body-default"},t))),a__default.default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),a__default.default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),a__default.default.createElement("div",{className:"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8"},e.map(n=>a__default.default.createElement(E,{key:n.title,...n}))));exports.AboutCard=he;//# sourceMappingURL=AboutCard.cjs.map
1
+ 'use strict';var a=require('react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),v=require('@radix-ui/react-collapsible'),d=require('@radix-ui/react-toast'),icons=require('@deckai/icons');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var a__namespace=/*#__PURE__*/_interopNamespace(a);var v__namespace=/*#__PURE__*/_interopNamespace(v);var d__namespace=/*#__PURE__*/_interopNamespace(d);var V={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},j=e=>{let[o,t]=e.split("-");return o==="heading"?V[t]||"p":o==="label"?"label":"p"},z={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},G=e=>e?(Array.isArray(e)?e:[e]).map(t=>{if(t.includes(":")){let[s,r]=t.split(":");return `${s}:text-${r}`}return `text-${t}`}).join(" "):"text-body-default",p=a__namespace.default.forwardRef(({variant:e="body-default",color:o="primary",as:t,className:s,children:r,weight:n,...i},l)=>{let m=G(e),f=o==="inherit"?"text-inherit":`text-text-${o}`,y=a__namespace.default.useMemo(()=>{let O=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return j(O)},[e]);return a__namespace.default.createElement(t||y,{ref:l,className:`font-sans antialiased ${m} ${f} ${n?`!${z[n]}`:""} ${s??""}`,...i},r)});p.displayName="Text";var L=({icon:e,size:o=40,className:t})=>{let s=a.useMemo(()=>{let i=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)return null;i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("preserveAspectRatio","xMidYMid meet");let l=i.getAttribute("viewBox")||"0 0 40 40";return i.setAttribute("viewBox",l),i.outerHTML},[e]);return s?a__namespace.default.createElement("div",{style:{width:o,height:o,display:"flex",alignItems:"center",justifyContent:"center"},className:t,dangerouslySetInnerHTML:{__html:s}}):null};L.displayName="IconRenderer";function c(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var b="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";var A=({children:e,color:o="inherit",variant:t="body-default-semibold",href:s,className:r,...n})=>a__namespace.default.createElement(p,{variant:t,color:o},a__namespace.default.createElement("a",{href:s,className:c("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline",b,r),...n},e));var k=({icon:e,children:o,href:t,...s})=>a__namespace.default.createElement("div",{className:"row gap-2 flex items-center"},a__namespace.default.createElement("div",{className:"bg-secondary-400 rounded-full p-2.5 items-center justify-center"},a__namespace.default.createElement(L,{icon:e,size:18,className:"text-text"})),a__namespace.default.createElement(A,{className:"hover:underline",href:t,...s,variant:["body-default-semibold","md:body-default-semibold"]},o));var H=a__namespace.default.forwardRef(({children:e,type:o="button",className:t,disabled:s,...r},n)=>a__namespace.default.createElement("button",{ref:n,type:o,disabled:s,className:c("appearance-none hover:opacity-80 transition-all active:scale-95",b,s&&"opacity-50 cursor-not-allowed",t),...r},e));H.displayName="Pressable";var $={primary:"#080808",secondary:"#666666",white:"#ffffff",primaryBlue:"#089CCB",disabled:"#888888"},W={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Y=e=>{if(!e)return {width:"24px",height:"24px"};let o=Array.isArray(e)?e:[e],t={},s;return o.forEach(r=>{if(typeof r=="number")s=`${r}px`;else {let[n,i]=r.split(":"),l=parseInt(i,10);t[`@media (min-width: ${W[n]})`]=`${l}px`;}}),{width:s||"24px",height:s||"24px",...Object.entries(t).reduce((r,[n,i])=>({...r,[n]:{width:i,height:i}}),{})}},x=a__namespace.default.forwardRef(({name:e,size:o=24,color:t="primary",title:s,className:r,style:n={},...i},l)=>{let m=icons.IconMap[e],f=Y(o);return a__namespace.default.createElement("div",{className:c("flex justify-center items-center",r),style:{...f,"--icon-stroke":$[t],...n}},a__namespace.default.createElement(m,{ref:l,"aria-hidden":!s,"aria-label":s,stroke:e.includes("filled")?void 0:$[t],...i}))});x.displayName="Icon";var q={black:"bg-text-text text-white",accent:"bg-primary-100 text-white",secondary:"bg-secondary-100 text-secondary"},J={black:"border border-text text-text",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},R=a__namespace.forwardRef(({className:e,variant:o="filled",color:t="black",isLoading:s=!1,children:r,disabled:n,end:i,...l},m)=>a__namespace.createElement("button",{ref:m,className:c(`
2
+ sm:px-7 px-4
3
+ py-2
4
+ inline-flex items-center justify-center
5
+ rounded-lg
6
+ transition-colors duration-200
7
+ disabled:opacity-50 disabled:pointer-events-none
8
+ hover:opacity-80 active:scale-95
9
+ truncate`,b,o==="filled"?q[t]:J[t],e),disabled:n||s,type:"button",...l},typeof r=="string"?a__namespace.createElement(p,{variant:["sm:body-default-bold","body-xxs-semibold"],color:"inherit"},r):r,i));R.displayName="Button";var U={default:{icon:"information",className:"bg-gray-900 text-white"},success:{icon:"check",className:"bg-green-600 text-white"},error:{icon:"danger",className:"bg-tertiary-10 text-white"},warning:{icon:"warning-2",className:"bg-tertiary-20 text-white"}},I=a__namespace.forwardRef(({title:e,message:o,action:t,variant:s="default",duration:r=5e3,className:n,onOpenChange:i,...l},m)=>{let f=U[s],y=a__namespace.useCallback(w=>{i?.(w);},[i]);return a__namespace.createElement(d__namespace.Root,{ref:m,onOpenChange:y,duration:r,className:c("group pointer-events-auto relative flex w-full gap-4 rounded-lg p-4","shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right-full",f.className,n),...l},a__namespace.createElement(x,{name:f.icon,className:"h-5 w-5 shrink-0",color:"white"}),a__namespace.createElement("div",{className:"flex-1 gap-2"},e&&a__namespace.createElement(d__namespace.Title,{asChild:!0},a__namespace.createElement(p,{variant:"body-default-bold",color:"inherit"},e)),a__namespace.createElement(d__namespace.Description,{asChild:!0},a__namespace.createElement(p,{variant:"body-xs-medium",color:"inherit"},o))),a__namespace.createElement("div",{className:"flex gap-2"},t&&a__namespace.createElement(d__namespace.Action,{asChild:!0,altText:t.label},a__namespace.createElement("div",null,a__namespace.createElement(R,{variant:"outlined",color:"black",className:"border-white text-white hover:bg-white/10 ml-auto",onClick:t.onClick},t.label))),a__namespace.createElement(d__namespace.Close,{className:"p-2 hover:bg-white/10","aria-label":"Close"},a__namespace.createElement(x,{name:"close",size:16,color:"white"}))))});I.displayName="Toast";var B=typeof window<"u"?a.useLayoutEffect:a.useEffect;var P=({children:e,maxHeight:o=100})=>{let[t,s]=a__namespace.default.useState(!1),r=a.useRef(null),[n,i]=a.useState(o);B(()=>{if(!r.current)return;let m=new ResizeObserver(f=>{for(let y of f)i(y.target.scrollHeight);});return m.observe(r.current),()=>m.disconnect()},[]);let l=n>o;return a__namespace.default.createElement(v__namespace.Root,{open:t,onOpenChange:s},a__namespace.default.createElement("div",{className:"relative"},a__namespace.default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:t?`${n}px`:`${o}px`}},a__namespace.default.createElement("div",{ref:r,className:"w-full"},e)),l&&a__namespace.default.createElement(v__namespace.Trigger,{asChild:!0},a__namespace.default.createElement(H,{className:c("absolute -bottom-8 left-0 right-0","flex items-end justify-center","h-16 pt-8 pb-2",!t&&"bg-gradient-to-b from-transparent via-white to-white","hover:opacity-100 transition-opacity")},a__namespace.default.createElement(p,{variant:"label-default",color:"secondary"},t?"See less":"See more")))))};P.displayName="Collapsible";var dt=({contactItems:e,description:o,isEditMode:t=!1,onEditClick:s,...r})=>a__namespace.default.createElement("div",{className:"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4",...r},a__namespace.default.createElement("div",{className:"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},a__namespace.default.createElement(P,{maxHeight:120},a__namespace.default.createElement(p,{variant:"body-default"},o))),a__namespace.default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),a__namespace.default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),a__namespace.default.createElement("div",{className:"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8"},e.map(n=>a__namespace.default.createElement(k,{key:n.title,...n}))));exports.AboutCard=dt;//# sourceMappingURL=AboutCard.cjs.map
2
10
  //# sourceMappingURL=AboutCard.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Text.tsx","../../src/components/IconRenderer.tsx","../../src/utils/index.ts","../../src/utils/tailwind.ts","../../src/components/Link.tsx","../../src/components/ContactItem.tsx","../../src/components/Collapsible.tsx","../../src/components/Pressable.tsx","../../src/components/AboutCard.tsx"],"names":["HEADING_ELEMENT_MAP","getElementFromVariant","variant","category","size","fontWeight","processVariants","variants","breakpoint","typographyClass","Text","React","color","as","className","children","weight","props","ref","typographyClasses","colorClasses","suggestedElement","baseVariant","IconRenderer","icon","sanitizedSvg","useMemo","svg","viewBox","cn","inputs","twMerge","clsx","focusRingStyles","Link","href","ContactItem","linkProps","Pressable","type","disabled","Collapsible","maxHeight","open","setOpen","contentRef","useRef","contentHeight","setContentHeight","useState","useLayoutEffect","resizeObserver","entries","entry","shouldShowTrigger","y","AboutCard","contactItems","description","isEditMode","onEditClick","contactProps"],"mappings":"gmBAsEA,IAAMA,EAAmD,CACvD,EAAA,CAAI,IACJ,CAAA,EAAA,CAAI,KACJ,EAAI,CAAA,IAAA,CACJ,GAAI,IACJ,CAAA,EAAA,CAAI,IACN,CAEMC,CAAAA,CAAAA,CAAyBC,CAAwC,EAAA,CACrE,GAAM,CAACC,CAAAA,CAAUC,CAAI,CAAIF,CAAAA,CAAAA,CAAQ,MAAM,GAAG,CAAA,CAE1C,OAAIC,CAAa,GAAA,SAAA,CACRH,EAAoBI,CAAI,CAAA,EAAK,IAGlCD,CAAa,GAAA,OAAA,CACR,QAGF,GACT,CAAA,CAIME,CAAqC,CAAA,CACzC,MAAO,YACP,CAAA,OAAA,CAAS,eACT,QAAU,CAAA,eAAA,CACV,KAAM,WACR,CAAA,CA0BMC,EACJC,CAEKA,EAAAA,CAAAA,CAAAA,CAEgB,MAAM,OAAQA,CAAAA,CAAQ,EAAIA,CAAW,CAAA,CAACA,CAAQ,CAGhE,EAAA,GAAA,CAAKL,CAAY,EAAA,CAChB,GAAIA,CAAQ,CAA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,CAAQ,GAAGA,CAAc,CAAA,CACzD,CACH,CACF","file":"AboutCard.cjs","sourcesContent":["import React from \"react\";\nimport { Typography } from \"../types/tailwind\";\n\ntype TextElement =\n | \"p\"\n | \"span\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"strong\"\n | \"em\"\n | \"blockquote\"\n | \"pre\"\n | \"code\"\n | \"small\"\n | \"label\"\n | \"a\";\n\n// HTML element mapping type\ntype HTMLElementByTag = {\n p: HTMLParagraphElement;\n span: HTMLSpanElement;\n h1: HTMLHeadingElement;\n h2: HTMLHeadingElement;\n h3: HTMLHeadingElement;\n h4: HTMLHeadingElement;\n h5: HTMLHeadingElement;\n h6: HTMLHeadingElement;\n strong: HTMLElement;\n em: HTMLElement;\n blockquote: HTMLQuoteElement;\n pre: HTMLPreElement;\n code: HTMLElement;\n small: HTMLElement;\n label: HTMLLabelElement;\n a: HTMLAnchorElement;\n};\n\n// HTML props mapping type\ntype HTMLPropsMap = {\n p: React.HTMLAttributes<HTMLParagraphElement>;\n span: React.HTMLAttributes<HTMLSpanElement>;\n h1: React.HTMLAttributes<HTMLHeadingElement>;\n h2: React.HTMLAttributes<HTMLHeadingElement>;\n h3: React.HTMLAttributes<HTMLHeadingElement>;\n h4: React.HTMLAttributes<HTMLHeadingElement>;\n h5: React.HTMLAttributes<HTMLHeadingElement>;\n h6: React.HTMLAttributes<HTMLHeadingElement>;\n strong: React.HTMLAttributes<HTMLElement>;\n em: React.HTMLAttributes<HTMLElement>;\n blockquote: React.HTMLAttributes<HTMLQuoteElement>;\n pre: React.HTMLAttributes<HTMLPreElement>;\n code: React.HTMLAttributes<HTMLElement>;\n small: React.HTMLAttributes<HTMLElement>;\n label: React.LabelHTMLAttributes<HTMLLabelElement>;\n a: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, \"color\">;\n};\n\ntype TextColor =\n | \"primary\"\n | \"secondary\"\n | \"white\"\n | \"primary-blue\"\n | \"disabled\"\n | \"danger\"\n | \"inherit\";\n\nconst HEADING_ELEMENT_MAP: Record<string, TextElement> = {\n xl: \"h1\",\n lg: \"h1\",\n md: \"h2\",\n sm: \"h3\",\n xs: \"h4\"\n};\n\nconst getElementFromVariant = (variant: TypographyKey): TextElement => {\n const [category, size] = variant.split(\"-\");\n\n if (category === \"heading\") {\n return HEADING_ELEMENT_MAP[size] || \"p\";\n }\n\n if (category === \"label\") {\n return \"label\";\n }\n\n return \"p\";\n};\n\ntype Weight = \"light\" | \"regular\" | \"semibold\" | \"bold\";\n\nconst fontWeight: Record<Weight, string> = {\n light: \"font-light\",\n regular: \"font-regular\",\n semibold: \"font-semibold\",\n bold: \"font-bold\"\n};\n\n// Add breakpoint types\ntype Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype ResponsiveVariant = TypographyKey | `${Breakpoint}:${TypographyKey}`;\n\ntype TypographyCategory = keyof Typography;\ntype TypographyValue<T extends TypographyCategory> = Extract<\n keyof Typography[T],\n string | number | bigint | boolean | null | undefined\n>;\ntype TypographyKey = {\n [T in TypographyCategory]: `${T}-${TypographyValue<T>}`;\n}[TypographyCategory];\n\n// Update TextProps to use ResponsiveVariant\nexport type TextProps<T extends TextElement = \"p\"> = {\n variant?: ResponsiveVariant | ResponsiveVariant[];\n color?: TextColor;\n as?: T;\n className?: string;\n children: React.ReactNode;\n weight?: Weight;\n} & HTMLPropsMap[T];\n\n// Add helper function to process variants\nconst processVariants = (\n variants: ResponsiveVariant | ResponsiveVariant[] | undefined\n): string => {\n if (!variants) return \"text-body-default\";\n\n const variantArray = Array.isArray(variants) ? variants : [variants];\n\n return variantArray\n .map((variant) => {\n if (variant.includes(\":\")) {\n const [breakpoint, typographyClass] = variant.split(\":\");\n return `${breakpoint}:text-${typographyClass}`;\n }\n return `text-${variant}`;\n })\n .join(\" \");\n};\n\nexport const Text = React.forwardRef(\n <T extends TextElement = \"p\">(\n {\n variant = \"body-default\",\n color = \"primary\",\n as,\n className,\n children,\n weight,\n ...props\n }: TextProps<T>,\n ref: React.ForwardedRef<HTMLElementByTag[T]>\n ) => {\n // Process typography classes with breakpoints\n const typographyClasses = processVariants(variant);\n\n // Get color styles\n const colorClasses =\n color === \"inherit\" ? \"text-inherit\" : `text-text-${color}`;\n\n const suggestedElement = React.useMemo(() => {\n const baseVariant =\n typeof variant === \"string\"\n ? variant.split(\":\").pop()!\n : Array.isArray(variant)\n ? variant[0].split(\":\").pop()!\n : \"body-default\";\n return getElementFromVariant(baseVariant as TypographyKey);\n }, [variant]);\n\n const Component = (as || suggestedElement) as T;\n\n return (\n // @ts-expect-error TODO: figure this out\n <Component\n ref={ref}\n className={`font-sans antialiased ${typographyClasses} ${colorClasses} ${\n weight ? `!${fontWeight[weight]}` : \"\"\n } ${className ?? \"\"}`}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nText.displayName = \"Text\";\n","import React, { useMemo } from \"react\";\n\nexport type IconRendererProps = {\n icon: string;\n size?: number;\n className?: string;\n};\n\nexport const IconRenderer = ({\n icon,\n size = 40,\n className\n}: IconRendererProps) => {\n const sanitizedSvg = useMemo(() => {\n const parser = new DOMParser();\n const doc = parser.parseFromString(icon, \"image/svg+xml\");\n const svg = doc.querySelector(\"svg\");\n\n if (!svg) return null;\n\n // Set size attributes but preserve aspect ratio\n svg.setAttribute(\"width\", \"100%\");\n svg.setAttribute(\"height\", \"100%\");\n svg.setAttribute(\"preserveAspectRatio\", \"xMidYMid meet\");\n\n // Get the original viewBox or use the default\n const viewBox = svg.getAttribute(\"viewBox\") || \"0 0 40 40\";\n svg.setAttribute(\"viewBox\", viewBox);\n\n return svg.outerHTML;\n }, [icon]);\n\n if (!sanitizedSvg) return null;\n\n return (\n <div\n style={{\n width: size,\n height: size,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }}\n className={className}\n dangerouslySetInnerHTML={{ __html: sanitizedSvg }}\n />\n );\n};\n\nIconRenderer.displayName = \"IconRenderer\";\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const noopFn = () => {};\n","import { Colors, Typography } from \"../types/tailwind\";\n\n// Generate safelist patterns for all color utilities so you can use any theme color variable in your code\nexport const generateSafelist = (colors: Colors, typography: Typography) => {\n const colorNames = Object.keys(colors) as (keyof Colors)[];\n const utilities = [\"bg\", \"text\", \"border\", \"ring\", \"divide\", \"outline\"];\n const variants = [\"hover:\", \"focus:\", \"active:\", \"disabled:\"];\n\n const safelist: string[] = [];\n\n colorNames.forEach((colorName) => {\n if (typeof colors[colorName] === \"object\") {\n // Handle nested color objects (with number keys)\n Object.keys(colors[colorName]).forEach((shade) => {\n utilities.forEach((utility) => {\n // Base utility\n safelist.push(`${utility}-${colorName}-${shade}`);\n\n // Variant utilities\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}-${shade}`);\n });\n });\n });\n } else {\n // Handle direct color values\n utilities.forEach((utility) => {\n safelist.push(`${utility}-${colorName}`);\n\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}`);\n });\n });\n }\n });\n\n // Generate typography classes\n Object.entries(typography).forEach(([family, sizes]) => {\n Object.keys(sizes).forEach((size) => {\n // Base typography classes\n safelist.push(`text-${family}-${size}`);\n\n // Add variants\n variants.forEach((variant) => {\n safelist.push(`${variant}text-${family}-${size}`);\n });\n });\n });\n\n const breakpoints = [\"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const typographyClasses = Object.entries(typography).flatMap(\n ([category, sizes]) =>\n Object.keys(sizes).map((size) => `text-${category}-${size}`)\n );\n\n // Generate responsive variants\n const responsiveTypographyClasses = typographyClasses.flatMap((className) =>\n breakpoints.map((breakpoint) => `${breakpoint}:${className}`)\n );\n\n return [\n ...typographyClasses,\n ...responsiveTypographyClasses\n // ... rest of your safelist\n ];\n};\n\nexport const focusRingStyles =\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\";\n\nexport const focusRingStylesCoerced = \"ring-2 ring-ring ring-offset-2\";\n","import React from \"react\";\nimport { Text, TextProps } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\n\nexport type LinkProps = {\n href: string;\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n} & Pick<TextProps, \"variant\" | \"color\"> &\n React.AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport const Link = ({\n children,\n color = \"inherit\",\n variant = \"body-default-semibold\",\n href,\n className,\n ...props\n}: LinkProps) => (\n <Text variant={variant} color={color}>\n <a\n href={href}\n className={cn(\n \"hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline\",\n focusRingStyles,\n className\n )}\n {...props}\n >\n {children}\n </a>\n </Text>\n);\n","import React, { HTMLAttributes } from \"react\";\nimport { IconRenderer } from \"./IconRenderer\";\nimport { Link } from \"./Link\";\n\nexport type ContactItemProps = {\n // TODO: figure out how to get filled icons to work correctly\n icon: string;\n children: React.ReactNode;\n href: string;\n} & Omit<HTMLAttributes<HTMLAnchorElement>, \"color\">;\n\nexport const ContactItem = ({\n icon,\n children,\n href,\n ...linkProps\n}: ContactItemProps) => (\n <div className=\"row gap-2 flex items-center\">\n <div className=\"bg-secondary-400 rounded-full p-2.5 items-center justify-center\">\n <IconRenderer icon={icon} size={18} className=\"text-text\" />\n </div>\n <Link\n className=\"hover:underline\"\n href={href}\n {...linkProps}\n variant={[\"body-default-semibold\", \"md:body-default-semibold\"]}\n >\n {children}\n </Link>\n </div>\n);\n","import React, { useRef, useLayoutEffect, useState } from \"react\";\nimport * as RadixCollapsible from \"@radix-ui/react-collapsible\";\nimport { Pressable } from \"./Pressable\";\nimport { Text } from \"./Text\";\nimport { cn } from \"../utils\";\n\nexport type CollapsibleProps = {\n children: React.ReactNode;\n maxHeight?: number;\n};\n\nexport const Collapsible = ({\n children,\n maxHeight = 100\n}: CollapsibleProps) => {\n const [open, setOpen] = React.useState(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const [contentHeight, setContentHeight] = useState<number>(maxHeight);\n\n // Measure content height on mount and resize\n useLayoutEffect(() => {\n if (!contentRef.current) return;\n\n const resizeObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n setContentHeight(entry.target.scrollHeight);\n }\n });\n\n resizeObserver.observe(contentRef.current);\n return () => resizeObserver.disconnect();\n }, []);\n\n const shouldShowTrigger = contentHeight > maxHeight;\n\n return (\n <RadixCollapsible.Root open={open} onOpenChange={setOpen}>\n <div className=\"relative\">\n <div\n className=\"overflow-hidden transition-[height] duration-300 ease-in-out\"\n style={{\n height: open ? `${contentHeight}px` : `${maxHeight}px`\n }}\n >\n <div ref={contentRef} className=\"w-full\">\n {children}\n </div>\n </div>\n\n {shouldShowTrigger && (\n <RadixCollapsible.Trigger asChild>\n <Pressable\n className={cn(\n \"absolute -bottom-8 left-0 right-0\",\n \"flex items-end justify-center\",\n \"h-16 pt-8 pb-2\",\n !open && \"bg-gradient-to-b from-transparent via-white to-white\",\n \"hover:opacity-100 transition-opacity\"\n )}\n >\n <Text variant=\"label-default\" color=\"secondary\">\n {open ? \"See less\" : \"See more\"}\n </Text>\n </Pressable>\n </RadixCollapsible.Trigger>\n )}\n </div>\n </RadixCollapsible.Root>\n );\n};\n\nCollapsible.displayName = \"Collapsible\";\n","import React, { ButtonHTMLAttributes } from \"react\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { cn } from \"../utils\";\n\nexport type PressableProps = ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const Pressable = React.forwardRef<HTMLButtonElement, PressableProps>(\n ({ children, type = \"button\", className, disabled, ...props }, ref) => (\n <button\n ref={ref}\n type={type}\n disabled={disabled}\n className={cn(\n \"appearance-none hover:opacity-80 transition-all active:scale-95\",\n focusRingStyles,\n disabled && \"opacity-50 cursor-not-allowed\",\n className\n )}\n {...props}\n >\n {children}\n </button>\n )\n);\n\nPressable.displayName = \"Pressable\";\n","import React from \"react\";\nimport { Text } from \"./Text\";\nimport { ContactItem, ContactItemProps } from \"./ContactItem\";\nimport { Collapsible } from \"./Collapsible\";\n\nexport type AboutCardProps = {\n contactItems: ContactItemProps[];\n description: string;\n isEditMode?: boolean;\n onEditClick?: () => void;\n};\n\nexport const AboutCard = ({\n contactItems,\n description,\n isEditMode = false,\n onEditClick,\n ...props\n}: AboutCardProps) => (\n <div\n className=\"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4\"\n {...props}\n >\n <div className=\"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center\">\n <Collapsible maxHeight={120}>\n <Text variant=\"body-default\">{description}</Text>\n </Collapsible>\n </div>\n {/* vertical divider for desktop */}\n <span className=\"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10\" />\n {/* horizontal divider for mobile */}\n <span className=\"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10\" />\n <div className=\"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8\">\n {contactItems.map((contactProps) => (\n <ContactItem key={contactProps.title} {...contactProps} />\n ))}\n </div>\n </div>\n);\n"]}
1
+ {"version":3,"sources":["../../src/components/Text.tsx","../../src/components/IconRenderer.tsx","../../src/components/Link.tsx","../../src/utils/index.ts","../../src/utils/tailwind.ts","../../src/components/ContactItem.tsx","../../src/components/Pressable.tsx","../../src/hooks/useToast.tsx","../../src/components/Icon.tsx","../../src/components/Button.tsx","../../src/components/Toast.tsx","../../src/hooks/useIsomorphicLayoutEffect.tsx","../../src/components/Collapsible.tsx","../../src/components/AboutCard.tsx"],"names":["HEADING_ELEMENT_MAP","getElementFromVariant","variant","category","size","fontWeight","processVariants","variants","breakpoint","typographyClass","Text","React","color","as","className","children","weight","props","ref","typographyClasses","colorClasses","suggestedElement","baseVariant","IconRenderer","icon","sanitizedSvg","useMemo","svg","viewBox","cn","inputs","twMerge","clsx","focusRingStyles","Link","href","ContactItem","linkProps","Pressable","type","disabled","COLOR_MAP","BREAKPOINT_MAP","processSizes","sizes","sizeArray","mediaQueries","baseSize","valueStr","value","acc","query","Icon","name","title","style","IconComponent","IconMap","sizeStyles","filled","outlined","Button","h","isLoading","end","Toast","a","message","action","duration","onOpenChange","variantConfig","handleOpenChange","open","d","useIsomorphicLayoutEffect","useLayoutEffect","useEffect","Collapsible","maxHeight","setOpen","contentRef","useRef","contentHeight","setContentHeight","useState","resizeObserver","entries","entry","shouldShowTrigger","v","AboutCard","contactItems","description","isEditMode","onEditClick","contactProps"],"mappings":"wpBAsEA,IAAMA,CAAAA,CAAmD,CACvD,EAAI,CAAA,IAAA,CACJ,GAAI,IACJ,CAAA,EAAA,CAAI,KACJ,EAAI,CAAA,IAAA,CACJ,GAAI,IACN,CAAA,CAEMC,EAAyBC,CAAwC,EAAA,CACrE,GAAM,CAACC,CAAAA,CAAUC,CAAI,CAAIF,CAAAA,CAAAA,CAAQ,MAAM,GAAG,CAAA,CAE1C,OAAIC,CAAa,GAAA,SAAA,CACRH,EAAoBI,CAAI,CAAA,EAAK,IAGlCD,CAAa,GAAA,OAAA,CACR,QAGF,GACT,CAAA,CAIME,EAAqC,CACzC,KAAA,CAAO,aACP,OAAS,CAAA,cAAA,CACT,SAAU,eACV,CAAA,IAAA,CAAM,WACR,CA0BMC,CAAAA,CAAAA,CACJC,GAEKA,CAEgB,CAAA,CAAA,KAAA,CAAM,QAAQA,CAAQ,CAAA,CAAIA,EAAW,CAACA,CAAQ,GAGhE,GAAKL,CAAAA,CAAAA,EAAY,CAChB,GAAIA,CAAAA,CAAQ,SAAS,GAAG,CAAA,CAAG,CACzB,GAAM,CAACM,EAAYC,CAAe,CAAA,CAAIP,EAAQ,KAAM,CAAA,GAAG,EACvD,OAAO,CAAA,EAAGM,CAAU,CAASC,MAAAA,EAAAA,CAAe,EAC9C,CACA,OAAO,CAAQP,KAAAA,EAAAA,CAAO,CACxB,CAAA,CAAC,E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AAAA,CAAAA,CAAO,UAAa,CAAA,UACvB,CACF,CACF,CAEJ,CACF,CAEJ,CAAA,CAEAK,CAAY,CAAA,WAAA,CAAc,aC5DnB,CAAA,IAAMa,EAAY,CAAA,CAAC,CACxB,YAAA,CAAAC,CACA,CAAA,WAAA,CAAAC,CACA,CAAA,UAAA,CAAAC,CAAa,CAAA,CAAA,CAAA,CACb,WAAAC,CAAAA,CAAAA,CACA,GAAG9E,CACL,IACEN,oBAAA,CAAA,aAAA,CAAC,KACC,CAAA,CAAA,SAAA,CAAU,iGACT,CAAA,GAAGM,CAEJN,CAAAA,CAAAA,oBAAAA,CAAA,aAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,kFAAA,CAAA,CACbA,oBAAA,CAAA,aAAA,CAACmE,CAAA,CAAA,CAAY,SAAW,CAAA,GAAA,CAAA,CACtBnE,oBAAA,CAAA,aAAA,CAACD,CAAA,CAAA,CAAK,OAAQ,CAAA,cAAA,CAAA,CAAgBmF,CAAY,CAC5C,CACF,CAAA,CAEAlF,oBAAA,CAAA,aAAA,CAAC,QAAK,SAAU,CAAA,yEAAA,CAA0E,CAE1FA,CAAAA,oBAAAA,CAAA,aAAC,CAAA,MAAA,CAAA,CAAK,SAAU,CAAA,2DAAA,CAA4D,CAC5EA,CAAAA,oBAAAA,CAAA,aAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,2CAAA,CAAA,CACZiF,CAAa,CAAA,GAAA,CAAKI,CACjBrF,EAAAA,oBAAAA,CAAA,aAACyB,CAAAA,CAAAA,CAAA,CAAY,GAAA,CAAK4D,CAAa,CAAA,KAAA,CAAQ,GAAGA,CAAAA,CAAc,CACzD,CACH,CACF","file":"AboutCard.cjs","sourcesContent":["import React from \"react\";\nimport { Typography } from \"../types/tailwind\";\n\ntype TextElement =\n | \"p\"\n | \"span\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"strong\"\n | \"em\"\n | \"blockquote\"\n | \"pre\"\n | \"code\"\n | \"small\"\n | \"label\"\n | \"a\";\n\n// HTML element mapping type\ntype HTMLElementByTag = {\n p: HTMLParagraphElement;\n span: HTMLSpanElement;\n h1: HTMLHeadingElement;\n h2: HTMLHeadingElement;\n h3: HTMLHeadingElement;\n h4: HTMLHeadingElement;\n h5: HTMLHeadingElement;\n h6: HTMLHeadingElement;\n strong: HTMLElement;\n em: HTMLElement;\n blockquote: HTMLQuoteElement;\n pre: HTMLPreElement;\n code: HTMLElement;\n small: HTMLElement;\n label: HTMLLabelElement;\n a: HTMLAnchorElement;\n};\n\n// HTML props mapping type\ntype HTMLPropsMap = {\n p: React.HTMLAttributes<HTMLParagraphElement>;\n span: React.HTMLAttributes<HTMLSpanElement>;\n h1: React.HTMLAttributes<HTMLHeadingElement>;\n h2: React.HTMLAttributes<HTMLHeadingElement>;\n h3: React.HTMLAttributes<HTMLHeadingElement>;\n h4: React.HTMLAttributes<HTMLHeadingElement>;\n h5: React.HTMLAttributes<HTMLHeadingElement>;\n h6: React.HTMLAttributes<HTMLHeadingElement>;\n strong: React.HTMLAttributes<HTMLElement>;\n em: React.HTMLAttributes<HTMLElement>;\n blockquote: React.HTMLAttributes<HTMLQuoteElement>;\n pre: React.HTMLAttributes<HTMLPreElement>;\n code: React.HTMLAttributes<HTMLElement>;\n small: React.HTMLAttributes<HTMLElement>;\n label: React.LabelHTMLAttributes<HTMLLabelElement>;\n a: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, \"color\">;\n};\n\ntype TextColor =\n | \"primary\"\n | \"secondary\"\n | \"white\"\n | \"primary-blue\"\n | \"disabled\"\n | \"danger\"\n | \"inherit\";\n\nconst HEADING_ELEMENT_MAP: Record<string, TextElement> = {\n xl: \"h1\",\n lg: \"h1\",\n md: \"h2\",\n sm: \"h3\",\n xs: \"h4\"\n};\n\nconst getElementFromVariant = (variant: TypographyKey): TextElement => {\n const [category, size] = variant.split(\"-\");\n\n if (category === \"heading\") {\n return HEADING_ELEMENT_MAP[size] || \"p\";\n }\n\n if (category === \"label\") {\n return \"label\";\n }\n\n return \"p\";\n};\n\ntype Weight = \"light\" | \"regular\" | \"semibold\" | \"bold\";\n\nconst fontWeight: Record<Weight, string> = {\n light: \"font-light\",\n regular: \"font-regular\",\n semibold: \"font-semibold\",\n bold: \"font-bold\"\n};\n\n// Add breakpoint types\ntype Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype ResponsiveVariant = TypographyKey | `${Breakpoint}:${TypographyKey}`;\n\ntype TypographyCategory = keyof Typography;\ntype TypographyValue<T extends TypographyCategory> = Extract<\n keyof Typography[T],\n string | number | bigint | boolean | null | undefined\n>;\ntype TypographyKey = {\n [T in TypographyCategory]: `${T}-${TypographyValue<T>}`;\n}[TypographyCategory];\n\n// Update TextProps to use ResponsiveVariant\nexport type TextProps<T extends TextElement = \"p\"> = {\n variant?: ResponsiveVariant | ResponsiveVariant[];\n color?: TextColor;\n as?: T;\n className?: string;\n children: React.ReactNode;\n weight?: Weight;\n} & HTMLPropsMap[T];\n\n// Add helper function to process variants\nconst processVariants = (\n variants: ResponsiveVariant | ResponsiveVariant[] | undefined\n): string => {\n if (!variants) return \"text-body-default\";\n\n const variantArray = Array.isArray(variants) ? variants : [variants];\n\n return variantArray\n .map((variant) => {\n if (variant.includes(\":\")) {\n const [breakpoint, typographyClass] = variant.split(\":\");\n return `${breakpoint}:text-${typographyClass}`;\n }\n return `text-${variant}`;\n })\n .join(\" \");\n};\n\nexport const Text = React.forwardRef(\n <T extends TextElement = \"p\">(\n {\n variant = \"body-default\",\n color = \"primary\",\n as,\n className,\n children,\n weight,\n ...props\n }: TextProps<T>,\n ref: React.ForwardedRef<HTMLElementByTag[T]>\n ) => {\n // Process typography classes with breakpoints\n const typographyClasses = processVariants(variant);\n\n // Get color styles\n const colorClasses =\n color === \"inherit\" ? \"text-inherit\" : `text-text-${color}`;\n\n const suggestedElement = React.useMemo(() => {\n const baseVariant =\n typeof variant === \"string\"\n ? variant.split(\":\").pop()!\n : Array.isArray(variant)\n ? variant[0].split(\":\").pop()!\n : \"body-default\";\n return getElementFromVariant(baseVariant as TypographyKey);\n }, [variant]);\n\n const Component = (as || suggestedElement) as T;\n\n return (\n // @ts-expect-error TODO: figure this out\n <Component\n ref={ref}\n className={`font-sans antialiased ${typographyClasses} ${colorClasses} ${\n weight ? `!${fontWeight[weight]}` : \"\"\n } ${className ?? \"\"}`}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nText.displayName = \"Text\";\n","import React, { useMemo } from \"react\";\n\nexport type IconRendererProps = {\n icon: string;\n size?: number;\n className?: string;\n};\n\nexport const IconRenderer = ({\n icon,\n size = 40,\n className\n}: IconRendererProps) => {\n const sanitizedSvg = useMemo(() => {\n const parser = new DOMParser();\n const doc = parser.parseFromString(icon, \"image/svg+xml\");\n const svg = doc.querySelector(\"svg\");\n\n if (!svg) return null;\n\n // Set size attributes but preserve aspect ratio\n svg.setAttribute(\"width\", \"100%\");\n svg.setAttribute(\"height\", \"100%\");\n svg.setAttribute(\"preserveAspectRatio\", \"xMidYMid meet\");\n\n // Get the original viewBox or use the default\n const viewBox = svg.getAttribute(\"viewBox\") || \"0 0 40 40\";\n svg.setAttribute(\"viewBox\", viewBox);\n\n return svg.outerHTML;\n }, [icon]);\n\n if (!sanitizedSvg) return null;\n\n return (\n <div\n style={{\n width: size,\n height: size,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }}\n className={className}\n dangerouslySetInnerHTML={{ __html: sanitizedSvg }}\n />\n );\n};\n\nIconRenderer.displayName = \"IconRenderer\";\n","import React from \"react\";\nimport { Text, TextProps } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\n\nexport type LinkProps = {\n href: string;\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n} & Pick<TextProps, \"variant\" | \"color\"> &\n React.AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport const Link = ({\n children,\n color = \"inherit\",\n variant = \"body-default-semibold\",\n href,\n className,\n ...props\n}: LinkProps) => (\n <Text variant={variant} color={color}>\n <a\n href={href}\n className={cn(\n \"hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline\",\n focusRingStyles,\n className\n )}\n {...props}\n >\n {children}\n </a>\n </Text>\n);\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const noopFn = () => {};\n","import { Colors, Typography } from \"../types/tailwind\";\n\n// Generate safelist patterns for all color utilities so you can use any theme color variable in your code\nexport const generateSafelist = (colors: Colors, typography: Typography) => {\n const colorNames = Object.keys(colors) as (keyof Colors)[];\n const utilities = [\"bg\", \"text\", \"border\", \"ring\", \"divide\", \"outline\"];\n const variants = [\"hover:\", \"focus:\", \"active:\", \"disabled:\"];\n\n const safelist: string[] = [];\n\n colorNames.forEach((colorName) => {\n if (typeof colors[colorName] === \"object\") {\n // Handle nested color objects (with number keys)\n Object.keys(colors[colorName]).forEach((shade) => {\n utilities.forEach((utility) => {\n // Base utility\n safelist.push(`${utility}-${colorName}-${shade}`);\n\n // Variant utilities\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}-${shade}`);\n });\n });\n });\n } else {\n // Handle direct color values\n utilities.forEach((utility) => {\n safelist.push(`${utility}-${colorName}`);\n\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}`);\n });\n });\n }\n });\n\n // Generate typography classes\n Object.entries(typography).forEach(([family, sizes]) => {\n Object.keys(sizes).forEach((size) => {\n // Base typography classes\n safelist.push(`text-${family}-${size}`);\n\n // Add variants\n variants.forEach((variant) => {\n safelist.push(`${variant}text-${family}-${size}`);\n });\n });\n });\n\n const breakpoints = [\"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const typographyClasses = Object.entries(typography).flatMap(\n ([category, sizes]) =>\n Object.keys(sizes).map((size) => `text-${category}-${size}`)\n );\n\n // Generate responsive variants\n const responsiveTypographyClasses = typographyClasses.flatMap((className) =>\n breakpoints.map((breakpoint) => `${breakpoint}:${className}`)\n );\n\n return [\n ...typographyClasses,\n ...responsiveTypographyClasses\n // ... rest of your safelist\n ];\n};\n\nexport const focusRingStyles =\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\";\n\nexport const focusRingStylesCoerced = \"ring-2 ring-ring ring-offset-2\";\n","import React, { HTMLAttributes } from \"react\";\nimport { IconRenderer } from \"./IconRenderer\";\nimport { Link } from \"./Link\";\n\nexport type ContactItemProps = {\n // TODO: figure out how to get filled icons to work correctly\n icon: string;\n children: React.ReactNode;\n href: string;\n} & Omit<HTMLAttributes<HTMLAnchorElement>, \"color\">;\n\nexport const ContactItem = ({\n icon,\n children,\n href,\n ...linkProps\n}: ContactItemProps) => (\n <div className=\"row gap-2 flex items-center\">\n <div className=\"bg-secondary-400 rounded-full p-2.5 items-center justify-center\">\n <IconRenderer icon={icon} size={18} className=\"text-text\" />\n </div>\n <Link\n className=\"hover:underline\"\n href={href}\n {...linkProps}\n variant={[\"body-default-semibold\", \"md:body-default-semibold\"]}\n >\n {children}\n </Link>\n </div>\n);\n","import React, { ButtonHTMLAttributes } from \"react\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { cn } from \"../utils\";\n\nexport type PressableProps = ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const Pressable = React.forwardRef<HTMLButtonElement, PressableProps>(\n ({ children, type = \"button\", className, disabled, ...props }, ref) => (\n <button\n ref={ref}\n type={type}\n disabled={disabled}\n className={cn(\n \"appearance-none hover:opacity-80 transition-all active:scale-95\",\n focusRingStyles,\n disabled && \"opacity-50 cursor-not-allowed\",\n className\n )}\n {...props}\n >\n {children}\n </button>\n )\n);\n\nPressable.displayName = \"Pressable\";\n","import * as React from \"react\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport { Toast, ToastProps } from \"../components/Toast\";\n\ntype ToastOptions = Omit<ToastProps, keyof ToastPrimitive.ToastProps>;\n\nexport const useToast = () => {\n const [toasts, setToasts] = React.useState<\n Array<ToastOptions & { id: string; open: boolean }>\n >([]);\n\n const show = React.useCallback((options: ToastOptions) => {\n const id = Math.random().toString(36).slice(2);\n setToasts((prev) => [...prev, { ...options, id, open: true }]);\n return id;\n }, []);\n\n const dismiss = React.useCallback((id: string) => {\n setToasts((prev) =>\n prev.map((toast) => (toast.id === id ? { ...toast, open: false } : toast))\n );\n }, []);\n\n const onOpenChange = React.useCallback(\n (id: string, open: boolean) => {\n if (!open) {\n dismiss(id);\n // Remove the toast after animation completes\n setTimeout(() => {\n setToasts((prev) => prev.filter((toast) => toast.id !== id));\n }, 300);\n }\n },\n [dismiss]\n );\n\n const toastElements = toasts.map((toast) => (\n <Toast\n key={toast.id}\n {...toast}\n onOpenChange={(open) => onOpenChange(toast.id, open)}\n />\n ));\n\n return { show, dismiss, toasts: toastElements };\n};\n","import React, { SVGProps } from \"react\";\nimport { IconName, IconMap } from \"@deckai/icons\";\nimport { IconColors } from \"../types/tailwind\";\nimport { cn } from \"../utils\";\n\ntype Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype ResponsiveSize = number | `${Breakpoint}:${number}`;\n\nexport type IconProps = {\n name: IconName;\n /** @default 24 */\n size?: ResponsiveSize | ResponsiveSize[];\n /** @default primary */\n color?: IconColors;\n title?: string;\n className?: string;\n style?: React.CSSProperties;\n} & Omit<SVGProps<SVGSVGElement>, \"aria-hidden\" | \"aria-label\">;\n\nconst COLOR_MAP: Record<IconColors, string> = {\n primary: \"#080808\",\n secondary: \"#666666\",\n white: \"#ffffff\",\n primaryBlue: \"#089CCB\",\n disabled: \"#888888\"\n};\n\nconst BREAKPOINT_MAP: Record<Breakpoint, string> = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n \"2xl\": \"1536px\"\n};\n\nconst processSizes = (\n sizes: ResponsiveSize | ResponsiveSize[] | undefined\n): React.CSSProperties => {\n if (!sizes) return { width: \"24px\", height: \"24px\" };\n\n const sizeArray = Array.isArray(sizes) ? sizes : [sizes];\n const mediaQueries: Record<string, string> = {};\n let baseSize: string | undefined;\n\n // Process each size\n sizeArray.forEach((size) => {\n if (typeof size === \"number\") {\n baseSize = `${size}px`;\n } else {\n const [breakpoint, valueStr] = size.split(\":\") as [Breakpoint, string];\n const value = parseInt(valueStr, 10);\n mediaQueries[`@media (min-width: ${BREAKPOINT_MAP[breakpoint]})`] =\n `${value}px`;\n }\n });\n\n // Create the style object with the correct structure\n return {\n width: baseSize || \"24px\",\n height: baseSize || \"24px\",\n ...Object.entries(mediaQueries).reduce(\n (acc, [query, size]) => ({\n ...acc,\n [query]: {\n width: size,\n height: size\n }\n }),\n {}\n )\n };\n};\n\nexport const Icon = React.forwardRef<SVGSVGElement, IconProps>(\n (\n {\n name,\n size = 24,\n color = \"primary\",\n title,\n className,\n style = {},\n ...props\n },\n ref\n ) => {\n const IconComponent = IconMap[name];\n const sizeStyles = processSizes(size);\n\n return (\n <div\n className={cn(\"flex justify-center items-center\", className)}\n style={{\n ...sizeStyles,\n [\"--icon-stroke\" as string]: COLOR_MAP[color],\n ...style\n }}\n >\n <IconComponent\n ref={ref}\n aria-hidden={!title}\n aria-label={title}\n stroke={name.includes(\"filled\") ? undefined : COLOR_MAP[color]}\n {...props}\n />\n </div>\n );\n }\n);\n\nIcon.displayName = \"Icon\";\n","import * as React from \"react\";\nimport { Text } from \"./Text\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { cn } from \"../utils\";\n\nexport type ButtonProps = {\n /** @default filled */\n variant?: \"filled\" | \"outlined\";\n /** @default primary */\n color?: \"black\" | \"accent\" | \"secondary\";\n isLoading?: boolean;\n children: React.ReactNode;\n className?: string;\n disabled?: boolean;\n start?: React.ReactNode;\n end?: React.ReactNode;\n} & React.ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const filled = {\n black: \"bg-text-text text-white\",\n // fade it slightly\n accent: \"bg-primary-100 text-white\",\n secondary: \"bg-secondary-100 text-secondary\"\n};\n\nexport const outlined = {\n black: \"border border-text text-text\",\n accent: \"border border-primary-100 text-primary-100\",\n secondary: \"border border-text-secondary text-secondary\"\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant = \"filled\",\n color = \"black\",\n isLoading = false,\n children,\n disabled,\n end,\n ...props\n },\n ref\n ) => (\n <button\n ref={ref}\n className={cn(\n `\n sm:px-7 px-4\n py-2\n inline-flex items-center justify-center\n rounded-lg \n transition-colors duration-200\n disabled:opacity-50 disabled:pointer-events-none\n hover:opacity-80 active:scale-95 \n truncate`,\n focusRingStyles,\n variant === \"filled\" ? filled[color] : outlined[color],\n className\n )}\n disabled={disabled || isLoading}\n type=\"button\"\n {...props}\n >\n {typeof children === \"string\" ? (\n <Text\n variant={[\"sm:body-default-bold\", \"body-xxs-semibold\"]}\n color=\"inherit\"\n >\n {children}\n </Text>\n ) : (\n children\n )}\n {end}\n </button>\n )\n);\n\nButton.displayName = \"Button\";\n","import * as React from \"react\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport { cn } from \"../utils\";\nimport { Icon } from \"./Icon\";\nimport { Text } from \"./Text\";\nimport { Button } from \"./Button\";\nimport { IconName } from \"@deckai/icons\";\n\nexport type ToastProps = ToastPrimitive.ToastProps & {\n /** Optional title for the toast */\n title?: string;\n /** Main message content */\n message: string;\n /** Optional action button configuration */\n action?: {\n label: string;\n onClick: () => void;\n };\n /** Optional variant to change the visual style */\n variant?: \"default\" | \"success\" | \"error\" | \"warning\";\n\n /** Optional className for custom styling */\n className?: string;\n};\n\nconst variants: Record<\n NonNullable<ToastProps[\"variant\"]>,\n {\n icon: IconName;\n className: string;\n }\n> = {\n default: {\n icon: \"information\",\n className: \"bg-gray-900 text-white\"\n },\n success: {\n icon: \"check\",\n className: \"bg-green-600 text-white\"\n },\n error: {\n icon: \"danger\",\n className: \"bg-tertiary-10 text-white\"\n },\n warning: {\n icon: \"warning-2\",\n className: \"bg-tertiary-20 text-white\"\n }\n} as const;\n\nexport const Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Root>,\n ToastProps\n>(\n (\n {\n title,\n message,\n action,\n variant = \"default\",\n duration = 5000,\n className,\n onOpenChange,\n ...props\n },\n ref\n ) => {\n const variantConfig = variants[variant];\n\n const handleOpenChange = React.useCallback(\n (open: boolean) => {\n onOpenChange?.(open);\n },\n [onOpenChange]\n );\n\n return (\n <ToastPrimitive.Root\n ref={ref}\n onOpenChange={handleOpenChange}\n duration={duration}\n className={cn(\n \"group pointer-events-auto relative flex w-full gap-4 rounded-lg p-4\",\n \"shadow-lg\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n \"data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right-full\",\n variantConfig.className,\n className\n )}\n {...props}\n >\n <Icon\n name={variantConfig.icon}\n className=\"h-5 w-5 shrink-0\"\n color=\"white\"\n />\n\n <div className=\"flex-1 gap-2\">\n {title && (\n <ToastPrimitive.Title asChild>\n <Text variant=\"body-default-bold\" color=\"inherit\">\n {title}\n </Text>\n </ToastPrimitive.Title>\n )}\n <ToastPrimitive.Description asChild>\n <Text variant=\"body-xs-medium\" color=\"inherit\">\n {message}\n </Text>\n </ToastPrimitive.Description>\n </div>\n\n <div className=\"flex gap-2\">\n {action && (\n <ToastPrimitive.Action asChild altText={action.label}>\n <div>\n <Button\n variant=\"outlined\"\n color=\"black\"\n className=\"border-white text-white hover:bg-white/10 ml-auto\"\n onClick={action.onClick}\n >\n {action.label}\n </Button>\n </div>\n </ToastPrimitive.Action>\n )}\n <ToastPrimitive.Close\n className=\"p-2 hover:bg-white/10\"\n aria-label=\"Close\"\n >\n <Icon name=\"close\" size={16} color=\"white\" />\n </ToastPrimitive.Close>\n </div>\n </ToastPrimitive.Root>\n );\n }\n);\n\nToast.displayName = \"Toast\";\n","import { useEffect, useLayoutEffect } from \"react\";\n\nexport const useIsomorphicLayoutEffect =\n typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n","import React, { useRef, useState } from \"react\";\nimport * as RadixCollapsible from \"@radix-ui/react-collapsible\";\nimport { Pressable } from \"./Pressable\";\nimport { Text } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { useIsomorphicLayoutEffect } from \"../hooks\";\n\nexport type CollapsibleProps = {\n children: React.ReactNode;\n maxHeight?: number;\n};\n\nexport const Collapsible = ({\n children,\n maxHeight = 100\n}: CollapsibleProps) => {\n const [open, setOpen] = React.useState(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const [contentHeight, setContentHeight] = useState<number>(maxHeight);\n\n // Measure content height on mount and resize\n useIsomorphicLayoutEffect(() => {\n if (!contentRef.current) return;\n\n const resizeObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n setContentHeight(entry.target.scrollHeight);\n }\n });\n\n resizeObserver.observe(contentRef.current);\n return () => resizeObserver.disconnect();\n }, []);\n\n const shouldShowTrigger = contentHeight > maxHeight;\n\n return (\n <RadixCollapsible.Root open={open} onOpenChange={setOpen}>\n <div className=\"relative\">\n <div\n className=\"overflow-hidden transition-[height] duration-300 ease-in-out\"\n style={{\n height: open ? `${contentHeight}px` : `${maxHeight}px`\n }}\n >\n <div ref={contentRef} className=\"w-full\">\n {children}\n </div>\n </div>\n\n {shouldShowTrigger && (\n <RadixCollapsible.Trigger asChild>\n <Pressable\n className={cn(\n \"absolute -bottom-8 left-0 right-0\",\n \"flex items-end justify-center\",\n \"h-16 pt-8 pb-2\",\n !open && \"bg-gradient-to-b from-transparent via-white to-white\",\n \"hover:opacity-100 transition-opacity\"\n )}\n >\n <Text variant=\"label-default\" color=\"secondary\">\n {open ? \"See less\" : \"See more\"}\n </Text>\n </Pressable>\n </RadixCollapsible.Trigger>\n )}\n </div>\n </RadixCollapsible.Root>\n );\n};\n\nCollapsible.displayName = \"Collapsible\";\n","import React from \"react\";\nimport { Text } from \"./Text\";\nimport { ContactItem, ContactItemProps } from \"./ContactItem\";\nimport { Collapsible } from \"./Collapsible\";\n\nexport type AboutCardProps = {\n contactItems: ContactItemProps[];\n description: string;\n isEditMode?: boolean;\n onEditClick?: () => void;\n};\n\nexport const AboutCard = ({\n contactItems,\n description,\n isEditMode = false,\n onEditClick,\n ...props\n}: AboutCardProps) => (\n <div\n className=\"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4\"\n {...props}\n >\n <div className=\"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center\">\n <Collapsible maxHeight={120}>\n <Text variant=\"body-default\">{description}</Text>\n </Collapsible>\n </div>\n {/* vertical divider for desktop */}\n <span className=\"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10\" />\n {/* horizontal divider for mobile */}\n <span className=\"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10\" />\n <div className=\"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8\">\n {contactItems.map((contactProps) => (\n <ContactItem key={contactProps.title} {...contactProps} />\n ))}\n </div>\n </div>\n);\n"]}
@@ -1,2 +1,10 @@
1
- import a,{useRef,useState,useLayoutEffect,useMemo}from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import*as y from'@radix-ui/react-collapsible';var A={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},R=e=>{let[t,r]=e.split("-");return t==="heading"?A[r]||"p":t==="label"?"label":"p"},$={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},P=e=>e?(Array.isArray(e)?e:[e]).map(r=>{if(r.includes(":")){let[o,s]=r.split(":");return `${o}:text-${s}`}return `text-${r}`}).join(" "):"text-body-default",p=a.forwardRef(({variant:e="body-default",color:t="primary",as:r,className:o,children:s,weight:n,...i},m)=>{let d=P(e),b=t==="inherit"?"text-inherit":`text-text-${t}`,f=a.useMemo(()=>{let C=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return R(C)},[e]);return a.createElement(r||f,{ref:m,className:`font-sans antialiased ${d} ${b} ${n?`!${$[n]}`:""} ${o??""}`,...i},s)});p.displayName="Text";var h=({icon:e,size:t=40,className:r})=>{let o=useMemo(()=>{let i=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)return null;i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("preserveAspectRatio","xMidYMid meet");let m=i.getAttribute("viewBox")||"0 0 40 40";return i.setAttribute("viewBox",m),i.outerHTML},[e]);return o?a.createElement("div",{style:{width:t,height:t,display:"flex",alignItems:"center",justifyContent:"center"},className:r,dangerouslySetInnerHTML:{__html:o}}):null};h.displayName="IconRenderer";function c(...e){return twMerge(clsx(e))}var u="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";var L=({children:e,color:t="inherit",variant:r="body-default-semibold",href:o,className:s,...n})=>a.createElement(p,{variant:r,color:t},a.createElement("a",{href:o,className:c("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline",u,s),...n},e));var E=({icon:e,children:t,href:r,...o})=>a.createElement("div",{className:"row gap-2 flex items-center"},a.createElement("div",{className:"bg-secondary-400 rounded-full p-2.5 items-center justify-center"},a.createElement(h,{icon:e,size:18,className:"text-text"})),a.createElement(L,{className:"hover:underline",href:r,...o,variant:["body-default-semibold","md:body-default-semibold"]},t));var x=a.forwardRef(({children:e,type:t="button",className:r,disabled:o,...s},n)=>a.createElement("button",{ref:n,type:t,disabled:o,className:c("appearance-none hover:opacity-80 transition-all active:scale-95",u,o&&"opacity-50 cursor-not-allowed",r),...s},e));x.displayName="Pressable";var H=({children:e,maxHeight:t=100})=>{let[r,o]=a.useState(!1),s=useRef(null),[n,i]=useState(t);useLayoutEffect(()=>{if(!s.current)return;let d=new ResizeObserver(b=>{for(let f of b)i(f.target.scrollHeight);});return d.observe(s.current),()=>d.disconnect()},[]);let m=n>t;return a.createElement(y.Root,{open:r,onOpenChange:o},a.createElement("div",{className:"relative"},a.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:r?`${n}px`:`${t}px`}},a.createElement("div",{ref:s,className:"w-full"},e)),m&&a.createElement(y.Trigger,{asChild:!0},a.createElement(x,{className:c("absolute -bottom-8 left-0 right-0","flex items-end justify-center","h-16 pt-8 pb-2",!r&&"bg-gradient-to-b from-transparent via-white to-white","hover:opacity-100 transition-opacity")},a.createElement(p,{variant:"label-default",color:"secondary"},r?"See less":"See more")))))};H.displayName="Collapsible";var he=({contactItems:e,description:t,isEditMode:r=!1,onEditClick:o,...s})=>a.createElement("div",{className:"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4",...s},a.createElement("div",{className:"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},a.createElement(H,{maxHeight:120},a.createElement(p,{variant:"body-default"},t))),a.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),a.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),a.createElement("div",{className:"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8"},e.map(n=>a.createElement(E,{key:n.title,...n}))));export{he as AboutCard};//# sourceMappingURL=AboutCard.js.map
1
+ import*as a from'react';import a__default,{useRef,useState,useMemo,useLayoutEffect,useEffect}from'react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import*as v from'@radix-ui/react-collapsible';import*as d from'@radix-ui/react-toast';import {IconMap}from'@deckai/icons';var V={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},j=e=>{let[o,t]=e.split("-");return o==="heading"?V[t]||"p":o==="label"?"label":"p"},z={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},G=e=>e?(Array.isArray(e)?e:[e]).map(t=>{if(t.includes(":")){let[s,r]=t.split(":");return `${s}:text-${r}`}return `text-${t}`}).join(" "):"text-body-default",p=a__default.forwardRef(({variant:e="body-default",color:o="primary",as:t,className:s,children:r,weight:n,...i},l)=>{let m=G(e),f=o==="inherit"?"text-inherit":`text-text-${o}`,y=a__default.useMemo(()=>{let O=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return j(O)},[e]);return a__default.createElement(t||y,{ref:l,className:`font-sans antialiased ${m} ${f} ${n?`!${z[n]}`:""} ${s??""}`,...i},r)});p.displayName="Text";var L=({icon:e,size:o=40,className:t})=>{let s=useMemo(()=>{let i=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!i)return null;i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("preserveAspectRatio","xMidYMid meet");let l=i.getAttribute("viewBox")||"0 0 40 40";return i.setAttribute("viewBox",l),i.outerHTML},[e]);return s?a__default.createElement("div",{style:{width:o,height:o,display:"flex",alignItems:"center",justifyContent:"center"},className:t,dangerouslySetInnerHTML:{__html:s}}):null};L.displayName="IconRenderer";function c(...e){return twMerge(clsx(e))}var b="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";var A=({children:e,color:o="inherit",variant:t="body-default-semibold",href:s,className:r,...n})=>a__default.createElement(p,{variant:t,color:o},a__default.createElement("a",{href:s,className:c("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline",b,r),...n},e));var k=({icon:e,children:o,href:t,...s})=>a__default.createElement("div",{className:"row gap-2 flex items-center"},a__default.createElement("div",{className:"bg-secondary-400 rounded-full p-2.5 items-center justify-center"},a__default.createElement(L,{icon:e,size:18,className:"text-text"})),a__default.createElement(A,{className:"hover:underline",href:t,...s,variant:["body-default-semibold","md:body-default-semibold"]},o));var H=a__default.forwardRef(({children:e,type:o="button",className:t,disabled:s,...r},n)=>a__default.createElement("button",{ref:n,type:o,disabled:s,className:c("appearance-none hover:opacity-80 transition-all active:scale-95",b,s&&"opacity-50 cursor-not-allowed",t),...r},e));H.displayName="Pressable";var $={primary:"#080808",secondary:"#666666",white:"#ffffff",primaryBlue:"#089CCB",disabled:"#888888"},W={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},Y=e=>{if(!e)return {width:"24px",height:"24px"};let o=Array.isArray(e)?e:[e],t={},s;return o.forEach(r=>{if(typeof r=="number")s=`${r}px`;else {let[n,i]=r.split(":"),l=parseInt(i,10);t[`@media (min-width: ${W[n]})`]=`${l}px`;}}),{width:s||"24px",height:s||"24px",...Object.entries(t).reduce((r,[n,i])=>({...r,[n]:{width:i,height:i}}),{})}},x=a__default.forwardRef(({name:e,size:o=24,color:t="primary",title:s,className:r,style:n={},...i},l)=>{let m=IconMap[e],f=Y(o);return a__default.createElement("div",{className:c("flex justify-center items-center",r),style:{...f,"--icon-stroke":$[t],...n}},a__default.createElement(m,{ref:l,"aria-hidden":!s,"aria-label":s,stroke:e.includes("filled")?void 0:$[t],...i}))});x.displayName="Icon";var q={black:"bg-text-text text-white",accent:"bg-primary-100 text-white",secondary:"bg-secondary-100 text-secondary"},J={black:"border border-text text-text",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},R=a.forwardRef(({className:e,variant:o="filled",color:t="black",isLoading:s=!1,children:r,disabled:n,end:i,...l},m)=>a.createElement("button",{ref:m,className:c(`
2
+ sm:px-7 px-4
3
+ py-2
4
+ inline-flex items-center justify-center
5
+ rounded-lg
6
+ transition-colors duration-200
7
+ disabled:opacity-50 disabled:pointer-events-none
8
+ hover:opacity-80 active:scale-95
9
+ truncate`,b,o==="filled"?q[t]:J[t],e),disabled:n||s,type:"button",...l},typeof r=="string"?a.createElement(p,{variant:["sm:body-default-bold","body-xxs-semibold"],color:"inherit"},r):r,i));R.displayName="Button";var U={default:{icon:"information",className:"bg-gray-900 text-white"},success:{icon:"check",className:"bg-green-600 text-white"},error:{icon:"danger",className:"bg-tertiary-10 text-white"},warning:{icon:"warning-2",className:"bg-tertiary-20 text-white"}},I=a.forwardRef(({title:e,message:o,action:t,variant:s="default",duration:r=5e3,className:n,onOpenChange:i,...l},m)=>{let f=U[s],y=a.useCallback(w=>{i?.(w);},[i]);return a.createElement(d.Root,{ref:m,onOpenChange:y,duration:r,className:c("group pointer-events-auto relative flex w-full gap-4 rounded-lg p-4","shadow-lg","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right-full",f.className,n),...l},a.createElement(x,{name:f.icon,className:"h-5 w-5 shrink-0",color:"white"}),a.createElement("div",{className:"flex-1 gap-2"},e&&a.createElement(d.Title,{asChild:!0},a.createElement(p,{variant:"body-default-bold",color:"inherit"},e)),a.createElement(d.Description,{asChild:!0},a.createElement(p,{variant:"body-xs-medium",color:"inherit"},o))),a.createElement("div",{className:"flex gap-2"},t&&a.createElement(d.Action,{asChild:!0,altText:t.label},a.createElement("div",null,a.createElement(R,{variant:"outlined",color:"black",className:"border-white text-white hover:bg-white/10 ml-auto",onClick:t.onClick},t.label))),a.createElement(d.Close,{className:"p-2 hover:bg-white/10","aria-label":"Close"},a.createElement(x,{name:"close",size:16,color:"white"}))))});I.displayName="Toast";var B=typeof window<"u"?useLayoutEffect:useEffect;var P=({children:e,maxHeight:o=100})=>{let[t,s]=a__default.useState(!1),r=useRef(null),[n,i]=useState(o);B(()=>{if(!r.current)return;let m=new ResizeObserver(f=>{for(let y of f)i(y.target.scrollHeight);});return m.observe(r.current),()=>m.disconnect()},[]);let l=n>o;return a__default.createElement(v.Root,{open:t,onOpenChange:s},a__default.createElement("div",{className:"relative"},a__default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:t?`${n}px`:`${o}px`}},a__default.createElement("div",{ref:r,className:"w-full"},e)),l&&a__default.createElement(v.Trigger,{asChild:!0},a__default.createElement(H,{className:c("absolute -bottom-8 left-0 right-0","flex items-end justify-center","h-16 pt-8 pb-2",!t&&"bg-gradient-to-b from-transparent via-white to-white","hover:opacity-100 transition-opacity")},a__default.createElement(p,{variant:"label-default",color:"secondary"},t?"See less":"See more")))))};P.displayName="Collapsible";var dt=({contactItems:e,description:o,isEditMode:t=!1,onEditClick:s,...r})=>a__default.createElement("div",{className:"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4",...r},a__default.createElement("div",{className:"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},a__default.createElement(P,{maxHeight:120},a__default.createElement(p,{variant:"body-default"},o))),a__default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),a__default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),a__default.createElement("div",{className:"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8"},e.map(n=>a__default.createElement(k,{key:n.title,...n}))));export{dt as AboutCard};//# sourceMappingURL=AboutCard.js.map
2
10
  //# sourceMappingURL=AboutCard.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/components/Text.tsx","../../src/components/IconRenderer.tsx","../../src/utils/index.ts","../../src/utils/tailwind.ts","../../src/components/Link.tsx","../../src/components/ContactItem.tsx","../../src/components/Collapsible.tsx","../../src/components/Pressable.tsx","../../src/components/AboutCard.tsx"],"names":["HEADING_ELEMENT_MAP","getElementFromVariant","variant","category","size","fontWeight","processVariants","variants","breakpoint","typographyClass","Text","React","color","as","className","children","weight","props","ref","typographyClasses","colorClasses","suggestedElement","baseVariant","IconRenderer","icon","sanitizedSvg","useMemo","svg","viewBox","cn","inputs","twMerge","clsx","focusRingStyles","Link","href","ContactItem","linkProps","Pressable","type","disabled","Collapsible","maxHeight","open","setOpen","contentRef","useRef","contentHeight","setContentHeight","useState","useLayoutEffect","resizeObserver","entries","entry","shouldShowTrigger","AboutCard","contactItems","description","isEditMode","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G1C,CACL,CAAA,GACEN,EAAA,aAAC,CAAA,KAAA,CAAA,CACC,UAAU,iGACT,CAAA,GAAGM,GAEJN,CAAA,CAAA,aAAA,CAAC,OAAI,SAAU,CAAA,kFAAA,CAAA,CACbA,EAAA,aAAC8B,CAAAA,CAAAA,CAAA,CAAY,SAAA,CAAW,KACtB9B,CAAA,CAAA,aAAA,CAACD,EAAA,CAAK,OAAA,CAAQ,gBAAgB+C,CAAY,CAC5C,CACF,CAEA9C,CAAAA,CAAAA,CAAA,cAAC,MAAK,CAAA,CAAA,SAAA,CAAU,0EAA0E,CAE1FA,CAAAA,CAAAA,CAAA,cAAC,MAAK,CAAA,CAAA,SAAA,CAAU,2DAA4D,CAAA,CAAA,CAC5EA,EAAA,aAAC,CAAA,KAAA,CAAA,CAAI,UAAU,2CACZ6C,CAAAA,CAAAA,CAAAA,CAAa,IAAKI,CACjBjD,EAAAA,CAAAA,CAAA,cAACyB,CAAA,CAAA,CAAY,IAAKwB,CAAa,CAAA,KAAA,CAAQ,GAAGA,CAAc,CAAA,CACzD,CACH,CACF","file":"AboutCard.js","sourcesContent":["import React from \"react\";\nimport { Typography } from \"../types/tailwind\";\n\ntype TextElement =\n | \"p\"\n | \"span\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"strong\"\n | \"em\"\n | \"blockquote\"\n | \"pre\"\n | \"code\"\n | \"small\"\n | \"label\"\n | \"a\";\n\n// HTML element mapping type\ntype HTMLElementByTag = {\n p: HTMLParagraphElement;\n span: HTMLSpanElement;\n h1: HTMLHeadingElement;\n h2: HTMLHeadingElement;\n h3: HTMLHeadingElement;\n h4: HTMLHeadingElement;\n h5: HTMLHeadingElement;\n h6: HTMLHeadingElement;\n strong: HTMLElement;\n em: HTMLElement;\n blockquote: HTMLQuoteElement;\n pre: HTMLPreElement;\n code: HTMLElement;\n small: HTMLElement;\n label: HTMLLabelElement;\n a: HTMLAnchorElement;\n};\n\n// HTML props mapping type\ntype HTMLPropsMap = {\n p: React.HTMLAttributes<HTMLParagraphElement>;\n span: React.HTMLAttributes<HTMLSpanElement>;\n h1: React.HTMLAttributes<HTMLHeadingElement>;\n h2: React.HTMLAttributes<HTMLHeadingElement>;\n h3: React.HTMLAttributes<HTMLHeadingElement>;\n h4: React.HTMLAttributes<HTMLHeadingElement>;\n h5: React.HTMLAttributes<HTMLHeadingElement>;\n h6: React.HTMLAttributes<HTMLHeadingElement>;\n strong: React.HTMLAttributes<HTMLElement>;\n em: React.HTMLAttributes<HTMLElement>;\n blockquote: React.HTMLAttributes<HTMLQuoteElement>;\n pre: React.HTMLAttributes<HTMLPreElement>;\n code: React.HTMLAttributes<HTMLElement>;\n small: React.HTMLAttributes<HTMLElement>;\n label: React.LabelHTMLAttributes<HTMLLabelElement>;\n a: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, \"color\">;\n};\n\ntype TextColor =\n | \"primary\"\n | \"secondary\"\n | \"white\"\n | \"primary-blue\"\n | \"disabled\"\n | \"danger\"\n | \"inherit\";\n\nconst HEADING_ELEMENT_MAP: Record<string, TextElement> = {\n xl: \"h1\",\n lg: \"h1\",\n md: \"h2\",\n sm: \"h3\",\n xs: \"h4\"\n};\n\nconst getElementFromVariant = (variant: TypographyKey): TextElement => {\n const [category, size] = variant.split(\"-\");\n\n if (category === \"heading\") {\n return HEADING_ELEMENT_MAP[size] || \"p\";\n }\n\n if (category === \"label\") {\n return \"label\";\n }\n\n return \"p\";\n};\n\ntype Weight = \"light\" | \"regular\" | \"semibold\" | \"bold\";\n\nconst fontWeight: Record<Weight, string> = {\n light: \"font-light\",\n regular: \"font-regular\",\n semibold: \"font-semibold\",\n bold: \"font-bold\"\n};\n\n// Add breakpoint types\ntype Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype ResponsiveVariant = TypographyKey | `${Breakpoint}:${TypographyKey}`;\n\ntype TypographyCategory = keyof Typography;\ntype TypographyValue<T extends TypographyCategory> = Extract<\n keyof Typography[T],\n string | number | bigint | boolean | null | undefined\n>;\ntype TypographyKey = {\n [T in TypographyCategory]: `${T}-${TypographyValue<T>}`;\n}[TypographyCategory];\n\n// Update TextProps to use ResponsiveVariant\nexport type TextProps<T extends TextElement = \"p\"> = {\n variant?: ResponsiveVariant | ResponsiveVariant[];\n color?: TextColor;\n as?: T;\n className?: string;\n children: React.ReactNode;\n weight?: Weight;\n} & HTMLPropsMap[T];\n\n// Add helper function to process variants\nconst processVariants = (\n variants: ResponsiveVariant | ResponsiveVariant[] | undefined\n): string => {\n if (!variants) return \"text-body-default\";\n\n const variantArray = Array.isArray(variants) ? variants : [variants];\n\n return variantArray\n .map((variant) => {\n if (variant.includes(\":\")) {\n const [breakpoint, typographyClass] = variant.split(\":\");\n return `${breakpoint}:text-${typographyClass}`;\n }\n return `text-${variant}`;\n })\n .join(\" \");\n};\n\nexport const Text = React.forwardRef(\n <T extends TextElement = \"p\">(\n {\n variant = \"body-default\",\n color = \"primary\",\n as,\n className,\n children,\n weight,\n ...props\n }: TextProps<T>,\n ref: React.ForwardedRef<HTMLElementByTag[T]>\n ) => {\n // Process typography classes with breakpoints\n const typographyClasses = processVariants(variant);\n\n // Get color styles\n const colorClasses =\n color === \"inherit\" ? \"text-inherit\" : `text-text-${color}`;\n\n const suggestedElement = React.useMemo(() => {\n const baseVariant =\n typeof variant === \"string\"\n ? variant.split(\":\").pop()!\n : Array.isArray(variant)\n ? variant[0].split(\":\").pop()!\n : \"body-default\";\n return getElementFromVariant(baseVariant as TypographyKey);\n }, [variant]);\n\n const Component = (as || suggestedElement) as T;\n\n return (\n // @ts-expect-error TODO: figure this out\n <Component\n ref={ref}\n className={`font-sans antialiased ${typographyClasses} ${colorClasses} ${\n weight ? `!${fontWeight[weight]}` : \"\"\n } ${className ?? \"\"}`}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nText.displayName = \"Text\";\n","import React, { useMemo } from \"react\";\n\nexport type IconRendererProps = {\n icon: string;\n size?: number;\n className?: string;\n};\n\nexport const IconRenderer = ({\n icon,\n size = 40,\n className\n}: IconRendererProps) => {\n const sanitizedSvg = useMemo(() => {\n const parser = new DOMParser();\n const doc = parser.parseFromString(icon, \"image/svg+xml\");\n const svg = doc.querySelector(\"svg\");\n\n if (!svg) return null;\n\n // Set size attributes but preserve aspect ratio\n svg.setAttribute(\"width\", \"100%\");\n svg.setAttribute(\"height\", \"100%\");\n svg.setAttribute(\"preserveAspectRatio\", \"xMidYMid meet\");\n\n // Get the original viewBox or use the default\n const viewBox = svg.getAttribute(\"viewBox\") || \"0 0 40 40\";\n svg.setAttribute(\"viewBox\", viewBox);\n\n return svg.outerHTML;\n }, [icon]);\n\n if (!sanitizedSvg) return null;\n\n return (\n <div\n style={{\n width: size,\n height: size,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }}\n className={className}\n dangerouslySetInnerHTML={{ __html: sanitizedSvg }}\n />\n );\n};\n\nIconRenderer.displayName = \"IconRenderer\";\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const noopFn = () => {};\n","import { Colors, Typography } from \"../types/tailwind\";\n\n// Generate safelist patterns for all color utilities so you can use any theme color variable in your code\nexport const generateSafelist = (colors: Colors, typography: Typography) => {\n const colorNames = Object.keys(colors) as (keyof Colors)[];\n const utilities = [\"bg\", \"text\", \"border\", \"ring\", \"divide\", \"outline\"];\n const variants = [\"hover:\", \"focus:\", \"active:\", \"disabled:\"];\n\n const safelist: string[] = [];\n\n colorNames.forEach((colorName) => {\n if (typeof colors[colorName] === \"object\") {\n // Handle nested color objects (with number keys)\n Object.keys(colors[colorName]).forEach((shade) => {\n utilities.forEach((utility) => {\n // Base utility\n safelist.push(`${utility}-${colorName}-${shade}`);\n\n // Variant utilities\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}-${shade}`);\n });\n });\n });\n } else {\n // Handle direct color values\n utilities.forEach((utility) => {\n safelist.push(`${utility}-${colorName}`);\n\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}`);\n });\n });\n }\n });\n\n // Generate typography classes\n Object.entries(typography).forEach(([family, sizes]) => {\n Object.keys(sizes).forEach((size) => {\n // Base typography classes\n safelist.push(`text-${family}-${size}`);\n\n // Add variants\n variants.forEach((variant) => {\n safelist.push(`${variant}text-${family}-${size}`);\n });\n });\n });\n\n const breakpoints = [\"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const typographyClasses = Object.entries(typography).flatMap(\n ([category, sizes]) =>\n Object.keys(sizes).map((size) => `text-${category}-${size}`)\n );\n\n // Generate responsive variants\n const responsiveTypographyClasses = typographyClasses.flatMap((className) =>\n breakpoints.map((breakpoint) => `${breakpoint}:${className}`)\n );\n\n return [\n ...typographyClasses,\n ...responsiveTypographyClasses\n // ... rest of your safelist\n ];\n};\n\nexport const focusRingStyles =\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\";\n\nexport const focusRingStylesCoerced = \"ring-2 ring-ring ring-offset-2\";\n","import React from \"react\";\nimport { Text, TextProps } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\n\nexport type LinkProps = {\n href: string;\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n} & Pick<TextProps, \"variant\" | \"color\"> &\n React.AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport const Link = ({\n children,\n color = \"inherit\",\n variant = \"body-default-semibold\",\n href,\n className,\n ...props\n}: LinkProps) => (\n <Text variant={variant} color={color}>\n <a\n href={href}\n className={cn(\n \"hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline\",\n focusRingStyles,\n className\n )}\n {...props}\n >\n {children}\n </a>\n </Text>\n);\n","import React, { HTMLAttributes } from \"react\";\nimport { IconRenderer } from \"./IconRenderer\";\nimport { Link } from \"./Link\";\n\nexport type ContactItemProps = {\n // TODO: figure out how to get filled icons to work correctly\n icon: string;\n children: React.ReactNode;\n href: string;\n} & Omit<HTMLAttributes<HTMLAnchorElement>, \"color\">;\n\nexport const ContactItem = ({\n icon,\n children,\n href,\n ...linkProps\n}: ContactItemProps) => (\n <div className=\"row gap-2 flex items-center\">\n <div className=\"bg-secondary-400 rounded-full p-2.5 items-center justify-center\">\n <IconRenderer icon={icon} size={18} className=\"text-text\" />\n </div>\n <Link\n className=\"hover:underline\"\n href={href}\n {...linkProps}\n variant={[\"body-default-semibold\", \"md:body-default-semibold\"]}\n >\n {children}\n </Link>\n </div>\n);\n","import React, { useRef, useLayoutEffect, useState } from \"react\";\nimport * as RadixCollapsible from \"@radix-ui/react-collapsible\";\nimport { Pressable } from \"./Pressable\";\nimport { Text } from \"./Text\";\nimport { cn } from \"../utils\";\n\nexport type CollapsibleProps = {\n children: React.ReactNode;\n maxHeight?: number;\n};\n\nexport const Collapsible = ({\n children,\n maxHeight = 100\n}: CollapsibleProps) => {\n const [open, setOpen] = React.useState(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const [contentHeight, setContentHeight] = useState<number>(maxHeight);\n\n // Measure content height on mount and resize\n useLayoutEffect(() => {\n if (!contentRef.current) return;\n\n const resizeObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n setContentHeight(entry.target.scrollHeight);\n }\n });\n\n resizeObserver.observe(contentRef.current);\n return () => resizeObserver.disconnect();\n }, []);\n\n const shouldShowTrigger = contentHeight > maxHeight;\n\n return (\n <RadixCollapsible.Root open={open} onOpenChange={setOpen}>\n <div className=\"relative\">\n <div\n className=\"overflow-hidden transition-[height] duration-300 ease-in-out\"\n style={{\n height: open ? `${contentHeight}px` : `${maxHeight}px`\n }}\n >\n <div ref={contentRef} className=\"w-full\">\n {children}\n </div>\n </div>\n\n {shouldShowTrigger && (\n <RadixCollapsible.Trigger asChild>\n <Pressable\n className={cn(\n \"absolute -bottom-8 left-0 right-0\",\n \"flex items-end justify-center\",\n \"h-16 pt-8 pb-2\",\n !open && \"bg-gradient-to-b from-transparent via-white to-white\",\n \"hover:opacity-100 transition-opacity\"\n )}\n >\n <Text variant=\"label-default\" color=\"secondary\">\n {open ? \"See less\" : \"See more\"}\n </Text>\n </Pressable>\n </RadixCollapsible.Trigger>\n )}\n </div>\n </RadixCollapsible.Root>\n );\n};\n\nCollapsible.displayName = \"Collapsible\";\n","import React, { ButtonHTMLAttributes } from \"react\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { cn } from \"../utils\";\n\nexport type PressableProps = ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const Pressable = React.forwardRef<HTMLButtonElement, PressableProps>(\n ({ children, type = \"button\", className, disabled, ...props }, ref) => (\n <button\n ref={ref}\n type={type}\n disabled={disabled}\n className={cn(\n \"appearance-none hover:opacity-80 transition-all active:scale-95\",\n focusRingStyles,\n disabled && \"opacity-50 cursor-not-allowed\",\n className\n )}\n {...props}\n >\n {children}\n </button>\n )\n);\n\nPressable.displayName = \"Pressable\";\n","import React from \"react\";\nimport { Text } from \"./Text\";\nimport { ContactItem, ContactItemProps } from \"./ContactItem\";\nimport { Collapsible } from \"./Collapsible\";\n\nexport type AboutCardProps = {\n contactItems: ContactItemProps[];\n description: string;\n isEditMode?: boolean;\n onEditClick?: () => void;\n};\n\nexport const AboutCard = ({\n contactItems,\n description,\n isEditMode = false,\n onEditClick,\n ...props\n}: AboutCardProps) => (\n <div\n className=\"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4\"\n {...props}\n >\n <div className=\"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center\">\n <Collapsible maxHeight={120}>\n <Text variant=\"body-default\">{description}</Text>\n </Collapsible>\n </div>\n {/* vertical divider for desktop */}\n <span className=\"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10\" />\n {/* horizontal divider for mobile */}\n <span className=\"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10\" />\n <div className=\"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8\">\n {contactItems.map((contactProps) => (\n <ContactItem key={contactProps.title} {...contactProps} />\n ))}\n </div>\n </div>\n);\n"]}
1
+ {"version":3,"sources":["../../src/components/Text.tsx","../../src/components/IconRenderer.tsx","../../src/components/Link.tsx","../../src/utils/index.ts","../../src/utils/tailwind.ts","../../src/components/ContactItem.tsx","../../src/components/Pressable.tsx","../../src/hooks/useToast.tsx","../../src/components/Icon.tsx","../../src/components/Button.tsx","../../src/components/Toast.tsx","../../src/hooks/useIsomorphicLayoutEffect.tsx","../../src/components/Collapsible.tsx","../../src/components/AboutCard.tsx"],"names":["HEADING_ELEMENT_MAP","getElementFromVariant","variant","category","size","fontWeight","processVariants","variants","breakpoint","typographyClass","Text","React","color","as","className","children","weight","props","ref","typographyClasses","colorClasses","suggestedElement","baseVariant","IconRenderer","icon","sanitizedSvg","useMemo","svg","viewBox","cn","inputs","twMerge","clsx","focusRingStyles","Link","href","ContactItem","linkProps","Pressable","type","disabled","COLOR_MAP","BREAKPOINT_MAP","processSizes","sizes","sizeArray","mediaQueries","baseSize","valueStr","value","acc","query","Icon","name","title","style","IconComponent","IconMap","sizeStyles","filled","outlined","Button","h","isLoading","end","Toast","message","action","duration","onOpenChange","variantConfig","handleOpenChange","open","useIsomorphicLayoutEffect","useLayoutEffect","useEffect","Collapsible","maxHeight","setOpen","contentRef","useRef","contentHeight","setContentHeight","useState","resizeObserver","entries","entry","shouldShowTrigger","AboutCard","contactItems","description","isEditMode","onEditClick","contactProps"],"mappings":"gSAsEA,IAAMA,CAAAA,CAAmD,CACvD,EAAI,CAAA,IAAA,CACJ,GAAI,IACJ,CAAA,EAAA,CAAI,KACJ,EAAI,CAAA,IAAA,CACJ,GAAI,IACN,CAAA,CAEMC,EAAyBC,CAAwC,EAAA,CACrE,GAAM,CAACC,CAAAA,CAAUC,CAAI,CAAIF,CAAAA,CAAAA,CAAQ,MAAM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AA0E,CAE1FA,CAAAA,UAAAA,CAAA,aAAC,CAAA,MAAA,CAAA,CAAK,SAAU,CAAA,2DAAA,CAA4D,CAC5EA,CAAAA,UAAAA,CAAA,aAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,2CAAA,CAAA,CACZ8E,CAAa,CAAA,GAAA,CAAKI,CACjBlF,EAAAA,UAAAA,CAAA,aAACyB,CAAAA,CAAAA,CAAA,CAAY,GAAA,CAAKyD,CAAa,CAAA,KAAA,CAAQ,GAAGA,CAAAA,CAAc,CACzD,CACH,CACF","file":"AboutCard.js","sourcesContent":["import React from \"react\";\nimport { Typography } from \"../types/tailwind\";\n\ntype TextElement =\n | \"p\"\n | \"span\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"strong\"\n | \"em\"\n | \"blockquote\"\n | \"pre\"\n | \"code\"\n | \"small\"\n | \"label\"\n | \"a\";\n\n// HTML element mapping type\ntype HTMLElementByTag = {\n p: HTMLParagraphElement;\n span: HTMLSpanElement;\n h1: HTMLHeadingElement;\n h2: HTMLHeadingElement;\n h3: HTMLHeadingElement;\n h4: HTMLHeadingElement;\n h5: HTMLHeadingElement;\n h6: HTMLHeadingElement;\n strong: HTMLElement;\n em: HTMLElement;\n blockquote: HTMLQuoteElement;\n pre: HTMLPreElement;\n code: HTMLElement;\n small: HTMLElement;\n label: HTMLLabelElement;\n a: HTMLAnchorElement;\n};\n\n// HTML props mapping type\ntype HTMLPropsMap = {\n p: React.HTMLAttributes<HTMLParagraphElement>;\n span: React.HTMLAttributes<HTMLSpanElement>;\n h1: React.HTMLAttributes<HTMLHeadingElement>;\n h2: React.HTMLAttributes<HTMLHeadingElement>;\n h3: React.HTMLAttributes<HTMLHeadingElement>;\n h4: React.HTMLAttributes<HTMLHeadingElement>;\n h5: React.HTMLAttributes<HTMLHeadingElement>;\n h6: React.HTMLAttributes<HTMLHeadingElement>;\n strong: React.HTMLAttributes<HTMLElement>;\n em: React.HTMLAttributes<HTMLElement>;\n blockquote: React.HTMLAttributes<HTMLQuoteElement>;\n pre: React.HTMLAttributes<HTMLPreElement>;\n code: React.HTMLAttributes<HTMLElement>;\n small: React.HTMLAttributes<HTMLElement>;\n label: React.LabelHTMLAttributes<HTMLLabelElement>;\n a: Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, \"color\">;\n};\n\ntype TextColor =\n | \"primary\"\n | \"secondary\"\n | \"white\"\n | \"primary-blue\"\n | \"disabled\"\n | \"danger\"\n | \"inherit\";\n\nconst HEADING_ELEMENT_MAP: Record<string, TextElement> = {\n xl: \"h1\",\n lg: \"h1\",\n md: \"h2\",\n sm: \"h3\",\n xs: \"h4\"\n};\n\nconst getElementFromVariant = (variant: TypographyKey): TextElement => {\n const [category, size] = variant.split(\"-\");\n\n if (category === \"heading\") {\n return HEADING_ELEMENT_MAP[size] || \"p\";\n }\n\n if (category === \"label\") {\n return \"label\";\n }\n\n return \"p\";\n};\n\ntype Weight = \"light\" | \"regular\" | \"semibold\" | \"bold\";\n\nconst fontWeight: Record<Weight, string> = {\n light: \"font-light\",\n regular: \"font-regular\",\n semibold: \"font-semibold\",\n bold: \"font-bold\"\n};\n\n// Add breakpoint types\ntype Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype ResponsiveVariant = TypographyKey | `${Breakpoint}:${TypographyKey}`;\n\ntype TypographyCategory = keyof Typography;\ntype TypographyValue<T extends TypographyCategory> = Extract<\n keyof Typography[T],\n string | number | bigint | boolean | null | undefined\n>;\ntype TypographyKey = {\n [T in TypographyCategory]: `${T}-${TypographyValue<T>}`;\n}[TypographyCategory];\n\n// Update TextProps to use ResponsiveVariant\nexport type TextProps<T extends TextElement = \"p\"> = {\n variant?: ResponsiveVariant | ResponsiveVariant[];\n color?: TextColor;\n as?: T;\n className?: string;\n children: React.ReactNode;\n weight?: Weight;\n} & HTMLPropsMap[T];\n\n// Add helper function to process variants\nconst processVariants = (\n variants: ResponsiveVariant | ResponsiveVariant[] | undefined\n): string => {\n if (!variants) return \"text-body-default\";\n\n const variantArray = Array.isArray(variants) ? variants : [variants];\n\n return variantArray\n .map((variant) => {\n if (variant.includes(\":\")) {\n const [breakpoint, typographyClass] = variant.split(\":\");\n return `${breakpoint}:text-${typographyClass}`;\n }\n return `text-${variant}`;\n })\n .join(\" \");\n};\n\nexport const Text = React.forwardRef(\n <T extends TextElement = \"p\">(\n {\n variant = \"body-default\",\n color = \"primary\",\n as,\n className,\n children,\n weight,\n ...props\n }: TextProps<T>,\n ref: React.ForwardedRef<HTMLElementByTag[T]>\n ) => {\n // Process typography classes with breakpoints\n const typographyClasses = processVariants(variant);\n\n // Get color styles\n const colorClasses =\n color === \"inherit\" ? \"text-inherit\" : `text-text-${color}`;\n\n const suggestedElement = React.useMemo(() => {\n const baseVariant =\n typeof variant === \"string\"\n ? variant.split(\":\").pop()!\n : Array.isArray(variant)\n ? variant[0].split(\":\").pop()!\n : \"body-default\";\n return getElementFromVariant(baseVariant as TypographyKey);\n }, [variant]);\n\n const Component = (as || suggestedElement) as T;\n\n return (\n // @ts-expect-error TODO: figure this out\n <Component\n ref={ref}\n className={`font-sans antialiased ${typographyClasses} ${colorClasses} ${\n weight ? `!${fontWeight[weight]}` : \"\"\n } ${className ?? \"\"}`}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nText.displayName = \"Text\";\n","import React, { useMemo } from \"react\";\n\nexport type IconRendererProps = {\n icon: string;\n size?: number;\n className?: string;\n};\n\nexport const IconRenderer = ({\n icon,\n size = 40,\n className\n}: IconRendererProps) => {\n const sanitizedSvg = useMemo(() => {\n const parser = new DOMParser();\n const doc = parser.parseFromString(icon, \"image/svg+xml\");\n const svg = doc.querySelector(\"svg\");\n\n if (!svg) return null;\n\n // Set size attributes but preserve aspect ratio\n svg.setAttribute(\"width\", \"100%\");\n svg.setAttribute(\"height\", \"100%\");\n svg.setAttribute(\"preserveAspectRatio\", \"xMidYMid meet\");\n\n // Get the original viewBox or use the default\n const viewBox = svg.getAttribute(\"viewBox\") || \"0 0 40 40\";\n svg.setAttribute(\"viewBox\", viewBox);\n\n return svg.outerHTML;\n }, [icon]);\n\n if (!sanitizedSvg) return null;\n\n return (\n <div\n style={{\n width: size,\n height: size,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }}\n className={className}\n dangerouslySetInnerHTML={{ __html: sanitizedSvg }}\n />\n );\n};\n\nIconRenderer.displayName = \"IconRenderer\";\n","import React from \"react\";\nimport { Text, TextProps } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\n\nexport type LinkProps = {\n href: string;\n children: React.ReactNode;\n className?: string;\n style?: React.CSSProperties;\n} & Pick<TextProps, \"variant\" | \"color\"> &\n React.AnchorHTMLAttributes<HTMLAnchorElement>;\n\nexport const Link = ({\n children,\n color = \"inherit\",\n variant = \"body-default-semibold\",\n href,\n className,\n ...props\n}: LinkProps) => (\n <Text variant={variant} color={color}>\n <a\n href={href}\n className={cn(\n \"hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline\",\n focusRingStyles,\n className\n )}\n {...props}\n >\n {children}\n </a>\n </Text>\n);\n","import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n\nexport const noopFn = () => {};\n","import { Colors, Typography } from \"../types/tailwind\";\n\n// Generate safelist patterns for all color utilities so you can use any theme color variable in your code\nexport const generateSafelist = (colors: Colors, typography: Typography) => {\n const colorNames = Object.keys(colors) as (keyof Colors)[];\n const utilities = [\"bg\", \"text\", \"border\", \"ring\", \"divide\", \"outline\"];\n const variants = [\"hover:\", \"focus:\", \"active:\", \"disabled:\"];\n\n const safelist: string[] = [];\n\n colorNames.forEach((colorName) => {\n if (typeof colors[colorName] === \"object\") {\n // Handle nested color objects (with number keys)\n Object.keys(colors[colorName]).forEach((shade) => {\n utilities.forEach((utility) => {\n // Base utility\n safelist.push(`${utility}-${colorName}-${shade}`);\n\n // Variant utilities\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}-${shade}`);\n });\n });\n });\n } else {\n // Handle direct color values\n utilities.forEach((utility) => {\n safelist.push(`${utility}-${colorName}`);\n\n variants.forEach((variant) => {\n safelist.push(`${variant}${utility}-${colorName}`);\n });\n });\n }\n });\n\n // Generate typography classes\n Object.entries(typography).forEach(([family, sizes]) => {\n Object.keys(sizes).forEach((size) => {\n // Base typography classes\n safelist.push(`text-${family}-${size}`);\n\n // Add variants\n variants.forEach((variant) => {\n safelist.push(`${variant}text-${family}-${size}`);\n });\n });\n });\n\n const breakpoints = [\"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const typographyClasses = Object.entries(typography).flatMap(\n ([category, sizes]) =>\n Object.keys(sizes).map((size) => `text-${category}-${size}`)\n );\n\n // Generate responsive variants\n const responsiveTypographyClasses = typographyClasses.flatMap((className) =>\n breakpoints.map((breakpoint) => `${breakpoint}:${className}`)\n );\n\n return [\n ...typographyClasses,\n ...responsiveTypographyClasses\n // ... rest of your safelist\n ];\n};\n\nexport const focusRingStyles =\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2\";\n\nexport const focusRingStylesCoerced = \"ring-2 ring-ring ring-offset-2\";\n","import React, { HTMLAttributes } from \"react\";\nimport { IconRenderer } from \"./IconRenderer\";\nimport { Link } from \"./Link\";\n\nexport type ContactItemProps = {\n // TODO: figure out how to get filled icons to work correctly\n icon: string;\n children: React.ReactNode;\n href: string;\n} & Omit<HTMLAttributes<HTMLAnchorElement>, \"color\">;\n\nexport const ContactItem = ({\n icon,\n children,\n href,\n ...linkProps\n}: ContactItemProps) => (\n <div className=\"row gap-2 flex items-center\">\n <div className=\"bg-secondary-400 rounded-full p-2.5 items-center justify-center\">\n <IconRenderer icon={icon} size={18} className=\"text-text\" />\n </div>\n <Link\n className=\"hover:underline\"\n href={href}\n {...linkProps}\n variant={[\"body-default-semibold\", \"md:body-default-semibold\"]}\n >\n {children}\n </Link>\n </div>\n);\n","import React, { ButtonHTMLAttributes } from \"react\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { cn } from \"../utils\";\n\nexport type PressableProps = ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const Pressable = React.forwardRef<HTMLButtonElement, PressableProps>(\n ({ children, type = \"button\", className, disabled, ...props }, ref) => (\n <button\n ref={ref}\n type={type}\n disabled={disabled}\n className={cn(\n \"appearance-none hover:opacity-80 transition-all active:scale-95\",\n focusRingStyles,\n disabled && \"opacity-50 cursor-not-allowed\",\n className\n )}\n {...props}\n >\n {children}\n </button>\n )\n);\n\nPressable.displayName = \"Pressable\";\n","import * as React from \"react\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport { Toast, ToastProps } from \"../components/Toast\";\n\ntype ToastOptions = Omit<ToastProps, keyof ToastPrimitive.ToastProps>;\n\nexport const useToast = () => {\n const [toasts, setToasts] = React.useState<\n Array<ToastOptions & { id: string; open: boolean }>\n >([]);\n\n const show = React.useCallback((options: ToastOptions) => {\n const id = Math.random().toString(36).slice(2);\n setToasts((prev) => [...prev, { ...options, id, open: true }]);\n return id;\n }, []);\n\n const dismiss = React.useCallback((id: string) => {\n setToasts((prev) =>\n prev.map((toast) => (toast.id === id ? { ...toast, open: false } : toast))\n );\n }, []);\n\n const onOpenChange = React.useCallback(\n (id: string, open: boolean) => {\n if (!open) {\n dismiss(id);\n // Remove the toast after animation completes\n setTimeout(() => {\n setToasts((prev) => prev.filter((toast) => toast.id !== id));\n }, 300);\n }\n },\n [dismiss]\n );\n\n const toastElements = toasts.map((toast) => (\n <Toast\n key={toast.id}\n {...toast}\n onOpenChange={(open) => onOpenChange(toast.id, open)}\n />\n ));\n\n return { show, dismiss, toasts: toastElements };\n};\n","import React, { SVGProps } from \"react\";\nimport { IconName, IconMap } from \"@deckai/icons\";\nimport { IconColors } from \"../types/tailwind\";\nimport { cn } from \"../utils\";\n\ntype Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\ntype ResponsiveSize = number | `${Breakpoint}:${number}`;\n\nexport type IconProps = {\n name: IconName;\n /** @default 24 */\n size?: ResponsiveSize | ResponsiveSize[];\n /** @default primary */\n color?: IconColors;\n title?: string;\n className?: string;\n style?: React.CSSProperties;\n} & Omit<SVGProps<SVGSVGElement>, \"aria-hidden\" | \"aria-label\">;\n\nconst COLOR_MAP: Record<IconColors, string> = {\n primary: \"#080808\",\n secondary: \"#666666\",\n white: \"#ffffff\",\n primaryBlue: \"#089CCB\",\n disabled: \"#888888\"\n};\n\nconst BREAKPOINT_MAP: Record<Breakpoint, string> = {\n sm: \"640px\",\n md: \"768px\",\n lg: \"1024px\",\n xl: \"1280px\",\n \"2xl\": \"1536px\"\n};\n\nconst processSizes = (\n sizes: ResponsiveSize | ResponsiveSize[] | undefined\n): React.CSSProperties => {\n if (!sizes) return { width: \"24px\", height: \"24px\" };\n\n const sizeArray = Array.isArray(sizes) ? sizes : [sizes];\n const mediaQueries: Record<string, string> = {};\n let baseSize: string | undefined;\n\n // Process each size\n sizeArray.forEach((size) => {\n if (typeof size === \"number\") {\n baseSize = `${size}px`;\n } else {\n const [breakpoint, valueStr] = size.split(\":\") as [Breakpoint, string];\n const value = parseInt(valueStr, 10);\n mediaQueries[`@media (min-width: ${BREAKPOINT_MAP[breakpoint]})`] =\n `${value}px`;\n }\n });\n\n // Create the style object with the correct structure\n return {\n width: baseSize || \"24px\",\n height: baseSize || \"24px\",\n ...Object.entries(mediaQueries).reduce(\n (acc, [query, size]) => ({\n ...acc,\n [query]: {\n width: size,\n height: size\n }\n }),\n {}\n )\n };\n};\n\nexport const Icon = React.forwardRef<SVGSVGElement, IconProps>(\n (\n {\n name,\n size = 24,\n color = \"primary\",\n title,\n className,\n style = {},\n ...props\n },\n ref\n ) => {\n const IconComponent = IconMap[name];\n const sizeStyles = processSizes(size);\n\n return (\n <div\n className={cn(\"flex justify-center items-center\", className)}\n style={{\n ...sizeStyles,\n [\"--icon-stroke\" as string]: COLOR_MAP[color],\n ...style\n }}\n >\n <IconComponent\n ref={ref}\n aria-hidden={!title}\n aria-label={title}\n stroke={name.includes(\"filled\") ? undefined : COLOR_MAP[color]}\n {...props}\n />\n </div>\n );\n }\n);\n\nIcon.displayName = \"Icon\";\n","import * as React from \"react\";\nimport { Text } from \"./Text\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { cn } from \"../utils\";\n\nexport type ButtonProps = {\n /** @default filled */\n variant?: \"filled\" | \"outlined\";\n /** @default primary */\n color?: \"black\" | \"accent\" | \"secondary\";\n isLoading?: boolean;\n children: React.ReactNode;\n className?: string;\n disabled?: boolean;\n start?: React.ReactNode;\n end?: React.ReactNode;\n} & React.ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const filled = {\n black: \"bg-text-text text-white\",\n // fade it slightly\n accent: \"bg-primary-100 text-white\",\n secondary: \"bg-secondary-100 text-secondary\"\n};\n\nexport const outlined = {\n black: \"border border-text text-text\",\n accent: \"border border-primary-100 text-primary-100\",\n secondary: \"border border-text-secondary text-secondary\"\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n (\n {\n className,\n variant = \"filled\",\n color = \"black\",\n isLoading = false,\n children,\n disabled,\n end,\n ...props\n },\n ref\n ) => (\n <button\n ref={ref}\n className={cn(\n `\n sm:px-7 px-4\n py-2\n inline-flex items-center justify-center\n rounded-lg \n transition-colors duration-200\n disabled:opacity-50 disabled:pointer-events-none\n hover:opacity-80 active:scale-95 \n truncate`,\n focusRingStyles,\n variant === \"filled\" ? filled[color] : outlined[color],\n className\n )}\n disabled={disabled || isLoading}\n type=\"button\"\n {...props}\n >\n {typeof children === \"string\" ? (\n <Text\n variant={[\"sm:body-default-bold\", \"body-xxs-semibold\"]}\n color=\"inherit\"\n >\n {children}\n </Text>\n ) : (\n children\n )}\n {end}\n </button>\n )\n);\n\nButton.displayName = \"Button\";\n","import * as React from \"react\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport { cn } from \"../utils\";\nimport { Icon } from \"./Icon\";\nimport { Text } from \"./Text\";\nimport { Button } from \"./Button\";\nimport { IconName } from \"@deckai/icons\";\n\nexport type ToastProps = ToastPrimitive.ToastProps & {\n /** Optional title for the toast */\n title?: string;\n /** Main message content */\n message: string;\n /** Optional action button configuration */\n action?: {\n label: string;\n onClick: () => void;\n };\n /** Optional variant to change the visual style */\n variant?: \"default\" | \"success\" | \"error\" | \"warning\";\n\n /** Optional className for custom styling */\n className?: string;\n};\n\nconst variants: Record<\n NonNullable<ToastProps[\"variant\"]>,\n {\n icon: IconName;\n className: string;\n }\n> = {\n default: {\n icon: \"information\",\n className: \"bg-gray-900 text-white\"\n },\n success: {\n icon: \"check\",\n className: \"bg-green-600 text-white\"\n },\n error: {\n icon: \"danger\",\n className: \"bg-tertiary-10 text-white\"\n },\n warning: {\n icon: \"warning-2\",\n className: \"bg-tertiary-20 text-white\"\n }\n} as const;\n\nexport const Toast = React.forwardRef<\n React.ElementRef<typeof ToastPrimitive.Root>,\n ToastProps\n>(\n (\n {\n title,\n message,\n action,\n variant = \"default\",\n duration = 5000,\n className,\n onOpenChange,\n ...props\n },\n ref\n ) => {\n const variantConfig = variants[variant];\n\n const handleOpenChange = React.useCallback(\n (open: boolean) => {\n onOpenChange?.(open);\n },\n [onOpenChange]\n );\n\n return (\n <ToastPrimitive.Root\n ref={ref}\n onOpenChange={handleOpenChange}\n duration={duration}\n className={cn(\n \"group pointer-events-auto relative flex w-full gap-4 rounded-lg p-4\",\n \"shadow-lg\",\n \"data-[state=open]:animate-in data-[state=closed]:animate-out\",\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0\",\n \"data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-right-full\",\n variantConfig.className,\n className\n )}\n {...props}\n >\n <Icon\n name={variantConfig.icon}\n className=\"h-5 w-5 shrink-0\"\n color=\"white\"\n />\n\n <div className=\"flex-1 gap-2\">\n {title && (\n <ToastPrimitive.Title asChild>\n <Text variant=\"body-default-bold\" color=\"inherit\">\n {title}\n </Text>\n </ToastPrimitive.Title>\n )}\n <ToastPrimitive.Description asChild>\n <Text variant=\"body-xs-medium\" color=\"inherit\">\n {message}\n </Text>\n </ToastPrimitive.Description>\n </div>\n\n <div className=\"flex gap-2\">\n {action && (\n <ToastPrimitive.Action asChild altText={action.label}>\n <div>\n <Button\n variant=\"outlined\"\n color=\"black\"\n className=\"border-white text-white hover:bg-white/10 ml-auto\"\n onClick={action.onClick}\n >\n {action.label}\n </Button>\n </div>\n </ToastPrimitive.Action>\n )}\n <ToastPrimitive.Close\n className=\"p-2 hover:bg-white/10\"\n aria-label=\"Close\"\n >\n <Icon name=\"close\" size={16} color=\"white\" />\n </ToastPrimitive.Close>\n </div>\n </ToastPrimitive.Root>\n );\n }\n);\n\nToast.displayName = \"Toast\";\n","import { useEffect, useLayoutEffect } from \"react\";\n\nexport const useIsomorphicLayoutEffect =\n typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n","import React, { useRef, useState } from \"react\";\nimport * as RadixCollapsible from \"@radix-ui/react-collapsible\";\nimport { Pressable } from \"./Pressable\";\nimport { Text } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { useIsomorphicLayoutEffect } from \"../hooks\";\n\nexport type CollapsibleProps = {\n children: React.ReactNode;\n maxHeight?: number;\n};\n\nexport const Collapsible = ({\n children,\n maxHeight = 100\n}: CollapsibleProps) => {\n const [open, setOpen] = React.useState(false);\n const contentRef = useRef<HTMLDivElement>(null);\n const [contentHeight, setContentHeight] = useState<number>(maxHeight);\n\n // Measure content height on mount and resize\n useIsomorphicLayoutEffect(() => {\n if (!contentRef.current) return;\n\n const resizeObserver = new ResizeObserver((entries) => {\n for (const entry of entries) {\n setContentHeight(entry.target.scrollHeight);\n }\n });\n\n resizeObserver.observe(contentRef.current);\n return () => resizeObserver.disconnect();\n }, []);\n\n const shouldShowTrigger = contentHeight > maxHeight;\n\n return (\n <RadixCollapsible.Root open={open} onOpenChange={setOpen}>\n <div className=\"relative\">\n <div\n className=\"overflow-hidden transition-[height] duration-300 ease-in-out\"\n style={{\n height: open ? `${contentHeight}px` : `${maxHeight}px`\n }}\n >\n <div ref={contentRef} className=\"w-full\">\n {children}\n </div>\n </div>\n\n {shouldShowTrigger && (\n <RadixCollapsible.Trigger asChild>\n <Pressable\n className={cn(\n \"absolute -bottom-8 left-0 right-0\",\n \"flex items-end justify-center\",\n \"h-16 pt-8 pb-2\",\n !open && \"bg-gradient-to-b from-transparent via-white to-white\",\n \"hover:opacity-100 transition-opacity\"\n )}\n >\n <Text variant=\"label-default\" color=\"secondary\">\n {open ? \"See less\" : \"See more\"}\n </Text>\n </Pressable>\n </RadixCollapsible.Trigger>\n )}\n </div>\n </RadixCollapsible.Root>\n );\n};\n\nCollapsible.displayName = \"Collapsible\";\n","import React from \"react\";\nimport { Text } from \"./Text\";\nimport { ContactItem, ContactItemProps } from \"./ContactItem\";\nimport { Collapsible } from \"./Collapsible\";\n\nexport type AboutCardProps = {\n contactItems: ContactItemProps[];\n description: string;\n isEditMode?: boolean;\n onEditClick?: () => void;\n};\n\nexport const AboutCard = ({\n contactItems,\n description,\n isEditMode = false,\n onEditClick,\n ...props\n}: AboutCardProps) => (\n <div\n className=\"border border-secondary rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4\"\n {...props}\n >\n <div className=\"flex sm:basis-1/2 basis-full flex-col gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center\">\n <Collapsible maxHeight={120}>\n <Text variant=\"body-default\">{description}</Text>\n </Collapsible>\n </div>\n {/* vertical divider for desktop */}\n <span className=\"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10\" />\n {/* horizontal divider for mobile */}\n <span className=\"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10\" />\n <div className=\"flex flex-col gap-4 sm:pl-10 pt-6 sm:pt-8\">\n {contactItems.map((contactProps) => (\n <ContactItem key={contactProps.title} {...contactProps} />\n ))}\n </div>\n </div>\n);\n"]}
@@ -1,4 +1,4 @@
1
- 'use strict';var d=require('react'),icons=require('@deckai/icons'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var d__namespace=/*#__PURE__*/_interopNamespace(d);function c(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var x={primary:"#080808",secondary:"#666666",white:"#ffffff",primaryBlue:"#089CCB",disabled:"#888888"},E={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},R=e=>{if(!e)return {width:"24px",height:"24px"};let o=Array.isArray(e)?e:[e],t={},s;return o.forEach(n=>{if(typeof n=="number")s=`${n}px`;else {let[i,r]=n.split(":"),a=parseInt(r,10);t[`@media (min-width: ${E[i]})`]=`${a}px`;}}),{width:s||"24px",height:s||"24px",...Object.entries(t).reduce((n,[i,r])=>({...n,[i]:{width:r,height:r}}),{})}},g=d__namespace.default.forwardRef(({name:e,size:o=24,color:t="primary",title:s,className:n,style:i={},...r},a)=>{let m=icons.IconMap[e],u=R(o);return d__namespace.default.createElement("div",{className:c("flex justify-center items-center",n),style:{...u,"--icon-stroke":x[t],...i}},d__namespace.default.createElement(m,{ref:a,"aria-hidden":!s,"aria-label":s,stroke:e.includes("filled")?void 0:x[t],...r}))});g.displayName="Icon";var w={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},v=e=>{let[o,t]=e.split("-");return o==="heading"?w[t]||"p":o==="label"?"label":"p"},A={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},$=e=>e?(Array.isArray(e)?e:[e]).map(t=>{if(t.includes(":")){let[s,n]=t.split(":");return `${s}:text-${n}`}return `text-${t}`}).join(" "):"text-body-default",l=d__namespace.default.forwardRef(({variant:e="body-default",color:o="primary",as:t,className:s,children:n,weight:i,...r},a)=>{let m=$(e),u=o==="inherit"?"text-inherit":`text-text-${o}`,k=d__namespace.default.useMemo(()=>{let M=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return v(M)},[e]);return d__namespace.default.createElement(t||k,{ref:a,className:`font-sans antialiased ${m} ${u} ${i?`!${A[i]}`:""} ${s??""}`,...r},n)});l.displayName="Text";var T="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";var S={black:"bg-text-text text-white",accent:"bg-primary-100 text-white",secondary:"bg-secondary-100 text-secondary"},B={black:"border border-text text-text",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},f=d__namespace.forwardRef(({className:e,variant:o="filled",color:t="black",isLoading:s=!1,children:n,disabled:i,...r},a)=>d__namespace.createElement("button",{ref:a,className:c(`
1
+ 'use strict';var c=require('react'),icons=require('@deckai/icons'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var c__namespace=/*#__PURE__*/_interopNamespace(c);function m(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var x={primary:"#080808",secondary:"#666666",white:"#ffffff",primaryBlue:"#089CCB",disabled:"#888888"},E={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},R=e=>{if(!e)return {width:"24px",height:"24px"};let o=Array.isArray(e)?e:[e],t={},s;return o.forEach(n=>{if(typeof n=="number")s=`${n}px`;else {let[i,r]=n.split(":"),a=parseInt(r,10);t[`@media (min-width: ${E[i]})`]=`${a}px`;}}),{width:s||"24px",height:s||"24px",...Object.entries(t).reduce((n,[i,r])=>({...n,[i]:{width:r,height:r}}),{})}},g=c__namespace.default.forwardRef(({name:e,size:o=24,color:t="primary",title:s,className:n,style:i={},...r},a)=>{let l=icons.IconMap[e],u=R(o);return c__namespace.default.createElement("div",{className:m("flex justify-center items-center",n),style:{...u,"--icon-stroke":x[t],...i}},c__namespace.default.createElement(l,{ref:a,"aria-hidden":!s,"aria-label":s,stroke:e.includes("filled")?void 0:x[t],...r}))});g.displayName="Icon";var w={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},v=e=>{let[o,t]=e.split("-");return o==="heading"?w[t]||"p":o==="label"?"label":"p"},A={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},$=e=>e?(Array.isArray(e)?e:[e]).map(t=>{if(t.includes(":")){let[s,n]=t.split(":");return `${s}:text-${n}`}return `text-${t}`}).join(" "):"text-body-default",p=c__namespace.default.forwardRef(({variant:e="body-default",color:o="primary",as:t,className:s,children:n,weight:i,...r},a)=>{let l=$(e),u=o==="inherit"?"text-inherit":`text-text-${o}`,k=c__namespace.default.useMemo(()=>{let M=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return v(M)},[e]);return c__namespace.default.createElement(t||k,{ref:a,className:`font-sans antialiased ${l} ${u} ${i?`!${A[i]}`:""} ${s??""}`,...r},n)});p.displayName="Text";var T="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";var S={black:"bg-text-text text-white",accent:"bg-primary-100 text-white",secondary:"bg-secondary-100 text-secondary"},B={black:"border border-text text-text",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},f=c__namespace.forwardRef(({className:e,variant:o="filled",color:t="black",isLoading:s=!1,children:n,disabled:i,end:r,...a},l)=>c__namespace.createElement("button",{ref:l,className:m(`
2
2
  sm:px-7 px-4
3
3
  py-2
4
4
  inline-flex items-center justify-center
@@ -6,7 +6,7 @@
6
6
  transition-colors duration-200
7
7
  disabled:opacity-50 disabled:pointer-events-none
8
8
  hover:opacity-80 active:scale-95
9
- truncate`,T,o==="filled"?S[t]:B[t],e),disabled:i||s,type:"button",...r},typeof n=="string"?d__namespace.createElement(l,{variant:["sm:body-default-bold","body-xxs-semibold"],color:"inherit"},n):n));f.displayName="Button";var b=({icon:e,size:o=40,className:t})=>{let s=d.useMemo(()=>{let r=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!r)return null;r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("preserveAspectRatio","xMidYMid meet");let a=r.getAttribute("viewBox")||"0 0 40 40";return r.setAttribute("viewBox",a),r.outerHTML},[e]);return s?d__namespace.default.createElement("div",{style:{width:o,height:o,display:"flex",alignItems:"center",justifyContent:"center"},className:t,dangerouslySetInnerHTML:{__html:s}}):null};b.displayName="IconRenderer";var ae=({onClick:e,backgroundImage:o=j})=>d__namespace.default.createElement("div",{className:"bg-secondary-500 relative flex flex-col gap-2 items-center justify-center sm:w-[227px] sm:h-[371px] w-[148px] h-[234px] rounded-2xl overflow-hidden ",style:{backgroundImage:` url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg' shape-rendering='crispEdges'%3e%3crect width='100%25' height='100%25' fill='none' rx='14' ry='14' stroke='%23089CCB' stroke-width='6' stroke-dasharray='48%2c 48' stroke-dashoffset='32' stroke-linecap='square'/%3e%3c/svg%3e")`}},d__namespace.default.createElement(l,{variant:"body-lg-semibold",className:"text-center"},"Add Work"),d__namespace.default.createElement(f,{color:"accent",variant:"filled",className:"!px-3 !py-3",onClick:e},d__namespace.default.createElement(g,{name:"add",color:"white"})),d__namespace.default.createElement(b,{icon:o,size:140,className:"absolute bottom-5 right-5"})),j=`
9
+ truncate`,T,o==="filled"?S[t]:B[t],e),disabled:i||s,type:"button",...a},typeof n=="string"?c__namespace.createElement(p,{variant:["sm:body-default-bold","body-xxs-semibold"],color:"inherit"},n):n,r));f.displayName="Button";var b=({icon:e,size:o=40,className:t})=>{let s=c.useMemo(()=>{let r=new DOMParser().parseFromString(e,"image/svg+xml").querySelector("svg");if(!r)return null;r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("preserveAspectRatio","xMidYMid meet");let a=r.getAttribute("viewBox")||"0 0 40 40";return r.setAttribute("viewBox",a),r.outerHTML},[e]);return s?c__namespace.default.createElement("div",{style:{width:o,height:o,display:"flex",alignItems:"center",justifyContent:"center"},className:t,dangerouslySetInnerHTML:{__html:s}}):null};b.displayName="IconRenderer";var ae=({onClick:e,backgroundImage:o=j})=>c__namespace.default.createElement("div",{className:"bg-secondary-500 relative flex flex-col gap-2 items-center justify-center sm:w-[227px] sm:h-[371px] w-[148px] h-[234px] rounded-2xl overflow-hidden ",style:{backgroundImage:` url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg' shape-rendering='crispEdges'%3e%3crect width='100%25' height='100%25' fill='none' rx='14' ry='14' stroke='%23089CCB' stroke-width='6' stroke-dasharray='48%2c 48' stroke-dashoffset='32' stroke-linecap='square'/%3e%3c/svg%3e")`}},c__namespace.default.createElement(p,{variant:"body-lg-semibold",className:"text-center"},"Add Work"),c__namespace.default.createElement(f,{color:"accent",variant:"filled",className:"!px-3 !py-3",onClick:e},c__namespace.default.createElement(g,{name:"add",color:"white"})),c__namespace.default.createElement(b,{icon:o,size:140,className:"absolute bottom-5 right-5"})),j=`
10
10
  <svg
11
11
  width="142"
12
12
  height="125"