@deckai/deck-ui 0.0.23 → 0.0.25

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 (197) hide show
  1. package/dist/components/AboutCard.cjs +5 -5
  2. package/dist/components/AboutCard.cjs.map +1 -1
  3. package/dist/components/AboutCard.js +5 -5
  4. package/dist/components/AboutCard.js.map +1 -1
  5. package/dist/components/Accordion.cjs +1 -1
  6. package/dist/components/Accordion.cjs.map +1 -1
  7. package/dist/components/Accordion.js +1 -1
  8. package/dist/components/Accordion.js.map +1 -1
  9. package/dist/components/AddWorkCard.cjs +5 -5
  10. package/dist/components/AddWorkCard.cjs.map +1 -1
  11. package/dist/components/AddWorkCard.js +5 -5
  12. package/dist/components/AddWorkCard.js.map +1 -1
  13. package/dist/components/AutocompleteInput.cjs +6 -6
  14. package/dist/components/AutocompleteInput.cjs.map +1 -1
  15. package/dist/components/AutocompleteInput.d.cts +1 -1
  16. package/dist/components/AutocompleteInput.d.ts +1 -1
  17. package/dist/components/AutocompleteInput.js +6 -6
  18. package/dist/components/AutocompleteInput.js.map +1 -1
  19. package/dist/components/Avatar.cjs +1 -1
  20. package/dist/components/Avatar.cjs.map +1 -1
  21. package/dist/components/Avatar.js +1 -1
  22. package/dist/components/Avatar.js.map +1 -1
  23. package/dist/components/Badge.cjs +2 -2
  24. package/dist/components/Badge.cjs.map +1 -1
  25. package/dist/components/Badge.d.cts +1 -1
  26. package/dist/components/Badge.d.ts +1 -1
  27. package/dist/components/Badge.js +2 -2
  28. package/dist/components/Badge.js.map +1 -1
  29. package/dist/components/Breadcrumbs.cjs +2 -2
  30. package/dist/components/Breadcrumbs.cjs.map +1 -1
  31. package/dist/components/Breadcrumbs.js +2 -2
  32. package/dist/components/Breadcrumbs.js.map +1 -1
  33. package/dist/components/Button.cjs +6 -6
  34. package/dist/components/Button.cjs.map +1 -1
  35. package/dist/components/Button.d.cts +5 -0
  36. package/dist/components/Button.d.ts +5 -0
  37. package/dist/components/Button.js +6 -6
  38. package/dist/components/Button.js.map +1 -1
  39. package/dist/components/Carousel.cjs +1 -1
  40. package/dist/components/Carousel.cjs.map +1 -1
  41. package/dist/components/Carousel.d.cts +3 -1
  42. package/dist/components/Carousel.d.ts +3 -1
  43. package/dist/components/Carousel.js +1 -1
  44. package/dist/components/Carousel.js.map +1 -1
  45. package/dist/components/Collapsible.cjs +5 -5
  46. package/dist/components/Collapsible.cjs.map +1 -1
  47. package/dist/components/Collapsible.js +5 -5
  48. package/dist/components/Collapsible.js.map +1 -1
  49. package/dist/components/Combobox.cjs +3 -3
  50. package/dist/components/Combobox.cjs.map +1 -1
  51. package/dist/components/Combobox.d.cts +2 -1
  52. package/dist/components/Combobox.d.ts +2 -1
  53. package/dist/components/Combobox.js +3 -3
  54. package/dist/components/Combobox.js.map +1 -1
  55. package/dist/components/ContactItem.cjs +2 -2
  56. package/dist/components/ContactItem.cjs.map +1 -1
  57. package/dist/components/ContactItem.js +2 -2
  58. package/dist/components/ContactItem.js.map +1 -1
  59. package/dist/components/CreatorCard.cjs +8 -0
  60. package/dist/components/CreatorCard.cjs.map +1 -0
  61. package/dist/components/CreatorCard.d.cts +33 -0
  62. package/dist/components/CreatorCard.d.ts +33 -0
  63. package/dist/components/CreatorCard.js +8 -0
  64. package/dist/components/CreatorCard.js.map +1 -0
  65. package/dist/components/Dropdown.cjs +2 -2
  66. package/dist/components/Dropdown.cjs.map +1 -1
  67. package/dist/components/Dropdown.js +2 -2
  68. package/dist/components/Dropdown.js.map +1 -1
  69. package/dist/components/EditButton.cjs +4 -4
  70. package/dist/components/EditButton.cjs.map +1 -1
  71. package/dist/components/EditButton.js +4 -4
  72. package/dist/components/EditButton.js.map +1 -1
  73. package/dist/components/Hero.cjs +8 -0
  74. package/dist/components/Hero.cjs.map +1 -0
  75. package/dist/components/Hero.d.cts +19 -0
  76. package/dist/components/Hero.d.ts +19 -0
  77. package/dist/components/Hero.js +8 -0
  78. package/dist/components/Hero.js.map +1 -0
  79. package/dist/components/Icon.cjs +1 -1
  80. package/dist/components/Icon.cjs.map +1 -1
  81. package/dist/components/Icon.d.cts +1 -1
  82. package/dist/components/Icon.d.ts +1 -1
  83. package/dist/components/Icon.js +1 -1
  84. package/dist/components/Icon.js.map +1 -1
  85. package/dist/components/IconRenderer.cjs +1 -1
  86. package/dist/components/IconRenderer.cjs.map +1 -1
  87. package/dist/components/IconRenderer.js +1 -1
  88. package/dist/components/IconRenderer.js.map +1 -1
  89. package/dist/components/Input.cjs +2 -2
  90. package/dist/components/Input.cjs.map +1 -1
  91. package/dist/components/Input.d.cts +2 -2
  92. package/dist/components/Input.d.ts +2 -2
  93. package/dist/components/Input.js +2 -2
  94. package/dist/components/Input.js.map +1 -1
  95. package/dist/components/Link.cjs +1 -1
  96. package/dist/components/Link.cjs.map +1 -1
  97. package/dist/components/Link.d.cts +1 -1
  98. package/dist/components/Link.d.ts +1 -1
  99. package/dist/components/Link.js +1 -1
  100. package/dist/components/Link.js.map +1 -1
  101. package/dist/components/Modal.cjs +1 -1
  102. package/dist/components/Modal.cjs.map +1 -1
  103. package/dist/components/Modal.js +1 -1
  104. package/dist/components/Modal.js.map +1 -1
  105. package/dist/components/MultiSelectCombobox.cjs +2 -2
  106. package/dist/components/MultiSelectCombobox.cjs.map +1 -1
  107. package/dist/components/MultiSelectCombobox.js +2 -2
  108. package/dist/components/MultiSelectCombobox.js.map +1 -1
  109. package/dist/components/Navbar.cjs +14 -6
  110. package/dist/components/Navbar.cjs.map +1 -1
  111. package/dist/components/Navbar.d.cts +4 -2
  112. package/dist/components/Navbar.d.ts +4 -2
  113. package/dist/components/Navbar.js +14 -6
  114. package/dist/components/Navbar.js.map +1 -1
  115. package/dist/components/NavbarItem.cjs +3 -3
  116. package/dist/components/NavbarItem.cjs.map +1 -1
  117. package/dist/components/NavbarItem.d.cts +1 -1
  118. package/dist/components/NavbarItem.d.ts +1 -1
  119. package/dist/components/NavbarItem.js +3 -3
  120. package/dist/components/NavbarItem.js.map +1 -1
  121. package/dist/components/Option.cjs +3 -3
  122. package/dist/components/Option.cjs.map +1 -1
  123. package/dist/components/Option.js +3 -3
  124. package/dist/components/Option.js.map +1 -1
  125. package/dist/components/ProfileCard.cjs +2 -2
  126. package/dist/components/ProfileCard.cjs.map +1 -1
  127. package/dist/components/ProfileCard.js +2 -2
  128. package/dist/components/ProfileCard.js.map +1 -1
  129. package/dist/components/ProgressBar.cjs.map +1 -1
  130. package/dist/components/ProgressBar.js.map +1 -1
  131. package/dist/components/RadioGroup.cjs +2 -2
  132. package/dist/components/RadioGroup.cjs.map +1 -1
  133. package/dist/components/RadioGroup.js +2 -2
  134. package/dist/components/RadioGroup.js.map +1 -1
  135. package/dist/components/SegmentedTabs.cjs +6 -6
  136. package/dist/components/SegmentedTabs.cjs.map +1 -1
  137. package/dist/components/SegmentedTabs.js +6 -6
  138. package/dist/components/SegmentedTabs.js.map +1 -1
  139. package/dist/components/Sidebar.cjs +1 -1
  140. package/dist/components/Sidebar.cjs.map +1 -1
  141. package/dist/components/Sidebar.js +1 -1
  142. package/dist/components/Sidebar.js.map +1 -1
  143. package/dist/components/SlideButton.cjs.map +1 -1
  144. package/dist/components/SlideButton.js.map +1 -1
  145. package/dist/components/SocialCard.cjs +4 -4
  146. package/dist/components/SocialCard.cjs.map +1 -1
  147. package/dist/components/SocialCard.js +4 -4
  148. package/dist/components/SocialCard.js.map +1 -1
  149. package/dist/components/Tabs.cjs +5 -5
  150. package/dist/components/Tabs.cjs.map +1 -1
  151. package/dist/components/Tabs.js +5 -5
  152. package/dist/components/Tabs.js.map +1 -1
  153. package/dist/components/Tag.cjs +4 -4
  154. package/dist/components/Tag.cjs.map +1 -1
  155. package/dist/components/Tag.js +4 -4
  156. package/dist/components/Tag.js.map +1 -1
  157. package/dist/components/Text.cjs +3 -3
  158. package/dist/components/Text.cjs.map +1 -1
  159. package/dist/components/Text.d.cts +3 -3
  160. package/dist/components/Text.d.ts +3 -3
  161. package/dist/components/Text.js +3 -3
  162. package/dist/components/Text.js.map +1 -1
  163. package/dist/components/TextArea.cjs +2 -2
  164. package/dist/components/TextArea.cjs.map +1 -1
  165. package/dist/components/TextArea.js +2 -2
  166. package/dist/components/TextArea.js.map +1 -1
  167. package/dist/components/Toast.cjs +5 -5
  168. package/dist/components/Toast.cjs.map +1 -1
  169. package/dist/components/Toast.d.cts +4 -1
  170. package/dist/components/Toast.d.ts +4 -1
  171. package/dist/components/Toast.js +5 -5
  172. package/dist/components/Toast.js.map +1 -1
  173. package/dist/components/Tooltip.cjs +3 -3
  174. package/dist/components/Tooltip.cjs.map +1 -1
  175. package/dist/components/Tooltip.js +3 -3
  176. package/dist/components/Tooltip.js.map +1 -1
  177. package/dist/components/VideoPlayer.cjs +2 -2
  178. package/dist/components/VideoPlayer.cjs.map +1 -1
  179. package/dist/components/VideoPlayer.js +2 -2
  180. package/dist/components/VideoPlayer.js.map +1 -1
  181. package/dist/components/WorkCard.cjs +4 -4
  182. package/dist/components/WorkCard.cjs.map +1 -1
  183. package/dist/components/WorkCard.js +4 -4
  184. package/dist/components/WorkCard.js.map +1 -1
  185. package/dist/index.cjs +6 -6
  186. package/dist/index.cjs.map +1 -1
  187. package/dist/index.d.cts +2 -1
  188. package/dist/index.d.ts +2 -1
  189. package/dist/index.js +6 -6
  190. package/dist/index.js.map +1 -1
  191. package/dist/styles/styles.css +1 -1
  192. package/dist/styles/styles.css.map +1 -1
  193. package/dist/tailwind-D0Cc0jDS.d.cts +38 -0
  194. package/dist/tailwind-D0Cc0jDS.d.ts +38 -0
  195. package/dist/tailwind-DIVT5G0q.d.cts +38 -0
  196. package/dist/tailwind-DIVT5G0q.d.ts +38 -0
  197. package/package.json +6 -8
