intable 0.0.79 → 0.0.81
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 +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/hooks/useControlled.d.ts +25 -25
- package/dist/hooks/useControlled.js +9 -9
- package/dist/hooks/useSelector.d.ts +8 -8
- package/dist/plugins/AggregatePlugin.js +2 -2
- package/dist/plugins/AutoFillPlugin.js +2 -2
- package/dist/plugins/ColumnVisibilityPlugin.js +1 -1
- package/dist/plugins/EditablePlugin.js +2 -2
- package/dist/plugins/ExpressPlugin.d.ts +2 -2
- package/dist/plugins/ExpressPlugin.js +20 -21
- package/dist/plugins/FilterPlugin.js +82 -82
- package/dist/plugins/OrmPlugin.js +1 -1
- package/dist/plugins/RenderPlugin/components.js +1 -1
- package/dist/plugins/RenderPlugin/index.d.ts +1 -2
- package/dist/plugins/SortPlugin.js +41 -41
- package/dist/style.css +2 -2
- package/dist/theme/antd.scss +8 -8
- package/dist/theme/dark.scss +11 -11
- package/dist/theme/element-plus.scss +9 -9
- package/dist/theme/github.scss +22 -22
- package/dist/theme/material.scss +22 -22
- package/dist/theme/shadcn.scss +21 -21
- package/dist/theme/stripe.scss +12 -12
- package/package.json +1 -1
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;--radius-lg:.5rem;--default-transition-timingFunction:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--radius-md:.375rem;--radius-xl:.75rem;--fontWeight-medium:500;--radius-sm:.25rem;--tracking-wide:.025em;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--leading-none:1;--colors-gray-200:#e5e7eb;--colors-blue-600:#155dfc;--colors-blue-DEFAULT:#54a2ff;--colors-gray-400:#99a1af;--colors-red-DEFAULT:#ff6568;--colors-gray-500:#6a7282;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-green-DEFAULT:#05df72;--colors-black:#000;--colors-gray-300:#d1d5dc;--colors-blue-700:#1447e6;--colors-red-500:#fb2c36;--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-gray-200:lab(91.6229% -.159115 -2.26791);--colors-blue-600:lab(44.0605% 29.0279 -86.0352);--colors-blue-DEFAULT:lab(65.0361% -1.42065 -56.9802);--colors-gray-400:lab(65.9269% -.832677 -8.17474);--colors-red-DEFAULT:lab(63.7053% 60.745 31.3109);--colors-gray-500:lab(47.7841% -.393182 -10.0268);--colors-green-DEFAULT:lab(78.503% -64.9264 39.7492);--colors-gray-300:lab(85.1236% -.612289 -3.7138);--colors-blue-700:lab(36.9089% 35.0961 -85.6872);--colors-red-500:lab(55.4814% 75.0732 48.8528)}}*,: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))}.text-gray-400{color:color-mix(in srgb,var(--colors-gray-400)var(--un-text-opacity),transparent)}.c-gray-500,.text-gray-500{color:color-mix(in srgb,var(--colors-gray-500)var(--un-text-opacity),transparent)}.text-gray-800{color:color-mix(in srgb,var(--colors-gray-800)var(--un-text-opacity),transparent)}.text-white{color:color-mix(in srgb,var(--colors-white)var(--un-text-opacity),transparent)}.hover\:text-red-500:hover{color:color-mix(in srgb,var(--colors-red-500)var(--un-text-opacity),transparent)}.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\/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)}.m6{margin:24px}.m9{margin:36px}.ma{margin:auto}.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}.ml-2{margin-left:8px}.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-2{padding:8px}.p-3{padding:12px}.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\.5,.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-offset--1\.5{outline-offset:-1.5px}.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}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.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)}.border-gray\/10{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)10%,transparent)}.border-gray\/20{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.border-gray\/30{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)30%,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-lg{border-radius:var(--radius-lg)}.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}.backdrop\:bg-gray\/50::backdrop{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)50%,transparent)}.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-600{background-color:color-mix(in srgb,var(--colors-blue-600)var(--un-bg-opacity),transparent)}.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}.bg-white{background-color:color-mix(in srgb,var(--colors-white)var(--un-bg-opacity),transparent)}.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)}.hover\:bg-blue-700:hover{background-color:color-mix(in srgb,var(--colors-blue-700)var(--un-bg-opacity),transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in srgb,var(--colors-gray-300)var(--un-bg-opacity),transparent)}.hover\:bg-gray\/5:hover{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)5%,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{width:12px;height:12px}.size-3\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.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-\[65vh\]{max-height:65vh}.max-h-100{max-height:400px}.max-h-60{max-height:240px}.max-h-80{max-height:320px}.max-h-inherit{max-height:inherit}.min-h-16{min-height:64px}.min-h-40{min-height:160px}.min-h-8{min-height:32px}.min-h-a\!{min-height:auto!important}.min-h-full{min-height:100%}.min-w-\[40vw\]{min-width:40vw}.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-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-not-allowed{cursor:not-allowed}.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-lg{--un-shadow:0 10px 15px -3px var(--un-shadow-color,#0000001a),0 4px 6px -4px 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-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)}.hover\:shadow-md:hover{--un-shadow:0 4px 6px -1px var(--un-shadow-color,#0000001a),0 2px 4px -2px 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-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to;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-200{--un-duration:.2s;transition-duration:.2s}.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{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)){.text-gray-400{color:color-mix(in oklab,var(--colors-gray-400)var(--un-text-opacity),transparent)}.text-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.text-gray-800{color:color-mix(in oklab,var(--colors-gray-800)var(--un-text-opacity),transparent)}.text-white{color:color-mix(in oklab,var(--colors-white)var(--un-text-opacity),transparent)}.hover\:text-red-500:hover{color:color-mix(in oklab,var(--colors-red-500)var(--un-text-opacity),transparent)}.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)}.border-gray\/10{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)10%,transparent)}.border-gray\/20{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.border-gray\/30{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)30%,transparent)}.backdrop\:bg-gray\/50::backdrop{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)50%,transparent)}.bg-blue-600{background-color:color-mix(in oklab,var(--colors-blue-600)var(--un-bg-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}.bg-white{background-color:color-mix(in oklab,var(--colors-white)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in oklab,var(--colors-black)8%,transparent)}.hover\:bg-blue-700:hover{background-color:color-mix(in oklab,var(--colors-blue-700)var(--un-bg-opacity),transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in oklab,var(--colors-gray-300)var(--un-bg-opacity),transparent)}.hover\:bg-gray\/5:hover{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)5%,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;--radius-sm:.25rem;--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;--radius-lg:.5rem;--tracking-wide:.025em;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--leading-none:1;--colors-gray-200:#e5e7eb;--colors-blue-600:#155dfc;--colors-gray-400:#99a1af;--colors-blue-DEFAULT:#54a2ff;--colors-gray-500:#6a7282;--colors-red-DEFAULT:#ff6568;--text-2xl-fontSize:1.5rem;--text-2xl-lineHeight:2rem;--colors-green-DEFAULT:#05df72;--colors-black:#000;--colors-gray-300:#d1d5dc;--colors-blue-700:#1447e6;--colors-red-500:#fb2c36;--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-gray-200:lab(91.6229% -.159115 -2.26791);--colors-blue-600:lab(44.0605% 29.0279 -86.0352);--colors-gray-400:lab(65.9269% -.832677 -8.17474);--colors-blue-DEFAULT:lab(65.0361% -1.42065 -56.9802);--colors-gray-500:lab(47.7841% -.393182 -10.0268);--colors-red-DEFAULT:lab(63.7053% 60.745 31.3109);--colors-green-DEFAULT:lab(78.503% -64.9264 39.7492);--colors-gray-300:lab(85.1236% -.612289 -3.7138);--colors-blue-700:lab(36.9089% 35.0961 -85.6872);--colors-red-500:lab(55.4814% 75.0732 48.8528)}}*,: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))}.text-gray-400{color:color-mix(in srgb,var(--colors-gray-400)var(--un-text-opacity),transparent)}.c-gray-500,.text-gray-500{color:color-mix(in srgb,var(--colors-gray-500)var(--un-text-opacity),transparent)}.text-gray-800{color:color-mix(in srgb,var(--colors-gray-800)var(--un-text-opacity),transparent)}.text-white{color:color-mix(in srgb,var(--colors-white)var(--un-text-opacity),transparent)}.hover\:text-red-500:hover{color:color-mix(in srgb,var(--colors-red-500)var(--un-text-opacity),transparent)}.c-\[--in-c-primary\]{color:color-mix(in oklab,var(--in-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\/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)}.m6{margin:24px}.m9{margin:36px}.ma{margin:auto}.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}.ml-2{margin-left:8px}.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-2{padding:8px}.p-3{padding:12px}.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\.5,.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-\[--in-c-primary\]{outline-color:color-mix(in oklab,var(--in-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-offset--1\.5{outline-offset:-1.5px}.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}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.b-\[--in-table-bg\]{border-color:color-mix(in oklab,var(--in-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)}.border-gray\/10{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)10%,transparent)}.border-gray\/20{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)20%,transparent)}.border-gray\/30{border-color:color-mix(in srgb,var(--colors-gray-DEFAULT)30%,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-lg{border-radius:var(--radius-lg)}.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}.backdrop\:bg-gray\/50::backdrop{background-color:color-mix(in srgb,var(--colors-gray-DEFAULT)50%,transparent)}.bg-\[--bg\]{background-color:color-mix(in oklab,var(--bg)var(--un-bg-opacity),transparent)}.bg-\[--in-c-primary\]{background-color:color-mix(in oklab,var(--in-c-primary)var(--un-bg-opacity),transparent)}.bg-\[--in-table-bg\]{background-color:color-mix(in oklab,var(--in-table-bg)var(--un-bg-opacity),transparent)}.bg-\[--in-table-header-bg\]{background-color:color-mix(in oklab,var(--in-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-600{background-color:color-mix(in srgb,var(--colors-blue-600)var(--un-bg-opacity),transparent)}.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}.bg-white{background-color:color-mix(in srgb,var(--colors-white)var(--un-bg-opacity),transparent)}.hover\:bg-\[--in-li-hover-bg\]:hover{background-color:color-mix(in oklab,var(--in-li-hover-bg)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in srgb,var(--colors-black)8%,transparent)}.hover\:bg-blue-700:hover{background-color:color-mix(in srgb,var(--colors-blue-700)var(--un-bg-opacity),transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in srgb,var(--colors-gray-300)var(--un-bg-opacity),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{width:12px;height:12px}.size-3\.5{width:14px;height:14px}.size-4{width:16px;height:16px}.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-\[65vh\]{max-height:65vh}.max-h-100{max-height:400px}.max-h-60{max-height:240px}.max-h-80{max-height:320px}.max-h-inherit{max-height:inherit}.min-h-16{min-height:64px}.min-h-40{min-height:160px}.min-h-8{min-height:32px}.min-h-a\!{min-height:auto!important}.min-h-full{min-height:100%}.min-w-\[40vw\]{min-width:40vw}.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-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-not-allowed{cursor:not-allowed}.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)}.hover\:shadow-md:hover{--un-shadow:0 4px 6px -1px var(--un-shadow-color,#0000001a),0 2px 4px -2px 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-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,--un-gradient-from,--un-gradient-via,--un-gradient-to;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-200{--un-duration:.2s;transition-duration:.2s}.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{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)){.text-gray-400{color:color-mix(in oklab,var(--colors-gray-400)var(--un-text-opacity),transparent)}.text-gray-500{color:color-mix(in oklab,var(--colors-gray-500)var(--un-text-opacity),transparent)}.text-gray-800{color:color-mix(in oklab,var(--colors-gray-800)var(--un-text-opacity),transparent)}.text-white{color:color-mix(in oklab,var(--colors-white)var(--un-text-opacity),transparent)}.hover\:text-red-500:hover{color:color-mix(in oklab,var(--colors-red-500)var(--un-text-opacity),transparent)}.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)}.border-gray\/10{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)10%,transparent)}.border-gray\/20{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)20%,transparent)}.border-gray\/30{border-color:color-mix(in oklab,var(--colors-gray-DEFAULT)30%,transparent)}.backdrop\:bg-gray\/50::backdrop{background-color:color-mix(in oklab,var(--colors-gray-DEFAULT)50%,transparent)}.bg-blue-600{background-color:color-mix(in oklab,var(--colors-blue-600)var(--un-bg-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}.bg-white{background-color:color-mix(in oklab,var(--colors-white)var(--un-bg-opacity),transparent)}.hover\:bg-black\/8:hover{background-color:color-mix(in oklab,var(--colors-black)8%,transparent)}.hover\:bg-blue-700:hover{background-color:color-mix(in oklab,var(--colors-blue-700)var(--un-bg-opacity),transparent)}.hover\:bg-gray-300:hover{background-color:color-mix(in oklab,var(--colors-gray-300)var(--un-bg-opacity),transparent)}}
|
|
@@ -8,7 +8,7 @@ import { className, createComponent, delegateEvents, effect, insert, memo, style
|
|
|
8
8
|
import { For, Show, createEffect, createMemo, createResource, createSignal, mergeProps as mergeProps$1, onCleanup, onMount } from "solid-js";
|
|
9
9
|
import { createDebouncedMemo } from "@solid-primitives/memo";
|
|
10
10
|
import { unionBy } from "es-toolkit";
|
|
11
|
-
var _tmpl$ = /* @__PURE__ */ template("<div class=\"flex flex-wrap gap-1 flex-1\">"), _tmpl$2 = /* @__PURE__ */ template("<div><span class=\"flex-shrink-0 transition-transform\">"), _tmpl$3 = /* @__PURE__ */ template("<span>"), _tmpl$4 = /* @__PURE__ */ template("<span class=text-gray-400>"), _tmpl$5 = /* @__PURE__ */ template("<div class=\"p-2 border-b border-gray/10\"><input type=text class=\"w-full px-2 py-1 text-sm border border-gray/20 rd-sm outline-none focus:border-primary\"placeholder=搜索...>"), _tmpl$6 = /* @__PURE__ */ template("<div class
|
|
11
|
+
var _tmpl$ = /* @__PURE__ */ template("<div class=\"flex flex-wrap gap-1 flex-1\">"), _tmpl$2 = /* @__PURE__ */ template("<div><span class=\"flex-shrink-0 transition-transform\">"), _tmpl$3 = /* @__PURE__ */ template("<span>"), _tmpl$4 = /* @__PURE__ */ template("<span class=text-gray-400>"), _tmpl$5 = /* @__PURE__ */ template("<div class=\"p-2 border-b border-gray/10\"><input type=text class=\"w-full px-2 py-1 text-sm border border-gray/20 rd-sm outline-none focus:border-primary\"placeholder=搜索...>"), _tmpl$6 = /* @__PURE__ */ template("<div class=in-select-dropdown><div class=\"overflow-y-auto max-h-80\">"), _tmpl$7 = /* @__PURE__ */ template("<div class=\"p-3 text-sm text-gray-400 text-center\">无数据"), _tmpl$8 = /* @__PURE__ */ template("<div><span class=\"flex-1 truncate\">");
|
|
12
12
|
const Select = (M) => {
|
|
13
13
|
let N = useSelector(mergeProps$1(M, {
|
|
14
14
|
get key() {
|
|
@@ -130,7 +130,7 @@ const Select = (M) => {
|
|
|
130
130
|
get children() {
|
|
131
131
|
return createComponent(check_default, { class: "size-4 text-primary flex-shrink-0" });
|
|
132
132
|
}
|
|
133
|
-
}), null), effect(() => className(A, `
|
|
133
|
+
}), null), effect(() => className(A, `in-select-option ${N.has(k.value) ? "in-select-option-active" : ""} ${k.disabled ? "opacity-50 cursor-not-allowed" : ""}`)), A;
|
|
134
134
|
})()
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -4,109 +4,109 @@ type Opt = Partial<{
|
|
|
4
4
|
defaultValue: any;
|
|
5
5
|
initialValue: any;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const useControlled: <T extends Opt>(opt: T
|
|
7
|
+
export declare const useControlled: <T extends Opt>(opt: T) => ((T extends any ? {} & { [K in keyof T]: K extends never ? T[K] extends infer T_1 ? T_1 extends T[K] ? T_1 extends undefined ? {}[K] : T_1 : never : never : T[K]; } : {} & T) extends infer T_2 ? T_2 extends (T extends any ? {} & { [K in keyof T]: K extends never ? T[K] extends infer T_8 ? T_8 extends T[K] ? T_8 extends undefined ? {}[K] : T_8 : never : never : T[K]; } : {} & T) ? T_2 extends any ? { [K_1 in keyof T_2]: K_1 extends "value" | "onChange" | "$setOpt" ? {
|
|
8
8
|
readonly value: any;
|
|
9
9
|
onChange: (v: any) => void;
|
|
10
|
-
$setOpt:
|
|
10
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
11
11
|
}[K_1] extends infer T_3 ? T_3 extends {
|
|
12
12
|
readonly value: any;
|
|
13
13
|
onChange: (v: any) => void;
|
|
14
|
-
$setOpt:
|
|
14
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
15
15
|
}[K_1] ? T_3 extends undefined ? T_2[K_1] : T_3 : never : never : T_2[K_1]; } & {
|
|
16
16
|
readonly value: "value" extends infer T_4 ? T_4 extends "value" ? T_4 extends keyof T_2 ? {
|
|
17
17
|
readonly value: any;
|
|
18
18
|
onChange: (v: any) => void;
|
|
19
|
-
$setOpt:
|
|
19
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
20
20
|
}[T_4] extends infer T_5 ? T_5 extends {
|
|
21
21
|
readonly value: any;
|
|
22
22
|
onChange: (v: any) => void;
|
|
23
|
-
$setOpt:
|
|
23
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
24
24
|
}[T_4] ? T_5 extends undefined ? T_2[T_4] : T_5 : never : never : {
|
|
25
25
|
readonly value: any;
|
|
26
26
|
onChange: (v: any) => void;
|
|
27
|
-
$setOpt:
|
|
27
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
28
28
|
}[T_4] : never : never;
|
|
29
29
|
onChange: "onChange" extends infer T_4 ? T_4 extends "onChange" ? T_4 extends keyof T_2 ? {
|
|
30
30
|
readonly value: any;
|
|
31
31
|
onChange: (v: any) => void;
|
|
32
|
-
$setOpt:
|
|
32
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
33
33
|
}[T_4] extends infer T_5 ? T_5 extends {
|
|
34
34
|
readonly value: any;
|
|
35
35
|
onChange: (v: any) => void;
|
|
36
|
-
$setOpt:
|
|
36
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
37
37
|
}[T_4] ? T_5 extends undefined ? T_2[T_4] : T_5 : never : never : {
|
|
38
38
|
readonly value: any;
|
|
39
39
|
onChange: (v: any) => void;
|
|
40
|
-
$setOpt:
|
|
40
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
41
41
|
}[T_4] : never : never;
|
|
42
42
|
$setOpt: "$setOpt" extends infer T_6 ? T_6 extends "$setOpt" ? T_6 extends keyof T_2 ? {
|
|
43
43
|
readonly value: any;
|
|
44
44
|
onChange: (v: any) => void;
|
|
45
|
-
$setOpt:
|
|
45
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
46
46
|
}[T_6] extends infer T_7 ? T_7 extends {
|
|
47
47
|
readonly value: any;
|
|
48
48
|
onChange: (v: any) => void;
|
|
49
|
-
$setOpt:
|
|
49
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
50
50
|
}[T_6] ? T_7 extends undefined ? T_2[T_6] : T_7 : never : never : {
|
|
51
51
|
readonly value: any;
|
|
52
52
|
onChange: (v: any) => void;
|
|
53
|
-
$setOpt:
|
|
53
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
54
54
|
}[T_6] : never : never;
|
|
55
55
|
} : T_2 & {
|
|
56
56
|
readonly value: any;
|
|
57
57
|
onChange: (v: any) => void;
|
|
58
|
-
$setOpt:
|
|
58
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
59
59
|
} : never : never) extends infer T_9 ? T_9 extends ((T extends any ? {} & { [K in keyof T]: K extends never ? T[K] extends infer T_10 ? T_10 extends T[K] ? T_10 extends undefined ? {}[K] : T_10 : never : never : T[K]; } : {} & T) extends infer T_11 ? T_11 extends (T extends any ? {} & { [K in keyof T]: K extends never ? T[K] extends infer T_17 ? T_17 extends T[K] ? T_17 extends undefined ? {}[K] : T_17 : never : never : T[K]; } : {} & T) ? T_11 extends any ? { [K_3 in keyof T_11]: K_3 extends "value" | "onChange" | "$setOpt" ? {
|
|
60
60
|
readonly value: any;
|
|
61
61
|
onChange: (v: any) => void;
|
|
62
|
-
$setOpt:
|
|
62
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
63
63
|
}[K_3] extends infer T_12 ? T_12 extends {
|
|
64
64
|
readonly value: any;
|
|
65
65
|
onChange: (v: any) => void;
|
|
66
|
-
$setOpt:
|
|
66
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
67
67
|
}[K_3] ? T_12 extends undefined ? T_11[K_3] : T_12 : never : never : T_11[K_3]; } & {
|
|
68
68
|
readonly value: "value" extends infer T_13 ? T_13 extends "value" ? T_13 extends keyof T_11 ? {
|
|
69
69
|
readonly value: any;
|
|
70
70
|
onChange: (v: any) => void;
|
|
71
|
-
$setOpt:
|
|
71
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
72
72
|
}[T_13] extends infer T_14 ? T_14 extends {
|
|
73
73
|
readonly value: any;
|
|
74
74
|
onChange: (v: any) => void;
|
|
75
|
-
$setOpt:
|
|
75
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
76
76
|
}[T_13] ? T_14 extends undefined ? T_11[T_13] : T_14 : never : never : {
|
|
77
77
|
readonly value: any;
|
|
78
78
|
onChange: (v: any) => void;
|
|
79
|
-
$setOpt:
|
|
79
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
80
80
|
}[T_13] : never : never;
|
|
81
81
|
onChange: "onChange" extends infer T_13 ? T_13 extends "onChange" ? T_13 extends keyof T_11 ? {
|
|
82
82
|
readonly value: any;
|
|
83
83
|
onChange: (v: any) => void;
|
|
84
|
-
$setOpt:
|
|
84
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
85
85
|
}[T_13] extends infer T_14 ? T_14 extends {
|
|
86
86
|
readonly value: any;
|
|
87
87
|
onChange: (v: any) => void;
|
|
88
|
-
$setOpt:
|
|
88
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
89
89
|
}[T_13] ? T_14 extends undefined ? T_11[T_13] : T_14 : never : never : {
|
|
90
90
|
readonly value: any;
|
|
91
91
|
onChange: (v: any) => void;
|
|
92
|
-
$setOpt:
|
|
92
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
93
93
|
}[T_13] : never : never;
|
|
94
94
|
$setOpt: "$setOpt" extends infer T_15 ? T_15 extends "$setOpt" ? T_15 extends keyof T_11 ? {
|
|
95
95
|
readonly value: any;
|
|
96
96
|
onChange: (v: any) => void;
|
|
97
|
-
$setOpt:
|
|
97
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
98
98
|
}[T_15] extends infer T_16 ? T_16 extends {
|
|
99
99
|
readonly value: any;
|
|
100
100
|
onChange: (v: any) => void;
|
|
101
|
-
$setOpt:
|
|
101
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
102
102
|
}[T_15] ? T_16 extends undefined ? T_11[T_15] : T_16 : never : never : {
|
|
103
103
|
readonly value: any;
|
|
104
104
|
onChange: (v: any) => void;
|
|
105
|
-
$setOpt:
|
|
105
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
106
106
|
}[T_15] : never : never;
|
|
107
107
|
} : T_11 & {
|
|
108
108
|
readonly value: any;
|
|
109
109
|
onChange: (v: any) => void;
|
|
110
|
-
$setOpt:
|
|
110
|
+
$setOpt: import("solid-js").Setter<{}>;
|
|
111
111
|
} : never : never) ? T_9 extends any ? { [K_2 in keyof T_9]: T_9[K_2]; } : T_9 : never : never;
|
|
112
112
|
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { createSignal, mergeProps
|
|
2
|
-
const useControlled = (
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
let [
|
|
6
|
-
return mergeProps(
|
|
1
|
+
import { createSignal, mergeProps } from "solid-js";
|
|
2
|
+
const useControlled = (n) => {
|
|
3
|
+
let [r, i] = createSignal(n ?? {});
|
|
4
|
+
n = mergeProps(r);
|
|
5
|
+
let [a, o] = createSignal(n.value ?? n.initialValue ?? n.defaultValue), s = () => "value" in n ? n.value : a();
|
|
6
|
+
return mergeProps(n, {
|
|
7
7
|
get value() {
|
|
8
|
-
return
|
|
8
|
+
return s();
|
|
9
9
|
},
|
|
10
10
|
onChange: (e) => {
|
|
11
|
-
e ??=
|
|
11
|
+
e ??= n.defaultValue, o(e), n.onChange?.(e);
|
|
12
12
|
},
|
|
13
|
-
$setOpt:
|
|
13
|
+
$setOpt: i
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
export { useControlled };
|
|
@@ -9,15 +9,15 @@ export interface UseSelectorOpt<T> {
|
|
|
9
9
|
selectable?: (v: any) => boolean;
|
|
10
10
|
key?: any;
|
|
11
11
|
}
|
|
12
|
-
export declare function useSelector<T = any>(opt: UseSelectorOpt<T>): {
|
|
12
|
+
export declare function useSelector<T = any, V = T extends (infer U)[] ? U : T>(opt: UseSelectorOpt<T>): {
|
|
13
13
|
clear: () => void;
|
|
14
|
-
set: (v:
|
|
14
|
+
set: (v: V) => void;
|
|
15
15
|
has: (key: any) => boolean;
|
|
16
|
-
add: (v:
|
|
17
|
-
del: (v:
|
|
18
|
-
toggle: (v:
|
|
19
|
-
isAll: (data:
|
|
20
|
-
isIndeterminate: (data:
|
|
21
|
-
selectAll: (data:
|
|
16
|
+
add: (v: V) => void;
|
|
17
|
+
del: (v: V) => void;
|
|
18
|
+
toggle: (v: V) => void;
|
|
19
|
+
isAll: (data: V[]) => boolean;
|
|
20
|
+
isIndeterminate: (data: V[]) => boolean;
|
|
21
|
+
selectAll: (data: V[]) => void;
|
|
22
22
|
readonly value: T;
|
|
23
23
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { renderComponent } from "../components/utils.js";
|
|
2
2
|
import { className, createComponent, effect, insert, style, template } from "solid-js/web";
|
|
3
3
|
import { For, Show, createMemo } from "solid-js";
|
|
4
|
-
var _tmpl$ = /* @__PURE__ */ template("<tfoot class=\"sticky bottom-0 z-2\"><tr style=font-weight:600>"), _tmpl$2 = /* @__PURE__ */ template("<span class=\"font-mono text-sm tabular-nums c-[--c-primary]\">"), _tmpl$3 = /* @__PURE__ */ template("<td>"), _tmpl$4 = /* @__PURE__ */ template("<span class=\"text-xs font-semibold tracking-wide select-none\">");
|
|
4
|
+
var _tmpl$ = /* @__PURE__ */ template("<tfoot class=\"sticky bottom-0 z-2\"><tr style=font-weight:600>"), _tmpl$2 = /* @__PURE__ */ template("<span class=\"font-mono text-sm tabular-nums c-[--in-c-primary]\">"), _tmpl$3 = /* @__PURE__ */ template("<td>"), _tmpl$4 = /* @__PURE__ */ template("<span class=\"text-xs font-semibold tracking-wide select-none\">");
|
|
5
5
|
function computeAgg(e, s) {
|
|
6
6
|
let { aggregate: c } = e;
|
|
7
7
|
if (!c) return;
|
|
@@ -56,7 +56,7 @@ const AggregatePlugin = {
|
|
|
56
56
|
return insert(s, () => renderComponent(m(), void 0, h)), s;
|
|
57
57
|
}
|
|
58
58
|
})), effect((e) => {
|
|
59
|
-
var c = `${d.width ? `width:${d.width}px;` : ""};border-top:1px solid var(--table-b-c)`, l = d.class;
|
|
59
|
+
var c = `${d.width ? `width:${d.width}px;` : ""};border-top:1px solid var(--in-table-b-c)`, l = d.class;
|
|
60
60
|
return e.e = style(p, c, e.e), l !== e.t && className(p, e.t = l), e;
|
|
61
61
|
}, {
|
|
62
62
|
e: void 0,
|
|
@@ -4,7 +4,7 @@ import { delegateEvents, effect, style, template, use } from "solid-js/web";
|
|
|
4
4
|
import { createMemo, createSignal } from "solid-js";
|
|
5
5
|
import { createScrollPosition } from "@solid-primitives/scroll";
|
|
6
6
|
import { offset } from "floating-ui-solid";
|
|
7
|
-
var _tmpl$ = /* @__PURE__ */ template("<div>"), _tmpl$2 = /* @__PURE__ */ template("<div title=\"Drag to fill\"class=\"pointer-events-auto w-2.5 h-2.5 bg-[--c-primary] b-2px b-solid b-[--table-bg] cursor-crosshair\">");
|
|
7
|
+
var _tmpl$ = /* @__PURE__ */ template("<div>"), _tmpl$2 = /* @__PURE__ */ template("<div title=\"Drag to fill\"class=\"pointer-events-auto w-2.5 h-2.5 bg-[--in-c-primary] b-2px b-solid b-[--in-table-bg] cursor-crosshair\">");
|
|
8
8
|
function inferFill(e, t, n = 1) {
|
|
9
9
|
if (!e.length) return Array(t).fill(null);
|
|
10
10
|
let r = e.map((e) => typeof e == "number" ? e : Number(e));
|
|
@@ -85,7 +85,7 @@ const AutoFillPlugin = {
|
|
|
85
85
|
let { xs: r, ys: i } = t, { colX: a, colR: o, rowY: s, rowB: c } = h(), l = e.delta > 0 ? 1 : -1, u = Math.abs(e.delta), d = n.props.data.length, f = n.props.columns.length, m, g, v, y;
|
|
86
86
|
e.axis === "v" ? (m = a(r[0]), v = o(r[1]), [g, y] = l > 0 ? [c(i[1]), c(Math.min(i[1] + u, d - 1))] : [s(Math.max(i[0] - u, 0)), s(i[0])]) : (g = s(i[0]), y = c(i[1]), [m, v] = l > 0 ? [o(r[1]), o(Math.min(r[1] + u, f - 1))] : [a(Math.max(r[0] - u, 0)), a(r[0])]);
|
|
87
87
|
let b = v - m, x = y - g;
|
|
88
|
-
return b <= 0 || x <= 0 ? "display:none;position:absolute" : `position:absolute;left:${m}px;top:${g}px;width:${b}px;height:${x}px;border:1.5px dashed var(--c-primary);background:rgba(99,102,241,0.08);pointer-events:none;z-index:3`;
|
|
88
|
+
return b <= 0 || x <= 0 ? "display:none;position:absolute" : `position:absolute;left:${m}px;top:${g}px;width:${b}px;height:${x}px;border:1.5px dashed var(--in-c-primary);background:rgba(99,102,241,0.08);pointer-events:none;z-index:3`;
|
|
89
89
|
}), [b, x] = createSignal(), S = (e, t, r, i) => {
|
|
90
90
|
let { rowsMap: a, newStart: o, newEnd: s } = applyFill(e, t, r, i, n);
|
|
91
91
|
a.size && (n.commands.rowsChange([...a.values()]), n.selected.start = o, n.selected.end = s);
|
|
@@ -2,7 +2,7 @@ import { Popover } from "../components/Popover.js";
|
|
|
2
2
|
import { createComponent, delegateEvents, effect, insert, template } from "solid-js/web";
|
|
3
3
|
import { For, Show } from "solid-js";
|
|
4
4
|
import { offset } from "@floating-ui/dom";
|
|
5
|
-
var _tmpl$ = /* @__PURE__ */ template("<div style=position:absolute;top:4px;right:4px;z-index:100;pointer-events:auto>"), _tmpl$2 = /* @__PURE__ */ template("<button class=\"flex items-center justify-center w-6.5 h-6.5 rd-1 shadow-sm b-(1 solid var(--table-b-c)) cursor-pointer bg-[--table-header-bg]\"title=\"Column Visibility\"><svg viewBox=\"0 0 24 24\"fill=none stroke=currentColor stroke-width=2 class=\"w-3.5 h-3.5\"><path stroke-linecap=round stroke-linejoin=round d=\"M4 6h16M4 12h16M4 18h7\">"), _tmpl$3 = /* @__PURE__ */ template("<div class=\"rd-1.5 shadow-xl py-1 min-w-44 bg-[--table-header-bg]\"style=\"border:1px solid var(--table-b-c);z-index:101\"><div class=\"flex items-center justify-between px-3 py-1.5\"style=\"border-bottom:1px solid var(--table-b-c)\"><span class=\"text-xs font-semibold uppercase tracking-wide\"style=color:var(--table-c)>Columns</span><button class=\"text-xs cursor-pointer hover:underline c-[--c-primary]\"></button></div><div class=\"max-h-60 of-y-auto\">"), _tmpl$4 = /* @__PURE__ */ template("<span class=text-xs style=opacity:0.6>hidden"), _tmpl$5 = /* @__PURE__ */ template("<label class=\"flex items-center gap-2 px-3 py-1.5 text-sm cursor-pointer select-none hover:bg-[--li-hover-bg]\"><input type=checkbox class=\"w-3.5 h-3.5 cursor-pointer\"><span class=\"truncate flex-1\">");
|
|
5
|
+
var _tmpl$ = /* @__PURE__ */ template("<div style=position:absolute;top:4px;right:4px;z-index:100;pointer-events:auto>"), _tmpl$2 = /* @__PURE__ */ template("<button class=\"flex items-center justify-center w-6.5 h-6.5 rd-1 shadow-sm b-(1 solid var(--in-table-b-c)) cursor-pointer bg-[--in-table-header-bg]\"title=\"Column Visibility\"><svg viewBox=\"0 0 24 24\"fill=none stroke=currentColor stroke-width=2 class=\"w-3.5 h-3.5\"><path stroke-linecap=round stroke-linejoin=round d=\"M4 6h16M4 12h16M4 18h7\">"), _tmpl$3 = /* @__PURE__ */ template("<div class=\"rd-1.5 shadow-xl py-1 min-w-44 bg-[--in-table-header-bg]\"style=\"border:1px solid var(--in-table-b-c);z-index:101\"><div class=\"flex items-center justify-between px-3 py-1.5\"style=\"border-bottom:1px solid var(--in-table-b-c)\"><span class=\"text-xs font-semibold uppercase tracking-wide\"style=color:var(--in-table-c)>Columns</span><button class=\"text-xs cursor-pointer hover:underline c-[--in-c-primary]\"></button></div><div class=\"max-h-60 of-y-auto\">"), _tmpl$4 = /* @__PURE__ */ template("<span class=text-xs style=opacity:0.6>hidden"), _tmpl$5 = /* @__PURE__ */ template("<label class=\"flex items-center gap-2 px-3 py-1.5 text-sm cursor-pointer select-none hover:bg-[--in-li-hover-bg]\"><input type=checkbox class=\"w-3.5 h-3.5 cursor-pointer\"><span class=\"truncate flex-1\">");
|
|
6
6
|
const ColumnVisibilityPlugin = {
|
|
7
7
|
name: "column-visibility",
|
|
8
8
|
store: (e) => {
|
|
@@ -104,7 +104,7 @@ const EditablePlugin = {
|
|
|
104
104
|
get options() {
|
|
105
105
|
return memo(() => !!y.enum)() ? resolveOptions(y.enum ?? []) : void 0;
|
|
106
106
|
}
|
|
107
|
-
}, d, S
|
|
107
|
+
}, d, S)),
|
|
108
108
|
getValue: T,
|
|
109
109
|
focus: () => D.focus(),
|
|
110
110
|
destroy: h
|
|
@@ -120,7 +120,7 @@ const editors = {
|
|
|
120
120
|
minRows: 2,
|
|
121
121
|
maxRows: 3
|
|
122
122
|
} }, e, { get class() {
|
|
123
|
-
return `${e.class} bg-[--table-bg] outline-1.5px outline-solid outline-[--c-primary]`;
|
|
123
|
+
return `${e.class} bg-[--in-table-bg] outline-1.5px outline-solid outline-[--in-c-primary]`;
|
|
124
124
|
} }))),
|
|
125
125
|
number: createEditor(Input, {
|
|
126
126
|
type: "number",
|
|
@@ -3,8 +3,8 @@ declare module '../index' {
|
|
|
3
3
|
interface TableProps {
|
|
4
4
|
}
|
|
5
5
|
interface TableColumn {
|
|
6
|
-
valueGetter?: (o: TDProps) => any;
|
|
7
|
-
valueSetter?: (o: TDProps,
|
|
6
|
+
valueGetter?: (o: Pick<TDProps, 'data' | 'col'>) => any;
|
|
7
|
+
valueSetter?: (o: Pick<TDProps, 'data' | 'col' | 'value'>) => void;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare const ExpressPlugin: Plugin;
|
|
@@ -1,32 +1,31 @@
|
|
|
1
|
+
import { useMemoAsync } from "../hooks/index.js";
|
|
1
2
|
import { createComponent } from "solid-js/web";
|
|
2
3
|
import { createComputed, untrack } from "solid-js";
|
|
3
4
|
const ExpressPlugin = {
|
|
4
|
-
name: "
|
|
5
|
+
name: "express",
|
|
5
6
|
store: (e) => ({}),
|
|
6
|
-
rewriteProps: { Table: ({ Table:
|
|
7
|
-
for (let
|
|
8
|
-
let
|
|
9
|
-
if (!(!
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
set: (
|
|
19
|
-
col:
|
|
20
|
-
data:
|
|
21
|
-
value:
|
|
22
|
-
|
|
23
|
-
y: r
|
|
24
|
-
}, i)),
|
|
7
|
+
rewriteProps: { Table: ({ Table: i }, { store: a }) => (o) => (createComputed(() => {
|
|
8
|
+
for (let n = 0; n < a.props.columns.length; n++) {
|
|
9
|
+
let r = a.props.columns[n];
|
|
10
|
+
if (!(!r.valueGetter && !r.valueSetter)) for (let n = 0; n < a.props.data.length; n++) {
|
|
11
|
+
let i = a.props.data[n];
|
|
12
|
+
if (!r.id) continue;
|
|
13
|
+
let o = useMemoAsync(() => r.valueGetter?.({
|
|
14
|
+
col: r,
|
|
15
|
+
data: i
|
|
16
|
+
}));
|
|
17
|
+
Object.defineProperty(i, r.id, {
|
|
18
|
+
get: o,
|
|
19
|
+
set: (e) => untrack(() => r.valueSetter?.({
|
|
20
|
+
col: r,
|
|
21
|
+
data: i,
|
|
22
|
+
value: e
|
|
23
|
+
})),
|
|
25
24
|
enumerable: !0,
|
|
26
25
|
configurable: !0
|
|
27
26
|
});
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
}), createComponent(
|
|
29
|
+
}), createComponent(i, o)) }
|
|
31
30
|
};
|
|
32
31
|
export { ExpressPlugin };
|