@ngrok/mantle 0.77.0 → 0.79.0
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/accordion.d.ts +63 -21
- package/dist/accordion.js +1 -1
- package/dist/agent.json +4 -1
- package/dist/alert-dialog.d.ts +102 -70
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +39 -39
- package/dist/alert.js +1 -1
- package/dist/{anchor-BtgEJoPN.js → anchor-C_tjSVy6.js} +1 -1
- package/dist/anchor.d.ts +3 -4
- package/dist/anchor.js +1 -1
- package/dist/{as-child-uN_018tj.d.ts → as-child-CYEVu1WY.d.ts} +0 -7
- package/dist/badge.d.ts +5 -56
- package/dist/badge.js +1 -1
- package/dist/breadcrumb.d.ts +212 -0
- package/dist/breadcrumb.js +1 -0
- package/dist/browser-only.d.ts +2 -6
- package/dist/{button-CERx95KE.js → button-5t6-JS_I.js} +1 -1
- package/dist/button-ClC60Nzg.js +1 -0
- package/dist/button-DcXOWUYo.d.ts +131 -0
- package/dist/button.d.ts +6 -4
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +2 -8
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +8 -8
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +147 -0
- package/dist/centered-layout.js +1 -0
- package/dist/checkbox-DJ2xl7Rc.js +1 -0
- package/dist/checkbox.d.ts +9 -11
- package/dist/checkbox.js +1 -1
- package/dist/{choice-D6S38dPs.js → choice-DOdyNzFC.js} +1 -1
- package/dist/choice.d.ts +16 -14
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +5 -17
- package/dist/code-block.js +1 -1
- package/dist/code-block_highlight-utils.d.ts +1 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +4 -5
- package/dist/code.js +1 -1
- package/dist/combobox.d.ts +40 -19
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +71 -49
- package/dist/command.js +1 -1
- package/dist/cx-IiQEAKf5.js +1 -0
- package/dist/cx.js +1 -1
- package/dist/data-slot-CChfb_cv.d.ts +17 -0
- package/dist/data-table.d.ts +77 -137
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +7 -7
- package/dist/description-list.js +1 -1
- package/dist/{dialog-uyJcNks7.js → dialog-ZCgG41hx.js} +1 -1
- package/dist/dialog.d.ts +213 -88
- package/dist/dialog.js +1 -1
- package/dist/{direction-CcTY0FmA.d.ts → direction-BjU0bPST.d.ts} +1 -1
- package/dist/{dropdown-menu-OEuW4GLp.js → dropdown-menu-ByUQkAvJ.js} +1 -1
- package/dist/{dropdown-menu-CADgs9gz.d.ts → dropdown-menu-DMNw8ItM.d.ts} +26 -27
- package/dist/dropdown-menu.d.ts +2 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +139 -59
- package/dist/empty.js +1 -1
- package/dist/{field-context-4k1kI7Bo.js → field-context-BR01g789.js} +1 -1
- package/dist/field.d.ts +41 -36
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +2 -9
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +13 -15
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +42 -20
- package/dist/hover-card.js +1 -1
- package/dist/icon-CDtYjF_H.js +1 -0
- package/dist/{icon-n49kOh4_.d.ts → icon-Cevjo93X.d.ts} +2 -3
- package/dist/{icon-button-D7hs6bX2.d.ts → icon-button-B7uEj1qq.d.ts} +73 -11
- package/dist/icon-button-DV2-GZHf.js +1 -0
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/icons.d.ts +7 -19
- package/dist/icons.js +1 -1
- package/dist/{in-view-bItE1fkG.d.ts → in-view-nkSOdED2.d.ts} +1 -6
- package/dist/{index-CTU6apE6.d.ts → index-BivvYYs-.d.ts} +8 -7
- package/dist/{index-Bed_XLWa.d.ts → index-D47aqlpz.d.ts} +3 -2
- package/dist/index-DZRbVkZa.d.ts +1 -0
- package/dist/index-Rv8RL7xy.d.ts +25 -0
- package/dist/{input-B3TS9yAP.js → input-Ct1YOqSy.js} +1 -1
- package/dist/input.d.ts +10 -11
- package/dist/input.js +1 -1
- package/dist/intents-DdSKSj1c.d.ts +28 -0
- package/dist/{kbd-D6k4Dnrf.js → kbd-K8iaZ-Ti.js} +1 -1
- package/dist/kbd.d.ts +3 -8
- package/dist/kbd.js +1 -1
- package/dist/{label-BLXfnQmn.js → label-BMlHW_2D.js} +1 -1
- package/dist/{label-PY0qM0G5.d.ts → label-v2-bv98k.d.ts} +1 -1
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/list.d.ts +18 -60
- package/dist/list.js +1 -1
- package/dist/llms.txt +4 -1
- package/dist/main.d.ts +4 -27
- package/dist/main.js +1 -1
- package/dist/mantle.css +6 -6
- package/dist/media-object.d.ts +6 -7
- package/dist/media-object.js +1 -1
- package/dist/multi-select.d.ts +80 -33
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +7 -8
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +11 -22
- package/dist/pagination.js +1 -1
- package/dist/{popover-Bq52EC7X.js → popover-D5WxxnBY.js} +1 -1
- package/dist/popover.d.ts +17 -18
- package/dist/popover.js +1 -1
- package/dist/{primitive-FoWela9a.d.ts → primitive-C64-m48O.d.ts} +0 -1
- package/dist/{primitive-BuVqb6zf.js → primitive-M-kZdNIS.js} +1 -1
- package/dist/progress.d.ts +55 -46
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +10 -9
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +71 -60
- package/dist/radio-group.js +1 -1
- package/dist/{resolve-pre-rendered-props-DxJ9-DAl.d.ts → resolve-pre-rendered-props-B6OlZrSI.d.ts} +13 -26
- package/dist/{resolve-pre-rendered-props-DwIF_M_K.js → resolve-pre-rendered-props-C3e5Auo3.js} +1 -1
- package/dist/sandboxed-on-click.d.ts +4 -8
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/{select-BUGOJMER.d.ts → select-Bwt2YduR.d.ts} +11 -12
- package/dist/{select-Bxq_N-_o.js → select-D-5u0Blc.js} +1 -1
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +160 -146
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-CqohKk4z.js → separator-kBnnv3Cw.js} +1 -1
- package/dist/separator.d.ts +6 -37
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +302 -89
- package/dist/sheet.js +1 -1
- package/dist/sizes-BCoI4bhP.d.ts +29 -0
- package/dist/skeleton-Bu3tgNcW.js +1 -0
- package/dist/skeleton.d.ts +2 -2
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +4 -34
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +2 -21
- package/dist/slider.js +1 -1
- package/dist/slot-DmPrjM7N.js +1 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/split-button.d.ts +21 -13
- package/dist/split-button.js +1 -1
- package/dist/{svg-only-f6ToFLH0.d.ts → svg-only-BFeFS1aa.d.ts} +2 -3
- package/dist/{svg-only-CSOaF1tL.js → svg-only-DDx6FtJd.js} +1 -1
- package/dist/switch.d.ts +4 -5
- package/dist/switch.js +1 -1
- package/dist/{table-CAitdL78.js → table-CPH2md2-.js} +1 -1
- package/dist/{table-BWD9IlIN.d.ts → table-CwFHXC-G.d.ts} +10 -10
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +29 -15
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +2 -3
- package/dist/text-area.js +1 -1
- package/dist/theme-D8kZCOzM.js +1 -0
- package/dist/theme-provider-Djj_jBo6.js +1 -0
- package/dist/theme-switcher.d.ts +53 -0
- package/dist/theme-switcher.js +1 -0
- package/dist/theme.d.ts +15 -101
- package/dist/theme.js +1 -1
- package/dist/toast-D3ntBmn4.js +1 -0
- package/dist/toast.d.ts +32 -50
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +16 -50
- package/dist/tooltip.js +1 -1
- package/dist/{types-CTam1uIW.d.ts → types-C19IR7jf.d.ts} +1 -0
- package/dist/{types-BvUzforF.d.ts → types-D1RY5Tcj.d.ts} +0 -1
- package/dist/types.d.ts +3 -3
- package/dist/use-prefers-reduced-motion-CagaNRgm.js +1 -0
- package/dist/utils.d.ts +2 -3
- package/dist/{validation-xyX_6kph.d.ts → validation-7QeiTFwl.d.ts} +3 -12
- package/dist/{validation-DCyx-ceH.js → validation-Bpptk_9t.js} +1 -1
- package/dist/{virtual-PBNiHjMK.js → virtual-DZMBu7Ch.js} +1 -1
- package/dist/well.d.ts +3 -3
- package/dist/well.js +1 -1
- package/dist/{with-style-props-CyImx7vd.d.ts → with-style-props-Dq5Vntqy.d.ts} +0 -1
- package/package.json +17 -14
- package/dist/button-C9GW9nAr.js +0 -1
- package/dist/button-mfYak6Rx.d.ts +0 -71
- package/dist/checkbox-Apow0ipK.js +0 -1
- package/dist/cx-C1UYP5We.js +0 -1
- package/dist/icon-SUx16Sl3.js +0 -1
- package/dist/icon-button-DiX9iZ9n.js +0 -1
- package/dist/index-CJbKEKr2.d.ts +0 -20
- package/dist/slot-DT_E5BQx.js +0 -1
- package/dist/theme-provider-C5XYi2-H.js +0 -1
- package/dist/toast-CZBWjXcP.js +0 -1
- package/dist/use-prefers-reduced-motion-DBqNw1wB.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./clsx-Dj3RWZ2l.js";const t=(e,t)=>{let n=e.length,r=t.length,i=Array(n+r);for(let t=0;t<n;t++)i[t]=e[t];for(let e=0;e<r;e++)i[n+e]=t[e];return i},n=(e,t)=>({classGroupId:e,validator:t}),r=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),i=[],a=e=>{let n=c(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:e=>{if(e[0]===`[`&&e[e.length-1]===`]`)return s(e);let t=e.split(`-`),r=+(t[0]===``&&t.length>1);return o(t,r,n)},getConflictingClassGroupIds:(e,n)=>{if(n){let n=a[e],o=r[e];return n?o?t(o,n):n:o||i}return r[e]||i}}},o=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=o(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let s=t===0?e.join(`-`):e.slice(t).join(`-`),c=a.length;for(let e=0;e<c;e++){let t=a[e];if(t.validator(s))return t.classGroupId}},s=e=>{let t=e.slice(1,-1),n=t.indexOf(`:`);if(n===-1)return;let r=t.slice(0,n);return r?`arbitrary..`+r:void 0},c=e=>{let{theme:t,classGroups:n}=e;return l(n,t)},l=(e,t)=>{let n=r();for(let r in e){let i=e[r];u(i,n,r,t)}return n},u=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];d(i,t,n,r)}},d=(e,t,n,r)=>{if(typeof e==`string`){f(e,t,n);return}if(typeof e==`function`){p(e,t,n,r);return}m(e,t,n,r)},f=(e,t,n)=>{let r=e===``?t:h(t,e);r.classGroupId=n},p=(e,t,r,i)=>{if(g(e)){u(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(n(r,e))},m=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];u(o,h(t,a),n,r)}},h=(e,t)=>{let n=e,i=t.split(`-`),a=i.length;for(let e=0;e<a;e++){let t=i[e],a=n.nextPart.get(t);a||(a=r(),n.nextPart.set(t,a)),n=a}return n},g=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ee=(e,t,n,r)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),te=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e.charCodeAt(s);if(n===0&&r===0){if(o===58){t.push(e.slice(i,s)),i=s+1;continue}if(o===47){a=s;continue}}o===91?n++:o===93?n--:o===40?r++:o===41&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1,u=s.length-1;s.charCodeAt(u)===33?(c=s.slice(0,-1),l=!0):s.charCodeAt(0)===33&&(c=s.slice(1),l=!0);let d=a&&a>i?a-i:void 0;return ee(t,l,c,d)},ne=e=>{let t=new Set(e.orderSensitiveModifiers);return e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);if(o||s){if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e]);r=[]}n.push(a)}else r.push(a)}if(r.length>0){r.sort();for(let e=0;e<r.length;e++)n.push(r[e])}return n}},_={isExternal:!0,classId:-1,conflictIds:[]},v=e=>{let t=ne(e),n=re(e),{getClassGroupId:r,getConflictingClassGroupIds:i}=a(e),o=Object.create(null),s=Object.create(null),c=0,l=new Int32Array(256),u=0,d=new Uint8Array(64),f=!1,p=e=>{let t=[],n=e.length,r=-1;f=!1;for(let i=0;i<n;i++){let n=e.charCodeAt(i);n===32?r!==-1&&(t.push(e.slice(r,i)),r=-1):n>=9&&n<=13?(f=!0,r!==-1&&(t.push(e.slice(r,i)),r=-1)):r===-1&&(r=i)}return r!==-1&&t.push(e.slice(r)),t},m=new Map,h=0,g=e=>{let t=m.get(e);if(t===void 0&&(t=h++,m.set(e,t),t>=l.length)){let e=new Int32Array(l.length*2);e.set(l),l=e}return t},ee=e=>{let{isExternal:a,modifiers:o,hasImportantModifier:s,baseClassName:c,maybePostfixModifierPosition:l}=te(e);if(a)return _;let u=!!l,d;if(u){let e=c.substring(0,l);d=r(e);let t=d&&n[d]?r(c):void 0;t&&t!==d&&(d=t,u=!1)}else d=r(c);if(!d){if(!u||(d=r(c),!d))return _;u=!1}let f=o.length===0?``:o.length===1?o[0]:t(o).join(`:`),p=s?f+`!`:f,m=i(d,u),h=[];for(let e=0;e<m.length;e++)h.push(g(p+m[e]));return{isExternal:!1,classId:g(p+d),conflictIds:h}},v=e=>{let t=o[e];return t===void 0?(t=s[e],t===void 0&&(t=ee(e)),o[e]=t,++c>4096&&(c=0,s=o,o=Object.create(null)),t):t};return{parseClassName:te,sortModifiers:t,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:i,getClassDescriptor:v,mergeClassList:e=>{let t=p(e),n=t.length;if(n===1)return t[0];h>16384&&(m.clear(),h=0,o=Object.create(null),s=Object.create(null),c=0),u=u+1|0,u===0&&(u=1);let r=u;if(n>d.length){let e=d.length;for(;e<n;)e*=2;d=new Uint8Array(e)}let i=!1,a=0;for(let e=n-1;e>=0;--e){let n=t[e];a+=n.length;let o=v(n);if(o.isExternal){d[e]=1;continue}let s=o.classId;if(l[s]===r){d[e]=0,i=!0;continue}l[s]=r;let c=o.conflictIds;for(let e=0;e<c.length;e++)l[c[e]]=r;d[e]=1}if(!i&&!f&&e.length===a+n-1)return e;let g=``;for(let e=0;e<n;e++)d[e]===1&&(g&&(g+=` `),g+=t[e]);return g}}},re=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},ie=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=y(n))&&(i&&(i+=` `),i+=r);return i},y=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=y(e[r]))&&(n&&(n+=` `),n+=t);return n},b=e=>{let t,n,r=Object.create(null),i=Object.create(null),a=0,o=r=>(t=v(e()),n=t.mergeClassList,c.mergeString=s,s(r)),s=e=>{let t=r[e];return t===void 0?(t=i[e],t===void 0&&(t=n(e)),r[e]=t,++a>500&&(a=0,i=r,r=Object.create(null)),t):t},c=(...e)=>c.mergeString(ie(...e));return c.mergeString=o,c},ae=[],x=e=>{let t=t=>t[e]||ae;return t.isThemeGetter=!0,t},S=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,C=/^\((?:(\w[\w-]*):)?(.+)\)$/i,oe=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,w=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,se=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=Number,k=Number.isNaN,ce=Number.isInteger,A=e=>oe.test(e),j=e=>!!e&&!k(O(e)),M=e=>!!e&&ce(O(e)),le=e=>e.endsWith(`%`)&&j(e.slice(0,-1)),N=e=>w.test(e),ue=()=>!0,de=e=>T.test(e)&&!E.test(e),P=()=>!1,F=e=>D.test(e),I=e=>se.test(e),fe=e=>!L(e)&&!B(e),pe=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),me=e=>U(e,q,P),L=e=>S.test(e),R=e=>U(e,J,de),he=e=>U(e,Y,j),ge=e=>U(e,Z,ue),_e=e=>U(e,X,P),ve=e=>U(e,G,P),ye=e=>U(e,K,I),z=e=>U(e,Te,F),B=e=>C.test(e),V=e=>W(e,J),be=e=>W(e,X),xe=e=>W(e,G),Se=e=>W(e,q),Ce=e=>W(e,K),H=e=>W(e,Te,!0),we=e=>W(e,Z,!0),U=(e,t,n)=>{let r=S.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},W=(e,t,n=!1)=>{let r=C.exec(e);return r?r[1]?t(r[1]):n:!1},G=e=>e===`position`||e===`percentage`,K=e=>e===`image`||e===`url`,q=e=>e===`length`||e===`size`||e===`bg-size`,J=e=>e===`length`,Y=e=>e===`number`,X=e=>e===`family-name`,Z=e=>e===`number`||e===`weight`,Te=e=>e===`shadow`,Q=b(()=>{let e=x(`color`),t=x(`font`),n=x(`text`),r=x(`font-weight`),i=x(`tracking`),a=x(`leading`),o=x(`breakpoint`),s=x(`container`),c=x(`spacing`),l=x(`radius`),u=x(`shadow`),d=x(`inset-shadow`),f=x(`text-shadow`),p=x(`drop-shadow`),m=x(`blur`),h=x(`perspective`),g=x(`aspect`),ee=x(`ease`),te=x(`animate`),ne=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],_=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],v=()=>[..._(),B,L],re=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ie=()=>[`auto`,`contain`,`none`],y=()=>[B,L,c],b=()=>[A,`full`,`auto`,...y()],ae=()=>[M,`none`,`subgrid`,B,L],S=()=>[`auto`,{span:[`full`,M,B,L]},M,B,L],C=()=>[M,`auto`,B,L],oe=()=>[`auto`,`min`,`max`,`fr`,B,L],w=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],T=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],E=()=>[`auto`,...y()],D=()=>[A,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...y()],se=()=>[A,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...y()],O=()=>[A,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...y()],k=()=>[e,B,L],ce=()=>[..._(),xe,ve,{position:[B,L]}],de=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],P=()=>[`auto`,`cover`,`contain`,Se,me,{size:[B,L]}],F=()=>[le,V,R],I=()=>[``,`none`,`full`,l,B,L],U=()=>[``,j,V,R],W=()=>[`solid`,`dashed`,`dotted`,`double`],G=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],K=()=>[j,le,xe,ve],q=()=>[``,`none`,m,B,L],J=()=>[`none`,j,B,L],Y=()=>[`none`,j,B,L],X=()=>[j,B,L],Z=()=>[A,`full`,...y()];return{theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[N],breakpoint:[N],color:[ue],container:[N],"drop-shadow":[N],ease:[`in`,`out`,`in-out`],font:[fe],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[N],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[N],shadow:[N],spacing:[`px`,j,`em`],text:[N],"text-shadow":[N],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,A,L,B,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,B,L]}],"container-named":[pe],columns:[{columns:[j,L,B,s]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:v()}],overflow:[{overflow:re()}],"overflow-x":[{"overflow-x":re()}],"overflow-y":[{"overflow-y":re()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:b()}],"inset-x":[{"inset-x":b()}],"inset-y":[{"inset-y":b()}],start:[{"inset-s":b(),start:b()}],end:[{"inset-e":b(),end:b()}],"inset-bs":[{"inset-bs":b()}],"inset-be":[{"inset-be":b()}],top:[{top:b()}],right:[{right:b()}],bottom:[{bottom:b()}],left:[{left:b()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[M,`auto`,B,L]}],basis:[{basis:[A,`full`,`auto`,s,...y()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[j,A,`auto`,`initial`,`none`,L]}],grow:[{grow:[``,j,B,L]}],shrink:[{shrink:[``,j,B,L]}],order:[{order:[M,`first`,`last`,`none`,B,L]}],"grid-cols":[{"grid-cols":ae()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":C()}],"col-end":[{"col-end":C()}],"grid-rows":[{"grid-rows":ae()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":C()}],"row-end":[{"row-end":C()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...w(),`normal`]}],"justify-items":[{"justify-items":[...T(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...T()]}],"align-content":[{content:[`normal`,...w()]}],"align-items":[{items:[...T(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...T(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":w()}],"place-items":[{"place-items":[...T(),`baseline`]}],"place-self":[{"place-self":[`auto`,...T()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":y()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":y()}],"space-y-reverse":[`space-y-reverse`],size:[{size:D()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...O()]}],"min-block-size":[{"min-block":[`auto`,...O()]}],"max-block-size":[{"max-block":[`none`,...O()]}],w:[{w:[s,`screen`,...D()]}],"min-w":[{"min-w":[s,`screen`,`none`,...D()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...D()]}],h:[{h:[`screen`,`lh`,...D()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...D()]}],"max-h":[{"max-h":[`screen`,`lh`,...D()]}],"font-size":[{text:[`base`,n,V,R]},`text-mono`,`text-size-inherit`],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,we,ge]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,le,L]}],"font-family":[{font:[be,_e,t]}],"font-features":[{"font-features":[L]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,B,L]}],"line-clamp":[{"line-clamp":[j,`none`,B,he]}],leading:[{leading:[a,...y()]}],"list-image":[{"list-image":[`none`,B,L]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,B,L]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...W(),`wavy`]}],"text-decoration-thickness":[{decoration:[j,`from-font`,`auto`,B,R]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[j,`auto`,B,L]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:y()}],"tab-size":[{tab:[M,B,L]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,B,L]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,B,L]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:P()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},M,B,L],radial:[``,B,L],conic:[M,B,L]},Ce,ye]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-bs":[{"border-bs":U()}],"border-w-be":[{"border-be":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":U()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...W(),`hidden`,`none`]}],"divide-style":[{divide:[...W(),`hidden`,`none`]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...W(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[j,B,L]}],"outline-w":[{outline:[``,j,V,R]}],"outline-color":[{outline:k()}],shadow:[{shadow:[``,`none`,u,H,z]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":[`none`,d,H,z]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:U()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[j,R]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":[`none`,f,H,z]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[j,B,L]}],"mix-blend":[{"mix-blend":[...G(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[j]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[B,L]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[j]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,B,L]}],filter:[{filter:[``,`none`,B,L]}],blur:[{blur:q()}],brightness:[{brightness:[j,B,L]}],contrast:[{contrast:[j,B,L]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,H,z]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:[``,j,B,L]}],"hue-rotate":[{"hue-rotate":[j,B,L]}],invert:[{invert:[``,j,B,L]}],saturate:[{saturate:[j,B,L]}],sepia:[{sepia:[``,j,B,L]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,B,L]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[j,B,L]}],"backdrop-contrast":[{"backdrop-contrast":[j,B,L]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,j,B,L]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[j,B,L]}],"backdrop-invert":[{"backdrop-invert":[``,j,B,L]}],"backdrop-opacity":[{"backdrop-opacity":[j,B,L]}],"backdrop-saturate":[{"backdrop-saturate":[j,B,L]}],"backdrop-sepia":[{"backdrop-sepia":[``,j,B,L]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,B,L]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[j,`initial`,B,L]}],ease:[{ease:[`linear`,`initial`,ee,B,L]}],delay:[{delay:[j,B,L]}],animate:[{animate:[`none`,te,B,L]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,B,L]}],"perspective-origin":[{"perspective-origin":v()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":[`scale-3d`],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[B,L,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:v()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":[`translate-none`],zoom:[{zoom:[M,B,L]}],accent:[{accent:k()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,B,L]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":k()}],"scrollbar-track-color":[{"scrollbar-track":k()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,B,L]}],fill:[{fill:[`none`,...k()]}],"stroke-w":[{stroke:[j,V,R,he]}],stroke:[{stroke:[`none`,...k()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}}),Ee=new WeakMap,De=(t,n)=>{let r=n.length,i=!0;for(let e=0;e<r;e++){let t=n[e];if(t&&typeof t!=`string`){i=!1;break}}if(i){let e=Ee.get(t);if(e!==void 0)for(let t=0;t<e.length;t++){let i=e[t],a=i.values,o=!0;for(let e=0;e<r;e++)if(a[e]!==n[e]){o=!1;break}if(o)return i.result}}let a=t[0];for(let i=0;i<r;i++){let r=n[i];r&&(a+=typeof r==`string`?r:e(r)),a+=t[i+1]}let o=Q.mergeString(a);if(i){let e=Ee.get(t);e===void 0&&(e=[],Ee.set(t,e)),e.length>=8&&e.shift(),e.push({values:n,result:o})}return o},Oe=e=>Array.isArray(e)&&`raw`in e,ke=(()=>{let e=Error();return!(`line`in e)&&!(`lineNumber`in e)})();let $=new Map,Ae=new Map,je=0;const Me=t=>{let n=``,r=!1,i=0,a=!0;for(let e of t)if(e){if(typeof e!=`string`){a=!1;break}r||=(n=e,!0),i+=1}if(!a)return Q.mergeString(e(t));if(!r)return``;if(i===1)return Q.mergeString(n);let o=$.get(n)??Ae.get(n);if(o!=null)for(let e of o){if(e.rest.length!==i-1)continue;let n=0,r=!1,a=!0;for(let i of t)if(i){if(!r){r=!0;continue}if(i!==e.rest[n]){a=!1;break}n+=1}if(a)return e.result}let s=n,c=!1,l=[];for(let e of t)if(!(!e||typeof e!=`string`)){if(!c){c=!0;continue}s+=` `+e,l.push(e)}let u=Q.mergeString(s),d=$.get(n);return d??(d=[],$.set(n,d)),d.length>=64&&d.shift(),d.push({rest:l,result:u}),je+=1,je>500&&(je=0,Ae=$,$=new Map),u},Ne=(t,...n)=>{if(Oe(t))return De(t,n);if(n.length===0)return Q.mergeString(e(t));let r=[t,...n];return ke?Me(r):Q.mergeString(e(r))};export{Ne as t};
|
package/dist/cx.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./clsx-DUGZgXfJ.js";export{t as clsx,e as cx};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/utils/data-slot.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The incoming `data-slot` chain a part receives when an ancestor composes it
|
|
4
|
+
* via `asChild` — mantle's `Slot` forwards the ancestor chain so parts can
|
|
5
|
+
* concatenate it ahead of their own slot name instead of clobbering it.
|
|
6
|
+
*/
|
|
7
|
+
type WithDataSlot = {
|
|
8
|
+
/**
|
|
9
|
+
* The `data-slot` chain accumulated by ancestor `asChild` composition.
|
|
10
|
+
* Parts merge it ancestors-first with their own slot name via
|
|
11
|
+
* `joinDataSlot`, so the rendered attribute reads in DOM order — outermost
|
|
12
|
+
* ancestor through to the rendered element.
|
|
13
|
+
*/
|
|
14
|
+
"data-slot"?: string;
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { WithDataSlot as t };
|
package/dist/data-table.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { t as ButtonIntent } from "./intents-DdSKSj1c.js";
|
|
2
|
+
import { n as ButtonAppearance, t as Button } from "./button-DcXOWUYo.js";
|
|
3
|
+
import { n as IconButtonAppearance, t as IconButton } from "./icon-button-B7uEj1qq.js";
|
|
4
|
+
import { s as SortingMode } from "./direction-BjU0bPST.js";
|
|
5
|
+
import { t as Table$1 } from "./table-CwFHXC-G.js";
|
|
5
6
|
import { ComponentProps, ReactNode } from "react";
|
|
6
7
|
import { HeaderContext, Row, Table } from "@tanstack/react-table";
|
|
7
8
|
export * from "@tanstack/react-table";
|
|
8
|
-
|
|
9
9
|
//#region src/components/data-table/types.d.ts
|
|
10
10
|
declare const sortDirections: readonly ["asc", "desc", "unsorted"];
|
|
11
11
|
type SortDirection = (typeof sortDirections)[number];
|
|
@@ -24,7 +24,7 @@ type DataTableProps<TData> = ComponentProps<typeof Table$1.Root> & {
|
|
|
24
24
|
* any sorting / filtering / pagination state — the wrapper components read
|
|
25
25
|
* from it.
|
|
26
26
|
*
|
|
27
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableroot
|
|
27
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableroot
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```tsx
|
|
@@ -62,15 +62,21 @@ type DataTableProps<TData> = ComponentProps<typeof Table$1.Root> & {
|
|
|
62
62
|
* }
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
declare function Root<TData>({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
declare function Root<TData>({ children, table, ...props }: DataTableProps<TData>): import("react").JSX.Element;
|
|
66
|
+
type DataTableHeaderSortButtonProps<TData, TValue> = Omit<ComponentProps<typeof Button>, "appearance" | "icon" | "intent"> & Pick<HeaderContext<TData, TValue>, "column"> & {
|
|
67
|
+
/**
|
|
68
|
+
* The visual style of the sort button. Optional — the header sort button's
|
|
69
|
+
* design is a ghost button, so the wrapper defaults it.
|
|
70
|
+
* @default "ghost"
|
|
71
|
+
*/
|
|
72
|
+
appearance?: ButtonAppearance;
|
|
73
|
+
/**
|
|
74
|
+
* The tone of the sort button. Optional — the header sort button's design
|
|
75
|
+
* is neutral-toned, so the wrapper defaults it.
|
|
76
|
+
* @default "neutral"
|
|
77
|
+
*/
|
|
78
|
+
intent?: ButtonIntent;
|
|
79
|
+
} & ({
|
|
74
80
|
/**
|
|
75
81
|
* Disable sorting for this column.
|
|
76
82
|
* It will prevent the sorting direction from being toggled and any icon
|
|
@@ -110,7 +116,7 @@ type DataTableHeaderSortButtonProps<TData, TValue> = Omit<ComponentProps<typeof
|
|
|
110
116
|
* For right-aligned numeric columns, pass `className="justify-end"` and
|
|
111
117
|
* `iconPlacement="start"` so the sort icon stays paired with the label.
|
|
112
118
|
*
|
|
113
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableheadersortbutton
|
|
119
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableheadersortbutton
|
|
114
120
|
*
|
|
115
121
|
* @example
|
|
116
122
|
* ```tsx
|
|
@@ -127,27 +133,14 @@ type DataTableHeaderSortButtonProps<TData, TValue> = Omit<ComponentProps<typeof
|
|
|
127
133
|
* });
|
|
128
134
|
* ```
|
|
129
135
|
*/
|
|
130
|
-
declare function HeaderSortButton<TData, TValue>({
|
|
131
|
-
children,
|
|
132
|
-
className,
|
|
133
|
-
column,
|
|
134
|
-
disableSorting,
|
|
135
|
-
iconPlacement,
|
|
136
|
-
sortingMode,
|
|
137
|
-
sortIcon: propSortIcon,
|
|
138
|
-
onClick,
|
|
139
|
-
...props
|
|
140
|
-
}: DataTableHeaderSortButtonProps<TData, TValue>): import("react").JSX.Element;
|
|
141
|
-
declare namespace HeaderSortButton {
|
|
142
|
-
var displayName: string;
|
|
143
|
-
}
|
|
136
|
+
declare function HeaderSortButton<TData, TValue>({ appearance, children, className, column, disableSorting, iconPlacement, intent, sortingMode, sortIcon: propSortIcon, onClick, ...props }: DataTableHeaderSortButtonProps<TData, TValue>): import("react").JSX.Element;
|
|
144
137
|
type DataTableHeaderProps = ComponentProps<typeof Table$1.Header>;
|
|
145
138
|
/**
|
|
146
139
|
* A `<th>` optimized for header actions. Wrap each column's header content in
|
|
147
140
|
* this; for sortable columns, nest a `DataTable.HeaderSortButton` inside.
|
|
148
141
|
* Non-sortable columns can render plain text.
|
|
149
142
|
*
|
|
150
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableheader
|
|
143
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableheader
|
|
151
144
|
*
|
|
152
145
|
* @example
|
|
153
146
|
* ```tsx
|
|
@@ -164,21 +157,14 @@ type DataTableHeaderProps = ComponentProps<typeof Table$1.Header>;
|
|
|
164
157
|
* });
|
|
165
158
|
* ```
|
|
166
159
|
*/
|
|
167
|
-
declare function Header({
|
|
168
|
-
children,
|
|
169
|
-
className,
|
|
170
|
-
...props
|
|
171
|
-
}: DataTableHeaderProps): import("react").JSX.Element;
|
|
172
|
-
declare namespace Header {
|
|
173
|
-
var displayName: string;
|
|
174
|
-
}
|
|
160
|
+
declare function Header({ children, className, ...props }: DataTableHeaderProps): import("react").JSX.Element;
|
|
175
161
|
type DataTableHeadProps = Omit<ComponentProps<typeof Table$1.Head>, "children">;
|
|
176
162
|
/**
|
|
177
163
|
* The `<thead>` container that renders column headers automatically from
|
|
178
164
|
* `table.getHeaderGroups()`. Does not accept children — headers come from each
|
|
179
165
|
* column's `header` definition on the TanStack Table column config.
|
|
180
166
|
*
|
|
181
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablehead
|
|
167
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablehead
|
|
182
168
|
*
|
|
183
169
|
* @example
|
|
184
170
|
* ```tsx
|
|
@@ -196,9 +182,6 @@ type DataTableHeadProps = Omit<ComponentProps<typeof Table$1.Head>, "children">;
|
|
|
196
182
|
* ```
|
|
197
183
|
*/
|
|
198
184
|
declare function Head<TData>(props: DataTableHeadProps): import("react").JSX.Element;
|
|
199
|
-
declare namespace Head {
|
|
200
|
-
var displayName: string;
|
|
201
|
-
}
|
|
202
185
|
type DataTableRowProps<TData> = Omit<ComponentProps<typeof Table$1.Row>, "children"> & {
|
|
203
186
|
row: Row<TData>;
|
|
204
187
|
/**
|
|
@@ -228,7 +211,7 @@ type DataTableRowProps<TData> = Omit<ComponentProps<typeof Table$1.Row>, "childr
|
|
|
228
211
|
* holding the returned content. Pair it with a `DataTable.RowExpandButton` toggle
|
|
229
212
|
* and configure the table for expansion (`getExpandedRowModel`, `getRowCanExpand`).
|
|
230
213
|
*
|
|
231
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablerow
|
|
214
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablerow
|
|
232
215
|
*
|
|
233
216
|
* @example
|
|
234
217
|
* Clickable row navigating to a detail page:
|
|
@@ -265,15 +248,7 @@ type DataTableRowProps<TData> = Omit<ComponentProps<typeof Table$1.Row>, "childr
|
|
|
265
248
|
* ))}
|
|
266
249
|
* ```
|
|
267
250
|
*/
|
|
268
|
-
declare function Row$1<TData>({
|
|
269
|
-
className,
|
|
270
|
-
renderExpanded,
|
|
271
|
-
row,
|
|
272
|
-
...props
|
|
273
|
-
}: DataTableRowProps<TData>): import("react").JSX.Element;
|
|
274
|
-
declare namespace Row$1 {
|
|
275
|
-
var displayName: string;
|
|
276
|
-
}
|
|
251
|
+
declare function Row$1<TData>({ className, renderExpanded, row, ...props }: DataTableRowProps<TData>): import("react").JSX.Element;
|
|
277
252
|
type DataTableEmptyRowProps = ComponentProps<typeof Table$1.Row>;
|
|
278
253
|
/**
|
|
279
254
|
* An empty-state row that spans every column. Render this as the `else` branch
|
|
@@ -284,8 +259,8 @@ type DataTableEmptyRowProps = ComponentProps<typeof Table$1.Row>;
|
|
|
284
259
|
* Host an `Empty` for a real empty state, and branch on whether a filter is
|
|
285
260
|
* active so the user sees the right message (and a way out when filtered):
|
|
286
261
|
*
|
|
287
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableemptyrow
|
|
288
|
-
* @see https://mantle.ngrok.com/components/empty
|
|
262
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableemptyrow
|
|
263
|
+
* @see https://mantle.ngrok.com/components/feedback/empty
|
|
289
264
|
*
|
|
290
265
|
* @example
|
|
291
266
|
* ```tsx
|
|
@@ -313,7 +288,7 @@ type DataTableEmptyRowProps = ComponentProps<typeof Table$1.Row>;
|
|
|
313
288
|
* <Button
|
|
314
289
|
* type="button"
|
|
315
290
|
* appearance="outlined"
|
|
316
|
-
*
|
|
291
|
+
* intent="neutral"
|
|
317
292
|
* onClick={() => table.setGlobalFilter("")}
|
|
318
293
|
* >
|
|
319
294
|
* Clear filters
|
|
@@ -332,13 +307,7 @@ type DataTableEmptyRowProps = ComponentProps<typeof Table$1.Row>;
|
|
|
332
307
|
* </DataTable.Body>
|
|
333
308
|
* ```
|
|
334
309
|
*/
|
|
335
|
-
declare function EmptyRow<TData>({
|
|
336
|
-
children,
|
|
337
|
-
...props
|
|
338
|
-
}: DataTableEmptyRowProps): import("react").JSX.Element;
|
|
339
|
-
declare namespace EmptyRow {
|
|
340
|
-
var displayName: string;
|
|
341
|
-
}
|
|
310
|
+
declare function EmptyRow<TData>({ children, ...props }: DataTableEmptyRowProps): import("react").JSX.Element;
|
|
342
311
|
type DataTableActionCellProps = ComponentProps<typeof Table$1.Cell>;
|
|
343
312
|
/**
|
|
344
313
|
* A sticky-right `<td>` for per-row action buttons (typically an `IconButton`
|
|
@@ -348,7 +317,7 @@ type DataTableActionCellProps = ComponentProps<typeof Table$1.Cell>;
|
|
|
348
317
|
* on this cell so clicks on action controls don't bubble and fire the row
|
|
349
318
|
* handler.
|
|
350
319
|
*
|
|
351
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableactioncell
|
|
320
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableactioncell
|
|
352
321
|
*
|
|
353
322
|
* @example
|
|
354
323
|
* ```tsx
|
|
@@ -363,21 +332,14 @@ type DataTableActionCellProps = ComponentProps<typeof Table$1.Cell>;
|
|
|
363
332
|
* });
|
|
364
333
|
* ```
|
|
365
334
|
*/
|
|
366
|
-
declare function ActionCell({
|
|
367
|
-
children,
|
|
368
|
-
className,
|
|
369
|
-
...props
|
|
370
|
-
}: DataTableActionCellProps): import("react").JSX.Element;
|
|
371
|
-
declare namespace ActionCell {
|
|
372
|
-
var displayName: string;
|
|
373
|
-
}
|
|
335
|
+
declare function ActionCell({ children, className, ...props }: DataTableActionCellProps): import("react").JSX.Element;
|
|
374
336
|
type DataTableActionHeaderProps = ComponentProps<typeof Table$1.Header>;
|
|
375
337
|
/**
|
|
376
338
|
* A sticky header cell that pairs with `DataTable.ActionCell`. Use this as the
|
|
377
339
|
* header for the action column so the pinned column visually aligns across the
|
|
378
340
|
* header and every body row when the table scrolls horizontally.
|
|
379
341
|
*
|
|
380
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableactionheader
|
|
342
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableactionheader
|
|
381
343
|
*
|
|
382
344
|
* @example
|
|
383
345
|
* ```tsx
|
|
@@ -388,14 +350,7 @@ type DataTableActionHeaderProps = ComponentProps<typeof Table$1.Header>;
|
|
|
388
350
|
* })
|
|
389
351
|
* ```
|
|
390
352
|
*/
|
|
391
|
-
declare function ActionHeader({
|
|
392
|
-
children,
|
|
393
|
-
className,
|
|
394
|
-
...props
|
|
395
|
-
}: DataTableActionHeaderProps): import("react").JSX.Element;
|
|
396
|
-
declare namespace ActionHeader {
|
|
397
|
-
var displayName: string;
|
|
398
|
-
}
|
|
353
|
+
declare function ActionHeader({ children, className, ...props }: DataTableActionHeaderProps): import("react").JSX.Element;
|
|
399
354
|
/**
|
|
400
355
|
* Compute the stable DOM `id` for a row's expanded detail row. Shared by
|
|
401
356
|
* `DataTable.RowExpandButton` (as its `aria-controls` target) and
|
|
@@ -432,7 +387,7 @@ type DataTableExpandHeaderProps = Omit<ComponentProps<typeof Table$1.Header>, "c
|
|
|
432
387
|
* column is announced to assistive tech while staying visually empty; pass
|
|
433
388
|
* `children` to render an "expand all" control instead.
|
|
434
389
|
*
|
|
435
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableexpandheader
|
|
390
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableexpandheader
|
|
436
391
|
*
|
|
437
392
|
* @example
|
|
438
393
|
* ```tsx
|
|
@@ -447,15 +402,20 @@ type DataTableExpandHeaderProps = Omit<ComponentProps<typeof Table$1.Header>, "c
|
|
|
447
402
|
* });
|
|
448
403
|
* ```
|
|
449
404
|
*/
|
|
450
|
-
declare function ExpandHeader({
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
405
|
+
declare function ExpandHeader({ children, className, ...props }: DataTableExpandHeaderProps): import("react").JSX.Element;
|
|
406
|
+
type DataTableRowExpandButtonProps<TData> = Omit<ComponentProps<typeof IconButton>, "appearance" | "aria-controls" | "aria-expanded" | "icon" | "intent" | "label"> & {
|
|
407
|
+
/**
|
|
408
|
+
* The visual style of the expand toggle. Optional — the row expand button's
|
|
409
|
+
* design is a ghost button, so the wrapper defaults it.
|
|
410
|
+
* @default "ghost"
|
|
411
|
+
*/
|
|
412
|
+
appearance?: IconButtonAppearance;
|
|
413
|
+
/**
|
|
414
|
+
* The tone of the expand toggle. Optional — the row expand button's design
|
|
415
|
+
* is neutral-toned, so the wrapper defaults it.
|
|
416
|
+
* @default "neutral"
|
|
417
|
+
*/
|
|
418
|
+
intent?: ButtonIntent;
|
|
459
419
|
/**
|
|
460
420
|
* The TanStack Table row this button toggles. The table must be configured for
|
|
461
421
|
* expansion (`getExpandedRowModel`, plus `getRowCanExpand: () => true` for
|
|
@@ -491,7 +451,7 @@ type DataTableRowExpandButtonProps<TData> = Omit<ComponentProps<typeof IconButto
|
|
|
491
451
|
* pass `onClick` to run side effects before the toggle (call
|
|
492
452
|
* `event.preventDefault()` to veto it).
|
|
493
453
|
*
|
|
494
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablerowexpandbutton
|
|
454
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablerowexpandbutton
|
|
495
455
|
*
|
|
496
456
|
* @example
|
|
497
457
|
* ```tsx
|
|
@@ -506,27 +466,16 @@ type DataTableRowExpandButtonProps<TData> = Omit<ComponentProps<typeof IconButto
|
|
|
506
466
|
* });
|
|
507
467
|
* ```
|
|
508
468
|
*/
|
|
509
|
-
declare function RowExpandButton<TData>({
|
|
510
|
-
appearance,
|
|
511
|
-
className,
|
|
512
|
-
collapseIcon,
|
|
513
|
-
expandIcon,
|
|
514
|
-
label,
|
|
515
|
-
onClick,
|
|
516
|
-
row,
|
|
517
|
-
size,
|
|
518
|
-
...props
|
|
519
|
-
}: DataTableRowExpandButtonProps<TData>): import("react").JSX.Element | null;
|
|
520
|
-
declare namespace RowExpandButton {
|
|
521
|
-
var displayName: string;
|
|
522
|
-
}
|
|
469
|
+
declare function RowExpandButton<TData>({ appearance, className, collapseIcon, expandIcon, intent, label, onClick, row, size, ...props }: DataTableRowExpandButtonProps<TData>): import("react").JSX.Element | null;
|
|
523
470
|
type DataTableExpandedRowProps<TData> = Omit<ComponentProps<typeof Table$1.Row>, "children"> & {
|
|
524
|
-
/** The row whose detail panel this displays. */
|
|
471
|
+
/** The row whose detail panel this displays. */
|
|
472
|
+
row: Row<TData>;
|
|
525
473
|
/**
|
|
526
474
|
* Override the cell's `colSpan`. Defaults to the row's visible-cell count so
|
|
527
475
|
* the panel spans every visible column (visibility- and pinning-aware).
|
|
528
476
|
*/
|
|
529
|
-
colSpan?: number;
|
|
477
|
+
colSpan?: number;
|
|
478
|
+
/** The detail content rendered inside the full-width panel. */
|
|
530
479
|
children: ReactNode;
|
|
531
480
|
};
|
|
532
481
|
/**
|
|
@@ -546,7 +495,7 @@ type DataTableExpandedRowProps<TData> = Omit<ComponentProps<typeof Table$1.Row>,
|
|
|
546
495
|
* the parent data row reacts to hover). Exposes `data-expanded-content` for
|
|
547
496
|
* styling hooks.
|
|
548
497
|
*
|
|
549
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableexpandedrow
|
|
498
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableexpandedrow
|
|
550
499
|
*
|
|
551
500
|
* @example
|
|
552
501
|
* Render the row's underlying object as JSON (a common detail-panel use case).
|
|
@@ -574,16 +523,7 @@ type DataTableExpandedRowProps<TData> = Omit<ComponentProps<typeof Table$1.Row>,
|
|
|
574
523
|
* ))}
|
|
575
524
|
* ```
|
|
576
525
|
*/
|
|
577
|
-
declare function ExpandedRow<TData>({
|
|
578
|
-
children,
|
|
579
|
-
className,
|
|
580
|
-
colSpan,
|
|
581
|
-
row,
|
|
582
|
-
...props
|
|
583
|
-
}: DataTableExpandedRowProps<TData>): import("react").JSX.Element;
|
|
584
|
-
declare namespace ExpandedRow {
|
|
585
|
-
var displayName: string;
|
|
586
|
-
}
|
|
526
|
+
declare function ExpandedRow<TData>({ children, className, colSpan, row, ...props }: DataTableExpandedRowProps<TData>): import("react").JSX.Element;
|
|
587
527
|
/**
|
|
588
528
|
* Use `DataTable` for INTERACTIVE tabular data — sorting, filtering, pagination,
|
|
589
529
|
* row selection, and server-side or client-side data. Built on TanStack Table;
|
|
@@ -597,7 +537,7 @@ declare namespace ExpandedRow {
|
|
|
597
537
|
* For STATIC, layout-driven tables (read-only data dumps, simple key/value
|
|
598
538
|
* displays, plain markup tables with no interactivity), use `Table` instead.
|
|
599
539
|
*
|
|
600
|
-
* @see https://mantle.ngrok.com/components/data-table
|
|
540
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table
|
|
601
541
|
*
|
|
602
542
|
* @example
|
|
603
543
|
* Composition:
|
|
@@ -779,7 +719,7 @@ declare namespace ExpandedRow {
|
|
|
779
719
|
* <Button
|
|
780
720
|
* type="button"
|
|
781
721
|
* appearance="outlined"
|
|
782
|
-
*
|
|
722
|
+
* intent="neutral"
|
|
783
723
|
* onClick={() => setGlobalFilter("")}
|
|
784
724
|
* >
|
|
785
725
|
* Clear filters
|
|
@@ -827,7 +767,7 @@ declare namespace ExpandedRow {
|
|
|
827
767
|
* ```tsx
|
|
828
768
|
* import { DataTable, createColumnHelper } from "@ngrok/mantle/data-table";
|
|
829
769
|
* import { DropdownMenu } from "@ngrok/mantle/dropdown-menu";
|
|
830
|
-
* import { IconButton } from "@ngrok/mantle/
|
|
770
|
+
* import { IconButton } from "@ngrok/mantle/button";
|
|
831
771
|
* import { DotsThreeVerticalIcon } from "@phosphor-icons/react/DotsThreeVertical";
|
|
832
772
|
*
|
|
833
773
|
* const columnHelper = createColumnHelper<Payment>();
|
|
@@ -841,7 +781,7 @@ declare namespace ExpandedRow {
|
|
|
841
781
|
* <DataTable.ActionCell onClick={(event) => event.stopPropagation()}>
|
|
842
782
|
* <DropdownMenu.Root>
|
|
843
783
|
* <DropdownMenu.Trigger asChild>
|
|
844
|
-
* <IconButton type="button" label="Actions" icon={<DotsThreeVerticalIcon />} />
|
|
784
|
+
* <IconButton type="button" appearance="outlined" intent="neutral" label="Actions" icon={<DotsThreeVerticalIcon />} />
|
|
845
785
|
* </DropdownMenu.Trigger>
|
|
846
786
|
* <DropdownMenu.Content align="end">
|
|
847
787
|
* <DropdownMenu.Item onSelect={() => copy(props.row.original.id)}>
|
|
@@ -908,7 +848,7 @@ declare const DataTable: {
|
|
|
908
848
|
* from `@ngrok/mantle/data-table`) via the `table` prop — every other
|
|
909
849
|
* `DataTable.*` part reads from it through context.
|
|
910
850
|
*
|
|
911
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableroot
|
|
851
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableroot
|
|
912
852
|
*
|
|
913
853
|
* @example
|
|
914
854
|
* ```tsx
|
|
@@ -933,7 +873,7 @@ declare const DataTable: {
|
|
|
933
873
|
* If the row has `onClick`, stop propagation on this cell so clicks on action
|
|
934
874
|
* controls don't bubble up and fire the row handler.
|
|
935
875
|
*
|
|
936
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableactioncell
|
|
876
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableactioncell
|
|
937
877
|
*
|
|
938
878
|
* @example
|
|
939
879
|
* ```tsx
|
|
@@ -954,7 +894,7 @@ declare const DataTable: {
|
|
|
954
894
|
* action column aligned across the header and body when scrolling horizontally.
|
|
955
895
|
* Use as the `header` for a `columnHelper.display` action column.
|
|
956
896
|
*
|
|
957
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableactionheader
|
|
897
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableactionheader
|
|
958
898
|
*
|
|
959
899
|
* @example
|
|
960
900
|
* ```tsx
|
|
@@ -975,7 +915,7 @@ declare const DataTable: {
|
|
|
975
915
|
* `Table.Cell`. Every cell rendered by a column's `cell` function should
|
|
976
916
|
* be wrapped in this — a raw `<td>` skips mantle typography and padding.
|
|
977
917
|
*
|
|
978
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablecell
|
|
918
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablecell
|
|
979
919
|
*
|
|
980
920
|
* @example
|
|
981
921
|
* ```tsx
|
|
@@ -992,7 +932,7 @@ declare const DataTable: {
|
|
|
992
932
|
* `DataTable.Row`, with a `DataTable.EmptyRow` fallback when there is
|
|
993
933
|
* no data.
|
|
994
934
|
*
|
|
995
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablebody
|
|
935
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablebody
|
|
996
936
|
*
|
|
997
937
|
* @example
|
|
998
938
|
* ```tsx
|
|
@@ -1013,8 +953,8 @@ declare const DataTable: {
|
|
|
1013
953
|
* every column and `Empty.Root` centers itself, so no `<td>` or centering
|
|
1014
954
|
* markup is needed.
|
|
1015
955
|
*
|
|
1016
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableemptyrow
|
|
1017
|
-
* @see https://mantle.ngrok.com/components/empty
|
|
956
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableemptyrow
|
|
957
|
+
* @see https://mantle.ngrok.com/components/feedback/empty
|
|
1018
958
|
*
|
|
1019
959
|
* @example
|
|
1020
960
|
* ```tsx
|
|
@@ -1036,7 +976,7 @@ declare const DataTable: {
|
|
|
1036
976
|
* `table.getHeaderGroups()`. Does not accept children — headers come from
|
|
1037
977
|
* each column's `header` definition.
|
|
1038
978
|
*
|
|
1039
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablehead
|
|
979
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablehead
|
|
1040
980
|
*
|
|
1041
981
|
* @example
|
|
1042
982
|
* ```tsx
|
|
@@ -1051,7 +991,7 @@ declare const DataTable: {
|
|
|
1051
991
|
* A `<th>` optimized for header actions. Wrap each column's header content
|
|
1052
992
|
* in this; for sortable columns, nest a `DataTable.HeaderSortButton` inside.
|
|
1053
993
|
*
|
|
1054
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableheader
|
|
994
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableheader
|
|
1055
995
|
*
|
|
1056
996
|
* @example
|
|
1057
997
|
* ```tsx
|
|
@@ -1077,7 +1017,7 @@ declare const DataTable: {
|
|
|
1077
1017
|
* Pass `className="justify-end"` and `iconPlacement="start"` for
|
|
1078
1018
|
* right-aligned numeric columns so the sort icon stays paired with the label.
|
|
1079
1019
|
*
|
|
1080
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableheadersortbutton
|
|
1020
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableheadersortbutton
|
|
1081
1021
|
*
|
|
1082
1022
|
* @example
|
|
1083
1023
|
* ```tsx
|
|
@@ -1107,7 +1047,7 @@ declare const DataTable: {
|
|
|
1107
1047
|
* renders a sibling `DataTable.ExpandedRow` (only while expanded) holding the
|
|
1108
1048
|
* returned content. Pair with `DataTable.RowExpandButton`.
|
|
1109
1049
|
*
|
|
1110
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablerow
|
|
1050
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablerow
|
|
1111
1051
|
*
|
|
1112
1052
|
* @example
|
|
1113
1053
|
* ```tsx
|
|
@@ -1135,7 +1075,7 @@ declare const DataTable: {
|
|
|
1135
1075
|
* `DataTable.ActionHeader`. Renders a screen-reader-only label by default so
|
|
1136
1076
|
* the column is announced while staying visually empty.
|
|
1137
1077
|
*
|
|
1138
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableexpandheader
|
|
1078
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableexpandheader
|
|
1139
1079
|
*
|
|
1140
1080
|
* @example
|
|
1141
1081
|
* ```tsx
|
|
@@ -1159,7 +1099,7 @@ declare const DataTable: {
|
|
|
1159
1099
|
* a row-level `onClick`, and renders nothing when `row.getCanExpand()` is
|
|
1160
1100
|
* false.
|
|
1161
1101
|
*
|
|
1162
|
-
* @see https://mantle.ngrok.com/components/data-table#datatablerowexpandbutton
|
|
1102
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatablerowexpandbutton
|
|
1163
1103
|
*
|
|
1164
1104
|
* @example
|
|
1165
1105
|
* ```tsx
|
|
@@ -1177,7 +1117,7 @@ declare const DataTable: {
|
|
|
1177
1117
|
* and sits on an opaque card surface so it coexists with a sticky action
|
|
1178
1118
|
* column.
|
|
1179
1119
|
*
|
|
1180
|
-
* @see https://mantle.ngrok.com/components/data-table#datatableexpandedrow
|
|
1120
|
+
* @see https://mantle.ngrok.com/components/data-display/data-table#datatableexpandedrow
|
|
1181
1121
|
*
|
|
1182
1122
|
* @example
|
|
1183
1123
|
* ```tsx
|
package/dist/data-table.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-button-DV2-GZHf.js";import{t as n}from"./button-ClC60Nzg.js";import{i as r}from"./direction-Wa9W2F61.js";import{t as i}from"./sort-BPX2Fk9t.js";import{t as a}from"./table-CPH2md2-.js";import{Fragment as o,createContext as s,forwardRef as c,useContext as l,useMemo as u}from"react";import d from"tiny-invariant";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{flexRender as h}from"@tanstack/react-table";import{MinusIcon as g}from"@phosphor-icons/react/Minus";import{PlusIcon as _}from"@phosphor-icons/react/Plus";export*from"@tanstack/react-table";const v=[`unsorted`,`asc`,`desc`],y=[`unsorted`,`desc`,`asc`];function b(e,t){return x(t===`alphanumeric`?v:y,e)??`unsorted`}function x(e,t,n){if(e.length===0)return n;let r=e.findIndex(e=>e===t);if(r===-1)return n;let i=(r+1)%e.length;return e.at(i)??n}const S=s(null);function C(){let e=l(S);return d(e,`useDataTableContext should only be used within a DataTable child component`),e}function w({children:e,table:t,...n}){let r=u(()=>({table:t}),[t]);return p(S.Provider,{value:r,children:p(a.Root,{"data-slot":`data-table`,...n,children:p(a.Element,{children:e})})})}function T({appearance:t=`ghost`,children:i,className:a,column:o,disableSorting:s=!1,iconPlacement:c=`end`,intent:l=`neutral`,sortingMode:u,sortIcon:d,onClick:f,...h}){let g=o.getIsSorted(),_=!s&&o.getCanSort(),v=_&&typeof g==`string`?g:`unsorted`,y=d?.(v)??p(V,{mode:u,direction:v});return m(n,{appearance:t,"data-slot":`data-table-header-sort-button`,className:e(`flex justify-start w-full h-full rounded-none not-disabled:active:scale-none`,t===`ghost`&&l===`neutral`&&`text-muted`,a),"data-sort-direction":v,"data-table-header-action":!0,icon:y,iconPlacement:c,onClick:e=>{f?.(e),!e.defaultPrevented&&(!_||s||u===void 0||H(o,u))},intent:l,type:`button`,...h,children:[_&&v!==`unsorted`&&m(`span`,{className:`sr-only`,children:[`Column sorted in`,` `,u===`alphanumeric`?v===`asc`?`ascending`:`descending`:r(v),` `,`order`]}),i]})}function E({children:t,className:n,...r}){return p(a.Header,{"data-slot":`data-table-header`,className:e(`has-data-table-header-action:px-0`,n),...r,children:t})}const D=c((e,t)=>p(a.Body,{ref:t,"data-slot":`data-table-body`,...e}));D.displayName=`DataTableBody`;function O(e){let{table:t}=C();return p(a.Head,{"data-slot":`data-table-head`,...e,children:t.getHeaderGroups().map(e=>p(a.Row,{children:e.headers.map(e=>p(o,{children:e.isPlaceholder?p(a.Header,{},e.id):h(e.column.columnDef.header,e.getContext())},e.id))},e.id))})}function k({className:t,renderExpanded:n,row:r,...i}){let s=p(a.Row,{"data-slot":`data-table-row`,"data-expanded":r.getIsExpanded()||void 0,className:e(i.onClick&&`cursor-pointer`,t),...i,children:r.getVisibleCells().map(e=>p(o,{children:h(e.column.columnDef.cell,e.getContext())},e.id))});return n==null?s:m(f,{children:[s,r.getIsExpanded()&&p(z,{row:r,children:n(r)})]})}function A({children:e,...t}){let{table:n}=C(),r=n.getAllColumns().length;return p(a.Row,{"data-slot":`data-table-empty-row`,...t,children:p(a.Cell,{colSpan:r,children:e})})}function j(){return p(`span`,{"aria-hidden":!0,className:e(`pointer-events-none absolute -inset-y-px -left-1.5 w-1.5`,`opacity-0 transition-opacity group-data-sticky-active/table:opacity-100`,`shadow-[1px_0_0_0_var(--border-color-card-muted)]`,`bg-linear-to-l to-transparent`,`from-[color-mix(in_oklab,var(--shadow-color)_var(--shadow-second-opacity),transparent)]`)})}function M({children:t,className:n,...r}){return m(a.Cell,{"data-mantle-table-sticky-right":!0,"data-slot":`data-table-action-cell`,className:e(`sticky z-10 right-0 text-end align-middle bg-inherit p-2`,n),...r,children:[p(j,{}),t]})}function N({children:t,className:n,...r}){let{table:i}=C(),o=i.getRowModel().rows.length>0;return m(a.Header,{...o?{"data-mantle-table-sticky-right":!0}:{},"data-slot":`data-table-action-header`,className:e(o&&`sticky z-10 right-0 bg-inherit`,n),...r,children:[o&&p(j,{}),t]})}function P(e){return`data-table-expanded-row-${encodeURIComponent(e.id)}`}function F({children:t,className:n,...r}){return p(a.Header,{"data-slot":`data-table-expand-header`,className:e(`w-9 px-0 text-center`,n),...r,children:t??p(`span`,{className:`sr-only`,children:`Row details`})})}const I=p(_,{weight:`bold`,className:`size-3.5`}),L=p(g,{weight:`bold`,className:`size-3.5`});function R({appearance:n=`ghost`,className:r,collapseIcon:i=L,expandIcon:a=I,intent:o=`neutral`,label:s,onClick:c,row:l,size:u=`sm`,...d}){if(!l.getCanExpand())return null;let f=l.getIsExpanded(),m=l.getToggleExpandedHandler();return p(t,{type:`button`,"data-slot":`data-table-row-expand-button`,appearance:n,intent:o,size:u,className:e(`rounded`,r),"aria-expanded":f,"aria-controls":f?P(l):void 0,icon:f?i:a,label:`${f?`Hide`:`Show`} details for ${s}`,onClick:e=>{e.stopPropagation(),c?.(e),!e.defaultPrevented&&m()},...d})}function z({children:t,className:n,colSpan:r,row:i,...o}){return p(a.Row,{"data-slot":`data-table-expanded-row`,"data-expanded-content":!0,className:e(`[&>td]:border-t-0`,n),...o,children:p(a.Cell,{id:P(i),colSpan:r??i.getVisibleCells().length,className:`bg-card font-sans text-body`,children:t})})}w.displayName=`DataTable`,M.displayName=`DataTableActionCell`,N.displayName=`DataTableActionHeader`,D.displayName=`DataTableBody`,A.displayName=`DataTableEmptyRow`,F.displayName=`DataTableExpandHeader`,z.displayName=`DataTableExpandedRow`,O.displayName=`DataTableHead`,E.displayName=`DataTableHeader`,T.displayName=`DataTableHeaderSortButton`,k.displayName=`DataTableRow`,R.displayName=`DataTableRowExpandButton`;const B={Root:w,ActionCell:M,ActionHeader:N,Cell:a.Cell,Body:D,EmptyRow:A,Head:O,Header:E,HeaderSortButton:T,Row:k,ExpandHeader:F,RowExpandButton:R,ExpandedRow:z};function V({direction:e,mode:t,...n}){return e===`unsorted`||!t||!e?p(`svg`,{"aria-hidden":!0,...n}):p(i,{mode:t,direction:e,...n})}function H(e,t){if(!e.getCanSort())return;let n=e.getIsSorted();switch(b(typeof n==`string`?n:`unsorted`,t)){case`unsorted`:e.clearSorting();return;case`asc`:e.toggleSorting(!1);return;case`desc`:e.toggleSorting(!0);return;default:return}}export{B as DataTable,P as expandedRowId};
|