@@ -1,10 +1,10 @@
1
- 'use strict';var p=require('react'),k=require('@radix-ui/react-collapsible'),h=require('@radix-ui/react-toast'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),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 p__namespace=/*#__PURE__*/_interopNamespace(p);var k__namespace=/*#__PURE__*/_interopNamespace(k);var h__namespace=/*#__PURE__*/_interopNamespace(h);function n(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var J={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},U=e=>{let[t,o]=e.split("-");return t==="heading"?J[o]||"p":t==="label"?"label":"p"},X={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},ee=e=>e?(Array.isArray(e)?e:[e]).map(o=>{if(o.includes(":")){let[r,s]=o.split(":");return `${r}:text-${s}`}return `text-${o}`}).join(" "):"text-body-default",x=p__namespace.default.forwardRef(({variant:e="body-default",color:t="primary",as:o,className:r,children:s,weight:l,...i},a)=>{let c=ee(e),m=t==="inherit"?"text-inherit":`text-${t}`,f=p__namespace.default.useMemo(()=>{let b=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return U(b)},[e]);return p__namespace.default.createElement(o||f,{ref:a,className:`
1
+ 'use strict';var m=require('react'),k=require('@radix-ui/react-collapsible'),h=require('@radix-ui/react-toast'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),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 m__namespace=/*#__PURE__*/_interopNamespace(m);var k__namespace=/*#__PURE__*/_interopNamespace(k);var h__namespace=/*#__PURE__*/_interopNamespace(h);function l(...e){return tailwindMerge.twMerge(clsx.clsx(e))}var w="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100";var J={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},U=e=>{let[o,t]=e.split("-");return o==="heading"?J[t]||"p":o==="label"?"label":"p"},X={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},ee=e=>e?(Array.isArray(e)?e:[e]).map(t=>{if(t.includes(":")){let[r,s]=t.split(":");return `${r}:text-${s}`}return `text-${t}`}).join(" "):"text-body-default",x=m__namespace.default.forwardRef(({variant:e="body-default",color:o="primary",as:t,className:r,children:s,weight:n,...i},a)=>{let c=ee(e),p=o==="inherit"?"text-inherit":`text-${o}`,f=m__namespace.default.useMemo(()=>{let b=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return U(b)},[e]);return m__namespace.default.createElement(t||f,{ref:a,className:`
2
2
  font-sans antialiased
3
3
  ${c}
4
- ${m}
5
- ${l&&`!${X[l]}`}
4
+ ${p}
5
+ ${n&&`!${X[n]}`}
6
6
  ${r}
7
- `,...i},s)});x.displayName="Text";var w="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100";var te={black:"bg-primary text-white",accent:"bg-primary-100 text-white",secondary:"bg-secondary-100 text-secondary"},oe={black:"border border-text text-primary",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},E=p__namespace.forwardRef(({className:e,variant:t="filled",color:o="black",isLoading:r=false,children:s,disabled:l,end:i,...a},c)=>p__namespace.createElement("button",{ref:c,className:n(`
7
+ `,...i},s)});x.displayName="Text";var te={black:"bg-primary text-background-0",accent:"bg-primary-100 text-background-0",secondary:"bg-secondary-100 text-secondary"},oe={black:"border border-text text-primary",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},E=m__namespace.forwardRef(({className:e,textVariant:o,variant:t="filled",color:r="black",isLoading:s=false,children:n,disabled:i,end:a,...c},p)=>m__namespace.createElement("button",{ref:p,className:l(`
8
8
  sm:px-7 px-4
9
9
  py-2
10
10
  inline-flex items-center justify-center
@@ -12,5 +12,5 @@
12
12
  transition-colors duration-200
13
13
  disabled:opacity-50 disabled:pointer-events-none
14
14
  hover:opacity-80 active:scale-95
15
- truncate`,w,t==="filled"?te[o]:t==="transparent"?"bg-transparent text-text":oe[o],e),disabled:l||r,type:"button",...a},typeof s=="string"?p__namespace.createElement(x,{variant:["sm:body-default-bold","body-xxs-semibold"],color:"inherit"},s):s,i));E.displayName="Button";var R={12:"h-[12px] w-[12px]",16:"h-[16px] w-[16px]",18:"h-[18px] w-[18px]",20:"h-[20px] w-[20px]",24:"h-[24px] w-[24px]",32:"h-[32px] w-[32px]",36:"h-[36px] w-[36px]",40:"h-[40px] w-[40px]",42:"h-[42px] w-[42px]",48:"h-[48px] w-[48px]",64:"h-[64px] w-[64px]",72:"h-[72px] w-[72px]"},z={sm:{12:"sm:h-[12px] sm:w-[12px]",16:"sm:h-[16px] sm:w-[16px]",18:"sm:h-[18px] sm:w-[18px]",20:"sm:h-[20px] sm:w-[20px]",24:"sm:h-[24px] sm:w-[24px]",32:"sm:h-[32px] sm:w-[32px]",36:"sm:h-[36px] sm:w-[36px]",40:"sm:h-[40px] sm:w-[40px]",42:"sm:h-[42px] sm:w-[42px]",48:"sm:h-[48px] sm:w-[48px]",64:"sm:h-[64px] sm:w-[64px]",72:"sm:h-[72px] sm:w-[72px]"},md:{12:"md:h-[12px] md:w-[12px]",16:"md:h-[16px] md:w-[16px]",18:"md:h-[18px] md:w-[18px]",20:"md:h-[20px] md:w-[20px]",24:"md:h-[24px] md:w-[24px]",32:"md:h-[32px] md:w-[32px]",36:"md:h-[36px] md:w-[36px]",40:"md:h-[40px] md:w-[40px]",42:"md:h-[42px] md:w-[42px]",48:"md:h-[48px] md:w-[48px]",64:"md:h-[64px] md:w-[64px]",72:"md:h-[72px] md:w-[72px]"},lg:{12:"lg:h-[12px] lg:w-[12px]",16:"lg:h-[16px] lg:w-[16px]",18:"lg:h-[18px] lg:w-[18px]",20:"lg:h-[20px] lg:w-[20px]",24:"lg:h-[24px] lg:w-[24px]",32:"lg:h-[32px] lg:w-[32px]",36:"lg:h-[36px] lg:w-[36px]",40:"lg:h-[40px] lg:w-[40px]",42:"lg:h-[42px] lg:w-[42px]",48:"lg:h-[48px] lg:w-[48px]",64:"lg:h-[64px] lg:w-[64px]",72:"lg:h-[72px] lg:w-[72px]"},xl:{12:"xl:h-[12px] xl:w-[12px]",16:"xl:h-[16px] xl:w-[16px]",18:"xl:h-[18px] xl:w-[18px]",20:"xl:h-[20px] xl:w-[20px]",24:"xl:h-[24px] xl:w-[24px]",32:"xl:h-[32px] xl:w-[32px]",36:"xl:h-[36px] xl:w-[36px]",40:"xl:h-[40px] xl:w-[40px]",42:"xl:h-[42px] xl:w-[42px]",48:"xl:h-[48px] xl:w-[48px]",64:"xl:h-[64px] xl:w-[64px]",72:"xl:h-[72px] xl:w-[72px]"},"2xl":{12:"2xl:h-[12px] 2xl:w-[12px]",16:"2xl:h-[16px] 2xl:w-[16px]",18:"2xl:h-[18px] 2xl:w-[18px]",20:"2xl:h-[20px] 2xl:w-[20px]",24:"2xl:h-[24px] 2xl:w-[24px]",32:"2xl:h-[32px] 2xl:w-[32px]",36:"2xl:h-[36px] 2xl:w-[36px]",40:"2xl:h-[40px] 2xl:w-[40px]",42:"2xl:h-[42px] 2xl:w-[42px]",48:"2xl:h-[48px] 2xl:w-[48px]",64:"2xl:h-[64px] 2xl:w-[64px]",72:"2xl:h-[72px] 2xl:w-[72px]"}},L=e=>String(e),H=(e,t=24)=>{let o=[],r={};if(e===void 0){let s=L(t);s?o.push(R[s]):(r.height=`${t}px`,r.width=`${t}px`);}if(typeof e=="number"){let s=L(e);s?o.push(R[s]):(r.height=`${e}px`,r.width=`${e}px`);}if(Array.isArray(e)){let s=L(t),l=[s&&R[s]||`h-[${t}px] w-[${t}px]`];e.forEach(i=>{if(typeof i=="string"){let[a,c]=i.split(":"),m=parseInt(c,10),f=L(m);o.push(f&&z[a]?.[f]||`${a}:h-[${m}px] ${a}:w-[${m}px]`);}}),o.push(...l);}if(typeof e=="string"){let[s,l]=e.split(":"),i=parseInt(l,10),a=L(i);o.push(a&&z[s]?.[a]||`${s}:h-[${i}px] ${s}:w-[${i}px]`);}return {responsiveSizeClasses:o.join(" "),responsiveSizeStyles:r}};var F={primary:"var(--color-primary)",secondary:"var(--color-secondary)",white:"var(--color-white)",primaryBlue:"var(--color-primary-100)",disabled:"var(--color-disabled)",danger:"var(--color-danger)"},T=p__namespace.default.forwardRef(({name:e,size:t=24,color:o="primary",title:r,className:s,style:l={},...i},a)=>{let c=icons.IconMap[e],{responsiveSizeClasses:m,responsiveSizeStyles:f}=H(t,24);return p__namespace.default.createElement("div",{className:n("flex justify-center items-center",m,s),style:{"--icon-stroke":F[o],...f,...l}},p__namespace.default.createElement(c,{ref:a,"aria-hidden":!r,"aria-label":r,stroke:e.includes("filled")?void 0:F[o],...i}))});T.displayName="Icon";var se={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"}},K=p__namespace.forwardRef(({title:e,message:t,action:o,secondaryAction:r,variant:s="default",duration:l=5e3,className:i,onOpenChange:a,allowOutsideClick:c=true,onClose:m,...f},v)=>{let b=se[s],Z=p__namespace.useCallback(S=>{!c&&S===false||(a?.(S),S||m?.());},[a,c,m]);return p__namespace.createElement(h__namespace.Root,{ref:v,onOpenChange:Z,duration:l,className:n("group pointer-events-auto relative flex w-full flex-col gap-4 rounded-lg p-4 items-center","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",b.className,i),...f},p__namespace.createElement(h__namespace.Close,{className:"absolute right-1 top-1 h-[40px] w-[40px] p-1 hover:bg-background-0/10 flex items-center justify-center rounded-lg","aria-label":"Close",onClick:m},p__namespace.createElement(T,{name:"close",size:16,color:"white"})),p__namespace.createElement("div",{className:"flex gap-4"},p__namespace.createElement(T,{name:b.icon,className:"h-5 w-5 shrink-0",color:"white"}),p__namespace.createElement("div",{className:"flex flex-col flex-1 gap-2"},e&&p__namespace.createElement(h__namespace.Title,{asChild:true},p__namespace.createElement(x,{variant:"body-default-bold",color:"inherit"},e)),p__namespace.createElement(h__namespace.Description,{asChild:true},p__namespace.createElement(x,{variant:"body-xs-medium",color:"inherit"},t)))),(o||r)&&p__namespace.createElement("div",{className:"flex gap-2 justify-end mt-2"},r&&p__namespace.createElement(h__namespace.Action,{asChild:true,altText:r.label},p__namespace.createElement("div",{className:"min-h-[40px] flex items-center"},p__namespace.createElement(E,{variant:r.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:r.onClick},r.label))),o&&p__namespace.createElement(h__namespace.Action,{asChild:true,altText:o.label},p__namespace.createElement("div",{className:"flex items-center"},p__namespace.createElement(E,{variant:o.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:o.onClick},o.label)))))});K.displayName="Toast";var _=typeof window<"u"?p.useLayoutEffect:p.useEffect;var I=p__namespace.default.forwardRef(({children:e,type:t="button",className:o,disabled:r,...s},l)=>p__namespace.default.createElement("button",{ref:l,type:t,disabled:r,className:n("appearance-none hover:opacity-80 transition-all active:scale-95",w,r&&"opacity-50 cursor-not-allowed",o),...s},e));I.displayName="Pressable";function B({children:e,maxHeight:t=100}){let[o,r]=p__namespace.default.useState(false),s=p.useRef(null),[l,i]=p.useState(t);_(()=>{if(!s.current)return;let c=new ResizeObserver(m=>{for(let f of m)i(f.target.scrollHeight);});return c.observe(s.current),()=>c.disconnect()},[]);let a=l>t;return p__namespace.default.createElement(k__namespace.Root,{open:o,onOpenChange:r},p__namespace.default.createElement("div",{className:"relative"},p__namespace.default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:o?`${l}px`:`${t}px`}},p__namespace.default.createElement("div",{ref:s,className:"w-full"},e)),a&&p__namespace.default.createElement(k__namespace.Trigger,{asChild:true},p__namespace.default.createElement(I,{className:n("absolute -bottom-8 left-0 right-0","flex items-end justify-center","h-16 pt-8 pb-2",!o&&"bg-gradient-to-b from-transparent via-background-0 to-background-0","hover:opacity-100 transition-opacity")},p__namespace.default.createElement(x,{variant:"label-default",color:"secondary"},o?"See less":"See more")))))}B.displayName="Collapsible";var D={sm:"h-4",md:"h-6",lg:"h-8"},pe={sm:"w-20",md:"w-32",lg:"w-48"},O={sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"},M=p__namespace.default.forwardRef(({variant:e="text",size:t="md",lines:o=1,className:r,animate:s=true},l)=>{let i="bg-secondary-50 rounded-lg overflow-hidden",a=s?"animate-pulse":"",m=typeof t=="number"?(v=>({height:`${v}px`,width:e==="avatar"||e==="image"?`${v}px`:void 0}))(t):void 0,f=()=>{switch(e){case "text":return p__namespace.default.createElement("div",{className:"flex flex-col gap-2"},Array.from({length:o}).map((v,b)=>p__namespace.default.createElement("div",{key:b,style:m,className:n(i,a,typeof t=="string"?D[t]:void 0,b===o-1&&o>1?"w-3/4":"w-full",r)})));case "image":return p__namespace.default.createElement("div",{style:m,className:n(i,a,(!m||!r)&&"aspect-square w-full max-w-[300px]",r)});case "button":return p__namespace.default.createElement("div",{style:m,className:n(i,a,typeof t=="string"&&[D[t],pe[t]],r)});case "card":return p__namespace.default.createElement("div",{className:n("flex flex-col gap-4 p-6 border border-stroke rounded-xl",r)},p__namespace.default.createElement("div",{className:n(i,a,"w-16 h-16 rounded-full")}),p__namespace.default.createElement("div",{className:"space-y-2"},p__namespace.default.createElement("div",{className:n(i,a,"h-6 w-3/4")}),p__namespace.default.createElement("div",{className:n(i,a,"h-4 w-1/2")})),p__namespace.default.createElement("div",{className:"space-y-2"},p__namespace.default.createElement("div",{className:n(i,a,"h-4 w-full")}),p__namespace.default.createElement("div",{className:n(i,a,"h-4 w-full")}),p__namespace.default.createElement("div",{className:n(i,a,"h-4 w-2/3")})));case "avatar":return p__namespace.default.createElement("div",{style:m,className:n(i,a,"rounded-full",{[O.sm]:t==="sm",[O.md]:t==="md",[O.lg]:t==="lg"},r)});default:return null}};return p__namespace.default.createElement("div",{ref:l,className:n("w-full",r)},f())});M.displayName="Fallback";function j({icon:e,size:t=40,className:o}){let r=e.match(/<svg[^>]*>([\s\S]*?)<\/svg>/),{responsiveSizeClasses:s,responsiveSizeStyles:l}=H(t,40);if(!r)return p__namespace.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...l},className:n(s,o)});let i=e.match(/<svg([^>]*)>/),c=(i?i[1]:"").match(/viewBox=["']([^"']*)["']/),m=c?c[1]:"0 0 40 40";return p__namespace.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...l},className:n(s,o)},p__namespace.default.createElement("svg",{width:"100%",height:"100%",viewBox:m,preserveAspectRatio:"xMidYMid meet",dangerouslySetInnerHTML:{__html:r[1]}}))}j.displayName="IconRenderer";function Q({children:e,color:t="inherit",variant:o="body-default-semibold",href:r,className:s,...l}){return p__namespace.default.createElement(x,{variant:o,color:t},p__namespace.default.createElement("a",{href:r,className:n("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline text-ellipsis",w,s),...l},e))}function N({icon:e,children:t,href:o,isLoading:r,...s}){return r?p__namespace.default.createElement("div",{className:"row gap-2 flex items-center"},p__namespace.default.createElement(M,{variant:"image",size:30,className:"rounded-full"}),p__namespace.default.createElement(M,{variant:"text",size:"sm",className:"w-32"})):p__namespace.default.createElement("div",{className:"row gap-2 flex items-center min-w-0"},p__namespace.default.createElement("div",{className:"flex-shrink-0 bg-secondary-400 rounded-full p-2.5 items-center justify-center"},e?p__namespace.default.createElement(j,{icon:e,size:18,className:"text-primary"}):p__namespace.default.createElement(T,{name:"link",size:18,className:"text-primary"})),p__namespace.default.createElement("div",{className:"min-w-0 flex-1"},o?p__namespace.default.createElement(Q,{className:"hover:underline truncate block text-primary",href:o,...s,variant:["body-default-semibold","md:body-default-semibold"]},t):p__namespace.default.createElement(x,{variant:"body-default-semibold",className:"truncate block text-primary"},t)))}function Ct({contactItems:e,description:t,isEditMode:o=false,onEditClick:r,isLoading:s,...l}){return p__namespace.default.createElement("div",{className:"border border-secondary-50 rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4 w-full",...l},p__namespace.default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},p__namespace.default.createElement(B,{maxHeight:120},s||!t?p__namespace.default.createElement(M,{variant:"text",lines:4}):p__namespace.default.createElement(x,{variant:"body-default"},t))),p__namespace.default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),p__namespace.default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),p__namespace.default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-4 sm:pl-10 pt-6 sm:pt-8"},e?e.map(i=>p__namespace.default.createElement(N,{key:i.title,...i})):p__namespace.default.createElement(p__namespace.default.Fragment,null,p__namespace.default.createElement(N,{isLoading:true}),p__namespace.default.createElement(N,{isLoading:true}))))}exports.AboutCard=Ct;//# sourceMappingURL=AboutCard.cjs.map
15
+ truncate`,w,t==="filled"?te[r]:t==="transparent"?"bg-transparent text-text":oe[r],e),disabled:i||s,type:"button",...c},typeof n=="string"?m__namespace.createElement(x,{variant:o??"body-xxs-semibold",color:"inherit"},n):n,a));E.displayName="Button";var R={12:"h-[12px] w-[12px]",16:"h-[16px] w-[16px]",18:"h-[18px] w-[18px]",20:"h-[20px] w-[20px]",24:"h-[24px] w-[24px]",32:"h-[32px] w-[32px]",36:"h-[36px] w-[36px]",40:"h-[40px] w-[40px]",42:"h-[42px] w-[42px]",48:"h-[48px] w-[48px]",64:"h-[64px] w-[64px]",72:"h-[72px] w-[72px]",80:"h-[80px] w-[80px]"},z={sm:{12:"sm:h-[12px] sm:w-[12px]",16:"sm:h-[16px] sm:w-[16px]",18:"sm:h-[18px] sm:w-[18px]",20:"sm:h-[20px] sm:w-[20px]",24:"sm:h-[24px] sm:w-[24px]",32:"sm:h-[32px] sm:w-[32px]",36:"sm:h-[36px] sm:w-[36px]",40:"sm:h-[40px] sm:w-[40px]",42:"sm:h-[42px] sm:w-[42px]",48:"sm:h-[48px] sm:w-[48px]",64:"sm:h-[64px] sm:w-[64px]",72:"sm:h-[72px] sm:w-[72px]",80:"sm:h-[80px] sm:w-[80px]"},md:{12:"md:h-[12px] md:w-[12px]",16:"md:h-[16px] md:w-[16px]",18:"md:h-[18px] md:w-[18px]",20:"md:h-[20px] md:w-[20px]",24:"md:h-[24px] md:w-[24px]",32:"md:h-[32px] md:w-[32px]",36:"md:h-[36px] md:w-[36px]",40:"md:h-[40px] md:w-[40px]",42:"md:h-[42px] md:w-[42px]",48:"md:h-[48px] md:w-[48px]",64:"md:h-[64px] md:w-[64px]",72:"md:h-[72px] md:w-[72px]",80:"md:h-[80px] md:w-[80px]"},lg:{12:"lg:h-[12px] lg:w-[12px]",16:"lg:h-[16px] lg:w-[16px]",18:"lg:h-[18px] lg:w-[18px]",20:"lg:h-[20px] lg:w-[20px]",24:"lg:h-[24px] lg:w-[24px]",32:"lg:h-[32px] lg:w-[32px]",36:"lg:h-[36px] lg:w-[36px]",40:"lg:h-[40px] lg:w-[40px]",42:"lg:h-[42px] lg:w-[42px]",48:"lg:h-[48px] lg:w-[48px]",64:"lg:h-[64px] lg:w-[64px]",72:"lg:h-[72px] lg:w-[72px]",80:"lg:h-[80px] lg:w-[80px]"},xl:{12:"xl:h-[12px] xl:w-[12px]",16:"xl:h-[16px] xl:w-[16px]",18:"xl:h-[18px] xl:w-[18px]",20:"xl:h-[20px] xl:w-[20px]",24:"xl:h-[24px] xl:w-[24px]",32:"xl:h-[32px] xl:w-[32px]",36:"xl:h-[36px] xl:w-[36px]",40:"xl:h-[40px] xl:w-[40px]",42:"xl:h-[42px] xl:w-[42px]",48:"xl:h-[48px] xl:w-[48px]",64:"xl:h-[64px] xl:w-[64px]",72:"xl:h-[72px] xl:w-[72px]",80:"xl:h-[80px] xl:w-[80px]"},"2xl":{12:"2xl:h-[12px] 2xl:w-[12px]",16:"2xl:h-[16px] 2xl:w-[16px]",18:"2xl:h-[18px] 2xl:w-[18px]",20:"2xl:h-[20px] 2xl:w-[20px]",24:"2xl:h-[24px] 2xl:w-[24px]",32:"2xl:h-[32px] 2xl:w-[32px]",36:"2xl:h-[36px] 2xl:w-[36px]",40:"2xl:h-[40px] 2xl:w-[40px]",42:"2xl:h-[42px] 2xl:w-[42px]",48:"2xl:h-[48px] 2xl:w-[48px]",64:"2xl:h-[64px] 2xl:w-[64px]",72:"2xl:h-[72px] 2xl:w-[72px]",80:"2xl:h-[80px] 2xl:w-[80px]"}},C=e=>String(e),H=(e,o=24)=>{let t=[],r={};if(e===void 0){let s=C(o);s?t.push(R[s]):(r.height=`${o}px`,r.width=`${o}px`);}if(typeof e=="number"){let s=C(e);s?t.push(R[s]):(r.height=`${e}px`,r.width=`${e}px`);}if(Array.isArray(e)){let s=C(o),n=[s&&R[s]||`h-[${o}px] w-[${o}px]`];e.forEach(i=>{if(typeof i=="string"){let[a,c]=i.split(":"),p=parseInt(c,10),f=C(p);t.push(f&&z[a]?.[f]||`${a}:h-[${p}px] ${a}:w-[${p}px]`);}}),t.push(...n);}if(typeof e=="string"){let[s,n]=e.split(":"),i=parseInt(n,10),a=C(i);t.push(a&&z[s]?.[a]||`${s}:h-[${i}px] ${s}:w-[${i}px]`);}return {responsiveSizeClasses:t.join(" "),responsiveSizeStyles:r}};var F={primary:"var(--color-primary)",secondary:"var(--color-secondary)",white:"var(--color-white)",primaryBlue:"var(--color-primary-100)",disabled:"var(--color-disabled)",danger:"var(--color-danger)",tertiary:"var(--color-tertiary-20)"},T=m__namespace.default.forwardRef(({name:e,size:o=24,color:t="primary",title:r,className:s,style:n={},...i},a)=>{let c=icons.IconMap[e],{responsiveSizeClasses:p,responsiveSizeStyles:f}=H(o,24);return m__namespace.default.createElement("div",{className:l("flex justify-center items-center",p,s),style:{"--icon-stroke":F[t],...f,...n}},m__namespace.default.createElement(c,{ref:a,"aria-hidden":!r,"aria-label":r,stroke:e.includes("filled")?void 0:F[t],...i}))});T.displayName="Icon";var se={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"}},K=m__namespace.forwardRef(({title:e,message:o,action:t,secondaryAction:r,variant:s="default",duration:n=5e3,className:i,onOpenChange:a,allowOutsideClick:c=true,onClose:p,...f},v)=>{let b=se[s],Z=m__namespace.useCallback(S=>{!c&&S===false||(a?.(S),S||p?.());},[a,c,p]);return m__namespace.createElement(h__namespace.Root,{ref:v,onOpenChange:Z,duration:n,className:l("group pointer-events-auto relative flex w-full flex-col gap-4 rounded-lg p-4 items-center","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",b.className,i),...f},m__namespace.createElement(h__namespace.Close,{className:"absolute right-1 top-1 h-[40px] w-[40px] p-1 hover:bg-background-0/10 flex items-center justify-center rounded-lg","aria-label":"Close",onClick:p},m__namespace.createElement(T,{name:"close",size:16,color:"white"})),m__namespace.createElement("div",{className:"flex gap-4"},m__namespace.createElement(T,{name:b.icon,className:"h-5 w-5 shrink-0",color:"white"}),m__namespace.createElement("div",{className:"flex flex-col flex-1 gap-2"},e&&m__namespace.createElement(h__namespace.Title,{asChild:true},m__namespace.createElement(x,{variant:"body-default-bold",color:"inherit"},e)),m__namespace.createElement(h__namespace.Description,{asChild:true},m__namespace.createElement(x,{variant:"body-xs-medium",color:"inherit"},o)))),(t||r)&&m__namespace.createElement("div",{className:"flex gap-2 justify-end mt-2"},r&&m__namespace.createElement(h__namespace.Action,{asChild:true,altText:r.label},m__namespace.createElement("div",{className:"min-h-[40px] flex items-center"},m__namespace.createElement(E,{variant:r.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:r.onClick},r.label))),t&&m__namespace.createElement(h__namespace.Action,{asChild:true,altText:t.label},m__namespace.createElement("div",{className:"flex items-center"},m__namespace.createElement(E,{variant:t.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:t.onClick},t.label)))))});K.displayName="Toast";var _=typeof window<"u"?m.useLayoutEffect:m.useEffect;var I=m__namespace.default.forwardRef(({children:e,type:o="button",className:t,disabled:r,...s},n)=>m__namespace.default.createElement("button",{ref:n,type:o,disabled:r,className:l("appearance-none hover:opacity-80 transition-all active:scale-95",w,r&&"opacity-50 cursor-not-allowed",t),...s},e));I.displayName="Pressable";function B({children:e,maxHeight:o=100}){let[t,r]=m__namespace.default.useState(false),s=m.useRef(null),[n,i]=m.useState(o);_(()=>{if(!s.current)return;let c=new ResizeObserver(p=>{for(let f of p)i(f.target.scrollHeight);});return c.observe(s.current),()=>c.disconnect()},[]);let a=n>o;return m__namespace.default.createElement(k__namespace.Root,{open:t,onOpenChange:r},m__namespace.default.createElement("div",{className:"relative"},m__namespace.default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:t?`${n}px`:`${o}px`}},m__namespace.default.createElement("div",{ref:s,className:"w-full"},e)),a&&m__namespace.default.createElement(k__namespace.Trigger,{asChild:true},m__namespace.default.createElement(I,{className:l("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-background-0 to-background-0","hover:opacity-100 transition-opacity")},m__namespace.default.createElement(x,{variant:"label-default",color:"secondary"},t?"See less":"See more")))))}B.displayName="Collapsible";var D={sm:"h-4",md:"h-6",lg:"h-8"},pe={sm:"w-20",md:"w-32",lg:"w-48"},V={sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"},M=m__namespace.default.forwardRef(({variant:e="text",size:o="md",lines:t=1,className:r,animate:s=true},n)=>{let i="bg-secondary-50 rounded-lg overflow-hidden",a=s?"animate-pulse":"",p=typeof o=="number"?(v=>({height:`${v}px`,width:e==="avatar"||e==="image"?`${v}px`:void 0}))(o):void 0,f=()=>{switch(e){case "text":return m__namespace.default.createElement("div",{className:"flex flex-col gap-2"},Array.from({length:t}).map((v,b)=>m__namespace.default.createElement("div",{key:b,style:p,className:l(i,a,typeof o=="string"?D[o]:void 0,b===t-1&&t>1?"w-3/4":"w-full",r)})));case "image":return m__namespace.default.createElement("div",{style:p,className:l(i,a,(!p||!r)&&"aspect-square w-full max-w-[300px]",r)});case "button":return m__namespace.default.createElement("div",{style:p,className:l(i,a,typeof o=="string"&&[D[o],pe[o]],r)});case "card":return m__namespace.default.createElement("div",{className:l("flex flex-col gap-4 p-6 border border-stroke rounded-xl",r)},m__namespace.default.createElement("div",{className:l(i,a,"w-16 h-16 rounded-full")}),m__namespace.default.createElement("div",{className:"space-y-2"},m__namespace.default.createElement("div",{className:l(i,a,"h-6 w-3/4")}),m__namespace.default.createElement("div",{className:l(i,a,"h-4 w-1/2")})),m__namespace.default.createElement("div",{className:"space-y-2"},m__namespace.default.createElement("div",{className:l(i,a,"h-4 w-full")}),m__namespace.default.createElement("div",{className:l(i,a,"h-4 w-full")}),m__namespace.default.createElement("div",{className:l(i,a,"h-4 w-2/3")})));case "avatar":return m__namespace.default.createElement("div",{style:p,className:l(i,a,"rounded-full",{[V.sm]:o==="sm",[V.md]:o==="md",[V.lg]:o==="lg"},r)});default:return null}};return m__namespace.default.createElement("div",{ref:n,className:l("w-full",r)},f())});M.displayName="Fallback";function j({icon:e,size:o=40,className:t}){let r=e.match(/<svg[^>]*>([\s\S]*?)<\/svg>/),{responsiveSizeClasses:s,responsiveSizeStyles:n}=H(o,40);if(!r)return m__namespace.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...n},className:l(s,t)});let i=e.match(/<svg([^>]*)>/),c=(i?i[1]:"").match(/viewBox=["']([^"']*)["']/),p=c?c[1]:"0 0 40 40";return m__namespace.default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...n},className:l(s,t)},m__namespace.default.createElement("svg",{width:"100%",height:"100%",viewBox:p,preserveAspectRatio:"xMidYMid meet",dangerouslySetInnerHTML:{__html:r[1]}}))}j.displayName="IconRenderer";function Q({children:e,color:o="inherit",variant:t="body-default-semibold",href:r,className:s,...n}){return m__namespace.default.createElement(x,{variant:t,color:o},m__namespace.default.createElement("a",{href:r,className:l("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline text-ellipsis",w,s),...n},e))}function N({icon:e,children:o,href:t,isLoading:r,...s}){return r?m__namespace.default.createElement("div",{className:"row gap-2 flex items-center"},m__namespace.default.createElement(M,{variant:"image",size:30,className:"rounded-full"}),m__namespace.default.createElement(M,{variant:"text",size:"sm",className:"w-32"})):m__namespace.default.createElement("div",{className:"row gap-2 flex items-center min-w-0"},m__namespace.default.createElement("div",{className:"flex-shrink-0 bg-secondary-400 rounded-full p-2.5 items-center justify-center"},e?m__namespace.default.createElement(j,{icon:e,size:18,className:"text-primary"}):m__namespace.default.createElement(T,{name:"link",size:18,className:"text-primary"})),m__namespace.default.createElement("div",{className:"min-w-0 flex-1"},t?m__namespace.default.createElement(Q,{className:"hover:underline truncate block text-primary",href:t,...s,variant:["body-default-semibold","md:body-default-semibold"]},o):m__namespace.default.createElement(x,{variant:"body-default-semibold",className:"truncate block text-primary"},o)))}function Lt({contactItems:e,description:o,isEditMode:t=false,onEditClick:r,isLoading:s,...n}){return m__namespace.default.createElement("div",{className:"border border-secondary-50 rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4 w-full",...n},m__namespace.default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},m__namespace.default.createElement(B,{maxHeight:120},s||!o?m__namespace.default.createElement(M,{variant:"text",lines:4}):m__namespace.default.createElement(x,{variant:"body-default"},o))),m__namespace.default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),m__namespace.default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),m__namespace.default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-4 sm:pl-10 pt-6 sm:pt-8"},e?e.map(i=>m__namespace.default.createElement(N,{key:i.title,...i})):m__namespace.default.createElement(m__namespace.default.Fragment,null,m__namespace.default.createElement(N,{isLoading:true}),m__namespace.default.createElement(N,{isLoading:true}))))}exports.AboutCard=Lt;//# sourceMappingURL=AboutCard.cjs.map
16
16
  //# sourceMappingURL=AboutCard.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/index.ts","../../src/components/Text.tsx","../../src/utils/tailwind.ts","../../src/components/Button.tsx","../../src/utils/responsive.ts","../../src/components/Icon.tsx","../../src/components/Toast.tsx","../../src/hooks/useIsomorphicLayoutEffect.tsx","../../src/components/Pressable.tsx","../../src/components/Collapsible.tsx","../../src/components/Fallback.tsx","../../src/components/IconRenderer.tsx","../../src/components/Link.tsx","../../src/components/ContactItem.tsx","../../src/components/AboutCard.tsx"],"names":["cn","inputs","twMerge","clsx","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","focusRingStyles","filled","outlined","Button","C","isLoading","disabled","end","BASE_SIZES","RESPONSIVE_SIZES","getSizeKey","getResponsiveSize","baseSize","classes","styles","key","baseKey","responsiveClasses","s","valueStr","value","valueKey","COLOR_MAP","Icon","name","title","style","IconComponent","IconMap","responsiveSizeClasses","responsiveSizeStyles","Toast","p","message","action","secondaryAction","duration","onOpenChange","allowOutsideClick","onClose","variantConfig","handleOpenChange","open","h","useIsomorphicLayoutEffect","useLayoutEffect","useEffect","Pressable","type","Collapsible","maxHeight","setOpen","contentRef","useRef","contentHeight","setContentHeight","useState","resizeObserver","entries","entry","shouldShowTrigger","k","sizeMap","widthMap","avatarSizeMap","Fallback","lines","animate","baseClasses","animationClasses","customStyle","renderContent","_","index","IconRenderer","icon","svgMatch","attributesMatch","viewBoxMatch","viewBox","Link","href","ContactItem","linkProps","AboutCard","contactItems","description","isEditMode","onEditClick","contactProps"],"mappings":"wpBAGO,SAASA,CAAAA,CAAAA,GAAMC,CAAsB,CAAA,CAC1C,OAAOC,qBAAQC,CAAAA,SAAAA,CAAKF,CAAM,CAAC,CAC7B,CCoEA,IAAMG,EAAmD,CACvD,EAAA,CAAI,IACJ,CAAA,EAAA,CAAI,IACJ,CAAA,EAAA,CAAI,KACJ,EAAI,CAAA,IAAA,CACJ,EAAI,CAAA,IACN,CAEMC,CAAAA,CAAAA,CAAyBC,GAAwC,CACrE,GAAM,CAACC,CAAAA,CAAUC,CAAI,CAAA,CAAIF,EAAQ,KAAM,CAAA,GAAG,CAE1C,CAAA,OAAIC,CAAa,GAAA,SAAA,CACRH,EAAoBI,CAAI,CAAA,EAAK,GAGlCD,CAAAA,CAAAA,GAAa,OACR,CAAA,OAAA,CAGF,GACT,CAIME,CAAAA,CAAAA,CAAqC,CACzC,KAAA,CAAO,YACP,CAAA,OAAA,CAAS,eACT,QAAU,CAAA,eAAA,CACV,IAAM,CAAA,WACR,CAwBMC,CAAAA,EAAAA,CACJC,GAEKA,CAEgB,CAAA,CAAA,KAAA,CAAM,OAAQA,CAAAA,CAAQ,CAAIA,CAAAA,CAAAA,CAAW,CAACA,CAAQ,CAGhE,EAAA,GAAA,CAAKL,CAAY,EAAA,CAChB,GAAIA,CAAAA,CAAQ,SAAS,GAAG,CAAA,CAAG,CACzB,GAAM,CAACM,CAAAA,CAAYC,CAAe,CAAIP,CAAAA,CAAAA,CAAQ,KAAM,CAAA,GAAG,CACvD,CAAA,OAAO,GAAGM,CAAU,CAAA,MAAA,EAASC,CAAe,CAAA,CAC9C,CACA,OAAO,QAAQP,CAAO,CAAA,CACxB,CAAC,CAAA,CACA,IAAK,CAA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AAAA,CAAAA,CAAA,CAAY,SAAW,CAAA,GAAA,CAAA,CACrB5C,GAAa,CAACiF,CAAAA,CACblG,oBAAA,CAAA,aAAA,CAAC6E,CAAA,CAAA,CAAS,QAAQ,MAAO,CAAA,KAAA,CAAO,CAAG,CAAA,CAAA,CAEnC7E,oBAAA,CAAA,aAAA,CAACD,EAAA,CAAK,OAAA,CAAQ,cAAgBmG,CAAAA,CAAAA,CAAY,CAE9C,CACF,EAEAlG,oBAAA,CAAA,aAAA,CAAC,QAAK,SAAU,CAAA,yEAAA,CAA0E,EAE1FA,oBAAA,CAAA,aAAA,CAAC,MAAK,CAAA,CAAA,SAAA,CAAU,2DAA4D,CAAA,CAAA,CAC5EA,qBAAA,aAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,2DAAA,CAAA,CACZiG,CACCA,CAAAA,CAAAA,CAAa,IAAKI,CAChBrG,EAAAA,oBAAAA,CAAA,aAAC8F,CAAAA,CAAAA,CAAA,CAAY,GAAA,CAAKO,EAAa,KAAQ,CAAA,GAAGA,CAAc,CAAA,CACzD,CAEDrG,CAAAA,oBAAAA,CAAA,cAAAA,oBAAA,CAAA,QAAA,CAAA,IAAA,CACEA,oBAAA,CAAA,aAAA,CAAC8F,CAAA,CAAA,CAAY,UAAS,IAAC,CAAA,CAAA,CACvB9F,oBAAA,CAAA,aAAA,CAAC8F,CAAA,CAAA,CAAY,UAAS,IAAC,CAAA,CACzB,CAEJ,CACF,CAEJ","file":"AboutCard.cjs","sourcesContent":["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 React from \"react\";\n\nimport type { Typography } from \"../types/tailwind\";\nimport type { Breakpoint } from \"../utils/responsive\";\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 | \"primary-100\";\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\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 using Tailwind classes that reference CSS variables\n const colorClasses = color === \"inherit\" ? \"text-inherit\" : `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={`\n font-sans antialiased\n ${typographyClasses}\n ${colorClasses}\n ${weight && `!${fontWeight[weight]}`}\n ${className}\n `}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nText.displayName = \"Text\";\n","import type { 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 const breakpoints = [\"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const sizes = [\"24\", \"42\", \"48\", \"64\", \"72\"]; // Add all the sizes you need\n\n const safelist: (string | { pattern: RegExp; variants: 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 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 // Generate size classes with responsive variants\n const sizeClasses = sizes.flatMap((size) => [\n `h-[${size}px]`,\n `w-[${size}px]`,\n ...breakpoints.flatMap((bp) => [\n `${bp}:h-[${size}px]`,\n `${bp}:w-[${size}px]`\n ])\n ]);\n\n return [...typographyClasses, ...responsiveTypographyClasses, ...sizeClasses];\n};\n\nexport const focusRingStyles =\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100\";\nexport const focusRingWithinStyles =\n \"focus-within:outline-none focus-within:ring-2 focus-within:ring-primary-100\";\nexport const focusRingStylesCoerced = \"ring-2 ring-primary-100\";\n","import * as React from \"react\";\n\nimport { Text } from \"./Text\";\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\n\nexport type ButtonProps = {\n /** @default filled */\n variant?: \"filled\" | \"outlined\" | \"transparent\";\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-primary 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-primary\",\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\"\n ? filled[color]\n : variant === \"transparent\"\n ? \"bg-transparent text-text\"\n : 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","export type Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\nexport type ResponsiveSize = number | `${Breakpoint}:${number}`;\n\ntype SizeKey =\n | \"12\"\n | \"16\"\n | \"18\"\n | \"20\"\n | \"24\"\n | \"32\"\n | \"36\"\n | \"40\"\n | \"42\"\n | \"48\"\n | \"64\"\n | \"72\";\n\n// These constants help Tailwind identify the classes during compilation\nconst BASE_SIZES: Record<SizeKey, string> = {\n \"12\": \"h-[12px] w-[12px]\",\n \"16\": \"h-[16px] w-[16px]\",\n \"18\": \"h-[18px] w-[18px]\",\n \"20\": \"h-[20px] w-[20px]\",\n \"24\": \"h-[24px] w-[24px]\",\n \"32\": \"h-[32px] w-[32px]\",\n \"36\": \"h-[36px] w-[36px]\",\n \"40\": \"h-[40px] w-[40px]\",\n \"42\": \"h-[42px] w-[42px]\",\n \"48\": \"h-[48px] w-[48px]\",\n \"64\": \"h-[64px] w-[64px]\",\n \"72\": \"h-[72px] w-[72px]\"\n};\n\nconst RESPONSIVE_SIZES: Record<Breakpoint, Record<SizeKey, string>> = {\n sm: {\n \"12\": \"sm:h-[12px] sm:w-[12px]\",\n \"16\": \"sm:h-[16px] sm:w-[16px]\",\n \"18\": \"sm:h-[18px] sm:w-[18px]\",\n \"20\": \"sm:h-[20px] sm:w-[20px]\",\n \"24\": \"sm:h-[24px] sm:w-[24px]\",\n \"32\": \"sm:h-[32px] sm:w-[32px]\",\n \"36\": \"sm:h-[36px] sm:w-[36px]\",\n \"40\": \"sm:h-[40px] sm:w-[40px]\",\n \"42\": \"sm:h-[42px] sm:w-[42px]\",\n \"48\": \"sm:h-[48px] sm:w-[48px]\",\n \"64\": \"sm:h-[64px] sm:w-[64px]\",\n \"72\": \"sm:h-[72px] sm:w-[72px]\"\n },\n md: {\n \"12\": \"md:h-[12px] md:w-[12px]\",\n \"16\": \"md:h-[16px] md:w-[16px]\",\n \"18\": \"md:h-[18px] md:w-[18px]\",\n \"20\": \"md:h-[20px] md:w-[20px]\",\n \"24\": \"md:h-[24px] md:w-[24px]\",\n \"32\": \"md:h-[32px] md:w-[32px]\",\n \"36\": \"md:h-[36px] md:w-[36px]\",\n \"40\": \"md:h-[40px] md:w-[40px]\",\n \"42\": \"md:h-[42px] md:w-[42px]\",\n \"48\": \"md:h-[48px] md:w-[48px]\",\n \"64\": \"md:h-[64px] md:w-[64px]\",\n \"72\": \"md:h-[72px] md:w-[72px]\"\n },\n lg: {\n \"12\": \"lg:h-[12px] lg:w-[12px]\",\n \"16\": \"lg:h-[16px] lg:w-[16px]\",\n \"18\": \"lg:h-[18px] lg:w-[18px]\",\n \"20\": \"lg:h-[20px] lg:w-[20px]\",\n \"24\": \"lg:h-[24px] lg:w-[24px]\",\n \"32\": \"lg:h-[32px] lg:w-[32px]\",\n \"36\": \"lg:h-[36px] lg:w-[36px]\",\n \"40\": \"lg:h-[40px] lg:w-[40px]\",\n \"42\": \"lg:h-[42px] lg:w-[42px]\",\n \"48\": \"lg:h-[48px] lg:w-[48px]\",\n \"64\": \"lg:h-[64px] lg:w-[64px]\",\n \"72\": \"lg:h-[72px] lg:w-[72px]\"\n },\n xl: {\n \"12\": \"xl:h-[12px] xl:w-[12px]\",\n \"16\": \"xl:h-[16px] xl:w-[16px]\",\n \"18\": \"xl:h-[18px] xl:w-[18px]\",\n \"20\": \"xl:h-[20px] xl:w-[20px]\",\n \"24\": \"xl:h-[24px] xl:w-[24px]\",\n \"32\": \"xl:h-[32px] xl:w-[32px]\",\n \"36\": \"xl:h-[36px] xl:w-[36px]\",\n \"40\": \"xl:h-[40px] xl:w-[40px]\",\n \"42\": \"xl:h-[42px] xl:w-[42px]\",\n \"48\": \"xl:h-[48px] xl:w-[48px]\",\n \"64\": \"xl:h-[64px] xl:w-[64px]\",\n \"72\": \"xl:h-[72px] xl:w-[72px]\"\n },\n \"2xl\": {\n \"12\": \"2xl:h-[12px] 2xl:w-[12px]\",\n \"16\": \"2xl:h-[16px] 2xl:w-[16px]\",\n \"18\": \"2xl:h-[18px] 2xl:w-[18px]\",\n \"20\": \"2xl:h-[20px] 2xl:w-[20px]\",\n \"24\": \"2xl:h-[24px] 2xl:w-[24px]\",\n \"32\": \"2xl:h-[32px] 2xl:w-[32px]\",\n \"36\": \"2xl:h-[36px] 2xl:w-[36px]\",\n \"40\": \"2xl:h-[40px] 2xl:w-[40px]\",\n \"42\": \"2xl:h-[42px] 2xl:w-[42px]\",\n \"48\": \"2xl:h-[48px] 2xl:w-[48px]\",\n \"64\": \"2xl:h-[64px] 2xl:w-[64px]\",\n \"72\": \"2xl:h-[72px] 2xl:w-[72px]\"\n }\n};\n\nconst getSizeKey = (size: number): SizeKey | undefined => {\n return String(size) as SizeKey;\n};\n\nexport const getResponsiveSize = (\n size: ResponsiveSize | ResponsiveSize[] | undefined,\n baseSize: number = 24\n): {\n responsiveSizeClasses: string;\n responsiveSizeStyles: Record<string, string>;\n} => {\n const classes: string[] = [];\n const styles: Record<string, string> = {};\n\n // If no size provided, use baseSize\n if (size === undefined) {\n const key = getSizeKey(baseSize);\n if (key) {\n classes.push(BASE_SIZES[key]);\n } else {\n styles.height = `${baseSize}px`;\n styles.width = `${baseSize}px`;\n }\n }\n\n // If size is a number, use that directly\n if (typeof size === \"number\") {\n const key = getSizeKey(size);\n if (key) {\n classes.push(BASE_SIZES[key]);\n } else {\n styles.height = `${size}px`;\n styles.width = `${size}px`;\n }\n }\n\n // If array of responsive sizes, generate responsive classes\n if (Array.isArray(size)) {\n const baseKey = getSizeKey(baseSize);\n const responsiveClasses = [\n (baseKey && BASE_SIZES[baseKey]) || `h-[${baseSize}px] w-[${baseSize}px]`\n ];\n\n size.forEach((s) => {\n if (typeof s === \"string\") {\n const [breakpoint, valueStr] = s.split(\":\") as [Breakpoint, string];\n const value = parseInt(valueStr, 10);\n const key = getSizeKey(value);\n classes.push(\n (key && RESPONSIVE_SIZES[breakpoint]?.[key]) ||\n `${breakpoint}:h-[${value}px] ${breakpoint}:w-[${value}px]`\n );\n }\n });\n\n classes.push(...responsiveClasses);\n }\n\n if (typeof size === \"string\") {\n const [breakpoint, valueStr] = size.split(\":\") as [Breakpoint, string];\n const value = parseInt(valueStr, 10);\n const valueKey = getSizeKey(value);\n classes.push(\n (valueKey && RESPONSIVE_SIZES[breakpoint]?.[valueKey]) ||\n `${breakpoint}:h-[${value}px] ${breakpoint}:w-[${value}px]`\n );\n }\n\n return {\n responsiveSizeClasses: classes.join(\" \"),\n responsiveSizeStyles: styles\n };\n};\n","import type { IconName } from \"@deckai/icons\";\nimport { IconMap } from \"@deckai/icons\";\nimport type { SVGProps } from \"react\";\nimport React from \"react\";\n\nimport type { IconColors } from \"../types/tailwind\";\nimport { cn } from \"../utils\";\nimport type { ResponsiveSize } from \"../utils/responsive\";\nimport { getResponsiveSize } from \"../utils/responsive\";\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\n// Using CSS variables to support dark mode\nconst COLOR_MAP: Record<IconColors, string> = {\n primary: \"var(--color-primary)\",\n secondary: \"var(--color-secondary)\",\n white: \"var(--color-white)\",\n primaryBlue: \"var(--color-primary-100)\",\n disabled: \"var(--color-disabled)\",\n danger: \"var(--color-danger)\"\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 { responsiveSizeClasses, responsiveSizeStyles } = getResponsiveSize(\n size,\n 24\n );\n\n return (\n <div\n className={cn(\n \"flex justify-center items-center\",\n responsiveSizeClasses,\n className\n )}\n style={{\n [\"--icon-stroke\" as string]: COLOR_MAP[color],\n ...responsiveSizeStyles,\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 type { IconName } from \"@deckai/icons\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport * as React from \"react\";\n\nimport { cn } from \"../utils\";\nimport type { ButtonProps } from \"./Button\";\nimport { Button } from \"./Button\";\nimport { Icon } from \"./Icon\";\nimport { Text } from \"./Text\";\n\ntype ToastAction = {\n label: string;\n onClick?: () => void;\n variant?: ButtonProps[\"variant\"];\n};\n\nexport type ToastProps = Omit<ToastPrimitive.ToastProps, \"action\"> & {\n /** Optional title for the toast */\n title?: string;\n /** Main message content */\n message: string;\n /** Primary action button configuration */\n action?: ToastAction;\n /** Secondary action button configuration */\n secondaryAction?: ToastAction;\n /** Optional variant to change the visual style */\n variant?: \"default\" | \"success\" | \"error\" | \"warning\";\n /** Whether to allow dismissing by clicking outside */\n allowOutsideClick?: boolean;\n /** Optional className for custom styling */\n className?: string;\n /** Optional callback when toast is closed */\n onClose?: () => void;\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 secondaryAction,\n variant = \"default\",\n duration = 5000,\n className,\n onOpenChange,\n allowOutsideClick = true,\n onClose,\n ...props\n },\n ref\n ) => {\n const variantConfig = variants[variant];\n\n const handleOpenChange = React.useCallback(\n (open: boolean) => {\n // Only allow programmatic close or close button click if outside click is disabled\n if (!allowOutsideClick && open === false) {\n return;\n }\n onOpenChange?.(open);\n if (!open) {\n onClose?.();\n }\n },\n [onOpenChange, allowOutsideClick, onClose]\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 flex-col gap-4 rounded-lg p-4 items-center\",\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 <ToastPrimitive.Close\n className=\"absolute right-1 top-1 h-[40px] w-[40px] p-1 hover:bg-background-0/10 flex items-center justify-center rounded-lg\"\n aria-label=\"Close\"\n onClick={onClose}\n >\n <Icon name=\"close\" size={16} color=\"white\" />\n </ToastPrimitive.Close>\n\n <div className=\"flex gap-4\">\n <Icon\n name={variantConfig.icon}\n className=\"h-5 w-5 shrink-0\"\n color=\"white\"\n />\n\n <div className=\"flex flex-col 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 </div>\n\n {(action || secondaryAction) && (\n <div className=\"flex gap-2 justify-end mt-2\">\n {secondaryAction && (\n <ToastPrimitive.Action asChild altText={secondaryAction.label}>\n <div className=\"min-h-[40px] flex items-center\">\n <Button\n variant={secondaryAction.variant || \"outlined\"}\n color=\"black\"\n className=\"border-white text-white hover:bg-background-0/10\"\n onClick={secondaryAction.onClick}\n >\n {secondaryAction.label}\n </Button>\n </div>\n </ToastPrimitive.Action>\n )}\n {action && (\n <ToastPrimitive.Action asChild altText={action.label}>\n <div className=\"flex items-center\">\n <Button\n variant={action.variant || \"outlined\"}\n color=\"black\"\n className=\"border-white text-white hover:bg-background-0/10\"\n onClick={action.onClick}\n >\n {action.label}\n </Button>\n </div>\n </ToastPrimitive.Action>\n )}\n </div>\n )}\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 type { ButtonHTMLAttributes } from \"react\";\nimport React from \"react\";\n\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\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 RadixCollapsible from \"@radix-ui/react-collapsible\";\nimport React, { useRef, useState } from \"react\";\n\nimport { useIsomorphicLayoutEffect } from \"../hooks\";\nimport { cn } from \"../utils\";\nimport { Pressable } from \"./Pressable\";\nimport { Text } from \"./Text\";\n\nexport type CollapsibleProps = {\n children: React.ReactNode;\n maxHeight?: number;\n};\n\nexport function Collapsible({ children, maxHeight = 100 }: 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 &&\n \"bg-gradient-to-b from-transparent via-background-0 to-background-0\",\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\";\n\nimport { cn } from \"../utils\";\n\nexport type FallbackVariant = \"text\" | \"image\" | \"button\" | \"card\" | \"avatar\";\nexport type FallbackSize = \"sm\" | \"md\" | \"lg\" | number;\n\nexport type FallbackProps = {\n /**\n * The type of content being loaded\n */\n variant?: FallbackVariant;\n /**\n * The size of the fallback element\n * Can be a predefined size ('sm' | 'md' | 'lg') or a custom pixel value\n */\n size?: FallbackSize;\n /**\n * Whether to show multiple lines (only applies to text variant)\n */\n lines?: number;\n /**\n * Additional classes to apply to the fallback\n */\n className?: string;\n /**\n * Whether to show the loading animation\n */\n animate?: boolean;\n};\n\n// Updated to match existing component sizes\nconst sizeMap = {\n sm: \"h-4\", // 16px\n md: \"h-6\", // 24px\n lg: \"h-8\" // 32px\n};\n\n// Updated to match existing component sizes\nconst widthMap = {\n sm: \"w-20\", // 80px\n md: \"w-32\", // 128px\n lg: \"w-48\" // 192px\n};\n\n// Updated to match Avatar sizes\nconst avatarSizeMap = {\n sm: \"w-8 h-8\", // 32px\n md: \"w-12 h-12\", // 48px\n lg: \"w-16 h-16\" // 64px\n};\n\nexport const Fallback = React.forwardRef<HTMLDivElement, FallbackProps>(\n (\n { variant = \"text\", size = \"md\", lines = 1, className, animate = true },\n ref\n ) => {\n const baseClasses = \"bg-secondary-50 rounded-lg overflow-hidden\";\n const animationClasses = animate ? \"animate-pulse\" : \"\";\n\n const getCustomSizeStyle = (size: number) => ({\n height: `${size}px`,\n width:\n variant === \"avatar\" || variant === \"image\" ? `${size}px` : undefined\n });\n\n const customStyle =\n typeof size === \"number\" ? getCustomSizeStyle(size) : undefined;\n\n const renderContent = () => {\n switch (variant) {\n case \"text\":\n return (\n <div className=\"flex flex-col gap-2\">\n {Array.from({ length: lines }).map((_, index) => (\n <div\n key={index}\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n typeof size === \"string\" ? sizeMap[size] : undefined,\n index === lines - 1 && lines > 1 ? \"w-3/4\" : \"w-full\",\n className\n )}\n />\n ))}\n </div>\n );\n\n case \"image\":\n return (\n <div\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n (!customStyle || !className) &&\n \"aspect-square w-full max-w-[300px]\",\n className\n )}\n />\n );\n\n case \"button\":\n return (\n <div\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n typeof size === \"string\" && [sizeMap[size], widthMap[size]],\n className\n )}\n />\n );\n\n case \"card\":\n return (\n <div\n className={cn(\n \"flex flex-col gap-4 p-6 border border-stroke rounded-xl\",\n className\n )}\n >\n <div\n className={cn(\n baseClasses,\n animationClasses,\n \"w-16 h-16 rounded-full\"\n )}\n />\n <div className=\"space-y-2\">\n <div\n className={cn(baseClasses, animationClasses, \"h-6 w-3/4\")}\n />\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-1/2\")}\n />\n </div>\n <div className=\"space-y-2\">\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-full\")}\n />\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-full\")}\n />\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-2/3\")}\n />\n </div>\n </div>\n );\n\n case \"avatar\":\n return (\n <div\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n \"rounded-full\",\n {\n [avatarSizeMap.sm]: size === \"sm\",\n [avatarSizeMap.md]: size === \"md\",\n [avatarSizeMap.lg]: size === \"lg\"\n },\n className\n )}\n />\n );\n\n default:\n return null;\n }\n };\n\n return (\n <div ref={ref} className={cn(\"w-full\", className)}>\n {renderContent()}\n </div>\n );\n }\n);\n\nFallback.displayName = \"Fallback\";\n","import React from \"react\";\n\nimport { cn } from \"../utils\";\nimport type { ResponsiveSize } from \"../utils/responsive\";\nimport { getResponsiveSize } from \"../utils/responsive\";\n\nexport type IconRendererProps = {\n icon: string;\n size?: ResponsiveSize | ResponsiveSize[];\n className?: string;\n};\n\nexport function IconRenderer({\n icon,\n size = 40,\n className\n}: IconRendererProps) {\n // Extract SVG content from the string (everything between <svg> and </svg>)\n const svgMatch = icon.match(/<svg[^>]*>([\\s\\S]*?)<\\/svg>/);\n const { responsiveSizeClasses, responsiveSizeStyles } = getResponsiveSize(\n size,\n 40\n );\n\n if (!svgMatch) {\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...responsiveSizeStyles\n }}\n className={cn(responsiveSizeClasses, className)}\n />\n );\n }\n\n // Extract attributes from the SVG tag\n const attributesMatch = icon.match(/<svg([^>]*)>/);\n const attributesString = attributesMatch ? attributesMatch[1] : \"\";\n\n // Parse viewBox\n const viewBoxMatch = attributesString.match(/viewBox=[\"']([^\"']*)[\"']/);\n const viewBox = viewBoxMatch ? viewBoxMatch[1] : \"0 0 40 40\";\n\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...responsiveSizeStyles\n }}\n className={cn(responsiveSizeClasses, className)}\n >\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox={viewBox}\n preserveAspectRatio=\"xMidYMid meet\"\n dangerouslySetInnerHTML={{ __html: svgMatch[1] }}\n />\n </div>\n );\n}\n\nIconRenderer.displayName = \"IconRenderer\";\n","import React from \"react\";\n\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport type { TextProps } from \"./Text\";\nimport { Text } from \"./Text\";\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 function Link({\n children,\n color = \"inherit\",\n variant = \"body-default-semibold\",\n href,\n className,\n ...props\n}: LinkProps) {\n return (\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 text-ellipsis\",\n focusRingStyles,\n className\n )}\n {...props}\n >\n {children}\n </a>\n </Text>\n );\n}\n","import type { HTMLAttributes } from \"react\";\nimport React from \"react\";\n\nimport { Fallback } from \"./Fallback\";\nimport { Icon } from \"./Icon\";\nimport { IconRenderer } from \"./IconRenderer\";\nimport { Link } from \"./Link\";\nimport { Text } from \"./Text\";\n\nexport type ContactItemProps = {\n icon?: string;\n children?: React.ReactNode;\n href?: string;\n isLoading?: boolean;\n} & Omit<HTMLAttributes<HTMLAnchorElement>, \"color\">;\n\nexport function ContactItem({\n icon,\n children,\n href,\n isLoading,\n ...linkProps\n}: ContactItemProps) {\n return isLoading ? (\n <div className=\"row gap-2 flex items-center\">\n <Fallback variant=\"image\" size={30} className=\"rounded-full\" />\n <Fallback variant=\"text\" size=\"sm\" className=\"w-32\" />\n </div>\n ) : (\n <div className=\"row gap-2 flex items-center min-w-0\">\n <div className=\"flex-shrink-0 bg-secondary-400 rounded-full p-2.5 items-center justify-center\">\n {icon ? (\n <IconRenderer icon={icon} size={18} className=\"text-primary\" />\n ) : (\n <Icon name=\"link\" size={18} className=\"text-primary\" />\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n {href ? (\n <Link\n className=\"hover:underline truncate block text-primary\"\n href={href}\n {...linkProps}\n variant={[\"body-default-semibold\", \"md:body-default-semibold\"]}\n >\n {children}\n </Link>\n ) : (\n <Text\n variant=\"body-default-semibold\"\n className=\"truncate block text-primary\"\n >\n {children}\n </Text>\n )}\n </div>\n </div>\n );\n}\n","import React from \"react\";\n\nimport { Collapsible } from \"./Collapsible\";\nimport type { ContactItemProps } from \"./ContactItem\";\nimport { ContactItem } from \"./ContactItem\";\nimport { Fallback } from \"./Fallback\";\nimport { Text } from \"./Text\";\n\nexport type AboutCardProps = {\n contactItems?: ContactItemProps[];\n description?: string;\n isEditMode?: boolean;\n onEditClick?: () => void;\n isLoading?: boolean;\n};\n\nexport function AboutCard({\n contactItems,\n description,\n isEditMode = false,\n onEditClick,\n isLoading,\n ...props\n}: AboutCardProps) {\n return (\n <div\n className=\"border border-secondary-50 rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4 w-full\"\n {...props}\n >\n <div className=\"flex flex-col sm:w-1/2 w-full gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center\">\n <Collapsible maxHeight={120}>\n {isLoading || !description ? (\n <Fallback variant=\"text\" lines={4} />\n ) : (\n <Text variant=\"body-default\">{description}</Text>\n )}\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 sm:w-1/2 w-full gap-4 sm:pl-10 pt-6 sm:pt-8\">\n {contactItems ? (\n contactItems.map((contactProps) => (\n <ContactItem key={contactProps.title} {...contactProps} />\n ))\n ) : (\n <>\n <ContactItem isLoading />\n <ContactItem isLoading />\n </>\n )}\n </div>\n </div>\n );\n}\n"]}
