@mintlify/components 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Card.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/main.css +8 -0
- package/package.json +1 -1
package/dist/Card.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
export declare function Card({ title, icon,
|
|
2
|
+
export declare function Card({ title, icon, className, href, onClick, children, }: {
|
|
3
3
|
/** Large title above children */
|
|
4
4
|
title?: string;
|
|
5
5
|
/** Icon to the top-left of the title */
|
|
6
6
|
icon?: ReactNode | string;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/** Additional classes */
|
|
8
|
+
className?: string;
|
|
9
9
|
/** Link to make the entire card clickable */
|
|
10
10
|
href?: string;
|
|
11
11
|
/** Function to trigger when the card is clicked */
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
(()=>{"use strict";var e={455:(e,r,t)=>{var n=t(258),s=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function d(e,r,t){var n,a={},d=null,c=null;for(n in void 0!==t&&(d=""+t),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(c=r.ref),r)o.call(r,n)&&!i.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:s,type:e,key:d,ref:c,props:a,_owner:l.current}}r.Fragment=a,r.jsx=d,r.jsxs=d},557:(e,r,t)=>{e.exports=t(455)},258:e=>{e.exports=require("react")}},r={};function t(n){var s=r[n];if(void 0!==s)return s.exports;var a=r[n]={exports:{}};return e[n](a,a.exports,t),a.exports}t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{t.r(n),t.d(n,{Accordion:()=>p,AccordionGroup:()=>h,Button:()=>m,Card:()=>j,CardGroup:()=>k,Check:()=>P,Expandable:()=>G,Frame:()=>S,Info:()=>N,Note:()=>M,Param:()=>V,Tab:()=>T,Tabs:()=>E,Tip:()=>L,Tooltip:()=>I,UserDefinedIcon:()=>l,Warning:()=>O});var e=t(557),r=t(258);function s(e){var r,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=s(e[r]))&&(n&&(n+=" "),n+=t);else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const a=function(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=s(e))&&(n&&(n+=" "),n+=r);return n};var o=function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},o.apply(this,arguments)};function l(r){var t=r.icon,n=r.size,s=void 0===n?4:n,l=r.color;return null==t?null:(0,e.jsx)("div",o({className:a("h-".concat(s," w-").concat(s),!l&&"fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"),style:l?{fill:l}:void 0},{children:t}))}var i=function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},i.apply(this,arguments)};function d(r){var t=r.open;return(0,e.jsx)("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"h-3 w-3",style:{fill:"currentColor",transform:t?"rotate(90deg)":void 0}},{children:(0,e.jsx)("path",{d:"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}))}const c=function(r){var t=r.title,n=r.description,s=r.open,o=r.setOpen,c=r.icon,u=r.isRounded,p=r.coverClass;return(0,e.jsxs)("button",i({onClick:function(){return o(!s)},className:a("not-prose flex flex-row items-center content-center w-full",u&&"rounded-t-xl",u&&!s&&"rounded-b-xl",p),"aria-controls":t+"Children","aria-expanded":s},{children:[(0,e.jsx)(d,{open:s}),(0,e.jsx)(l,{icon:c}),(0,e.jsxs)("div",i({className:"leading-tight text-left"},{children:[(0,e.jsx)("p",i({className:"m-0 font-medium text-slate-900 dark:text-slate-200"},{children:t})),n?(0,e.jsx)("p",i({className:"m-0 text-slate-900 dark:text-slate-200"},{children:n})):null]}))]}))};var u=function(){return u=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},u.apply(this,arguments)};const p=function(t){var n=t.title,s=t.description,o=t.defaultOpen,l=void 0!==o&&o,i=t.icon,d=t.onChange,p=t.variant,x=void 0===p?"rounded":p,h=t.children,v=(0,r.useState)(l),f=v[0],g=v[1],m=function(e){return"minimalist"===e?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800"}:{parentClass:"border dark:border-slate-800 rounded-xl mb-3",coverClass:"py-4 px-5 space-x-2 hover:bg-slate-100 hover:dark:bg-slate-800",contentClass:"mt-2 mb-4 mx-6"}}(x),b=m.parentClass,j=m.coverClass,y=m.contentClass;return(0,e.jsxs)("div",u({role:"listitem",className:b},{children:[(0,e.jsx)(c,{title:n,description:s,open:f,setOpen:function(e){g(e),d&&d(e)},icon:i,isRounded:"rounded"===x,coverClass:j}),(0,e.jsx)("div",u({className:a(y,!f&&"hidden")},{children:h}))]}),n)};var x=function(){return x=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},x.apply(this,arguments)};const h=function(r){var t=r.children;return(0,e.jsx)("div",x({className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-slate dark:prose-dark divide-y divide-inherit border dark:border-slate-800",role:"list"},{children:t}))};var v=function(){return v=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},v.apply(this,arguments)},f={indigo:["bg-indigo-50 text-indigo-600 hover:bg-indigo-200 hover:text-indigo-700 focus:ring-indigo-500","text-indigo-300 group-hover:text-indigo-400"],pink:["bg-pink-50 text-pink-600 hover:bg-pink-100 hover:text-pink-700 focus:ring-pink-600","text-pink-300 group-hover:text-pink-400"],sky:["bg-sky-50 text-sky-600 hover:bg-sky-100 hover:text-sky-700 focus:ring-sky-600","text-sky-300 group-hover:text-sky-400"],blue:["bg-blue-50 text-blue-600 hover:bg-blue-100 hover:text-blue-700 focus:ring-blue-600","text-blue-300 group-hover:text-blue-400"],gray:["bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900 focus:ring-slate-500","text-slate-300 group-hover:text-slate-400"]},g=v(v({},f),{gray:["dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600 dark:hover:text-white dark:focus:ring-slate-500","dark:text-slate-500 dark:group-hover:text-slate-400"],sky:["dark:bg-sky-500 dark:text-sky-50 dark:hover:bg-sky-400 dark:hover:text-white dark:focus:ring-sky-200","dark:text-sky-300 dark:group-hover:text-sky-100"]});function m(r){var t=r.href,n=r.color,s=void 0===n?"gray":n,o=r.darkColor,l=void 0===o?s:o,i=r.reverse,d=void 0!==i&&i,c=r.children,u="string"==typeof s?f[s]:s,p="string"==typeof l?g[l]||[]:l;return(0,e.jsxs)("a",v({className:a("group inline-flex items-center h-9 rounded-full text-sm font-semibold whitespace-nowrap px-3 focus:outline-none focus:ring-2",u[0],p[0],d&&"flex-row-reverse"),href:t},{children:[c,(0,e.jsx)("svg",v({className:a("overflow-visible",d?"mr-3":"ml-3",u[1],p[1]),width:"3",height:"6",viewBox:"0 0 3 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:(0,e.jsx)("path",{d:d?"M3 0L0 3L3 6":"M0 0L3 3L0 6"})}))]}))}var b=function(){return b=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},b.apply(this,arguments)};function j(t){var n=t.title,s=t.icon,o=t.hoverHighlightColour,i=t.href,d=t.onClick,c=t.children,u=(0,r.useState)(!1),p=u[0],x=u[1],h=i?"a":"div";return(0,e.jsxs)(h,b({className:a("block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden px-6 py-5 w-full",i||o?"cursor-pointer":void 0),style:o&&p?{borderColor:o}:void 0,onMouseEnter:function(){x(!0)},onMouseLeave:function(){x(!1)},href:i,onClick:d},{children:[(0,e.jsx)(l,{icon:s,size:6}),(0,e.jsx)("h2",b({className:a("font-semibold text-base text-slate-800 dark:text-white",null!=s&&"mt-4")},{children:n})),(0,e.jsx)("span",b({className:a("mt-1 font-normal",n?"text-slate-600 dark:text-slate-400":"text-slate-700 dark:text-slate-300")},{children:c}))]}))}var y=function(){return y=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},y.apply(this,arguments)};function k(r){var t=r.children,n=r.cols,s=void 0===n?2:n;return(0,e.jsx)("div",y({className:"grid sm:grid-cols-".concat(s," gap-x-4")},{children:t}))}var C=function(){return C=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},C.apply(this,arguments)};function w(r){var t=r.children,n=r.icon,s=r.className;return(0,e.jsx)("div",C({className:"px-4 py-4 mb-4 rounded-xl ".concat(s)},{children:(0,e.jsxs)("div",C({className:"flex items-start space-x-3"},{children:[(0,e.jsx)("div",C({className:"mt-0.5 w-4"},{children:n})),(0,e.jsx)("div",C({className:"flex-1 font-medium text-sm prose dark:text-slate-50"},{children:t}))]}))}))}function N(r){var t=r.children;return(0,e.jsx)(w,C({className:"bg-slate-100 dark:bg-slate-600",icon:(0,e.jsx)("svg",C({viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-slate-400 dark:text-slate-300","aria-label":"Info"},{children:(0,e.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}))},{children:t}))}function O(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({className:"flex-none w-5 h-5 text-yellow-400 dark:text-yellow-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning"},{children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})),className:"bg-amber-50 dark:bg-yellow-500/40"},{children:t}))}function M(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note"},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})})),className:"bg-sky-100 dark:bg-sky-900"},{children:t}))}function L(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto","aria-label":"Tip"},{children:(0,e.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:t}))}function P(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check"},{children:(0,e.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:t}))}var H=function(){return H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},H.apply(this,arguments)},_={none:"",md:"p-8"};function S(r){var t=r.as,n=void 0===t?"div":t,s=r.style,o=r.className,l=r.containerClassName,i=r.html,d=r.children,c=r.hint,u=r.padding,p=void 0===u?"md":u,x=r.lightOnly,h=void 0!==x&&x,v=_[p];return(0,e.jsxs)("div",H({className:l},{children:[void 0!==c&&(0,e.jsxs)("div",H({className:"not-prose mb-4 flex items-center space-x-2"},{children:[(0,e.jsx)("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-slate-400 dark:fill-slate-300"},{children:(0,e.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})})),(0,e.jsx)("p",H({className:"text-slate-700 text-sm font-medium dark:text-slate-200"},{children:c}))]})),(0,e.jsxs)(n,H({style:s,className:a("not-prose relative bg-slate-50 rounded-xl overflow-hidden",!h&&"dark:bg-slate-800/25")},{children:[(0,e.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:a("absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))]",!h&&"dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]")}),(0,e.jsx)("div",H({className:a("relative rounded-xl overflow-auto flex justify-center",v,o)},i?{dangerouslySetInnerHTML:{__html:i}}:{children:d})),(0,e.jsx)("div",{className:a("absolute inset-0 pointer-events-none border border-black/5 rounded-xl",!h&&"dark:border-white/5")})]}))]}))}var z=function(){return z=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},z.apply(this,arguments)};function V(r){return(0,e.jsx)(Z,z({},r))}function Z(r){var t=r.name,n=r.type,s=r.defaultValue,o=r.required,l=void 0!==o&&o,i=r.hidden,d=void 0!==i&&i,c=r.nameClasses,u=r.children;return d?null:(0,e.jsxs)("div",z({className:a("pb-3 mb-4 border-b border-slate-100 dark:border-slate-800")},{children:[(0,e.jsxs)("div",z({className:"flex font-mono text-sm"},{children:[t&&(0,e.jsxs)("div",z({className:"py-px flex-1 space-x-2 truncate"},{children:[(0,e.jsx)("span",z({className:a("px-1 py-px rounded-md font-medium bg-slate-50 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",c,c&&!c.includes("text-")||!c?"dark:text-slate-200":void 0)},{children:t})),l&&(0,e.jsx)("span",z({className:"text-slate-500 dark:text-slate-300"},{children:"Required"})),s&&(0,e.jsxs)("span",z({className:"text-slate-500 dark:text-slate-300"},{children:["Default: ",s]}))]})),n&&(0,e.jsx)("div",z({className:"text-slate-600 dark:text-slate-300"},{children:n}))]})),(0,e.jsx)("div",z({className:"mt-2 prose-sm prose-slate dark:prose-dark"},{children:u}))]}))}var B=function(){return B=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},B.apply(this,arguments)};function T(r){var t=r.title,n=r.isActive,s=void 0===n||n,o=r.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",B({className:a("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",s?"text-primary dark:text-primary-light border-current":"text-slate-900 border-transparent hover:border-slate-300 dark:text-slate-200 dark:hover:border-slate-700")},{children:t})),o?(0,e.jsx)("div",B({className:"prose dark:prose-dark"},{children:o})):null]})}var R=function(){return R=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},R.apply(this,arguments)};function E(t){var n=t.children,s=(0,r.useState)(0),a=s[0],o=s[1],l=r.Children.toArray(n),i=l[a].props.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("ul",R({className:"not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-slate-200 space-x-6 flex dark:border-slate-200/5"},{children:l.map((function(r,t){return(0,e.jsx)("li",R({className:"cursor-pointer",onClick:function(){return o(t)}},{children:(0,e.jsx)(T,{title:r.props.title,isActive:t===a})}))}))})),(0,e.jsx)("div",R({className:"prose dark:prose-dark"},{children:i}))]})}var A=function(){return A=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},A.apply(this,arguments)};function I(r){var t=r.tip,n=r.children;return n?(0,e.jsxs)("span",A({className:"group z-10 inline relative"},{children:[F(n),(0,e.jsx)("span",A({className:"hidden group-hover:flex w-fit lg:whitespace-nowrap absolute bottom-full left-1/2 mb-0.5 pb-1 -translate-x-1/2 bg-slate-800 text-center text-slate-50 text-xs px-1.5 py-1 rounded-lg border border-slate-50"},{children:t}))]})):null}function F(t){return(0,r.isValidElement)(t)?t:(0,e.jsx)("span",A({className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-slate-400 dark:decoration-slate-500"},{children:t}))}var W=function(){return W=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},W.apply(this,arguments)};function D(r){var t=r.open;return(0,e.jsx)("svg",W({xmlns:"http://www.w3.org/2000/svg",className:a("h-3.5 w-3.5",t&&"rotate-90 -mt-1"),viewBox:"0 0 256 512",fill:"currentColor"},{children:(0,e.jsx)("path",{d:"M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"})}))}const q=function(r){var t=r.title,n=r.description,s=r.open,a=r.setOpen;return(0,e.jsxs)("button",W({onClick:function(){return a(!s)},className:"not-prose mt-1 flex flex-row items-center content-center w-full py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200 ".concat(s?"":"rounded-b-xl"),"aria-controls":t+"Children","aria-expanded":s},{children:[(0,e.jsx)(D,{open:s}),(0,e.jsxs)("div",W({className:"ml-2 leading-tight text-left"},{children:[(0,e.jsxs)("p",W({className:"m-0"},{children:[s?"Hide":"Show"," ",t]})),n?(0,e.jsx)("p",W({className:"m-0"},{children:n})):null]}))]}))};var U=function(){return U=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},U.apply(this,arguments)};const G=function(t){var n=t.title,s=t.description,o=t.defaultOpen,l=void 0!==o&&o,i=t.onChange,d=t.children,c=(0,r.useState)(l),u=c[0],p=c[1];return(0,e.jsxs)("div",U({role:"listitem",className:""},{children:[(0,e.jsx)(q,{title:n,description:s,open:u,setOpen:function(e){p(e),i&&i(e)}}),(0,e.jsx)("div",U({id:n+"Children",className:a("mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800",!u&&"hidden")},{children:d}))]}),n)}})(),module.exports=n})();
|
|
2
|
+
(()=>{"use strict";var e={455:(e,r,t)=>{var n=t(258),s=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var n,a={},c=null,d=null;for(n in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(d=r.ref),r)o.call(r,n)&&!i.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:s,type:e,key:c,ref:d,props:a,_owner:l.current}}r.Fragment=a,r.jsx=c,r.jsxs=c},557:(e,r,t)=>{e.exports=t(455)},258:e=>{e.exports=require("react")}},r={};function t(n){var s=r[n];if(void 0!==s)return s.exports;var a=r[n]={exports:{}};return e[n](a,a.exports,t),a.exports}t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{t.r(n),t.d(n,{Accordion:()=>u,AccordionGroup:()=>h,Button:()=>m,Card:()=>j,CardGroup:()=>y,Check:()=>L,Expandable:()=>G,Frame:()=>S,Info:()=>N,Note:()=>M,Param:()=>V,Tab:()=>T,Tabs:()=>A,Tip:()=>P,Tooltip:()=>I,UserDefinedIcon:()=>l,Warning:()=>O});var e=t(557),r=t(258);function s(e){var r,t,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=s(e[r]))&&(n&&(n+=" "),n+=t);else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const a=function(){for(var e,r,t=0,n="";t<arguments.length;)(e=arguments[t++])&&(r=s(e))&&(n&&(n+=" "),n+=r);return n};var o=function(){return o=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},o.apply(this,arguments)};function l(r){var t=r.icon,n=r.size,s=void 0===n?4:n,l=r.color;return null==t?null:(0,e.jsx)("div",o({className:a("h-".concat(s," w-").concat(s),!l&&"fill-slate-800 dark:fill-slate-100 text-slate-800 dark:text-slate-100"),style:l?{fill:l}:void 0},{children:t}))}var i=function(){return i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},i.apply(this,arguments)};function c(r){var t=r.open;return(0,e.jsx)("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",className:"h-3 w-3",style:{fill:"currentColor",transform:t?"rotate(90deg)":void 0}},{children:(0,e.jsx)("path",{d:"M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"})}))}const d=function(r){var t=r.title,n=r.description,s=r.open,o=r.setOpen,d=r.icon,p=r.isRounded,u=r.coverClass;return(0,e.jsxs)("button",i({onClick:function(){return o(!s)},className:a("not-prose flex flex-row items-center content-center w-full",p&&"rounded-t-xl",p&&!s&&"rounded-b-xl",u),"aria-controls":t+"Children","aria-expanded":s},{children:[(0,e.jsx)(c,{open:s}),(0,e.jsx)(l,{icon:d}),(0,e.jsxs)("div",i({className:"leading-tight text-left"},{children:[(0,e.jsx)("p",i({className:"m-0 font-medium text-slate-900 dark:text-slate-200"},{children:t})),n?(0,e.jsx)("p",i({className:"m-0 text-slate-900 dark:text-slate-200"},{children:n})):null]}))]}))};var p=function(){return p=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},p.apply(this,arguments)};const u=function(t){var n=t.title,s=t.description,o=t.defaultOpen,l=void 0!==o&&o,i=t.icon,c=t.onChange,u=t.variant,x=void 0===u?"rounded":u,h=t.children,v=(0,r.useState)(l),f=v[0],g=v[1],m=function(e){return"minimalist"===e?{parentClass:"",coverClass:"[&>div]:ml-2 py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200",contentClass:"mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800"}:{parentClass:"border dark:border-slate-800 rounded-xl mb-3",coverClass:"py-4 px-5 space-x-2 hover:bg-slate-100 hover:dark:bg-slate-800",contentClass:"mt-2 mb-4 mx-6"}}(x),b=m.parentClass,j=m.coverClass,k=m.contentClass;return(0,e.jsxs)("div",p({role:"listitem",className:b},{children:[(0,e.jsx)(d,{title:n,description:s,open:f,setOpen:function(e){g(e),c&&c(e)},icon:i,isRounded:"rounded"===x,coverClass:j}),(0,e.jsx)("div",p({className:a(k,!f&&"hidden")},{children:h}))]}),n)};var x=function(){return x=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},x.apply(this,arguments)};const h=function(r){var t=r.children;return(0,e.jsx)("div",x({className:"[&>div]:border-0 [&>div]:rounded-none [&>div>button]:rounded-none [&>div]:mb-0 overflow-hidden mt-0 mb-3 rounded-xl prose prose-slate dark:prose-dark divide-y divide-inherit border dark:border-slate-800",role:"list"},{children:t}))};var v=function(){return v=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},v.apply(this,arguments)},f={indigo:["bg-indigo-50 text-indigo-600 hover:bg-indigo-200 hover:text-indigo-700 focus:ring-indigo-500","text-indigo-300 group-hover:text-indigo-400"],pink:["bg-pink-50 text-pink-600 hover:bg-pink-100 hover:text-pink-700 focus:ring-pink-600","text-pink-300 group-hover:text-pink-400"],sky:["bg-sky-50 text-sky-600 hover:bg-sky-100 hover:text-sky-700 focus:ring-sky-600","text-sky-300 group-hover:text-sky-400"],blue:["bg-blue-50 text-blue-600 hover:bg-blue-100 hover:text-blue-700 focus:ring-blue-600","text-blue-300 group-hover:text-blue-400"],gray:["bg-slate-100 text-slate-700 hover:bg-slate-200 hover:text-slate-900 focus:ring-slate-500","text-slate-300 group-hover:text-slate-400"]},g=v(v({},f),{gray:["dark:bg-slate-700 dark:text-slate-100 dark:hover:bg-slate-600 dark:hover:text-white dark:focus:ring-slate-500","dark:text-slate-500 dark:group-hover:text-slate-400"],sky:["dark:bg-sky-500 dark:text-sky-50 dark:hover:bg-sky-400 dark:hover:text-white dark:focus:ring-sky-200","dark:text-sky-300 dark:group-hover:text-sky-100"]});function m(r){var t=r.href,n=r.color,s=void 0===n?"gray":n,o=r.darkColor,l=void 0===o?s:o,i=r.reverse,c=void 0!==i&&i,d=r.children,p="string"==typeof s?f[s]:s,u="string"==typeof l?g[l]||[]:l;return(0,e.jsxs)("a",v({className:a("group inline-flex items-center h-9 rounded-full text-sm font-semibold whitespace-nowrap px-3 focus:outline-none focus:ring-2",p[0],u[0],c&&"flex-row-reverse"),href:t},{children:[d,(0,e.jsx)("svg",v({className:a("overflow-visible",c?"mr-3":"ml-3",p[1],u[1]),width:"3",height:"6",viewBox:"0 0 3 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:(0,e.jsx)("path",{d:c?"M3 0L0 3L3 6":"M0 0L3 3L0 6"})}))]}))}var b=function(){return b=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},b.apply(this,arguments)};function j(r){var t=r.title,n=r.icon,s=r.className,o=r.href,i=r.onClick,c=r.children,d=o?"a":"div";return(0,e.jsxs)(d,b({className:a("block not-prose font-normal group relative my-2 ring-2 ring-transparent rounded-xl border border-slate-200 dark:border-slate-800 overflow-hidden px-6 py-5 w-full",o&&"cursor-pointer",s),href:o,onClick:i},{children:[(0,e.jsx)(l,{icon:n,size:6}),(0,e.jsx)("h2",b({className:a("font-semibold text-base text-slate-800 dark:text-white",null!=n&&"mt-4")},{children:t})),(0,e.jsx)("span",b({className:a("mt-1 font-normal",t?"text-slate-600 dark:text-slate-400":"text-slate-700 dark:text-slate-300")},{children:c}))]}))}var k=function(){return k=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},k.apply(this,arguments)};function y(r){var t=r.children,n=r.cols,s=void 0===n?2:n;return(0,e.jsx)("div",k({className:"grid sm:grid-cols-".concat(s," gap-x-4")},{children:t}))}var C=function(){return C=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},C.apply(this,arguments)};function w(r){var t=r.children,n=r.icon,s=r.className;return(0,e.jsx)("div",C({className:"px-4 py-4 mb-4 rounded-xl ".concat(s)},{children:(0,e.jsxs)("div",C({className:"flex items-start space-x-3"},{children:[(0,e.jsx)("div",C({className:"mt-0.5 w-4"},{children:n})),(0,e.jsx)("div",C({className:"flex-1 font-medium text-sm prose dark:text-slate-50"},{children:t}))]}))}))}function N(r){var t=r.children;return(0,e.jsx)(w,C({className:"bg-slate-100 dark:bg-slate-600",icon:(0,e.jsx)("svg",C({viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"flex-none w-5 h-5 text-slate-400 dark:text-slate-300","aria-label":"Info"},{children:(0,e.jsx)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 14.5C4.41563 14.5 1.5 11.5841 1.5 8C1.5 4.41594 4.41563 1.5 8 1.5C11.5844 1.5 14.5 4.41594 14.5 8C14.5 11.5841 11.5844 14.5 8 14.5ZM9.25 10.5H8.75V7.75C8.75 7.3375 8.41563 7 8 7H7C6.5875 7 6.25 7.3375 6.25 7.75C6.25 8.1625 6.5875 8.5 7 8.5H7.25V10.5H6.75C6.3375 10.5 6 10.8375 6 11.25C6 11.6625 6.3375 12 6.75 12H9.25C9.66406 12 10 11.6641 10 11.25C10 10.8359 9.66563 10.5 9.25 10.5ZM8 6C8.55219 6 9 5.55219 9 5C9 4.44781 8.55219 4 8 4C7.44781 4 7 4.44687 7 5C7 5.55313 7.44687 6 8 6Z"})}))},{children:t}))}function O(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({className:"flex-none w-5 h-5 text-yellow-400 dark:text-yellow-300/80",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-label":"Warning"},{children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})),className:"bg-amber-50 dark:bg-yellow-500/40"},{children:t}))}function M(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({width:"14",height:"14",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 text-sky-500","aria-label":"Note"},{children:(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"})})),className:"bg-sky-100 dark:bg-sky-900"},{children:t}))}function P(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({width:"11",height:"14",viewBox:"0 0 11 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto","aria-label":"Tip"},{children:(0,e.jsx)("path",{d:"M3.12794 12.4232C3.12794 12.5954 3.1776 12.7634 3.27244 12.907L3.74114 13.6095C3.88471 13.8248 4.21067 14 4.46964 14H6.15606C6.41415 14 6.74017 13.825 6.88373 13.6095L7.3508 12.9073C7.43114 12.7859 7.49705 12.569 7.49705 12.4232L7.50055 11.3513H3.12521L3.12794 12.4232ZM5.31288 0C2.52414 0.00875889 0.5 2.26889 0.5 4.78826C0.5 6.00188 0.949566 7.10829 1.69119 7.95492C2.14321 8.47011 2.84901 9.54727 3.11919 10.4557C3.12005 10.4625 3.12175 10.4698 3.12261 10.4771H7.50342C7.50427 10.4698 7.50598 10.463 7.50684 10.4557C7.77688 9.54727 8.48281 8.47011 8.93484 7.95492C9.67728 7.13181 10.1258 6.02703 10.1258 4.78826C10.1258 2.15486 7.9709 0.000106649 5.31288 0ZM7.94902 7.11267C7.52078 7.60079 6.99082 8.37878 6.6077 9.18794H4.02051C3.63739 8.37878 3.10743 7.60079 2.67947 7.11294C2.11997 6.47551 1.8126 5.63599 1.8126 4.78826C1.8126 3.09829 3.12794 1.31944 5.28827 1.3126C7.2435 1.3126 8.81315 2.88226 8.81315 4.78826C8.81315 5.63599 8.50688 6.47551 7.94902 7.11267ZM4.87534 2.18767C3.66939 2.18767 2.68767 3.16939 2.68767 4.37534C2.68767 4.61719 2.88336 4.81288 3.12521 4.81288C3.36705 4.81288 3.56274 4.61599 3.56274 4.37534C3.56274 3.6515 4.1515 3.06274 4.87534 3.06274C5.11719 3.06274 5.31288 2.86727 5.31288 2.62548C5.31288 2.38369 5.11599 2.18767 4.87534 2.18767Z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:t}))}function L(r){var t=r.children;return(0,e.jsx)(w,C({icon:(0,e.jsx)("svg",C({className:"text-green-600 dark:text-green-400/80 w-3.5 h-auto",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512","aria-label":"Check"},{children:(0,e.jsx)("path",{d:"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z"})})),className:"bg-green-100/80 dark:bg-green-900"},{children:t}))}var H=function(){return H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},H.apply(this,arguments)},_={none:"",md:"p-8"};function S(r){var t=r.as,n=void 0===t?"div":t,s=r.style,o=r.className,l=r.containerClassName,i=r.html,c=r.children,d=r.hint,p=r.padding,u=void 0===p?"md":p,x=r.lightOnly,h=void 0!==x&&x,v=_[u];return(0,e.jsxs)("div",H({className:l},{children:[void 0!==d&&(0,e.jsxs)("div",H({className:"not-prose mb-4 flex items-center space-x-2"},{children:[(0,e.jsx)("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",className:"flex-none w-4 h-4 fill-slate-400 dark:fill-slate-300"},{children:(0,e.jsx)("path",{d:"M224 320c0 17.69 14.33 32 32 32h64c17.67 0 32-14.31 32-32s-14.33-32-32-32h-64C238.3 288 224 302.3 224 320zM267.6 256H352c17.67 0 32-14.31 32-32s-14.33-32-32-32h-80v40C272 240.5 270.3 248.5 267.6 256zM272 160H480c17.67 0 32-14.31 32-32s-14.33-32-32-32h-208.8C271.5 98.66 272 101.3 272 104V160zM320 416c0-17.69-14.33-32-32-32H224c-17.67 0-32 14.31-32 32s14.33 32 32 32h64C305.7 448 320 433.7 320 416zM202.1 355.8C196 345.6 192 333.3 192 320c0-5.766 1.08-11.24 2.51-16.55C157.4 300.6 128 269.9 128 232V159.1C128 151.2 135.2 144 143.1 144S160 151.2 159.1 159.1l0 69.72C159.1 245.2 171.3 271.1 200 271.1C222.1 271.1 240 254.1 240 232v-128C240 81.91 222.1 64 200 64H136.6C103.5 64 72.03 80 52.47 106.8L26.02 143.2C9.107 166.5 0 194.5 0 223.3V312C0 387.1 60.89 448 136 448h32.88C163.4 438.6 160 427.7 160 416C160 388.1 178 364.6 202.1 355.8z"})})),(0,e.jsx)("p",H({className:"text-slate-700 text-sm font-medium dark:text-slate-200"},{children:d}))]})),(0,e.jsxs)(n,H({style:s,className:a("not-prose relative bg-slate-50 rounded-xl overflow-hidden",!h&&"dark:bg-slate-800/25")},{children:[(0,e.jsx)("div",{style:{backgroundPosition:"10px 10px"},className:a("absolute inset-0 bg-grid-slate-100 [mask-image:linear-gradient(0deg,#fff,rgba(255,255,255,0.6))]",!h&&"dark:bg-grid-slate-700/25 dark:[mask-image:linear-gradient(0deg,rgba(255,255,255,0.1),rgba(255,255,255,0.5))]")}),(0,e.jsx)("div",H({className:a("relative rounded-xl overflow-auto flex justify-center",v,o)},i?{dangerouslySetInnerHTML:{__html:i}}:{children:c})),(0,e.jsx)("div",{className:a("absolute inset-0 pointer-events-none border border-black/5 rounded-xl",!h&&"dark:border-white/5")})]}))]}))}var z=function(){return z=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},z.apply(this,arguments)};function V(r){return(0,e.jsx)(Z,z({},r))}function Z(r){var t=r.name,n=r.type,s=r.defaultValue,o=r.required,l=void 0!==o&&o,i=r.hidden,c=void 0!==i&&i,d=r.nameClasses,p=r.children;return c?null:(0,e.jsxs)("div",z({className:a("pb-3 mb-4 border-b border-slate-100 dark:border-slate-800")},{children:[(0,e.jsxs)("div",z({className:"flex font-mono text-sm"},{children:[t&&(0,e.jsxs)("div",z({className:"py-px flex-1 space-x-2 truncate"},{children:[(0,e.jsx)("span",z({className:a("px-1 py-px rounded-md font-medium bg-slate-50 dark:bg-slate-800 border border-slate-200 dark:border-slate-700",d,d&&!d.includes("text-")||!d?"dark:text-slate-200":void 0)},{children:t})),l&&(0,e.jsx)("span",z({className:"text-slate-500 dark:text-slate-300"},{children:"Required"})),s&&(0,e.jsxs)("span",z({className:"text-slate-500 dark:text-slate-300"},{children:["Default: ",s]}))]})),n&&(0,e.jsx)("div",z({className:"text-slate-600 dark:text-slate-300"},{children:n}))]})),(0,e.jsx)("div",z({className:"mt-2 prose-sm prose-slate dark:prose-dark"},{children:p}))]}))}var B=function(){return B=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},B.apply(this,arguments)};function T(r){var t=r.title,n=r.isActive,s=void 0===n||n,o=r.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("h2",B({className:a("flex text-sm leading-6 font-semibold whitespace-nowrap pt-3 pb-2.5 -mb-px max-w-max border-b",s?"text-primary dark:text-primary-light border-current":"text-slate-900 border-transparent hover:border-slate-300 dark:text-slate-200 dark:hover:border-slate-700")},{children:t})),o?(0,e.jsx)("div",B({className:"prose dark:prose-dark"},{children:o})):null]})}var R=function(){return R=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},R.apply(this,arguments)};function A(t){var n=t.children,s=(0,r.useState)(0),a=s[0],o=s[1],l=r.Children.toArray(n),i=l[a].props.children;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("ul",R({className:"not-prose mb-6 pb-[1px] flex-none min-w-full overflow-auto border-b border-slate-200 space-x-6 flex dark:border-slate-200/5"},{children:l.map((function(r,t){return(0,e.jsx)("li",R({className:"cursor-pointer",onClick:function(){return o(t)}},{children:(0,e.jsx)(T,{title:r.props.title,isActive:t===a})}))}))})),(0,e.jsx)("div",R({className:"prose dark:prose-dark"},{children:i}))]})}var E=function(){return E=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},E.apply(this,arguments)};function I(r){var t=r.tip,n=r.children;return n?(0,e.jsxs)("span",E({className:"group z-10 inline relative"},{children:[F(n),(0,e.jsx)("span",E({className:"hidden group-hover:flex w-fit lg:whitespace-nowrap absolute bottom-full left-1/2 mb-0.5 pb-1 -translate-x-1/2 bg-slate-800 text-center text-slate-50 text-xs px-1.5 py-1 rounded-lg border border-slate-50"},{children:t}))]})):null}function F(t){return(0,r.isValidElement)(t)?t:(0,e.jsx)("span",E({className:"underline decoration-dotted decoration-2 underline-offset-4 decoration-slate-400 dark:decoration-slate-500"},{children:t}))}var W=function(){return W=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},W.apply(this,arguments)};function D(r){var t=r.open;return(0,e.jsx)("svg",W({xmlns:"http://www.w3.org/2000/svg",className:a("h-3.5 w-3.5",t&&"rotate-90 -mt-1"),viewBox:"0 0 256 512",fill:"currentColor"},{children:(0,e.jsx)("path",{d:"M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"})}))}const q=function(r){var t=r.title,n=r.description,s=r.open,a=r.setOpen;return(0,e.jsxs)("button",W({onClick:function(){return a(!s)},className:"not-prose mt-1 flex flex-row items-center content-center w-full py-1 text-slate-700 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-200 ".concat(s?"":"rounded-b-xl"),"aria-controls":t+"Children","aria-expanded":s},{children:[(0,e.jsx)(D,{open:s}),(0,e.jsxs)("div",W({className:"ml-2 leading-tight text-left"},{children:[(0,e.jsxs)("p",W({className:"m-0"},{children:[s?"Hide":"Show"," ",t]})),n?(0,e.jsx)("p",W({className:"m-0"},{children:n})):null]}))]}))};var U=function(){return U=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var s in r=arguments[t])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},U.apply(this,arguments)};const G=function(t){var n=t.title,s=t.description,o=t.defaultOpen,l=void 0!==o&&o,i=t.onChange,c=t.children,d=(0,r.useState)(l),p=d[0],u=d[1];return(0,e.jsxs)("div",U({role:"listitem",className:""},{children:[(0,e.jsx)(q,{title:n,description:s,open:p,setOpen:function(e){u(e),i&&i(e)}}),(0,e.jsx)("div",U({id:n+"Children",className:a("mt-2 pt-1 mb-4 mx-[7px] px-4 border-l border-slate-100 dark:border-slate-800",!p&&"hidden")},{children:c}))]}),n)}})(),module.exports=n})();
|
package/dist/main.css
CHANGED
|
@@ -1893,6 +1893,10 @@ video {
|
|
|
1893
1893
|
--tw-border-opacity: 1;
|
|
1894
1894
|
border-color: rgba(203, 213, 225, var(--tw-border-opacity));
|
|
1895
1895
|
}
|
|
1896
|
+
.hover\:border-slate-800:hover {
|
|
1897
|
+
--tw-border-opacity: 1;
|
|
1898
|
+
border-color: rgba(30, 41, 59, var(--tw-border-opacity));
|
|
1899
|
+
}
|
|
1896
1900
|
.hover\:bg-indigo-200:hover {
|
|
1897
1901
|
--tw-bg-opacity: 1;
|
|
1898
1902
|
background-color: rgba(199, 210, 254, var(--tw-bg-opacity));
|
|
@@ -2148,6 +2152,10 @@ video {
|
|
|
2148
2152
|
--tw-border-opacity: 1;
|
|
2149
2153
|
border-color: rgba(51, 65, 85, var(--tw-border-opacity));
|
|
2150
2154
|
}
|
|
2155
|
+
.dark .dark\:hover\:border-slate-200:hover {
|
|
2156
|
+
--tw-border-opacity: 1;
|
|
2157
|
+
border-color: rgba(226, 232, 240, var(--tw-border-opacity));
|
|
2158
|
+
}
|
|
2151
2159
|
.dark .dark\:hover\:bg-slate-600:hover {
|
|
2152
2160
|
--tw-bg-opacity: 1;
|
|
2153
2161
|
background-color: rgba(71, 85, 105, var(--tw-bg-opacity));
|