intable 0.0.60 → 0.0.62

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/__uno.css CHANGED
@@ -1 +1 @@
1
- @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--un-bg-opacity:100%;--un-leading:initial;--un-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-border-opacity:100%;--un-outline-opacity:100%;--un-space-y-reverse:initial;--un-space-x-reverse:initial;--un-outline-style:solid;--un-border-top-opacity:100%;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1}}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-leading{syntax:"*";inherits:false}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-inset-ring-color{syntax:"*";inherits:false}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow-color{syntax:"*";inherits:false}@property --un-ring-color{syntax:"*";inherits:false}@property --un-ring-inset{syntax:"*";inherits:false}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow-color{syntax:"*";inherits:false}@property --un-translate-x{syntax:"*";inherits:false;initial-value:0}@property --un-translate-y{syntax:"*";inherits:false;initial-value:0}@property --un-translate-z{syntax:"*";inherits:false;initial-value:0}@property --un-scale-x{syntax:"*";inherits:false;initial-value:1}@property --un-scale-y{syntax:"*";inherits:false;initial-value:1}@property --un-scale-z{syntax:"*";inherits:false;initial-value:1}@property --un-numeric-figure{syntax:"*";inherits:false}@property --un-numeric-fraction{syntax:"*";inherits:false}@property --un-numeric-spacing{syntax:"*";inherits:false}@property --un-ordinal{syntax:"*";inherits:false}@property --un-slashed-zero{syntax:"*";inherits:false}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0}:root,:host{--spacing:.25rem;--fontWeight-semibold:600;--radius-DEFAULT:.25rem;--colors-gray-DEFAULT:#99a1af;--leading-snug:1.375;--colors-gray-800:#1e2939;--colors-white:#fff;--colors-gray-100:#f3f4f6;--colors-gray-900:#101828;--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--default-transition-timingFunction:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--radius-md:.375rem;--radius-xl:.75rem;--fontWeight-medium:500;--tracking-wide:.025em;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--radius-sm:.25rem;--leading-none:1;--colors-blue-DEFAULT:#54a2ff;--colors-red-DEFAULT:#ff6568;--colors-gray-200:#e5e7eb;--colors-gray-500:#6a7282;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-green-DEFAULT:#05df72;--colors-black:#000;--font-sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--default-font-family:var(--font-sans);--default-monoFont-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--colors-gray-DEFAULT:lab(65.9269% -.832677 -8.17474);--colors-gray-800:lab(16.1051% -1.18239 -11.7533);--colors-gray-100:lab(96.1596% -.082314 -1.13575);--colors-gray-900:lab(8.11897% .811271 -12.254);--colors-blue-DEFAULT:lab(65.0361% -1.42065 -56.9802);--colors-red-DEFAULT:lab(63.7053% 60.745 31.3109);--colors-gray-200:lab(91.6229% -.159115 -2.26791);--colors-gray-500:lab(47.7841% -.393182 -10.0268);--colors-green-DEFAULT:lab(78.503% -64.9264 39.7492)}}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-featureSettings,normal);font-variation-settings:var(--default-font-variationSettings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-monoFont-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-monoFont-featureSettings,normal);font-variation-settings:var(--default-monoFont-variationSettings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden~=until-found])){display:none!important}.container{width:100%}.aic{align-items:center}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.text-11px{font-size:11px}.text-2xl{font-size:var(--text-2xl-fontSize);line-height:var(--un-leading,var(--text-2xl-lineHeight))}.text-3{font-size:.75rem}.text-4{font-size:1rem}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--un-leading,var(--text-xs-lineHeight))}.c-\[--c-primary\]{color:color-mix(in oklab,var(--c-primary)var(--un-text-opacity),transparent)}.c-\#1e3a8a{color:color-mix(in oklab,#1e3a8a var(--un-text-opacity),transparent)}.c-\#7c2d12{color:color-mix(in oklab,#7c2d12 var(--un-text-opacity),transparent)}.c-blue{color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in srgb,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in srgb,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in srgb,var(--colors-red-DEFAULT)75%,transparent)}.leading-5{--un-leading:calc(4px*5);line-height:20px}.lh-\[1\]{--un-leading:1;line-height:1}.lh-none{--un-leading:var(--leading-none);line-height:var(--leading-none)}.tracking-wide{--un-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.font-medium{--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-mono{font-family:var(--font-mono)}.font-semibold{--un-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.m9{margin:36px}.mx-1{margin-inline:4px}.mx-2{margin-inline:8px}.mx-3\!{margin-inline:12px!important}.my-1{margin-block:4px}.ml{margin-left:16px}.ml-\.5{margin-left:2px}.ml-1{margin-left:4px}.mr--1{margin-right:-4px}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-2\.5{margin-right:10px}.mt-1{margin-top:4px}.p-0\!{padding:0!important}.p-1{padding:4px}.p-4\!{padding:16px!important}.px,.px-4{padding-inline:16px}.px-1{padding-inline:4px}.px-1\.5{padding-inline:6px}.px-2{padding-inline:8px}.px-3{padding-inline:12px}.py-1{padding-block:4px}.py-1\.5{padding-block:6px}.py-2{padding-block:8px}.pl-1{padding-left:4px}.pl-4{padding-left:16px}.pr-4{padding-right:16px}.ps{padding-inline-start:16px}.text-center{text-align:center}.text-right{text-align:right}.outline-0{outline-style:var(--un-outline-style);outline-width:0}.outline-1\.5px{outline-style:var(--un-outline-style);outline-width:1.5px}.outline-2{outline-style:var(--un-outline-style);outline-width:2px}.outline-\[--c-primary\]{outline-color:color-mix(in oklab,var(--c-primary)var(--un-outline-opacity),transparent)}.outline-blue{outline-color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.outline-none{--un-outline-style:none;outline-style:none}.outline-solid{--un-outline-style:solid;outline-style:solid}.b,.b-1,.border{border-width:1px}.b-2px{border-width:2px}.b-r-0{border-right-width:0}.b-\[--table-bg\]{border-color:color-mix(in oklab,var(--table-bg)var(--un-border-opacity),transparent)}.b-\#00000000\!{border-color:color-mix(in oklab,#0000 var(--un-border-opacity),transparent)!important}.b-\#4f7ff0{border-color:color-mix(in oklab,#4f7ff0 var(--un-border-opacity),transparent)}.b-\#f59e0b{border-color:color-mix(in oklab,#f59e0b var(--un-border-opacity),transparent)}.rd-1{border-radius:.25rem}.rd-1\.5{border-radius:.375rem}.rd-2{border-radius:.5rem}.rd-full{border-radius:3.40282e38px}.rd-sm{border-radius:var(--radius-sm)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rd-l-4{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.b-dashed{--un-border-style:dashed;border-style:dashed}.b-solid{--un-border-style:solid;border-style:solid}.bg-\[--bg\]{background-color:color-mix(in oklab,var(--bg)var(--un-bg-opacity),transparent)}.bg-\[--c-primary\]{background-color:color-mix(in oklab,var(--c-primary)var(--un-bg-opacity),transparent)}.bg-\[--table-bg\]{background-color:color-mix(in oklab,var(--table-bg)var(--un-bg-opacity),transparent)}.bg-\[--table-header-bg\]{background-color:color-mix(in oklab,var(--table-header-bg)var(--un-bg-opacity),transparent)}.bg-\#dbe6ff\/75{background-color:#dbe6ffbf;background-color:lab(91.0303% -.143617 -13.4803/.75)}.bg-\#fff{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent)}.bg-\#fff3d6\/85{background-color:#fff3d6d9;background-color:lab(96.236% .744313 15.5662/.85)}.bg-blue\/20\!{background-color:color-mix(in srgb,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in srgb,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in srgb,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in srgb,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-transparent{background-color:#0000}.hover\:bg-\[--li-hover-bg\]:hover{background-color:color-mix(in oklab,var(--li-hover-bg)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in srgb,var(--colors-black)8%,transparent)}.op-0{opacity:0}.op-15{opacity:.15}.op-60{opacity:.6}.op-75{opacity:.75}.op40{opacity:.4}.opacity-50{opacity:.5}.group:hover .group-hover\:op-100{opacity:1}.disabled\:op-30:disabled{opacity:.3}.hover\:underline:hover{text-decoration-line:underline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-0\.5{gap:2px}.gap-1{gap:4px}.gap-1\.5{gap:6px}.gap-2{gap:8px}.grid{display:grid}.size-3\.5{width:14px;height:14px}.size-4\!{width:16px!important;height:16px!important}.size-full{width:100%;height:100%}.h-1\!{height:4px!important}.h-2{height:8px}.h-2\.5{height:10px}.h-3\.5{height:14px}.h-5{height:20px}.h-6{height:24px}.h-6\.5{height:26px}.h-a\!{height:auto!important}.h-full{height:100%}.max-h-100{max-height:400px}.max-h-60{max-height:240px}.max-h-inherit{max-height:inherit}.min-h-16{min-height:64px}.min-h-40{min-height:160px}.min-h-a\!{min-height:auto!important}.min-w-24{min-width:96px}.min-w-30px{min-width:30px}.min-w-44{min-width:176px}.min-w-52{min-width:208px}.w-10{width:40px}.w-10px\!{width:10px!important}.w-2\.5{width:10px}.w-3\.5{width:14px}.w-6\.5{width:26px}.w-8\!{width:32px!important}.w-a\!{width:auto!important}.w-full{width:100%}.after\:h-1:after{height:4px}.after\:w-1:after{width:4px}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.contents{display:contents}.hidden{display:none}.visible{visibility:visible}.collapse{visibility:collapse}.cursor-pointer{cursor:pointer}.cursor-crosshair{cursor:crosshair}.cursor-s-resize{cursor:s-resize}.cursor-w-resize{cursor:w-resize}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.uppercase{text-transform:uppercase}.shadow-sm{--un-shadow:0 1px 3px 0 var(--un-shadow-color,#0000001a),0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:0 20px 25px -5px var(--un-shadow-color,#0000001a),0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.translate-x--1\/2{--un-translate-x:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-x-1\/2{--un-translate-x:50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-y--1\/2{--un-translate-y:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.hover\:scale-110:hover{--un-scale-x:110%;--un-scale-y:110%;scale:var(--un-scale-x)var(--un-scale-y)}.transform{transform:var(--un-rotate-x)var(--un-rotate-y)var(--un-rotate-z)var(--un-skew-x)var(--un-skew-y)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.duration-300{--un-duration:.3s;transition-duration:.3s}.items-start{align-items:flex-start}.items-center{align-items:center}.box-border{box-sizing:border-box}.inset-0{inset:0}.bottom-0{bottom:0}.left--0,.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.justify-end{justify-content:flex-end}.justify-end\!{justify-content:flex-end!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.z--1{z-index:-1}.z-1{z-index:1}.z-2{z-index:2}.z-9{z-index:9}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.of-y-auto{overflow-y:auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.filter{filter:var(--un-blur,)var(--un-brightness,)var(--un-contrast,)var(--un-grayscale,)var(--un-hue-rotate,)var(--un-invert,)var(--un-saturate,)var(--un-sepia,)var(--un-drop-shadow,)}.table{display:table}.table-cell{display:table-cell}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal,)var(--un-slashed-zero,)var(--un-numeric-figure,)var(--un-numeric-spacing,)var(--un-numeric-fraction,)}:where(.space-y-5>:not(:last-child)){--un-space-y-reverse:0;margin-block-start:calc(calc(4px*5)*var(--un-space-y-reverse));margin-block-end:calc(calc(4px*5)*calc(1 - var(--un-space-y-reverse)))}@supports (color:color-mix(in lab, red, red)){.c-blue{color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in oklab,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in oklab,var(--colors-red-DEFAULT)75%,transparent)}.outline-blue{outline-color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.bg-blue\/20\!{background-color:color-mix(in oklab,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in oklab,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in oklab,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in oklab,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.hover\:bg-black\/8:hover{background-color:color-mix(in oklab,var(--colors-black)8%,transparent)}}
1
+ @supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--un-bg-opacity:100%;--un-leading:initial;--un-content:"";--un-translate-x:initial;--un-translate-y:initial;--un-translate-z:initial;--un-text-opacity:100%;--un-border-opacity:100%;--un-outline-opacity:100%;--un-space-y-reverse:initial;--un-space-x-reverse:initial;--un-outline-style:solid;--un-border-top-opacity:100%;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1}}@property --un-text-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-leading{syntax:"*";inherits:false}@property --un-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --un-outline-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-border-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-bg-opacity{syntax:"<percentage>";inherits:false;initial-value:100%}@property --un-inset-ring-color{syntax:"*";inherits:false}@property --un-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-inset-shadow-color{syntax:"*";inherits:false}@property --un-ring-color{syntax:"*";inherits:false}@property --un-ring-inset{syntax:"*";inherits:false}@property --un-ring-offset-color{syntax:"*";inherits:false}@property --un-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --un-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --un-shadow-color{syntax:"*";inherits:false}@property --un-translate-x{syntax:"*";inherits:false;initial-value:0}@property --un-translate-y{syntax:"*";inherits:false;initial-value:0}@property --un-translate-z{syntax:"*";inherits:false;initial-value:0}@property --un-scale-x{syntax:"*";inherits:false;initial-value:1}@property --un-scale-y{syntax:"*";inherits:false;initial-value:1}@property --un-scale-z{syntax:"*";inherits:false;initial-value:1}@property --un-numeric-figure{syntax:"*";inherits:false}@property --un-numeric-fraction{syntax:"*";inherits:false}@property --un-numeric-spacing{syntax:"*";inherits:false}@property --un-ordinal{syntax:"*";inherits:false}@property --un-slashed-zero{syntax:"*";inherits:false}@property --un-space-y-reverse{syntax:"*";inherits:false;initial-value:0}:root,:host{--spacing:.25rem;--fontWeight-semibold:600;--radius-DEFAULT:.25rem;--colors-gray-DEFAULT:#99a1af;--leading-snug:1.375;--colors-gray-800:#1e2939;--colors-white:#fff;--colors-gray-100:#f3f4f6;--colors-gray-900:#101828;--text-xs-fontSize:.75rem;--text-xs-lineHeight:1rem;--text-sm-fontSize:.875rem;--text-sm-lineHeight:1.25rem;--radius-md:.375rem;--default-transition-timingFunction:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--radius-xl:.75rem;--fontWeight-medium:500;--tracking-wide:.025em;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--radius-sm:.25rem;--leading-none:1;--colors-blue-DEFAULT:#54a2ff;--colors-red-DEFAULT:#ff6568;--colors-gray-200:#e5e7eb;--colors-gray-500:#6a7282;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-green-DEFAULT:#05df72;--colors-black:#000;--font-sans:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--default-font-family:var(--font-sans);--default-monoFont-family:var(--font-mono)}@supports (color:lab(0% 0 0)){:root,:host{--colors-gray-DEFAULT:lab(65.9269% -.832677 -8.17474);--colors-gray-800:lab(16.1051% -1.18239 -11.7533);--colors-gray-100:lab(96.1596% -.082314 -1.13575);--colors-gray-900:lab(8.11897% .811271 -12.254);--colors-blue-DEFAULT:lab(65.0361% -1.42065 -56.9802);--colors-red-DEFAULT:lab(63.7053% 60.745 31.3109);--colors-gray-200:lab(91.6229% -.159115 -2.26791);--colors-gray-500:lab(47.7841% -.393182 -10.0268);--colors-green-DEFAULT:lab(78.503% -64.9264 39.7492)}}*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-featureSettings,normal);font-variation-settings:var(--default-font-variationSettings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-monoFont-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-monoFont-featureSettings,normal);font-variation-settings:var(--default-monoFont-variationSettings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden~=until-found])){display:none!important}.container{width:100%}.aic{align-items:center}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.text-11px{font-size:11px}.text-2xl{font-size:var(--text-2xl-fontSize);line-height:var(--un-leading,var(--text-2xl-lineHeight))}.text-3{font-size:.75rem}.text-4{font-size:1rem}.text-sm{font-size:var(--text-sm-fontSize);line-height:var(--un-leading,var(--text-sm-lineHeight))}.text-xs{font-size:var(--text-xs-fontSize);line-height:var(--un-leading,var(--text-xs-lineHeight))}.c-\[--c-primary\]{color:color-mix(in oklab,var(--c-primary)var(--un-text-opacity),transparent)}.c-\#1e3a8a{color:color-mix(in oklab,#1e3a8a var(--un-text-opacity),transparent)}.c-\#7c2d12{color:color-mix(in oklab,#7c2d12 var(--un-text-opacity),transparent)}.c-blue{color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in srgb,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in srgb,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in srgb,var(--colors-red-DEFAULT)75%,transparent)}.leading-5{--un-leading:calc(4px*5);line-height:20px}.lh-\[1\]{--un-leading:1;line-height:1}.lh-none{--un-leading:var(--leading-none);line-height:var(--leading-none)}.tracking-wide{--un-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.font-medium{--un-font-weight:var(--fontWeight-medium);font-weight:var(--fontWeight-medium)}.font-mono{font-family:var(--font-mono)}.font-semibold{--un-font-weight:var(--fontWeight-semibold);font-weight:var(--fontWeight-semibold)}.m9{margin:36px}.mx-1{margin-inline:4px}.mx-2{margin-inline:8px}.mx-3\!{margin-inline:12px!important}.my-1{margin-block:4px}.ml{margin-left:16px}.ml-\.5{margin-left:2px}.ml-1{margin-left:4px}.mr--1{margin-right:-4px}.mr-1{margin-right:4px}.mr-2{margin-right:8px}.mr-2\.5{margin-right:10px}.mt-1{margin-top:4px}.p-0\!{padding:0!important}.p-1{padding:4px}.p-4\!{padding:16px!important}.px,.px-4{padding-inline:16px}.px-1{padding-inline:4px}.px-1\.5{padding-inline:6px}.px-2{padding-inline:8px}.px-3{padding-inline:12px}.py-1{padding-block:4px}.py-1\.5{padding-block:6px}.py-2{padding-block:8px}.pl-1{padding-left:4px}.pl-4{padding-left:16px}.pr-4{padding-right:16px}.ps{padding-inline-start:16px}.text-center{text-align:center}.text-right{text-align:right}.outline-0{outline-style:var(--un-outline-style);outline-width:0}.outline-1\.5px{outline-style:var(--un-outline-style);outline-width:1.5px}.outline-2{outline-style:var(--un-outline-style);outline-width:2px}.outline-\[--c-primary\]{outline-color:color-mix(in oklab,var(--c-primary)var(--un-outline-opacity),transparent)}.outline-blue{outline-color:color-mix(in srgb,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.outline-none{--un-outline-style:none;outline-style:none}.outline-solid{--un-outline-style:solid;outline-style:solid}.b,.b-1,.border{border-width:1px}.b-2px{border-width:2px}.b-r-0{border-right-width:0}.b-\[--table-bg\]{border-color:color-mix(in oklab,var(--table-bg)var(--un-border-opacity),transparent)}.b-\#00000000\!{border-color:color-mix(in oklab,#0000 var(--un-border-opacity),transparent)!important}.b-\#4f7ff0{border-color:color-mix(in oklab,#4f7ff0 var(--un-border-opacity),transparent)}.b-\#f59e0b{border-color:color-mix(in oklab,#f59e0b var(--un-border-opacity),transparent)}.rd-1{border-radius:.25rem}.rd-1\.5{border-radius:.375rem}.rd-2{border-radius:.5rem}.rd-full{border-radius:3.40282e38px}.rd-sm{border-radius:var(--radius-sm)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rd-l-4{border-top-left-radius:1rem;border-bottom-left-radius:1rem}.b-dashed{--un-border-style:dashed;border-style:dashed}.b-solid{--un-border-style:solid;border-style:solid}.bg-\[--bg\]{background-color:color-mix(in oklab,var(--bg)var(--un-bg-opacity),transparent)}.bg-\[--c-primary\]{background-color:color-mix(in oklab,var(--c-primary)var(--un-bg-opacity),transparent)}.bg-\[--table-bg\]{background-color:color-mix(in oklab,var(--table-bg)var(--un-bg-opacity),transparent)}.bg-\[--table-header-bg\]{background-color:color-mix(in oklab,var(--table-header-bg)var(--un-bg-opacity),transparent)}.bg-\#dbe6ff\/75{background-color:#dbe6ffbf;background-color:lab(91.0303% -.143617 -13.4803/.75)}.bg-\#fff{background-color:color-mix(in oklab,#fff var(--un-bg-opacity),transparent)}.bg-\#fff3d6\/85{background-color:#fff3d6d9;background-color:lab(96.236% .744313 15.5662/.85)}.bg-blue\/20\!{background-color:color-mix(in srgb,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in srgb,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in srgb,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in srgb,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-transparent{background-color:#0000}.hover\:bg-\[--li-hover-bg\]:hover{background-color:color-mix(in oklab,var(--li-hover-bg)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in srgb,var(--colors-black)8%,transparent)}.op-0{opacity:0}.op-15{opacity:.15}.op-60{opacity:.6}.op-75{opacity:.75}.op40{opacity:.4}.opacity-50{opacity:.5}.group:hover .group-hover\:op-100{opacity:1}.disabled\:op-30:disabled{opacity:.3}.hover\:underline:hover{text-decoration-line:underline}.flex{display:flex}.inline-flex{display:inline-flex}.flex-1{flex:1}.flex-none{flex:none}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-0\.5{gap:2px}.gap-1{gap:4px}.gap-1\.5{gap:6px}.gap-2{gap:8px}.grid{display:grid}.size-3\.5{width:14px;height:14px}.size-4\!{width:16px!important;height:16px!important}.size-full{width:100%;height:100%}.h-1\!{height:4px!important}.h-2{height:8px}.h-2\.5{height:10px}.h-3\.5{height:14px}.h-5{height:20px}.h-6{height:24px}.h-6\.5{height:26px}.h-a\!{height:auto!important}.h-full{height:100%}.max-h-100{max-height:400px}.max-h-60{max-height:240px}.max-h-inherit{max-height:inherit}.min-h-16{min-height:64px}.min-h-40{min-height:160px}.min-h-a\!{min-height:auto!important}.min-w-24{min-width:96px}.min-w-30px{min-width:30px}.min-w-44{min-width:176px}.min-w-52{min-width:208px}.w-10{width:40px}.w-10px\!{width:10px!important}.w-2\.5{width:10px}.w-3\.5{width:14px}.w-6\.5{width:26px}.w-8\!{width:32px!important}.w-a\!{width:auto!important}.w-full{width:100%}.after\:h-1:after{height:4px}.after\:w-1:after{width:4px}.inline{display:inline}.block{display:block}.inline-block{display:inline-block}.contents{display:contents}.hidden{display:none}.visible{visibility:visible}.collapse{visibility:collapse}.cursor-pointer{cursor:pointer}.cursor-crosshair{cursor:crosshair}.cursor-s-resize{cursor:s-resize}.cursor-w-resize{cursor:w-resize}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.select-none{-webkit-user-select:none;user-select:none}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.uppercase{text-transform:uppercase}.shadow-sm{--un-shadow:0 1px 3px 0 var(--un-shadow-color,#0000001a),0 1px 2px -1px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.shadow-xl{--un-shadow:0 20px 25px -5px var(--un-shadow-color,#0000001a),0 8px 10px -6px var(--un-shadow-color,#0000001a);box-shadow:var(--un-inset-shadow),var(--un-inset-ring-shadow),var(--un-ring-offset-shadow),var(--un-ring-shadow),var(--un-shadow)}.translate-x--1\/2{--un-translate-x:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-x-1\/2{--un-translate-x:50%;translate:var(--un-translate-x)var(--un-translate-y)}.translate-y--1\/2{--un-translate-y:-50%;translate:var(--un-translate-x)var(--un-translate-y)}.hover\:scale-110:hover{--un-scale-x:110%;--un-scale-y:110%;scale:var(--un-scale-x)var(--un-scale-y)}.transform{transform:var(--un-rotate-x)var(--un-rotate-y)var(--un-rotate-z)var(--un-skew-x)var(--un-skew-y)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--un-ease,var(--default-transition-timingFunction));transition-duration:var(--un-duration,var(--default-transition-duration))}.duration-300{--un-duration:.3s;transition-duration:.3s}.items-start{align-items:flex-start}.items-center{align-items:center}.box-border{box-sizing:border-box}.inset-0{inset:0}.bottom-0{bottom:0}.left--0,.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-1\/2{top:50%}.justify-end{justify-content:flex-end}.justify-end\!{justify-content:flex-end!important}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.z--1{z-index:-1}.z-1{z-index:1}.z-2{z-index:2}.z-9{z-index:9}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.of-y-auto{overflow-y:auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-spin{animation:1s linear infinite spin}.filter{filter:var(--un-blur,)var(--un-brightness,)var(--un-contrast,)var(--un-grayscale,)var(--un-hue-rotate,)var(--un-invert,)var(--un-saturate,)var(--un-sepia,)var(--un-drop-shadow,)}.table{display:table}.table-cell{display:table-cell}.tabular-nums{--un-numeric-spacing:tabular-nums;font-variant-numeric:var(--un-ordinal,)var(--un-slashed-zero,)var(--un-numeric-figure,)var(--un-numeric-spacing,)var(--un-numeric-fraction,)}:where(.space-y-5>:not(:last-child)){--un-space-y-reverse:0;margin-block-start:calc(calc(4px*5)*var(--un-space-y-reverse));margin-block-end:calc(calc(4px*5)*calc(1 - var(--un-space-y-reverse)))}@supports (color:color-mix(in lab, red, red)){.c-blue{color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-text-opacity),transparent)}.c-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.c-gray\/70{color:color-mix(in oklab,var(--colors-gray-DEFAULT)70%,transparent)}.c-red\/75{color:color-mix(in oklab,var(--colors-red-DEFAULT)75%,transparent)}.outline-blue{outline-color:color-mix(in oklab,var(--colors-blue-DEFAULT)var(--un-outline-opacity),transparent)}.bg-blue\/20\!{background-color:color-mix(in oklab,var(--colors-blue-DEFAULT)20%,transparent)!important}.bg-gray-200{background-color:color-mix(in oklab,var(--colors-gray-200)var(--un-bg-opacity),transparent)}.bg-gray\/20{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.bg-green\!{background-color:color-mix(in oklab,var(--colors-green-DEFAULT)var(--un-bg-opacity),transparent)!important}.bg-red\!{background-color:color-mix(in oklab,var(--colors-red-DEFAULT)var(--un-bg-opacity),transparent)!important}.hover\:bg-black\/8:hover{background-color:color-mix(in oklab,var(--colors-black)8%,transparent)}}
@@ -1,24 +1,25 @@
1
1
  import { Popover } from "./Popover.js";
2
- import { createComponent, insert, mergeProps, template } from "solid-js/web";
2
+ import { createComponent, effect, insert, mergeProps, setAttribute, template } from "solid-js/web";
3
3
  import { offset } from "floating-ui-solid";
4
- var _tmpl$ = /* @__PURE__ */ template("<div class=tt-tooltip>");
5
- function Tooltip(s) {
4
+ var _tmpl$ = /* @__PURE__ */ template("<div class=in-tooltip>");
5
+ function Tooltip(c) {
6
+ let l = () => c.placement ?? "top";
6
7
  return createComponent(Popover, mergeProps({
7
8
  trigger: "hover",
8
9
  get placement() {
9
- return s.placement ?? "top";
10
+ return l();
10
11
  },
11
12
  get middleware() {
12
- return [offset({ mainAxis: 6 })];
13
+ return [offset({ mainAxis: 8 })];
13
14
  }
14
- }, s, {
15
+ }, c, {
15
16
  get reference() {
16
- return s.children;
17
+ return c.children;
17
18
  },
18
19
  get floating() {
19
20
  return (() => {
20
21
  var e = _tmpl$();
21
- return insert(e, () => s.content), e;
22
+ return insert(e, () => c.content), effect(() => setAttribute(e, "data-placement", l())), e;
22
23
  })();
23
24
  }
24
25
  }));
@@ -24,7 +24,8 @@ type Reactive<T extends object> = {
24
24
  };
25
25
  export declare function toReactive<T extends object>(fn: (() => T) | T): Reactive<T>;
26
26
  export declare function useMemo<T>(fn: () => T): import("solid-js").Accessor<T>;
27
- export declare function useHover(el: MaybeAccessor<Many<HTMLElement | undefined>>): import("solid-js").Accessor<boolean>;
27
+ export declare function signal<T>(init?: T): (v?: T) => T;
28
+ export declare function useHover(el: MaybeAccessor<Many<HTMLElement | undefined>>): (v?: boolean) => boolean;
28
29
  export declare function useMouseDown(el: MaybeAccessor<Many<HTMLElement | undefined>>): import("solid-js").Accessor<boolean>;
29
30
  export declare function useClicked(el: MaybeAccessor<Many<HTMLElement | undefined>>): import("solid-js").Accessor<boolean>;
30
31
  export declare function useMutation<T>(initial: MaybeAccessor<Node | Node[]>, options: MutationObserverInit, cb: () => T): import("solid-js").Accessor<T>;
@@ -9,178 +9,185 @@ import { makePersisted, storageSync } from "@solid-primitives/storage";
9
9
  import { createMutationObserver } from "@solid-primitives/mutation-observer";
10
10
  import { castArray } from "es-toolkit/compat";
11
11
  import { createKeybindingsHandler } from "tinykeys";
12
- function usePointerDrag(h, V) {
13
- V = mergeProps({ preventDefault: !0 }, V), createPointerListeners({
14
- target: h,
12
+ function usePointerDrag(v, H) {
13
+ H = mergeProps({ preventDefault: !0 }, H), createPointerListeners({
14
+ target: v,
15
15
  passive: !1,
16
- onDown(h) {
17
- V.preventDefault && h.preventDefault();
18
- let [H, U] = [h.x, h.y], W, G;
19
- V.start?.(h, (h) => W = h, (h) => G = h), createRoot((V) => {
16
+ onDown(v) {
17
+ H.preventDefault && v.preventDefault();
18
+ let [U, W] = [v.x, v.y], G, K;
19
+ H.start?.(v, (v) => G = v, (v) => K = v), createRoot((H) => {
20
20
  createPointerListeners({
21
21
  target: document,
22
- onMove(h) {
23
- let [V, G] = [h.x - H, h.y - U];
24
- W?.(h, {
25
- sx: H,
26
- sy: U,
27
- ox: V,
28
- oy: G
22
+ onMove(v) {
23
+ let [H, K] = [v.x - U, v.y - W];
24
+ G?.(v, {
25
+ sx: U,
26
+ sy: W,
27
+ ox: H,
28
+ oy: K
29
29
  });
30
30
  },
31
31
  onUp() {
32
- G?.(h), V(), W = void 0, G = void 0;
32
+ K?.(v), H(), G = void 0, K = void 0;
33
33
  }
34
- }), createEventListenerMap(document, { drop: V });
34
+ }), createEventListenerMap(document, { drop: H });
35
35
  });
36
36
  }
37
37
  });
38
38
  }
39
- function model(h, V) {
40
- let [H, U] = V();
41
- createRenderEffect(() => h.value = H()), h.addEventListener("input", (h) => U(h.target.value));
39
+ function model(v, H) {
40
+ let [U, W] = H();
41
+ createRenderEffect(() => v.value = U()), v.addEventListener("input", (v) => W(v.target.value));
42
42
  }
43
- function toSignle(h, V) {
44
- return [() => h[V], (H) => h[V] = H];
43
+ function toSignle(v, H) {
44
+ return [() => v[H], (U) => v[H] = U];
45
45
  }
46
46
  function useDark() {
47
- let h = (h) => h == "dark" || H() && !h, V = (h) => h ? "dark" : "light", H = () => window.matchMedia("(prefers-color-scheme: dark)").matches, U = makePersisted(createSignal(H()), {
47
+ let v = (v) => v == "dark" || U() && !v, H = (v) => v ? "dark" : "light", U = () => window.matchMedia("(prefers-color-scheme: dark)").matches, W = makePersisted(createSignal(U()), {
48
48
  name: "color-schema",
49
49
  storage: localStorage,
50
50
  sync: storageSync,
51
- serialize: V,
52
- deserialize: h
51
+ serialize: H,
52
+ deserialize: v
53
53
  });
54
- return createEffect(() => document.documentElement.classList[U[0]() ? "add" : "remove"]("dark")), createEffect(() => window.dispatchEvent(new StorageEvent("storage", {
54
+ return createEffect(() => document.documentElement.classList[W[0]() ? "add" : "remove"]("dark")), createEffect(() => window.dispatchEvent(new StorageEvent("storage", {
55
55
  key: "color-schema",
56
- newValue: V(U[0]())
57
- }))), U;
56
+ newValue: H(W[0]())
57
+ }))), W;
58
58
  }
59
- function useMemoAsync(h, V) {
60
- let H = Symbol(), [U, G] = createSignal(V);
59
+ function useMemoAsync(v, H) {
60
+ let U = Symbol(), [W, K] = createSignal(H);
61
61
  return createComputed(async () => {
62
- let V = h(untrack(U)), W = V instanceof Promise ? await new Promise((h) => {
63
- V.then(h), onCleanup(() => h(H));
64
- }) : V;
65
- W == H || G(() => W);
66
- }), U;
67
- }
68
- function useSignle2(h, V) {
69
- let H = createSignal(isFunction(h) ? void 0 : h), U = (h) => {
70
- let H = V?.before?.(h);
71
- return isPromise(H) ? H.then((V) => V === void 0 ? h : V) : H ?? h;
72
- }, G = useMemoAsync(() => U(H[0]()));
73
- if (isFunction(h)) {
74
- let V = useMemoAsync(() => U(h()));
75
- createComputed(() => H[1](V()));
62
+ let H = v(untrack(W)), G = H instanceof Promise ? await new Promise((v) => {
63
+ H.then(v), onCleanup(() => v(U));
64
+ }) : H;
65
+ G == U || K(() => G);
66
+ }), W;
67
+ }
68
+ function useSignle2(v, H) {
69
+ let U = createSignal(isFunction(v) ? void 0 : v), W = (v) => {
70
+ let U = H?.before?.(v);
71
+ return isPromise(U) ? U.then((H) => H === void 0 ? v : H) : U ?? v;
72
+ }, K = useMemoAsync(() => W(U[0]()));
73
+ if (isFunction(v)) {
74
+ let H = useMemoAsync(() => W(v()));
75
+ createComputed(() => U[1](H()));
76
76
  }
77
- return [G, H[1]];
77
+ return [K, U[1]];
78
78
  }
79
79
  var $MEMO = Symbol();
80
- function toReactive(h) {
81
- let U = () => unFn(h), W = () => !0, G = (h) => ((h) => typeof h == "function" && $MEMO in h ? h() : h)(U()[h]);
80
+ function toReactive(v) {
81
+ let W = () => unFn(v), G = () => !0, K = (v) => ((v) => typeof v == "function" && $MEMO in v ? v() : v)(W()[v]);
82
82
  return new Proxy(Object.create(null), {
83
- get: (h, V, W) => V == $PROXY || V == $RAW ? W : ((h) => typeof h == "function" && $MEMO in h ? h() : h)(U()[V]),
84
- set: W,
85
- defineProperty: (h, V, H) => Object.defineProperty(U(), V, H),
86
- deleteProperty: W,
87
- getPrototypeOf: () => Object.getPrototypeOf(U()),
88
- has: (h, V) => V == $PROXY || V in U(),
89
- ownKeys: (h) => Object.keys(U()),
90
- getOwnPropertyDescriptor: (h, V) => ({
83
+ get: (v, H, G) => H == $PROXY || H == $RAW ? G : ((v) => typeof v == "function" && $MEMO in v ? v() : v)(W()[H]),
84
+ set: G,
85
+ defineProperty: (v, H, U) => Object.defineProperty(W(), H, U),
86
+ deleteProperty: G,
87
+ getPrototypeOf: () => Object.getPrototypeOf(W()),
88
+ has: (v, H) => H == $PROXY || H in W(),
89
+ ownKeys: (v) => Object.keys(W()),
90
+ getOwnPropertyDescriptor: (v, H) => ({
91
91
  enumerable: !0,
92
92
  configurable: !0,
93
93
  get() {
94
- return G(V);
94
+ return K(H);
95
95
  },
96
- set: W
96
+ set: G
97
97
  })
98
98
  });
99
99
  }
100
- function useMemo(h) {
101
- let V = createMemo(h);
102
- return V[$MEMO] = 1, V;
100
+ function useMemo(v) {
101
+ let H = createMemo(v);
102
+ return H[$MEMO] = 1, H;
103
103
  }
104
- function useHover(h) {
105
- let [V, H] = createSignal(!1);
106
- return createEventListener(h, "pointerenter", () => H(!0)), createEventListener(h, "pointerleave", () => H(!1)), V;
104
+ function signal(v) {
105
+ let [H, U] = createSignal(v);
106
+ function W(v) {
107
+ return arguments.length ? U(() => v) : H();
108
+ }
109
+ return W;
107
110
  }
108
- function useMouseDown(h) {
109
- let [V, H] = createSignal(!1);
110
- return createEventListener(h, "pointerdown", () => H(!0)), createEventListener(document.body, "pointerup", () => H(!1)), V;
111
+ function useHover(v) {
112
+ let H = signal(!1);
113
+ return createEventListener(v, "pointerenter", () => H(!0)), createEventListener(v, "pointerleave", () => H(!1)), H;
111
114
  }
112
- function useClicked(h) {
113
- let [V, H] = createSignal(!1), U = () => castArray(access(h));
114
- return createEventListener(() => U().map((h) => h?.getRootNode()), "click", (h) => {
115
- let V = h.composedPath();
116
- H(U().some((h) => V.includes(h)));
117
- }), V;
115
+ function useMouseDown(v) {
116
+ let [H, U] = createSignal(!1);
117
+ return createEventListener(v, "pointerdown", () => U(!0)), createEventListener(document.body, "pointerup", () => U(!1)), H;
118
118
  }
119
- function useMutation(h, V, H) {
120
- let U = createSignal(H());
121
- return createMutationObserver(h, V, (h) => U[1](H())), U[0];
119
+ function useClicked(v) {
120
+ let [H, U] = createSignal(!1), W = () => castArray(access(v));
121
+ return createEventListener(() => W().map((v) => v?.getRootNode()), "click", (v) => {
122
+ let H = v.composedPath();
123
+ U(W().some((v) => H.includes(v)));
124
+ }), H;
122
125
  }
123
- function useTinykeys(h, V) {
124
- createEventListener(h, "keydown", createKeybindingsHandler({ ...mapValues(V, (h) => (V) => {
125
- V.preventDefault(), h(V);
126
+ function useMutation(v, H, U) {
127
+ let W = createSignal(U());
128
+ return createMutationObserver(v, H, (v) => W[1](U())), W[0];
129
+ }
130
+ function useTinykeys(v, H) {
131
+ createEventListener(v, "keydown", createKeybindingsHandler({ ...mapValues(H, (v) => (H) => {
132
+ H.preventDefault(), v(H);
126
133
  }) }));
127
134
  }
128
- function useHistory([h, V]) {
129
- let H = 1, U = createMutable({
135
+ function useHistory([v, H]) {
136
+ let U = 1, W = createMutable({
130
137
  index: -1,
131
138
  history: []
132
- }), W = () => (U.index = 0, U.history = [h()]), G = () => U.index > 0, K = () => U.index < U.history.length - 1;
133
- return createRenderEffect(on(h, (h) => {
134
- if (h != null) {
135
- if (!H) return H = 1;
136
- K() && (U.history = U.history.slice(0, U.index + 1)), U.history[++U.index] = h;
139
+ }), G = () => (W.index = 0, W.history = [v()]), K = () => W.index > 0, q = () => W.index < W.history.length - 1;
140
+ return createRenderEffect(on(v, (v) => {
141
+ if (v != null) {
142
+ if (!U) return U = 1;
143
+ q() && (W.history = W.history.slice(0, W.index + 1)), W.history[++W.index] = v;
137
144
  }
138
145
  })), {
139
- undo: () => G() && ((H = 0) || V(U.history[--U.index])),
140
- redo: () => K() && ((H = 0) || V(U.history[++U.index])),
141
- clear: W,
146
+ undo: () => K() && ((U = 0) || H(W.history[--W.index])),
147
+ redo: () => q() && ((U = 0) || H(W.history[++W.index])),
148
+ clear: G,
142
149
  get index() {
143
- return U.index;
150
+ return W.index;
144
151
  },
145
152
  get history() {
146
- return U.history;
153
+ return W.history;
147
154
  }
148
155
  };
149
156
  }
150
- function createShallowState(h) {
151
- let V = getOwner(), U = {}, W = {}, G = (h, H) => U[h] ??= runWithOwner(V, () => createSignal(H));
152
- for (let V in h) G(V, h[V]);
153
- return new Proxy(h, {
154
- get(h, V, U) {
155
- return V == $PROXY ? U : G(V)[0]();
157
+ function createShallowState(v) {
158
+ let H = getOwner(), W = {}, G = {}, K = (v, U) => W[v] ??= runWithOwner(H, () => createSignal(U));
159
+ for (let H in v) K(H, v[H]);
160
+ return new Proxy(v, {
161
+ get(v, H, W) {
162
+ return H == $PROXY ? W : K(H)[0]();
156
163
  },
157
- set(h, V, H, U) {
158
- return h[V] = H, W[V] = 1, G(V, H)[1](() => H), !0;
164
+ set(v, H, U, W) {
165
+ return v[H] = U, G[H] = 1, K(H, U)[1](() => U), !0;
159
166
  },
160
- deleteProperty(h, V) {
161
- return G(V)[1](void 0), delete h[V], delete U[V], !0;
167
+ deleteProperty(v, H) {
168
+ return K(H)[1](void 0), delete v[H], delete W[H], !0;
162
169
  },
163
- has: (h, V) => V == $PROXY || V in W,
164
- ownKeys: (h) => Reflect.ownKeys(W),
165
- getOwnPropertyDescriptor: (h, V) => ({
170
+ has: (v, H) => H == $PROXY || H in G,
171
+ ownKeys: (v) => Reflect.ownKeys(G),
172
+ getOwnPropertyDescriptor: (v, H) => ({
166
173
  enumerable: !0,
167
174
  configurable: !0,
168
175
  get() {
169
- return G(V)[0]();
176
+ return K(H)[0]();
170
177
  },
171
- set(h) {
172
- G(V)[1](h);
178
+ set(v) {
179
+ K(H)[1](v);
173
180
  }
174
181
  })
175
182
  });
176
183
  }
177
- function useMemoState(V) {
178
- let H = createShallowState({});
184
+ function useMemoState(H) {
185
+ let U = createShallowState({});
179
186
  return createComputed(() => {
180
187
  batch(() => {
181
- let U = { ...V() };
182
- untrack(() => change2(H, U));
188
+ let W = { ...H() };
189
+ untrack(() => change2(U, W));
183
190
  });
184
- }), H;
191
+ }), U;
185
192
  }
186
- export { createShallowState, model, toReactive, toSignle, useClicked, useDark, useHistory, useHover, useMemo, useMemoAsync, useMemoState, useMouseDown, useMutation, usePointerDrag, useSignle2, useTinykeys };
193
+ export { createShallowState, model, signal, toReactive, toSignle, useClicked, useDark, useHistory, useHover, useMemo, useMemoAsync, useMemoState, useMouseDown, useMutation, usePointerDrag, useSignle2, useTinykeys };
@@ -1,5 +1,9 @@
1
1
  interface UseSelectorOpt<T> {
2
+ /**
3
+ * The controlled value of the selector.
4
+ */
2
5
  value?: T;
6
+ initialValue?: T;
3
7
  onChange?: (v: T) => void;
4
8
  multiple?: boolean;
5
9
  selectable?: (v: any) => boolean;
@@ -13,7 +17,8 @@ export declare function useSelector<T = any>(opt: UseSelectorOpt<T>): {
13
17
  del: (v: T) => void;
14
18
  toggle: (v: T) => void;
15
19
  isAll: (data: T[]) => boolean;
20
+ isIndeterminate: (data: T[]) => boolean;
16
21
  selectAll: (data: T[]) => void;
17
- readonly value: any;
22
+ readonly value: T;
18
23
  };
19
24
  export {};
@@ -1,5 +1,6 @@
1
1
  import { toArr } from "../utils.js";
2
- import { createMemo, createSelector, createSignal } from "solid-js";
2
+ import { useControlled } from "./useControlled.js";
3
+ import { createMemo, createSelector } from "solid-js";
3
4
  var KeyedSet = class extends Set {
4
5
  #key;
5
6
  #map = /* @__PURE__ */ new Map();
@@ -37,33 +38,36 @@ var KeyedSet = class extends Set {
37
38
  }
38
39
  };
39
40
  function useSelector(o) {
40
- let { value: s, onChange: c, multiple: l = !1, selectable: u } = o, d = (e) => l ? new KeyedSet(e, o.key) : new SingleSet(e, o.key), [f, p] = createSignal(d(toArr(s))), m = createSelector(f, (e, i) => i.has(e)), h = (e) => u ? u(e) : !0, g = () => {
41
- p(d()), c?.(x());
42
- }, _ = (i) => {
43
- h(i) && (p(d(toArr(i))), c?.(x()));
41
+ o = useControlled(o);
42
+ let { onChange: s, multiple: c = !1, selectable: l } = o, u = (e) => c ? new KeyedSet(e, o.key) : new SingleSet(e, o.key), d = createMemo(() => u(toArr(o.value))), f = createSelector(d, (e, i) => i.has(e)), p = (e) => l ? l(e) : !0, m = () => {
43
+ s?.(c ? [] : void 0);
44
+ }, h = (e) => {
45
+ p(e) && s?.(c ? [e] : e);
46
+ }, g = (e) => {
47
+ if (!p(e)) return;
48
+ let i = u([...d()]);
49
+ i.add(e), s?.(c ? [...i] : [...i][0]);
50
+ }, _ = (e) => {
51
+ let i = u([...d()]);
52
+ i.delete(e), s?.(c ? [...i] : [...i][0]);
44
53
  }, v = (e) => {
45
- if (!h(e)) return;
46
- let i = d(f());
47
- i.add(e), p(i), c?.(x());
48
- }, y = (e) => {
49
- let i = d(f());
50
- i.delete(e), p(i), c?.(x());
51
- }, b = (e) => {
52
- m(e) ? y(e) : v(e);
53
- }, x = createMemo(() => l ? Array.from(f()) : [...f()][0]);
54
+ f(e) ? _(e) : g(e);
55
+ }, y = (e) => (e = e.filter((e) => p(e)), !!e.length && e.every((e) => f(e)));
54
56
  return {
55
- clear: g,
56
- set: _,
57
- has: m,
58
- add: v,
59
- del: y,
60
- toggle: b,
61
- isAll: (e) => !!e.length && e.every((e) => m(e)),
57
+ clear: m,
58
+ set: h,
59
+ has: f,
60
+ add: g,
61
+ del: _,
62
+ toggle: v,
63
+ isAll: y,
64
+ isIndeterminate: (e) => (e = e.filter((e) => p(e)), !!e.length && !y(e) && e.some((e) => f(e))),
62
65
  selectAll: (e) => {
63
- p(d(e)), c?.(x());
66
+ let i = e.filter((e) => p(e));
67
+ s?.(c ? i : i[0]);
64
68
  },
65
69
  get value() {
66
- return x();
70
+ return o.value;
67
71
  }
68
72
  };
69
73
  }
package/dist/index.d.ts CHANGED
@@ -23,6 +23,7 @@ import './plugins/FilterPlugin';
23
23
  import './plugins/TooltipPlugin';
24
24
  import './plugins/KeyEachPlugin';
25
25
  import './plugins/PaginationPlugin';
26
+ import './plugins/BranchGraphPlugin';
26
27
  export declare const Ctx: import("solid-js").Context<{
27
28
  props: TableProps2;
28
29
  store: TableStore;
@@ -73,6 +74,9 @@ export interface TableProps {
73
74
  rowKey?: any;
74
75
  size?: string;
75
76
  loading?: boolean;
77
+ scroll?: {
78
+ x?: number | string;
79
+ };
76
80
  newRow?: (i: number) => any;
77
81
  Scroll?: Component<any>;
78
82
  Table?: Component<any>;
@@ -80,12 +84,7 @@ export interface TableProps {
80
84
  Tbody?: Component<any>;
81
85
  Td?: Component<TDProps>;
82
86
  Th?: Component<THProps>;
83
- Tr?: Component<{
84
- y?: number;
85
- data?: any;
86
- style?: any;
87
- children: JSX.Element;
88
- }>;
87
+ Tr?: Component<TRProps>;
89
88
  EachRows?: Each;
90
89
  EachCells?: Each<TableColumn>;
91
90
  Footer?: Component<any>;
@@ -98,6 +97,8 @@ export interface TableProps {
98
97
  y?: number;
99
98
  data?: any;
100
99
  }) => string) | string;
100
+ rowClass?: ((props: TRProps) => string) | string;
101
+ rowStyle?: ((props: TRProps) => string) | string;
101
102
  renderer?: (comp: (props: any) => JSX.Element) => ((props: any) => JSX.Element);
102
103
  plugins?: Plugin$0[];
103
104
  /**
@@ -107,6 +108,7 @@ export interface TableProps {
107
108
  */
108
109
  keybindings?: Record<string, ((e?: KeyboardEvent) => void) | false>;
109
110
  onDataChange?: (data: any[]) => void;
111
+ onRowClick?: (row: any, rowIndex: number, e: MouseEvent) => void;
110
112
  }
111
113
  export type THProps = {
112
114
  x: number;
@@ -116,6 +118,12 @@ export type THProps = {
116
118
  colspan?: number;
117
119
  style?: any;
118
120
  };
121
+ export type TRProps = {
122
+ y?: number;
123
+ data?: any;
124
+ style?: any;
125
+ children: JSX.Element;
126
+ };
119
127
  export interface TDProps {
120
128
  x: number;
121
129
  y: number;