1
+ {"version":3,"sources":["../../src/utils/index.ts","../../src/utils/tailwind.ts","../../src/components/Text.tsx","../../src/components/Button.tsx","../../src/utils/responsive.ts","../../src/components/Icon.tsx","../../src/components/Toast.tsx","../../src/hooks/useIsomorphicLayoutEffect.tsx","../../src/components/Pressable.tsx","../../src/components/Collapsible.tsx","../../src/components/ContactItem.tsx","../../src/components/Fallback.tsx","../../src/components/IconRenderer.tsx","../../src/components/Link.tsx","../../src/components/AboutCard.tsx"],"names":["cn","inputs","twMerge","clsx","focusRingStyles","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","filled","outlined","Button","L","textVariant","isLoading","disabled","end","BASE_SIZES","RESPONSIVE_SIZES","getSizeKey","getResponsiveSize","baseSize","classes","styles","key","baseKey","responsiveClasses","s","valueStr","value","valueKey","COLOR_MAP","Icon","name","title","style","IconComponent","IconMap","responsiveSizeClasses","responsiveSizeStyles","Toast","m","message","action","secondaryAction","duration","onOpenChange","allowOutsideClick","onClose","variantConfig","handleOpenChange","open","h","useIsomorphicLayoutEffect","useLayoutEffect","useEffect","Pressable","type","Collapsible","maxHeight","setOpen","contentRef","useRef","contentHeight","setContentHeight","useState","resizeObserver","entries","entry","shouldShowTrigger","k","sizeMap","widthMap","avatarSizeMap","Fallback","lines","animate","baseClasses","animationClasses","customStyle","renderContent","_","index","IconRenderer","icon","svgMatch","attributesMatch","viewBoxMatch","viewBox","Link","href","ContactItem","linkProps","AboutCard","contactItems","description","isEditMode","onEditClick","contactProps"],"mappings":"wpBAGO,S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,4EACbA,oBAAA,CAAA,aAAA,CAAC6D,CAAA,CAAA,CAAY,SAAW,CAAA,GAAA,CAAA,CACrB5C,GAAa,CAACiF,CAAAA,CACblG,oBAAA,CAAA,aAAA,CAAC6E,CAAA,CAAA,CAAS,QAAQ,MAAO,CAAA,KAAA,CAAO,CAAG,CAAA,CAAA,CAEnC7E,oBAAA,CAAA,aAAA,CAACD,EAAA,CAAK,OAAA,CAAQ,cAAgBmG,CAAAA,CAAAA,CAAY,CAE9C,CACF,EAEAlG,oBAAA,CAAA,aAAA,CAAC,QAAK,SAAU,CAAA,yEAAA,CAA0E,EAE1FA,oBAAA,CAAA,aAAA,CAAC,MAAK,CAAA,CAAA,SAAA,CAAU,2DAA4D,CAAA,CAAA,CAC5EA,qBAAA,aAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,2DAAA,CAAA,CACZiG,CACCA,CAAAA,CAAAA,CAAa,IAAKI,CAChBrG,EAAAA,oBAAAA,CAAA,aAAC8F,CAAAA,CAAAA,CAAA,CAAY,GAAA,CAAKO,EAAa,KAAQ,CAAA,GAAGA,CAAc,CAAA,CACzD,CAEDrG,CAAAA,oBAAAA,CAAA,cAAAA,oBAAA,CAAA,QAAA,CAAA,IAAA,CACEA,oBAAA,CAAA,aAAA,CAAC8F,CAAA,CAAA,CAAY,UAAS,IAAC,CAAA,CAAA,CACvB9F,oBAAA,CAAA,aAAA,CAAC8F,CAAA,CAAA,CAAY,UAAS,IAAC,CAAA,CACzB,CAEJ,CACF,CAEJ","file":"AboutCard.cjs","sourcesContent":["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 type { 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 const breakpoints = [\"sm\", \"md\", \"lg\", \"xl\", \"2xl\"];\n const sizes = [\"24\", \"42\", \"48\", \"64\", \"72\"]; // Add all the sizes you need\n\n const safelist: (string | { pattern: RegExp; variants: 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 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 // Generate size classes with responsive variants\n const sizeClasses = sizes.flatMap((size) => [\n `h-[${size}px]`,\n `w-[${size}px]`,\n ...breakpoints.flatMap((bp) => [\n `${bp}:h-[${size}px]`,\n `${bp}:w-[${size}px]`\n ])\n ]);\n\n return [...typographyClasses, ...responsiveTypographyClasses, ...sizeClasses];\n};\n\nexport const focusRingStyles =\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100\";\nexport const focusRingWithinStyles =\n \"focus-within:outline-none focus-within:ring-2 focus-within:ring-primary-100\";\nexport const focusRingStylesCoerced = \"ring-2 ring-primary-100\";\n","import React from \"react\";\n\nimport type { Typography } from \"../types/tailwind\";\nimport type { Breakpoint } from \"../utils/responsive\";\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 | \"primary-100\";\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\nexport type ResponsiveVariant =\n | TypographyKey\n | `${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 using Tailwind classes that reference CSS variables\n const colorClasses = color === \"inherit\" ? \"text-inherit\" : `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 React.ElementType;\n\n return (\n <Component\n ref={ref}\n className={`\n font-sans antialiased\n ${typographyClasses}\n ${colorClasses}\n ${weight && `!${fontWeight[weight]}`}\n ${className}\n `}\n {...(props as HTMLPropsMap[T])}\n >\n {children}\n </Component>\n );\n }\n);\n\nText.displayName = \"Text\";\n","import * as React from \"react\";\n\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport { Text, type ResponsiveVariant } from \"./Text\";\n\nexport type ButtonProps = {\n /** @default filled */\n variant?: \"filled\" | \"outlined\" | \"transparent\";\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 textVariant?: ResponsiveVariant | ResponsiveVariant[];\n} & React.ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport const filled = {\n black: \"bg-primary text-background-0\",\n // fade it slightly\n accent: \"bg-primary-100 text-background-0\",\n secondary: \"bg-secondary-100 text-secondary\"\n};\n\nexport const outlined = {\n black: \"border border-text text-primary\",\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 textVariant,\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\"\n ? filled[color]\n : variant === \"transparent\"\n ? \"bg-transparent text-text\"\n : outlined[color],\n className\n )}\n disabled={disabled || isLoading}\n type=\"button\"\n {...props}\n >\n {typeof children === \"string\" ? (\n <Text variant={textVariant ?? \"body-xxs-semibold\"} color=\"inherit\">\n {children}\n </Text>\n ) : (\n children\n )}\n {end}\n </button>\n )\n);\n\nButton.displayName = \"Button\";\n","export type Breakpoint = \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\nexport type ResponsiveSize = number | `${Breakpoint}:${number}`;\n\ntype SizeKey =\n | \"12\"\n | \"16\"\n | \"18\"\n | \"20\"\n | \"24\"\n | \"32\"\n | \"36\"\n | \"40\"\n | \"42\"\n | \"48\"\n | \"64\"\n | \"72\"\n | \"80\";\n\n// These constants help Tailwind identify the classes during compilation\nconst BASE_SIZES: Record<SizeKey, string> = {\n \"12\": \"h-[12px] w-[12px]\",\n \"16\": \"h-[16px] w-[16px]\",\n \"18\": \"h-[18px] w-[18px]\",\n \"20\": \"h-[20px] w-[20px]\",\n \"24\": \"h-[24px] w-[24px]\",\n \"32\": \"h-[32px] w-[32px]\",\n \"36\": \"h-[36px] w-[36px]\",\n \"40\": \"h-[40px] w-[40px]\",\n \"42\": \"h-[42px] w-[42px]\",\n \"48\": \"h-[48px] w-[48px]\",\n \"64\": \"h-[64px] w-[64px]\",\n \"72\": \"h-[72px] w-[72px]\",\n \"80\": \"h-[80px] w-[80px]\"\n};\n\nconst RESPONSIVE_SIZES: Record<Breakpoint, Record<SizeKey, string>> = {\n sm: {\n \"12\": \"sm:h-[12px] sm:w-[12px]\",\n \"16\": \"sm:h-[16px] sm:w-[16px]\",\n \"18\": \"sm:h-[18px] sm:w-[18px]\",\n \"20\": \"sm:h-[20px] sm:w-[20px]\",\n \"24\": \"sm:h-[24px] sm:w-[24px]\",\n \"32\": \"sm:h-[32px] sm:w-[32px]\",\n \"36\": \"sm:h-[36px] sm:w-[36px]\",\n \"40\": \"sm:h-[40px] sm:w-[40px]\",\n \"42\": \"sm:h-[42px] sm:w-[42px]\",\n \"48\": \"sm:h-[48px] sm:w-[48px]\",\n \"64\": \"sm:h-[64px] sm:w-[64px]\",\n \"72\": \"sm:h-[72px] sm:w-[72px]\",\n \"80\": \"sm:h-[80px] sm:w-[80px]\"\n },\n md: {\n \"12\": \"md:h-[12px] md:w-[12px]\",\n \"16\": \"md:h-[16px] md:w-[16px]\",\n \"18\": \"md:h-[18px] md:w-[18px]\",\n \"20\": \"md:h-[20px] md:w-[20px]\",\n \"24\": \"md:h-[24px] md:w-[24px]\",\n \"32\": \"md:h-[32px] md:w-[32px]\",\n \"36\": \"md:h-[36px] md:w-[36px]\",\n \"40\": \"md:h-[40px] md:w-[40px]\",\n \"42\": \"md:h-[42px] md:w-[42px]\",\n \"48\": \"md:h-[48px] md:w-[48px]\",\n \"64\": \"md:h-[64px] md:w-[64px]\",\n \"72\": \"md:h-[72px] md:w-[72px]\",\n \"80\": \"md:h-[80px] md:w-[80px]\"\n },\n lg: {\n \"12\": \"lg:h-[12px] lg:w-[12px]\",\n \"16\": \"lg:h-[16px] lg:w-[16px]\",\n \"18\": \"lg:h-[18px] lg:w-[18px]\",\n \"20\": \"lg:h-[20px] lg:w-[20px]\",\n \"24\": \"lg:h-[24px] lg:w-[24px]\",\n \"32\": \"lg:h-[32px] lg:w-[32px]\",\n \"36\": \"lg:h-[36px] lg:w-[36px]\",\n \"40\": \"lg:h-[40px] lg:w-[40px]\",\n \"42\": \"lg:h-[42px] lg:w-[42px]\",\n \"48\": \"lg:h-[48px] lg:w-[48px]\",\n \"64\": \"lg:h-[64px] lg:w-[64px]\",\n \"72\": \"lg:h-[72px] lg:w-[72px]\",\n \"80\": \"lg:h-[80px] lg:w-[80px]\"\n },\n xl: {\n \"12\": \"xl:h-[12px] xl:w-[12px]\",\n \"16\": \"xl:h-[16px] xl:w-[16px]\",\n \"18\": \"xl:h-[18px] xl:w-[18px]\",\n \"20\": \"xl:h-[20px] xl:w-[20px]\",\n \"24\": \"xl:h-[24px] xl:w-[24px]\",\n \"32\": \"xl:h-[32px] xl:w-[32px]\",\n \"36\": \"xl:h-[36px] xl:w-[36px]\",\n \"40\": \"xl:h-[40px] xl:w-[40px]\",\n \"42\": \"xl:h-[42px] xl:w-[42px]\",\n \"48\": \"xl:h-[48px] xl:w-[48px]\",\n \"64\": \"xl:h-[64px] xl:w-[64px]\",\n \"72\": \"xl:h-[72px] xl:w-[72px]\",\n \"80\": \"xl:h-[80px] xl:w-[80px]\"\n },\n \"2xl\": {\n \"12\": \"2xl:h-[12px] 2xl:w-[12px]\",\n \"16\": \"2xl:h-[16px] 2xl:w-[16px]\",\n \"18\": \"2xl:h-[18px] 2xl:w-[18px]\",\n \"20\": \"2xl:h-[20px] 2xl:w-[20px]\",\n \"24\": \"2xl:h-[24px] 2xl:w-[24px]\",\n \"32\": \"2xl:h-[32px] 2xl:w-[32px]\",\n \"36\": \"2xl:h-[36px] 2xl:w-[36px]\",\n \"40\": \"2xl:h-[40px] 2xl:w-[40px]\",\n \"42\": \"2xl:h-[42px] 2xl:w-[42px]\",\n \"48\": \"2xl:h-[48px] 2xl:w-[48px]\",\n \"64\": \"2xl:h-[64px] 2xl:w-[64px]\",\n \"72\": \"2xl:h-[72px] 2xl:w-[72px]\",\n \"80\": \"2xl:h-[80px] 2xl:w-[80px]\"\n }\n};\n\nconst getSizeKey = (size: number): SizeKey | undefined => {\n return String(size) as SizeKey;\n};\n\nexport const getResponsiveSize = (\n size: ResponsiveSize | ResponsiveSize[] | undefined,\n baseSize: number = 24\n): {\n responsiveSizeClasses: string;\n responsiveSizeStyles: Record<string, string>;\n} => {\n const classes: string[] = [];\n const styles: Record<string, string> = {};\n\n // If no size provided, use baseSize\n if (size === undefined) {\n const key = getSizeKey(baseSize);\n if (key) {\n classes.push(BASE_SIZES[key]);\n } else {\n styles.height = `${baseSize}px`;\n styles.width = `${baseSize}px`;\n }\n }\n\n // If size is a number, use that directly\n if (typeof size === \"number\") {\n const key = getSizeKey(size);\n if (key) {\n classes.push(BASE_SIZES[key]);\n } else {\n styles.height = `${size}px`;\n styles.width = `${size}px`;\n }\n }\n\n // If array of responsive sizes, generate responsive classes\n if (Array.isArray(size)) {\n const baseKey = getSizeKey(baseSize);\n const responsiveClasses = [\n (baseKey && BASE_SIZES[baseKey]) || `h-[${baseSize}px] w-[${baseSize}px]`\n ];\n\n size.forEach((s) => {\n if (typeof s === \"string\") {\n const [breakpoint, valueStr] = s.split(\":\") as [Breakpoint, string];\n const value = parseInt(valueStr, 10);\n const key = getSizeKey(value);\n classes.push(\n (key && RESPONSIVE_SIZES[breakpoint]?.[key]) ||\n `${breakpoint}:h-[${value}px] ${breakpoint}:w-[${value}px]`\n );\n }\n });\n\n classes.push(...responsiveClasses);\n }\n\n if (typeof size === \"string\") {\n const [breakpoint, valueStr] = size.split(\":\") as [Breakpoint, string];\n const value = parseInt(valueStr, 10);\n const valueKey = getSizeKey(value);\n classes.push(\n (valueKey && RESPONSIVE_SIZES[breakpoint]?.[valueKey]) ||\n `${breakpoint}:h-[${value}px] ${breakpoint}:w-[${value}px]`\n );\n }\n\n return {\n responsiveSizeClasses: classes.join(\" \"),\n responsiveSizeStyles: styles\n };\n};\n","import type { IconName } from \"@deckai/icons\";\nimport { IconMap } from \"@deckai/icons\";\nimport type { SVGProps } from \"react\";\nimport React from \"react\";\n\nimport type { IconColors } from \"../types/tailwind\";\nimport { cn } from \"../utils\";\nimport type { ResponsiveSize } from \"../utils/responsive\";\nimport { getResponsiveSize } from \"../utils/responsive\";\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\n// Using CSS variables to support dark mode\nconst COLOR_MAP: Record<IconColors, string> = {\n primary: \"var(--color-primary)\",\n secondary: \"var(--color-secondary)\",\n white: \"var(--color-white)\",\n primaryBlue: \"var(--color-primary-100)\",\n disabled: \"var(--color-disabled)\",\n danger: \"var(--color-danger)\",\n tertiary: \"var(--color-tertiary-20)\"\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 { responsiveSizeClasses, responsiveSizeStyles } = getResponsiveSize(\n size,\n 24\n );\n\n return (\n <div\n className={cn(\n \"flex justify-center items-center\",\n responsiveSizeClasses,\n className\n )}\n style={{\n [\"--icon-stroke\" as string]: COLOR_MAP[color],\n ...responsiveSizeStyles,\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 type { IconName } from \"@deckai/icons\";\nimport * as ToastPrimitive from \"@radix-ui/react-toast\";\nimport * as React from \"react\";\n\nimport { cn } from \"../utils\";\nimport type { ButtonProps } from \"./Button\";\nimport { Button } from \"./Button\";\nimport { Icon } from \"./Icon\";\nimport { Text } from \"./Text\";\n\ntype ToastAction = {\n label: string;\n onClick?: () => void;\n variant?: ButtonProps[\"variant\"];\n};\n\nexport type ToastProps = Omit<ToastPrimitive.ToastProps, \"action\"> & {\n /** Optional title for the toast */\n title?: string;\n /** Main message content */\n message: string;\n /** Primary action button configuration */\n action?: ToastAction;\n /** Secondary action button configuration */\n secondaryAction?: ToastAction;\n /** Optional variant to change the visual style */\n variant?: \"default\" | \"success\" | \"error\" | \"warning\";\n /** Whether to allow dismissing by clicking outside */\n allowOutsideClick?: boolean;\n /** Optional className for custom styling */\n className?: string;\n /** Optional callback when toast is closed */\n onClose?: () => void;\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 secondaryAction,\n variant = \"default\",\n duration = 5000,\n className,\n onOpenChange,\n allowOutsideClick = true,\n onClose,\n ...props\n },\n ref\n ) => {\n const variantConfig = variants[variant];\n\n const handleOpenChange = React.useCallback(\n (open: boolean) => {\n // Only allow programmatic close or close button click if outside click is disabled\n if (!allowOutsideClick && open === false) {\n return;\n }\n onOpenChange?.(open);\n if (!open) {\n onClose?.();\n }\n },\n [onOpenChange, allowOutsideClick, onClose]\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 flex-col gap-4 rounded-lg p-4 items-center\",\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 <ToastPrimitive.Close\n className=\"absolute right-1 top-1 h-[40px] w-[40px] p-1 hover:bg-background-0/10 flex items-center justify-center rounded-lg\"\n aria-label=\"Close\"\n onClick={onClose}\n >\n <Icon name=\"close\" size={16} color=\"white\" />\n </ToastPrimitive.Close>\n\n <div className=\"flex gap-4\">\n <Icon\n name={variantConfig.icon}\n className=\"h-5 w-5 shrink-0\"\n color=\"white\"\n />\n\n <div className=\"flex flex-col 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 </div>\n\n {(action || secondaryAction) && (\n <div className=\"flex gap-2 justify-end mt-2\">\n {secondaryAction && (\n <ToastPrimitive.Action asChild altText={secondaryAction.label}>\n <div className=\"min-h-[40px] flex items-center\">\n <Button\n variant={secondaryAction.variant || \"outlined\"}\n color=\"black\"\n className=\"border-white text-white hover:bg-background-0/10\"\n onClick={secondaryAction.onClick}\n >\n {secondaryAction.label}\n </Button>\n </div>\n </ToastPrimitive.Action>\n )}\n {action && (\n <ToastPrimitive.Action asChild altText={action.label}>\n <div className=\"flex items-center\">\n <Button\n variant={action.variant || \"outlined\"}\n color=\"black\"\n className=\"border-white text-white hover:bg-background-0/10\"\n onClick={action.onClick}\n >\n {action.label}\n </Button>\n </div>\n </ToastPrimitive.Action>\n )}\n </div>\n )}\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 type { ButtonHTMLAttributes } from \"react\";\nimport React from \"react\";\n\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\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 RadixCollapsible from \"@radix-ui/react-collapsible\";\nimport React, { useRef, useState } from \"react\";\n\nimport { useIsomorphicLayoutEffect } from \"../hooks\";\nimport { cn } from \"../utils\";\nimport { Pressable } from \"./Pressable\";\nimport { Text } from \"./Text\";\n\nexport type CollapsibleProps = {\n children: React.ReactNode;\n maxHeight?: number;\n};\n\nexport function Collapsible({ children, maxHeight = 100 }: 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 &&\n \"bg-gradient-to-b from-transparent via-background-0 to-background-0\",\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 type { HTMLAttributes } from \"react\";\nimport React from \"react\";\n\nimport { Fallback } from \"./Fallback\";\nimport { Icon } from \"./Icon\";\nimport { IconRenderer } from \"./IconRenderer\";\nimport { Link } from \"./Link\";\nimport { Text } from \"./Text\";\n\nexport type ContactItemProps = {\n icon?: string;\n children?: React.ReactNode;\n href?: string;\n isLoading?: boolean;\n} & Omit<HTMLAttributes<HTMLAnchorElement>, \"color\">;\n\nexport function ContactItem({\n icon,\n children,\n href,\n isLoading,\n ...linkProps\n}: ContactItemProps) {\n return isLoading ? (\n <div className=\"row gap-2 flex items-center\">\n <Fallback variant=\"image\" size={30} className=\"rounded-full\" />\n <Fallback variant=\"text\" size=\"sm\" className=\"w-32\" />\n </div>\n ) : (\n <div className=\"row gap-2 flex items-center min-w-0\">\n <div className=\"flex-shrink-0 bg-secondary-400 rounded-full p-2.5 items-center justify-center\">\n {icon ? (\n <IconRenderer icon={icon} size={18} className=\"text-primary\" />\n ) : (\n <Icon name=\"link\" size={18} className=\"text-primary\" />\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n {href ? (\n <Link\n className=\"hover:underline truncate block text-primary\"\n href={href}\n {...linkProps}\n variant={[\"body-default-semibold\", \"md:body-default-semibold\"]}\n >\n {children}\n </Link>\n ) : (\n <Text\n variant=\"body-default-semibold\"\n className=\"truncate block text-primary\"\n >\n {children}\n </Text>\n )}\n </div>\n </div>\n );\n}\n","import React from \"react\";\n\nimport { cn } from \"../utils\";\n\nexport type FallbackVariant = \"text\" | \"image\" | \"button\" | \"card\" | \"avatar\";\nexport type FallbackSize = \"sm\" | \"md\" | \"lg\" | number;\n\nexport type FallbackProps = {\n /**\n * The type of content being loaded\n */\n variant?: FallbackVariant;\n /**\n * The size of the fallback element\n * Can be a predefined size ('sm' | 'md' | 'lg') or a custom pixel value\n */\n size?: FallbackSize;\n /**\n * Whether to show multiple lines (only applies to text variant)\n */\n lines?: number;\n /**\n * Additional classes to apply to the fallback\n */\n className?: string;\n /**\n * Whether to show the loading animation\n */\n animate?: boolean;\n};\n\n// Updated to match existing component sizes\nconst sizeMap = {\n sm: \"h-4\", // 16px\n md: \"h-6\", // 24px\n lg: \"h-8\" // 32px\n};\n\n// Updated to match existing component sizes\nconst widthMap = {\n sm: \"w-20\", // 80px\n md: \"w-32\", // 128px\n lg: \"w-48\" // 192px\n};\n\n// Updated to match Avatar sizes\nconst avatarSizeMap = {\n sm: \"w-8 h-8\", // 32px\n md: \"w-12 h-12\", // 48px\n lg: \"w-16 h-16\" // 64px\n};\n\nexport const Fallback = React.forwardRef<HTMLDivElement, FallbackProps>(\n (\n { variant = \"text\", size = \"md\", lines = 1, className, animate = true },\n ref\n ) => {\n const baseClasses = \"bg-secondary-50 rounded-lg overflow-hidden\";\n const animationClasses = animate ? \"animate-pulse\" : \"\";\n\n const getCustomSizeStyle = (size: number) => ({\n height: `${size}px`,\n width:\n variant === \"avatar\" || variant === \"image\" ? `${size}px` : undefined\n });\n\n const customStyle =\n typeof size === \"number\" ? getCustomSizeStyle(size) : undefined;\n\n const renderContent = () => {\n switch (variant) {\n case \"text\":\n return (\n <div className=\"flex flex-col gap-2\">\n {Array.from({ length: lines }).map((_, index) => (\n <div\n key={index}\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n typeof size === \"string\" ? sizeMap[size] : undefined,\n index === lines - 1 && lines > 1 ? \"w-3/4\" : \"w-full\",\n className\n )}\n />\n ))}\n </div>\n );\n\n case \"image\":\n return (\n <div\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n (!customStyle || !className) &&\n \"aspect-square w-full max-w-[300px]\",\n className\n )}\n />\n );\n\n case \"button\":\n return (\n <div\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n typeof size === \"string\" && [sizeMap[size], widthMap[size]],\n className\n )}\n />\n );\n\n case \"card\":\n return (\n <div\n className={cn(\n \"flex flex-col gap-4 p-6 border border-stroke rounded-xl\",\n className\n )}\n >\n <div\n className={cn(\n baseClasses,\n animationClasses,\n \"w-16 h-16 rounded-full\"\n )}\n />\n <div className=\"space-y-2\">\n <div\n className={cn(baseClasses, animationClasses, \"h-6 w-3/4\")}\n />\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-1/2\")}\n />\n </div>\n <div className=\"space-y-2\">\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-full\")}\n />\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-full\")}\n />\n <div\n className={cn(baseClasses, animationClasses, \"h-4 w-2/3\")}\n />\n </div>\n </div>\n );\n\n case \"avatar\":\n return (\n <div\n style={customStyle}\n className={cn(\n baseClasses,\n animationClasses,\n \"rounded-full\",\n {\n [avatarSizeMap.sm]: size === \"sm\",\n [avatarSizeMap.md]: size === \"md\",\n [avatarSizeMap.lg]: size === \"lg\"\n },\n className\n )}\n />\n );\n\n default:\n return null;\n }\n };\n\n return (\n <div ref={ref} className={cn(\"w-full\", className)}>\n {renderContent()}\n </div>\n );\n }\n);\n\nFallback.displayName = \"Fallback\";\n","import React from \"react\";\n\nimport { cn } from \"../utils\";\nimport type { ResponsiveSize } from \"../utils/responsive\";\nimport { getResponsiveSize } from \"../utils/responsive\";\n\nexport type IconRendererProps = {\n icon: string;\n size?: ResponsiveSize | ResponsiveSize[];\n className?: string;\n};\n\nexport function IconRenderer({\n icon,\n size = 40,\n className\n}: IconRendererProps) {\n // Extract SVG content from the string (everything between <svg> and </svg>)\n const svgMatch = icon.match(/<svg[^>]*>([\\s\\S]*?)<\\/svg>/);\n const { responsiveSizeClasses, responsiveSizeStyles } = getResponsiveSize(\n size,\n 40\n );\n\n if (!svgMatch) {\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...responsiveSizeStyles\n }}\n className={cn(responsiveSizeClasses, className)}\n />\n );\n }\n\n // Extract attributes from the SVG tag\n const attributesMatch = icon.match(/<svg([^>]*)>/);\n const attributesString = attributesMatch ? attributesMatch[1] : \"\";\n\n // Parse viewBox\n const viewBoxMatch = attributesString.match(/viewBox=[\"']([^\"']*)[\"']/);\n const viewBox = viewBoxMatch ? viewBoxMatch[1] : \"0 0 40 40\";\n\n return (\n <div\n style={{\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...responsiveSizeStyles\n }}\n className={cn(responsiveSizeClasses, className)}\n >\n <svg\n width=\"100%\"\n height=\"100%\"\n viewBox={viewBox}\n preserveAspectRatio=\"xMidYMid meet\"\n dangerouslySetInnerHTML={{ __html: svgMatch[1] }}\n />\n </div>\n );\n}\n\nIconRenderer.displayName = \"IconRenderer\";\n","import React from \"react\";\n\nimport { cn } from \"../utils\";\nimport { focusRingStyles } from \"../utils/tailwind\";\nimport type { TextProps } from \"./Text\";\nimport { Text } from \"./Text\";\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 function Link({\n children,\n color = \"inherit\",\n variant = \"body-default-semibold\",\n href,\n className,\n ...props\n}: LinkProps) {\n return (\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 text-ellipsis\",\n focusRingStyles,\n className\n )}\n {...props}\n >\n {children}\n </a>\n </Text>\n );\n}\n","import React from \"react\";\n\nimport { Collapsible } from \"./Collapsible\";\nimport type { ContactItemProps } from \"./ContactItem\";\nimport { ContactItem } from \"./ContactItem\";\nimport { Fallback } from \"./Fallback\";\nimport { Text } from \"./Text\";\n\nexport type AboutCardProps = {\n contactItems?: ContactItemProps[];\n description?: string;\n isEditMode?: boolean;\n onEditClick?: () => void;\n isLoading?: boolean;\n};\n\nexport function AboutCard({\n contactItems,\n description,\n isEditMode = false,\n onEditClick,\n isLoading,\n ...props\n}: AboutCardProps) {\n return (\n <div\n className=\"border border-secondary-50 rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4 w-full\"\n {...props}\n >\n <div className=\"flex flex-col sm:w-1/2 w-full gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center\">\n <Collapsible maxHeight={120}>\n {isLoading || !description ? (\n <Fallback variant=\"text\" lines={4} />\n ) : (\n <Text variant=\"body-default\">{description}</Text>\n )}\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 sm:w-1/2 w-full gap-4 sm:pl-10 pt-6 sm:pt-8\">\n {contactItems ? (\n contactItems.map((contactProps) => (\n <ContactItem key={contactProps.title} {...contactProps} />\n ))\n ) : (\n <>\n <ContactItem isLoading />\n <ContactItem isLoading />\n </>\n )}\n </div>\n </div>\n );\n}\n"]}
@@ -1,10 +1,10 @@
1
- import*as p from'react';import p__default,{useRef,useState,useLayoutEffect,useEffect}from'react';import*as k from'@radix-ui/react-collapsible';import*as h from'@radix-ui/react-toast';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {IconMap}from'@deckai/icons';function n(...e){return twMerge(clsx(e))}var J={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},U=e=>{let[t,o]=e.split("-");return t==="heading"?J[o]||"p":t==="label"?"label":"p"},X={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},ee=e=>e?(Array.isArray(e)?e:[e]).map(o=>{if(o.includes(":")){let[r,s]=o.split(":");return `${r}:text-${s}`}return `text-${o}`}).join(" "):"text-body-default",x=p__default.forwardRef(({variant:e="body-default",color:t="primary",as:o,className:r,children:s,weight:l,...i},a)=>{let c=ee(e),m=t==="inherit"?"text-inherit":`text-${t}`,f=p__default.useMemo(()=>{let b=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return U(b)},[e]);return p__default.createElement(o||f,{ref:a,className:`
1
+ import*as m from'react';import m__default,{useRef,useState,useLayoutEffect,useEffect}from'react';import*as k from'@radix-ui/react-collapsible';import*as h from'@radix-ui/react-toast';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {IconMap}from'@deckai/icons';function l(...e){return twMerge(clsx(e))}var w="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100";var J={xl:"h1",lg:"h1",md:"h2",sm:"h3",xs:"h4"},U=e=>{let[o,t]=e.split("-");return o==="heading"?J[t]||"p":o==="label"?"label":"p"},X={light:"font-light",regular:"font-regular",semibold:"font-semibold",bold:"font-bold"},ee=e=>e?(Array.isArray(e)?e:[e]).map(t=>{if(t.includes(":")){let[r,s]=t.split(":");return `${r}:text-${s}`}return `text-${t}`}).join(" "):"text-body-default",x=m__default.forwardRef(({variant:e="body-default",color:o="primary",as:t,className:r,children:s,weight:n,...i},a)=>{let c=ee(e),p=o==="inherit"?"text-inherit":`text-${o}`,f=m__default.useMemo(()=>{let b=typeof e=="string"?e.split(":").pop():Array.isArray(e)?e[0].split(":").pop():"body-default";return U(b)},[e]);return m__default.createElement(t||f,{ref:a,className:`
2
2
  font-sans antialiased
3
3
  ${c}
4
- ${m}
5
- ${l&&`!${X[l]}`}
4
+ ${p}
5
+ ${n&&`!${X[n]}`}
6
6
  ${r}
7
- `,...i},s)});x.displayName="Text";var w="focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-100";var te={black:"bg-primary text-white",accent:"bg-primary-100 text-white",secondary:"bg-secondary-100 text-secondary"},oe={black:"border border-text text-primary",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},E=p.forwardRef(({className:e,variant:t="filled",color:o="black",isLoading:r=false,children:s,disabled:l,end:i,...a},c)=>p.createElement("button",{ref:c,className:n(`
7
+ `,...i},s)});x.displayName="Text";var te={black:"bg-primary text-background-0",accent:"bg-primary-100 text-background-0",secondary:"bg-secondary-100 text-secondary"},oe={black:"border border-text text-primary",accent:"border border-primary-100 text-primary-100",secondary:"border border-text-secondary text-secondary"},E=m.forwardRef(({className:e,textVariant:o,variant:t="filled",color:r="black",isLoading:s=false,children:n,disabled:i,end:a,...c},p)=>m.createElement("button",{ref:p,className:l(`
8
8
  sm:px-7 px-4
9
9
  py-2
10
10
  inline-flex items-center justify-center
@@ -12,5 +12,5 @@ import*as p from'react';import p__default,{useRef,useState,useLayoutEffect,useEf
12
12
  transition-colors duration-200
13
13
  disabled:opacity-50 disabled:pointer-events-none
14
14
  hover:opacity-80 active:scale-95
15
- truncate`,w,t==="filled"?te[o]:t==="transparent"?"bg-transparent text-text":oe[o],e),disabled:l||r,type:"button",...a},typeof s=="string"?p.createElement(x,{variant:["sm:body-default-bold","body-xxs-semibold"],color:"inherit"},s):s,i));E.displayName="Button";var R={12:"h-[12px] w-[12px]",16:"h-[16px] w-[16px]",18:"h-[18px] w-[18px]",20:"h-[20px] w-[20px]",24:"h-[24px] w-[24px]",32:"h-[32px] w-[32px]",36:"h-[36px] w-[36px]",40:"h-[40px] w-[40px]",42:"h-[42px] w-[42px]",48:"h-[48px] w-[48px]",64:"h-[64px] w-[64px]",72:"h-[72px] w-[72px]"},z={sm:{12:"sm:h-[12px] sm:w-[12px]",16:"sm:h-[16px] sm:w-[16px]",18:"sm:h-[18px] sm:w-[18px]",20:"sm:h-[20px] sm:w-[20px]",24:"sm:h-[24px] sm:w-[24px]",32:"sm:h-[32px] sm:w-[32px]",36:"sm:h-[36px] sm:w-[36px]",40:"sm:h-[40px] sm:w-[40px]",42:"sm:h-[42px] sm:w-[42px]",48:"sm:h-[48px] sm:w-[48px]",64:"sm:h-[64px] sm:w-[64px]",72:"sm:h-[72px] sm:w-[72px]"},md:{12:"md:h-[12px] md:w-[12px]",16:"md:h-[16px] md:w-[16px]",18:"md:h-[18px] md:w-[18px]",20:"md:h-[20px] md:w-[20px]",24:"md:h-[24px] md:w-[24px]",32:"md:h-[32px] md:w-[32px]",36:"md:h-[36px] md:w-[36px]",40:"md:h-[40px] md:w-[40px]",42:"md:h-[42px] md:w-[42px]",48:"md:h-[48px] md:w-[48px]",64:"md:h-[64px] md:w-[64px]",72:"md:h-[72px] md:w-[72px]"},lg:{12:"lg:h-[12px] lg:w-[12px]",16:"lg:h-[16px] lg:w-[16px]",18:"lg:h-[18px] lg:w-[18px]",20:"lg:h-[20px] lg:w-[20px]",24:"lg:h-[24px] lg:w-[24px]",32:"lg:h-[32px] lg:w-[32px]",36:"lg:h-[36px] lg:w-[36px]",40:"lg:h-[40px] lg:w-[40px]",42:"lg:h-[42px] lg:w-[42px]",48:"lg:h-[48px] lg:w-[48px]",64:"lg:h-[64px] lg:w-[64px]",72:"lg:h-[72px] lg:w-[72px]"},xl:{12:"xl:h-[12px] xl:w-[12px]",16:"xl:h-[16px] xl:w-[16px]",18:"xl:h-[18px] xl:w-[18px]",20:"xl:h-[20px] xl:w-[20px]",24:"xl:h-[24px] xl:w-[24px]",32:"xl:h-[32px] xl:w-[32px]",36:"xl:h-[36px] xl:w-[36px]",40:"xl:h-[40px] xl:w-[40px]",42:"xl:h-[42px] xl:w-[42px]",48:"xl:h-[48px] xl:w-[48px]",64:"xl:h-[64px] xl:w-[64px]",72:"xl:h-[72px] xl:w-[72px]"},"2xl":{12:"2xl:h-[12px] 2xl:w-[12px]",16:"2xl:h-[16px] 2xl:w-[16px]",18:"2xl:h-[18px] 2xl:w-[18px]",20:"2xl:h-[20px] 2xl:w-[20px]",24:"2xl:h-[24px] 2xl:w-[24px]",32:"2xl:h-[32px] 2xl:w-[32px]",36:"2xl:h-[36px] 2xl:w-[36px]",40:"2xl:h-[40px] 2xl:w-[40px]",42:"2xl:h-[42px] 2xl:w-[42px]",48:"2xl:h-[48px] 2xl:w-[48px]",64:"2xl:h-[64px] 2xl:w-[64px]",72:"2xl:h-[72px] 2xl:w-[72px]"}},L=e=>String(e),H=(e,t=24)=>{let o=[],r={};if(e===void 0){let s=L(t);s?o.push(R[s]):(r.height=`${t}px`,r.width=`${t}px`);}if(typeof e=="number"){let s=L(e);s?o.push(R[s]):(r.height=`${e}px`,r.width=`${e}px`);}if(Array.isArray(e)){let s=L(t),l=[s&&R[s]||`h-[${t}px] w-[${t}px]`];e.forEach(i=>{if(typeof i=="string"){let[a,c]=i.split(":"),m=parseInt(c,10),f=L(m);o.push(f&&z[a]?.[f]||`${a}:h-[${m}px] ${a}:w-[${m}px]`);}}),o.push(...l);}if(typeof e=="string"){let[s,l]=e.split(":"),i=parseInt(l,10),a=L(i);o.push(a&&z[s]?.[a]||`${s}:h-[${i}px] ${s}:w-[${i}px]`);}return {responsiveSizeClasses:o.join(" "),responsiveSizeStyles:r}};var F={primary:"var(--color-primary)",secondary:"var(--color-secondary)",white:"var(--color-white)",primaryBlue:"var(--color-primary-100)",disabled:"var(--color-disabled)",danger:"var(--color-danger)"},T=p__default.forwardRef(({name:e,size:t=24,color:o="primary",title:r,className:s,style:l={},...i},a)=>{let c=IconMap[e],{responsiveSizeClasses:m,responsiveSizeStyles:f}=H(t,24);return p__default.createElement("div",{className:n("flex justify-center items-center",m,s),style:{"--icon-stroke":F[o],...f,...l}},p__default.createElement(c,{ref:a,"aria-hidden":!r,"aria-label":r,stroke:e.includes("filled")?void 0:F[o],...i}))});T.displayName="Icon";var se={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"}},K=p.forwardRef(({title:e,message:t,action:o,secondaryAction:r,variant:s="default",duration:l=5e3,className:i,onOpenChange:a,allowOutsideClick:c=true,onClose:m,...f},v)=>{let b=se[s],Z=p.useCallback(S=>{!c&&S===false||(a?.(S),S||m?.());},[a,c,m]);return p.createElement(h.Root,{ref:v,onOpenChange:Z,duration:l,className:n("group pointer-events-auto relative flex w-full flex-col gap-4 rounded-lg p-4 items-center","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",b.className,i),...f},p.createElement(h.Close,{className:"absolute right-1 top-1 h-[40px] w-[40px] p-1 hover:bg-background-0/10 flex items-center justify-center rounded-lg","aria-label":"Close",onClick:m},p.createElement(T,{name:"close",size:16,color:"white"})),p.createElement("div",{className:"flex gap-4"},p.createElement(T,{name:b.icon,className:"h-5 w-5 shrink-0",color:"white"}),p.createElement("div",{className:"flex flex-col flex-1 gap-2"},e&&p.createElement(h.Title,{asChild:true},p.createElement(x,{variant:"body-default-bold",color:"inherit"},e)),p.createElement(h.Description,{asChild:true},p.createElement(x,{variant:"body-xs-medium",color:"inherit"},t)))),(o||r)&&p.createElement("div",{className:"flex gap-2 justify-end mt-2"},r&&p.createElement(h.Action,{asChild:true,altText:r.label},p.createElement("div",{className:"min-h-[40px] flex items-center"},p.createElement(E,{variant:r.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:r.onClick},r.label))),o&&p.createElement(h.Action,{asChild:true,altText:o.label},p.createElement("div",{className:"flex items-center"},p.createElement(E,{variant:o.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:o.onClick},o.label)))))});K.displayName="Toast";var _=typeof window<"u"?useLayoutEffect:useEffect;var I=p__default.forwardRef(({children:e,type:t="button",className:o,disabled:r,...s},l)=>p__default.createElement("button",{ref:l,type:t,disabled:r,className:n("appearance-none hover:opacity-80 transition-all active:scale-95",w,r&&"opacity-50 cursor-not-allowed",o),...s},e));I.displayName="Pressable";function B({children:e,maxHeight:t=100}){let[o,r]=p__default.useState(false),s=useRef(null),[l,i]=useState(t);_(()=>{if(!s.current)return;let c=new ResizeObserver(m=>{for(let f of m)i(f.target.scrollHeight);});return c.observe(s.current),()=>c.disconnect()},[]);let a=l>t;return p__default.createElement(k.Root,{open:o,onOpenChange:r},p__default.createElement("div",{className:"relative"},p__default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:o?`${l}px`:`${t}px`}},p__default.createElement("div",{ref:s,className:"w-full"},e)),a&&p__default.createElement(k.Trigger,{asChild:true},p__default.createElement(I,{className:n("absolute -bottom-8 left-0 right-0","flex items-end justify-center","h-16 pt-8 pb-2",!o&&"bg-gradient-to-b from-transparent via-background-0 to-background-0","hover:opacity-100 transition-opacity")},p__default.createElement(x,{variant:"label-default",color:"secondary"},o?"See less":"See more")))))}B.displayName="Collapsible";var D={sm:"h-4",md:"h-6",lg:"h-8"},pe={sm:"w-20",md:"w-32",lg:"w-48"},O={sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"},M=p__default.forwardRef(({variant:e="text",size:t="md",lines:o=1,className:r,animate:s=true},l)=>{let i="bg-secondary-50 rounded-lg overflow-hidden",a=s?"animate-pulse":"",m=typeof t=="number"?(v=>({height:`${v}px`,width:e==="avatar"||e==="image"?`${v}px`:void 0}))(t):void 0,f=()=>{switch(e){case "text":return p__default.createElement("div",{className:"flex flex-col gap-2"},Array.from({length:o}).map((v,b)=>p__default.createElement("div",{key:b,style:m,className:n(i,a,typeof t=="string"?D[t]:void 0,b===o-1&&o>1?"w-3/4":"w-full",r)})));case "image":return p__default.createElement("div",{style:m,className:n(i,a,(!m||!r)&&"aspect-square w-full max-w-[300px]",r)});case "button":return p__default.createElement("div",{style:m,className:n(i,a,typeof t=="string"&&[D[t],pe[t]],r)});case "card":return p__default.createElement("div",{className:n("flex flex-col gap-4 p-6 border border-stroke rounded-xl",r)},p__default.createElement("div",{className:n(i,a,"w-16 h-16 rounded-full")}),p__default.createElement("div",{className:"space-y-2"},p__default.createElement("div",{className:n(i,a,"h-6 w-3/4")}),p__default.createElement("div",{className:n(i,a,"h-4 w-1/2")})),p__default.createElement("div",{className:"space-y-2"},p__default.createElement("div",{className:n(i,a,"h-4 w-full")}),p__default.createElement("div",{className:n(i,a,"h-4 w-full")}),p__default.createElement("div",{className:n(i,a,"h-4 w-2/3")})));case "avatar":return p__default.createElement("div",{style:m,className:n(i,a,"rounded-full",{[O.sm]:t==="sm",[O.md]:t==="md",[O.lg]:t==="lg"},r)});default:return null}};return p__default.createElement("div",{ref:l,className:n("w-full",r)},f())});M.displayName="Fallback";function j({icon:e,size:t=40,className:o}){let r=e.match(/<svg[^>]*>([\s\S]*?)<\/svg>/),{responsiveSizeClasses:s,responsiveSizeStyles:l}=H(t,40);if(!r)return p__default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...l},className:n(s,o)});let i=e.match(/<svg([^>]*)>/),c=(i?i[1]:"").match(/viewBox=["']([^"']*)["']/),m=c?c[1]:"0 0 40 40";return p__default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...l},className:n(s,o)},p__default.createElement("svg",{width:"100%",height:"100%",viewBox:m,preserveAspectRatio:"xMidYMid meet",dangerouslySetInnerHTML:{__html:r[1]}}))}j.displayName="IconRenderer";function Q({children:e,color:t="inherit",variant:o="body-default-semibold",href:r,className:s,...l}){return p__default.createElement(x,{variant:o,color:t},p__default.createElement("a",{href:r,className:n("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline text-ellipsis",w,s),...l},e))}function N({icon:e,children:t,href:o,isLoading:r,...s}){return r?p__default.createElement("div",{className:"row gap-2 flex items-center"},p__default.createElement(M,{variant:"image",size:30,className:"rounded-full"}),p__default.createElement(M,{variant:"text",size:"sm",className:"w-32"})):p__default.createElement("div",{className:"row gap-2 flex items-center min-w-0"},p__default.createElement("div",{className:"flex-shrink-0 bg-secondary-400 rounded-full p-2.5 items-center justify-center"},e?p__default.createElement(j,{icon:e,size:18,className:"text-primary"}):p__default.createElement(T,{name:"link",size:18,className:"text-primary"})),p__default.createElement("div",{className:"min-w-0 flex-1"},o?p__default.createElement(Q,{className:"hover:underline truncate block text-primary",href:o,...s,variant:["body-default-semibold","md:body-default-semibold"]},t):p__default.createElement(x,{variant:"body-default-semibold",className:"truncate block text-primary"},t)))}function Ct({contactItems:e,description:t,isEditMode:o=false,onEditClick:r,isLoading:s,...l}){return p__default.createElement("div",{className:"border border-secondary-50 rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4 w-full",...l},p__default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},p__default.createElement(B,{maxHeight:120},s||!t?p__default.createElement(M,{variant:"text",lines:4}):p__default.createElement(x,{variant:"body-default"},t))),p__default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),p__default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),p__default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-4 sm:pl-10 pt-6 sm:pt-8"},e?e.map(i=>p__default.createElement(N,{key:i.title,...i})):p__default.createElement(p__default.Fragment,null,p__default.createElement(N,{isLoading:true}),p__default.createElement(N,{isLoading:true}))))}export{Ct as AboutCard};//# sourceMappingURL=AboutCard.js.map
15
+ truncate`,w,t==="filled"?te[r]:t==="transparent"?"bg-transparent text-text":oe[r],e),disabled:i||s,type:"button",...c},typeof n=="string"?m.createElement(x,{variant:o??"body-xxs-semibold",color:"inherit"},n):n,a));E.displayName="Button";var R={12:"h-[12px] w-[12px]",16:"h-[16px] w-[16px]",18:"h-[18px] w-[18px]",20:"h-[20px] w-[20px]",24:"h-[24px] w-[24px]",32:"h-[32px] w-[32px]",36:"h-[36px] w-[36px]",40:"h-[40px] w-[40px]",42:"h-[42px] w-[42px]",48:"h-[48px] w-[48px]",64:"h-[64px] w-[64px]",72:"h-[72px] w-[72px]",80:"h-[80px] w-[80px]"},z={sm:{12:"sm:h-[12px] sm:w-[12px]",16:"sm:h-[16px] sm:w-[16px]",18:"sm:h-[18px] sm:w-[18px]",20:"sm:h-[20px] sm:w-[20px]",24:"sm:h-[24px] sm:w-[24px]",32:"sm:h-[32px] sm:w-[32px]",36:"sm:h-[36px] sm:w-[36px]",40:"sm:h-[40px] sm:w-[40px]",42:"sm:h-[42px] sm:w-[42px]",48:"sm:h-[48px] sm:w-[48px]",64:"sm:h-[64px] sm:w-[64px]",72:"sm:h-[72px] sm:w-[72px]",80:"sm:h-[80px] sm:w-[80px]"},md:{12:"md:h-[12px] md:w-[12px]",16:"md:h-[16px] md:w-[16px]",18:"md:h-[18px] md:w-[18px]",20:"md:h-[20px] md:w-[20px]",24:"md:h-[24px] md:w-[24px]",32:"md:h-[32px] md:w-[32px]",36:"md:h-[36px] md:w-[36px]",40:"md:h-[40px] md:w-[40px]",42:"md:h-[42px] md:w-[42px]",48:"md:h-[48px] md:w-[48px]",64:"md:h-[64px] md:w-[64px]",72:"md:h-[72px] md:w-[72px]",80:"md:h-[80px] md:w-[80px]"},lg:{12:"lg:h-[12px] lg:w-[12px]",16:"lg:h-[16px] lg:w-[16px]",18:"lg:h-[18px] lg:w-[18px]",20:"lg:h-[20px] lg:w-[20px]",24:"lg:h-[24px] lg:w-[24px]",32:"lg:h-[32px] lg:w-[32px]",36:"lg:h-[36px] lg:w-[36px]",40:"lg:h-[40px] lg:w-[40px]",42:"lg:h-[42px] lg:w-[42px]",48:"lg:h-[48px] lg:w-[48px]",64:"lg:h-[64px] lg:w-[64px]",72:"lg:h-[72px] lg:w-[72px]",80:"lg:h-[80px] lg:w-[80px]"},xl:{12:"xl:h-[12px] xl:w-[12px]",16:"xl:h-[16px] xl:w-[16px]",18:"xl:h-[18px] xl:w-[18px]",20:"xl:h-[20px] xl:w-[20px]",24:"xl:h-[24px] xl:w-[24px]",32:"xl:h-[32px] xl:w-[32px]",36:"xl:h-[36px] xl:w-[36px]",40:"xl:h-[40px] xl:w-[40px]",42:"xl:h-[42px] xl:w-[42px]",48:"xl:h-[48px] xl:w-[48px]",64:"xl:h-[64px] xl:w-[64px]",72:"xl:h-[72px] xl:w-[72px]",80:"xl:h-[80px] xl:w-[80px]"},"2xl":{12:"2xl:h-[12px] 2xl:w-[12px]",16:"2xl:h-[16px] 2xl:w-[16px]",18:"2xl:h-[18px] 2xl:w-[18px]",20:"2xl:h-[20px] 2xl:w-[20px]",24:"2xl:h-[24px] 2xl:w-[24px]",32:"2xl:h-[32px] 2xl:w-[32px]",36:"2xl:h-[36px] 2xl:w-[36px]",40:"2xl:h-[40px] 2xl:w-[40px]",42:"2xl:h-[42px] 2xl:w-[42px]",48:"2xl:h-[48px] 2xl:w-[48px]",64:"2xl:h-[64px] 2xl:w-[64px]",72:"2xl:h-[72px] 2xl:w-[72px]",80:"2xl:h-[80px] 2xl:w-[80px]"}},C=e=>String(e),H=(e,o=24)=>{let t=[],r={};if(e===void 0){let s=C(o);s?t.push(R[s]):(r.height=`${o}px`,r.width=`${o}px`);}if(typeof e=="number"){let s=C(e);s?t.push(R[s]):(r.height=`${e}px`,r.width=`${e}px`);}if(Array.isArray(e)){let s=C(o),n=[s&&R[s]||`h-[${o}px] w-[${o}px]`];e.forEach(i=>{if(typeof i=="string"){let[a,c]=i.split(":"),p=parseInt(c,10),f=C(p);t.push(f&&z[a]?.[f]||`${a}:h-[${p}px] ${a}:w-[${p}px]`);}}),t.push(...n);}if(typeof e=="string"){let[s,n]=e.split(":"),i=parseInt(n,10),a=C(i);t.push(a&&z[s]?.[a]||`${s}:h-[${i}px] ${s}:w-[${i}px]`);}return {responsiveSizeClasses:t.join(" "),responsiveSizeStyles:r}};var F={primary:"var(--color-primary)",secondary:"var(--color-secondary)",white:"var(--color-white)",primaryBlue:"var(--color-primary-100)",disabled:"var(--color-disabled)",danger:"var(--color-danger)",tertiary:"var(--color-tertiary-20)"},T=m__default.forwardRef(({name:e,size:o=24,color:t="primary",title:r,className:s,style:n={},...i},a)=>{let c=IconMap[e],{responsiveSizeClasses:p,responsiveSizeStyles:f}=H(o,24);return m__default.createElement("div",{className:l("flex justify-center items-center",p,s),style:{"--icon-stroke":F[t],...f,...n}},m__default.createElement(c,{ref:a,"aria-hidden":!r,"aria-label":r,stroke:e.includes("filled")?void 0:F[t],...i}))});T.displayName="Icon";var se={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"}},K=m.forwardRef(({title:e,message:o,action:t,secondaryAction:r,variant:s="default",duration:n=5e3,className:i,onOpenChange:a,allowOutsideClick:c=true,onClose:p,...f},v)=>{let b=se[s],Z=m.useCallback(S=>{!c&&S===false||(a?.(S),S||p?.());},[a,c,p]);return m.createElement(h.Root,{ref:v,onOpenChange:Z,duration:n,className:l("group pointer-events-auto relative flex w-full flex-col gap-4 rounded-lg p-4 items-center","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",b.className,i),...f},m.createElement(h.Close,{className:"absolute right-1 top-1 h-[40px] w-[40px] p-1 hover:bg-background-0/10 flex items-center justify-center rounded-lg","aria-label":"Close",onClick:p},m.createElement(T,{name:"close",size:16,color:"white"})),m.createElement("div",{className:"flex gap-4"},m.createElement(T,{name:b.icon,className:"h-5 w-5 shrink-0",color:"white"}),m.createElement("div",{className:"flex flex-col flex-1 gap-2"},e&&m.createElement(h.Title,{asChild:true},m.createElement(x,{variant:"body-default-bold",color:"inherit"},e)),m.createElement(h.Description,{asChild:true},m.createElement(x,{variant:"body-xs-medium",color:"inherit"},o)))),(t||r)&&m.createElement("div",{className:"flex gap-2 justify-end mt-2"},r&&m.createElement(h.Action,{asChild:true,altText:r.label},m.createElement("div",{className:"min-h-[40px] flex items-center"},m.createElement(E,{variant:r.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:r.onClick},r.label))),t&&m.createElement(h.Action,{asChild:true,altText:t.label},m.createElement("div",{className:"flex items-center"},m.createElement(E,{variant:t.variant||"outlined",color:"black",className:"border-white text-white hover:bg-background-0/10",onClick:t.onClick},t.label)))))});K.displayName="Toast";var _=typeof window<"u"?useLayoutEffect:useEffect;var I=m__default.forwardRef(({children:e,type:o="button",className:t,disabled:r,...s},n)=>m__default.createElement("button",{ref:n,type:o,disabled:r,className:l("appearance-none hover:opacity-80 transition-all active:scale-95",w,r&&"opacity-50 cursor-not-allowed",t),...s},e));I.displayName="Pressable";function B({children:e,maxHeight:o=100}){let[t,r]=m__default.useState(false),s=useRef(null),[n,i]=useState(o);_(()=>{if(!s.current)return;let c=new ResizeObserver(p=>{for(let f of p)i(f.target.scrollHeight);});return c.observe(s.current),()=>c.disconnect()},[]);let a=n>o;return m__default.createElement(k.Root,{open:t,onOpenChange:r},m__default.createElement("div",{className:"relative"},m__default.createElement("div",{className:"overflow-hidden transition-[height] duration-300 ease-in-out",style:{height:t?`${n}px`:`${o}px`}},m__default.createElement("div",{ref:s,className:"w-full"},e)),a&&m__default.createElement(k.Trigger,{asChild:true},m__default.createElement(I,{className:l("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-background-0 to-background-0","hover:opacity-100 transition-opacity")},m__default.createElement(x,{variant:"label-default",color:"secondary"},t?"See less":"See more")))))}B.displayName="Collapsible";var D={sm:"h-4",md:"h-6",lg:"h-8"},pe={sm:"w-20",md:"w-32",lg:"w-48"},V={sm:"w-8 h-8",md:"w-12 h-12",lg:"w-16 h-16"},M=m__default.forwardRef(({variant:e="text",size:o="md",lines:t=1,className:r,animate:s=true},n)=>{let i="bg-secondary-50 rounded-lg overflow-hidden",a=s?"animate-pulse":"",p=typeof o=="number"?(v=>({height:`${v}px`,width:e==="avatar"||e==="image"?`${v}px`:void 0}))(o):void 0,f=()=>{switch(e){case "text":return m__default.createElement("div",{className:"flex flex-col gap-2"},Array.from({length:t}).map((v,b)=>m__default.createElement("div",{key:b,style:p,className:l(i,a,typeof o=="string"?D[o]:void 0,b===t-1&&t>1?"w-3/4":"w-full",r)})));case "image":return m__default.createElement("div",{style:p,className:l(i,a,(!p||!r)&&"aspect-square w-full max-w-[300px]",r)});case "button":return m__default.createElement("div",{style:p,className:l(i,a,typeof o=="string"&&[D[o],pe[o]],r)});case "card":return m__default.createElement("div",{className:l("flex flex-col gap-4 p-6 border border-stroke rounded-xl",r)},m__default.createElement("div",{className:l(i,a,"w-16 h-16 rounded-full")}),m__default.createElement("div",{className:"space-y-2"},m__default.createElement("div",{className:l(i,a,"h-6 w-3/4")}),m__default.createElement("div",{className:l(i,a,"h-4 w-1/2")})),m__default.createElement("div",{className:"space-y-2"},m__default.createElement("div",{className:l(i,a,"h-4 w-full")}),m__default.createElement("div",{className:l(i,a,"h-4 w-full")}),m__default.createElement("div",{className:l(i,a,"h-4 w-2/3")})));case "avatar":return m__default.createElement("div",{style:p,className:l(i,a,"rounded-full",{[V.sm]:o==="sm",[V.md]:o==="md",[V.lg]:o==="lg"},r)});default:return null}};return m__default.createElement("div",{ref:n,className:l("w-full",r)},f())});M.displayName="Fallback";function j({icon:e,size:o=40,className:t}){let r=e.match(/<svg[^>]*>([\s\S]*?)<\/svg>/),{responsiveSizeClasses:s,responsiveSizeStyles:n}=H(o,40);if(!r)return m__default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...n},className:l(s,t)});let i=e.match(/<svg([^>]*)>/),c=(i?i[1]:"").match(/viewBox=["']([^"']*)["']/),p=c?c[1]:"0 0 40 40";return m__default.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",...n},className:l(s,t)},m__default.createElement("svg",{width:"100%",height:"100%",viewBox:p,preserveAspectRatio:"xMidYMid meet",dangerouslySetInnerHTML:{__html:r[1]}}))}j.displayName="IconRenderer";function Q({children:e,color:o="inherit",variant:t="body-default-semibold",href:r,className:s,...n}){return m__default.createElement(x,{variant:t,color:o},m__default.createElement("a",{href:r,className:l("hover:opacity-80 transition-all ease-in-out active:scale-95 hover:underline text-ellipsis",w,s),...n},e))}function N({icon:e,children:o,href:t,isLoading:r,...s}){return r?m__default.createElement("div",{className:"row gap-2 flex items-center"},m__default.createElement(M,{variant:"image",size:30,className:"rounded-full"}),m__default.createElement(M,{variant:"text",size:"sm",className:"w-32"})):m__default.createElement("div",{className:"row gap-2 flex items-center min-w-0"},m__default.createElement("div",{className:"flex-shrink-0 bg-secondary-400 rounded-full p-2.5 items-center justify-center"},e?m__default.createElement(j,{icon:e,size:18,className:"text-primary"}):m__default.createElement(T,{name:"link",size:18,className:"text-primary"})),m__default.createElement("div",{className:"min-w-0 flex-1"},t?m__default.createElement(Q,{className:"hover:underline truncate block text-primary",href:t,...s,variant:["body-default-semibold","md:body-default-semibold"]},o):m__default.createElement(x,{variant:"body-default-semibold",className:"truncate block text-primary"},o)))}function Lt({contactItems:e,description:o,isEditMode:t=false,onEditClick:r,isLoading:s,...n}){return m__default.createElement("div",{className:"border border-secondary-50 rounded-2xl sm:p-10 p-4 relative flex sm:flex-row flex-col pt-8 sm:pt-4 w-full",...n},m__default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-2 sm:pr-10 pb-6 sm:pb-0 justify-center"},m__default.createElement(B,{maxHeight:120},s||!o?m__default.createElement(M,{variant:"text",lines:4}):m__default.createElement(x,{variant:"body-default"},o))),m__default.createElement("span",{className:"hidden sm:block absolute bg-secondary-50 w-[1px] inset-x-1/2 inset-y-10"}),m__default.createElement("span",{className:"block sm:hidden bg-secondary-50 w-full h-[1px] inset-x-10"}),m__default.createElement("div",{className:"flex flex-col sm:w-1/2 w-full gap-4 sm:pl-10 pt-6 sm:pt-8"},e?e.map(i=>m__default.createElement(N,{key:i.title,...i})):m__default.createElement(m__default.Fragment,null,m__default.createElement(N,{isLoading:true}),m__default.createElement(N,{isLoading:true}))))}export{Lt as AboutCard};//# sourceMappingURL=AboutCard.js.map
16
16
  //# sourceMappingURL=AboutCard.js.map