@pnkx-lib/ui 1.8.2 → 1.8.3
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/style.css +1 -1
- package/es/chunks/{Checkbox-CJ_M7IzZ.js → Checkbox-2LoiNtBe.js} +1 -1
- package/es/chunks/{ErrorBoundary-BxrzfgtL.js → ErrorBoundary-Ja4PIPaU.js} +243 -168
- package/es/chunks/{Switch-eMq9KkOy.js → Switch-C3IZzn6L.js} +30 -44
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +1 -1
- package/types/hooks.d.ts +5 -5
- package/types/index.d.ts +48 -45
- package/types/ui.d.ts +35 -32
package/dist/style.css
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
/*! tailwindcss v4.1.6 | MIT License | https://tailwindcss.com */
|
2
|
-
@layer properties{@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{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-600:oklch(.577 .245 27.325);--color-blue-500:oklch(.623 .214 259.815);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-500:oklch(.551 .027 264.364);--color-gray-700:oklch(.373 .034 259.733);--color-gray-900:oklch(.21 .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,: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-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,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:currentColor}@supports (color:color-mix(in lab, red, red)){::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}:-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}}@layer components;@layer utilities{.\!collapse{visibility:collapse!important}.\!visible{visibility:visible!important}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-1\/19{top:5.26316%}.top-\[-40px\]{top:-40px}.right-0{right:calc(var(--spacing)*0)}.bottom-\[-40px\]{bottom:-40px}.left-44{left:calc(var(--spacing)*44)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@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}}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-16{margin-top:calc(var(--spacing)*16)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-0{margin-left:calc(var(--spacing)*0)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-10{margin-left:calc(var(--spacing)*10)}.ml-25{margin-left:calc(var(--spacing)*25)}.ml-\[-5rem\]{margin-left:-5rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.table{display:table}.h-0{height:calc(var(--spacing)*0)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-\[32px\]{height:32px}.h-\[300px\]{height:300px}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[20rem\]{max-height:20rem}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-16{width:calc(var(--spacing)*16)}.w-17{width:calc(var(--spacing)*17)}.w-20{width:calc(var(--spacing)*20)}.w-40{width:calc(var(--spacing)*40)}.w-60{width:calc(var(--spacing)*60)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-screen-2xl{max-width:var(--breakpoint-2xl)}.max-w-screen-lg{max-width:var(--breakpoint-lg)}.max-w-screen-md{max-width:var(--breakpoint-md)}.max-w-screen-sm{max-width:var(--breakpoint-sm)}.max-w-screen-xl{max-width:var(--breakpoint-xl)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing)*3)}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-5{row-gap:calc(var(--spacing)*5)}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-tl-full{border-top-left-radius:3.40282e38px}.rounded-bl-full{border-bottom-left-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-white{border-color:var(--color-white)}.bg-\[\#1C2D5A\]{background-color:#1c2d5a}.bg-\[\#007BE5\]{background-color:#007be5}.bg-\[\#27CD7F\]{background-color:#27cd7f}.bg-\[\#722ED1\]{background-color:#722ed1}.bg-\[\#2561ED\]{background-color:#2561ed}.bg-\[\#B2B7C2\]{background-color:#b2b7c2}.bg-\[\#DA9438\]{background-color:#da9438}.bg-\[\#DD4338\]{background-color:#dd4338}.bg-\[\#EEEEF0\]{background-color:#eeeef0}.bg-\[\#F8F8F8\]{background-color:#f8f8f8}.bg-\[\#FFFFFF\]{background-color:#fff}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3\.5{padding:calc(var(--spacing)*3.5)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\[10px\]{padding-inline:10px}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-3{padding-top:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\[\#3078BD\]{color:#3078bd}.text-black{color:var(--color-black)}.text-gray-300{color:var(--color-gray-300)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[24px_-24px_0_white\]{--tw-shadow:24px -24px 0 var(--tw-shadow-color,white);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[24px_24px_0_white\]{--tw-shadow:24px 24px 0 var(--tw-shadow-color,white);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.group-hover\:text-black:is(:where(.group):hover *){color:var(--color-black)}.hover\:rounded-sm:hover{border-radius:var(--radius-sm)}.hover\:bg-\[\#1B4ACB\]:hover{background-color:#1b4acb}.hover\:bg-\[\#EEEEF0\]:hover{background-color:#eeeef0}.hover\:bg-\[\#FFFFFF\]:hover{background-color:#fff}.hover\:text-black:hover{color:var(--color-black)}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\:left-40{left:calc(var(--spacing)*40)}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\:left-48{left:calc(var(--spacing)*48)}}@media (min-width:64rem){.lg\:left-68{left:calc(var(--spacing)*68)}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
|
2
|
+
@layer properties{@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{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-600:oklch(57.7% .245 27.325);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-900:oklch(21% .034 264.665);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-normal:400;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,: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-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,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:currentColor}@supports (color:color-mix(in lab, red, red)){::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}:-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}}@layer components;@layer utilities{.\!collapse{visibility:collapse!important}.\!visible{visibility:visible!important}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-1\/19{top:5.26316%}.top-\[-40px\]{top:-40px}.right-0{right:calc(var(--spacing)*0)}.bottom-\[-40px\]{bottom:-40px}.left-44{left:calc(var(--spacing)*44)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@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}}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-16{margin-top:calc(var(--spacing)*16)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.ml-0{margin-left:calc(var(--spacing)*0)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-10{margin-left:calc(var(--spacing)*10)}.ml-25{margin-left:calc(var(--spacing)*25)}.ml-\[-5rem\]{margin-left:-5rem}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.table{display:table}.h-0{height:calc(var(--spacing)*0)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-10{height:calc(var(--spacing)*10)}.h-16{height:calc(var(--spacing)*16)}.h-20{height:calc(var(--spacing)*20)}.h-\[32px\]{height:32px}.h-\[300px\]{height:300px}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[20rem\]{max-height:20rem}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-10{width:calc(var(--spacing)*10)}.w-16{width:calc(var(--spacing)*16)}.w-17{width:calc(var(--spacing)*17)}.w-20{width:calc(var(--spacing)*20)}.w-40{width:calc(var(--spacing)*40)}.w-60{width:calc(var(--spacing)*60)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-full{max-width:100%}.max-w-lg{max-width:var(--container-lg)}.max-w-md{max-width:var(--container-md)}.max-w-screen-2xl{max-width:var(--breakpoint-2xl)}.max-w-screen-lg{max-width:var(--breakpoint-lg)}.max-w-screen-md{max-width:var(--breakpoint-md)}.max-w-screen-sm{max-width:var(--breakpoint-sm)}.max-w-screen-xl{max-width:var(--breakpoint-xl)}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.max-w-xs{max-width:var(--container-xs)}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-none{list-style-type:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-8{gap:calc(var(--spacing)*8)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing)*3)}:where(.space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*3)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-x-reverse)))}:where(.space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.gap-y-5{row-gap:calc(var(--spacing)*5)}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-tl-full{border-top-left-radius:3.40282e38px}.rounded-bl-full{border-bottom-left-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-white{border-color:var(--color-white)}.bg-\[\#1C2D5A\]{background-color:#1c2d5a}.bg-\[\#007BE5\]{background-color:#007be5}.bg-\[\#27CD7F\]{background-color:#27cd7f}.bg-\[\#722ED1\]{background-color:#722ed1}.bg-\[\#2561ED\]{background-color:#2561ed}.bg-\[\#B2B7C2\]{background-color:#b2b7c2}.bg-\[\#DA9438\]{background-color:#da9438}.bg-\[\#DD4338\]{background-color:#dd4338}.bg-\[\#EEEEF0\]{background-color:#eeeef0}.bg-\[\#F8F8F8\]{background-color:#f8f8f8}.bg-\[\#FFFFFF\]{background-color:#fff}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3\.5{padding:calc(var(--spacing)*3.5)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\[10px\]{padding-inline:10px}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-3{padding-top:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.whitespace-nowrap{white-space:nowrap}.text-\[\#3078BD\]{color:#3078bd}.text-black{color:var(--color-black)}.text-gray-300{color:var(--color-gray-300)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[24px_-24px_0_white\]{--tw-shadow:24px -24px 0 var(--tw-shadow-color,white);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[24px_24px_0_white\]{--tw-shadow:24px 24px 0 var(--tw-shadow-color,white);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.group-hover\:text-black:is(:where(.group):hover *){color:var(--color-black)}.hover\:rounded-sm:hover{border-radius:var(--radius-sm)}.hover\:bg-\[\#1B4ACB\]:hover{background-color:#1b4acb}.hover\:bg-\[\#EEEEF0\]:hover{background-color:#eeeef0}.hover\:bg-\[\#FFFFFF\]:hover{background-color:#fff}.hover\:text-black:hover{color:var(--color-black)}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}@media (min-width:40rem){.sm\:left-40{left:calc(var(--spacing)*40)}.sm\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\:left-48{left:calc(var(--spacing)*48)}}@media (min-width:64rem){.lg\:left-68{left:calc(var(--spacing)*68)}.lg\:px-8{padding-inline:calc(var(--spacing)*8)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography } from './Switch-
|
1
|
+
import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography } from './Switch-C3IZzn6L.js';
|
2
2
|
import { Select as Select$1, Radio, Checkbox } from 'antd';
|
3
3
|
|
4
4
|
const Select = (props) => {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { j as jsxRuntimeExports, b as Icon, _ as _extends, c as _typeof, u as useForm, P as PnkxField, I as Input, d as classNames, e as _arrayLikeToArray, f as _unsupportedIterableToArray, w as warningOnce, h as _createClass, i as _classCallCheck, k as _defineProperty, l as _slicedToArray, m as warning$1, n as canUseDom, o as _objectSpread2, p as updateCSS, r as removeCSS, q as _arrayWithHoles, s as _nonIterableRest, t as resetWarned$1, F as FastColor, v as generate, x as presetPrimaryColors, y as presetPalettes, z as _inherits, A as _createSuper, B as _assertThisInitialized, C as _objectWithoutProperties, G as IconContext } from './Switch-
|
1
|
+
import { j as jsxRuntimeExports, b as Icon, _ as _extends, c as _typeof, u as useForm, P as PnkxField, I as Input, d as classNames, e as _arrayLikeToArray, f as _unsupportedIterableToArray, w as warningOnce, h as _createClass, i as _classCallCheck, k as _defineProperty, l as _slicedToArray, m as warning$1, n as canUseDom, o as _objectSpread2, p as updateCSS, r as removeCSS, q as _arrayWithHoles, s as _nonIterableRest, t as resetWarned$1, F as FastColor, v as generate, x as presetPrimaryColors, y as presetPalettes, z as _inherits, A as _createSuper, B as _assertThisInitialized, C as _objectWithoutProperties, G as IconContext } from './Switch-C3IZzn6L.js';
|
2
2
|
import { Button as Button$1, Cascader, Space as Space$1, Card, Skeleton as Skeleton$1, Popconfirm as Popconfirm$1, Typography, Table as Table$1, Modal as Modal$1, Tooltip as Tooltip$1, Tabs as Tabs$1, Popover as Popover$1, Badge as Badge$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Breadcrumb as Breadcrumb$1, Flex as Flex$1, Splitter as Splitter$1, Menu as Menu$1, Pagination as Pagination$1, Steps as Steps$1, Tag as Tag$1, Divider as Divider$2, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, QRCode as QRCode$1, Result as Result$1, Rate as Rate$1, Segmented as Segmented$1, Statistic as Statistic$1, Timeline as Timeline$1, Tour as Tour$1, Tree as Tree$1, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse, ColorPicker, Empty as Empty$2, Image as Image$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import React__default, { version as version$1, isValidElement, useState, useEffect, useContext, createContext, useRef, useLayoutEffect as useLayoutEffect$1, useMemo as useMemo$1, Component } from 'react';
|
@@ -6158,7 +6158,7 @@ function genStyleUtils(config) {
|
|
6158
6158
|
};
|
6159
6159
|
}
|
6160
6160
|
|
6161
|
-
const version = '5.
|
6161
|
+
const version = '5.24.7';
|
6162
6162
|
|
6163
6163
|
function isStableColor(color) {
|
6164
6164
|
return color >= 0 && color <= 255;
|
@@ -8024,23 +8024,6 @@ function toArray(children) {
|
|
8024
8024
|
return ret;
|
8025
8025
|
}
|
8026
8026
|
|
8027
|
-
const addMediaQueryListener = (mql, handler) => {
|
8028
|
-
// Don't delete here, please keep the code compatible
|
8029
|
-
if (typeof (mql === null || mql === void 0 ? void 0 : mql.addEventListener) !== 'undefined') {
|
8030
|
-
mql.addEventListener('change', handler);
|
8031
|
-
} else if (typeof (mql === null || mql === void 0 ? void 0 : mql.addListener) !== 'undefined') {
|
8032
|
-
mql.addListener(handler);
|
8033
|
-
}
|
8034
|
-
};
|
8035
|
-
const removeMediaQueryListener = (mql, handler) => {
|
8036
|
-
// Don't delete here, please keep the code compatible
|
8037
|
-
if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeEventListener) !== 'undefined') {
|
8038
|
-
mql.removeEventListener('change', handler);
|
8039
|
-
} else if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeListener) !== 'undefined') {
|
8040
|
-
mql.removeListener(handler);
|
8041
|
-
}
|
8042
|
-
};
|
8043
|
-
|
8044
8027
|
const genLayoutStyle = token => {
|
8045
8028
|
const {
|
8046
8029
|
antCls,
|
@@ -8343,17 +8326,29 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
8343
8326
|
};
|
8344
8327
|
useEffect(() => {
|
8345
8328
|
function responsiveHandler(mql) {
|
8346
|
-
|
8347
|
-
return (_a = responsiveHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(responsiveHandlerRef, mql);
|
8329
|
+
return responsiveHandlerRef.current(mql);
|
8348
8330
|
}
|
8349
8331
|
let mql;
|
8350
|
-
if (typeof
|
8351
|
-
|
8352
|
-
|
8353
|
-
|
8332
|
+
if (typeof window !== 'undefined') {
|
8333
|
+
const {
|
8334
|
+
matchMedia
|
8335
|
+
} = window;
|
8336
|
+
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
8337
|
+
mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
|
8338
|
+
try {
|
8339
|
+
mql.addEventListener('change', responsiveHandler);
|
8340
|
+
} catch (_a) {
|
8341
|
+
mql.addListener(responsiveHandler);
|
8342
|
+
}
|
8343
|
+
responsiveHandler(mql);
|
8344
|
+
}
|
8354
8345
|
}
|
8355
8346
|
return () => {
|
8356
|
-
|
8347
|
+
try {
|
8348
|
+
mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
|
8349
|
+
} catch (_a) {
|
8350
|
+
mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
|
8351
|
+
}
|
8357
8352
|
};
|
8358
8353
|
}, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.
|
8359
8354
|
useEffect(() => {
|
@@ -12183,23 +12178,10 @@ const AnchorLink = props => {
|
|
12183
12178
|
href
|
12184
12179
|
});
|
12185
12180
|
scrollTo === null || scrollTo === void 0 ? void 0 : scrollTo(href);
|
12186
|
-
|
12187
|
-
|
12188
|
-
|
12189
|
-
}
|
12190
|
-
const isExternalLink = href.startsWith('http://') || href.startsWith('https://');
|
12191
|
-
// Support external link
|
12192
|
-
if (isExternalLink) {
|
12193
|
-
if (replace) {
|
12194
|
-
e.preventDefault();
|
12195
|
-
window.location.replace(href);
|
12196
|
-
}
|
12197
|
-
return;
|
12181
|
+
if (replace) {
|
12182
|
+
e.preventDefault();
|
12183
|
+
window.location.replace(href);
|
12198
12184
|
}
|
12199
|
-
// Handling internal anchor link
|
12200
|
-
e.preventDefault();
|
12201
|
-
const historyMethod = replace ? 'replaceState' : 'pushState';
|
12202
|
-
window.history[historyMethod](null, '', href);
|
12203
12185
|
};
|
12204
12186
|
// =================== Warning =====================
|
12205
12187
|
if (process.env.NODE_ENV !== 'production') {
|
@@ -12259,17 +12241,132 @@ const Image = (props) => {
|
|
12259
12241
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Image$1, { ...props });
|
12260
12242
|
};
|
12261
12243
|
|
12244
|
+
const ConfirmModal = ({
|
12245
|
+
title,
|
12246
|
+
content,
|
12247
|
+
typeIcon,
|
12248
|
+
titleCancelBtn = "Huỷ bỏ",
|
12249
|
+
titleSubmitBtn = "Xác nhận",
|
12250
|
+
handleCancel,
|
12251
|
+
handleSubmit,
|
12252
|
+
...restProps
|
12253
|
+
}) => {
|
12254
|
+
//! State
|
12255
|
+
const IconType = () => {
|
12256
|
+
switch (typeIcon) {
|
12257
|
+
case "success":
|
12258
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12259
|
+
"svg",
|
12260
|
+
{
|
12261
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12262
|
+
width: "24",
|
12263
|
+
height: "24",
|
12264
|
+
viewBox: "0 0 24 24",
|
12265
|
+
fill: "none",
|
12266
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12267
|
+
"path",
|
12268
|
+
{
|
12269
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM16.5352 8.57109L11.5992 15.4148C11.5302 15.5111 11.4393 15.5896 11.3339 15.6437C11.2286 15.6978 11.1118 15.7261 10.9934 15.7261C10.8749 15.7261 10.7582 15.6978 10.6528 15.6437C10.5474 15.5896 10.4565 15.5111 10.3875 15.4148L7.46484 11.3648C7.37578 11.2406 7.46484 11.0672 7.61719 11.0672H8.71641C8.95547 11.0672 9.18281 11.182 9.32344 11.3789L10.9922 13.6945L14.6766 8.58516C14.8172 8.39062 15.0422 8.27344 15.2836 8.27344H16.3828C16.5352 8.27344 16.6242 8.44688 16.5352 8.57109Z",
|
12270
|
+
fill: "#52C41A"
|
12271
|
+
}
|
12272
|
+
)
|
12273
|
+
}
|
12274
|
+
);
|
12275
|
+
case "error":
|
12276
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12277
|
+
"svg",
|
12278
|
+
{
|
12279
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12280
|
+
width: "24",
|
12281
|
+
height: "24",
|
12282
|
+
viewBox: "0 0 24 24",
|
12283
|
+
fill: "none",
|
12284
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12285
|
+
"path",
|
12286
|
+
{
|
12287
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM15.8766 15.9891L14.3297 15.982L12 13.2047L9.67266 15.9797L8.12344 15.9867C8.02031 15.9867 7.93594 15.9047 7.93594 15.7992C7.93594 15.7547 7.95234 15.7125 7.98047 15.6773L11.0297 12.0445L7.98047 8.41406C7.95215 8.37971 7.93643 8.3367 7.93594 8.29219C7.93594 8.18906 8.02031 8.10469 8.12344 8.10469L9.67266 8.11172L12 10.8891L14.3273 8.11406L15.8742 8.10703C15.9773 8.10703 16.0617 8.18906 16.0617 8.29453C16.0617 8.33906 16.0453 8.38125 16.0172 8.41641L12.9727 12.0469L16.0195 15.6797C16.0477 15.7148 16.0641 15.757 16.0641 15.8016C16.0641 15.9047 15.9797 15.9891 15.8766 15.9891Z",
|
12288
|
+
fill: "#FF4D4F"
|
12289
|
+
}
|
12290
|
+
)
|
12291
|
+
}
|
12292
|
+
);
|
12293
|
+
case "info":
|
12294
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12295
|
+
"svg",
|
12296
|
+
{
|
12297
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12298
|
+
width: "24",
|
12299
|
+
height: "24",
|
12300
|
+
viewBox: "0 0 24 24",
|
12301
|
+
fill: "none",
|
12302
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12303
|
+
"path",
|
12304
|
+
{
|
12305
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM12.75 17.0625C12.75 17.1656 12.6656 17.25 12.5625 17.25H11.4375C11.3344 17.25 11.25 17.1656 11.25 17.0625V10.6875C11.25 10.5844 11.3344 10.5 11.4375 10.5H12.5625C12.6656 10.5 12.75 10.5844 12.75 10.6875V17.0625ZM12 9C11.7056 8.99399 11.4253 8.87282 11.2192 8.6625C11.0132 8.45218 10.8977 8.16945 10.8977 7.875C10.8977 7.58055 11.0132 7.29782 11.2192 7.0875C11.4253 6.87718 11.7056 6.75601 12 6.75C12.2944 6.75601 12.5747 6.87718 12.7808 7.0875C12.9868 7.29782 13.1023 7.58055 13.1023 7.875C13.1023 8.16945 12.9868 8.45218 12.7808 8.6625C12.5747 8.87282 12.2944 8.99399 12 9Z",
|
12306
|
+
fill: "#1677FF"
|
12307
|
+
}
|
12308
|
+
)
|
12309
|
+
}
|
12310
|
+
);
|
12311
|
+
case "warning":
|
12312
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12313
|
+
"svg",
|
12314
|
+
{
|
12315
|
+
xmlns: "http://www.w3.org/2000/svg",
|
12316
|
+
width: "24",
|
12317
|
+
height: "24",
|
12318
|
+
viewBox: "0 0 24 24",
|
12319
|
+
fill: "none",
|
12320
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12321
|
+
"path",
|
12322
|
+
{
|
12323
|
+
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM11.25 6.9375C11.25 6.83437 11.3344 6.75 11.4375 6.75H12.5625C12.6656 6.75 12.75 6.83437 12.75 6.9375V13.3125C12.75 13.4156 12.6656 13.5 12.5625 13.5H11.4375C11.3344 13.5 11.25 13.4156 11.25 13.3125V6.9375ZM12 17.25C11.7056 17.244 11.4253 17.1228 11.2192 16.9125C11.0132 16.7022 10.8977 16.4195 10.8977 16.125C10.8977 15.8305 11.0132 15.5478 11.2192 15.3375C11.4253 15.1272 11.7056 15.006 12 15C12.2944 15.006 12.5747 15.1272 12.7808 15.3375C12.9868 15.5478 13.1023 15.8305 13.1023 16.125C13.1023 16.4195 12.9868 16.7022 12.7808 16.9125C12.5747 17.1228 12.2944 17.244 12 17.25Z",
|
12324
|
+
fill: "#FAAD14"
|
12325
|
+
}
|
12326
|
+
)
|
12327
|
+
}
|
12328
|
+
);
|
12329
|
+
}
|
12330
|
+
};
|
12331
|
+
//! Function
|
12332
|
+
//! Render
|
12333
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...restProps, footer: null, closeIcon: null, width: 400, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
12334
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
12335
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconType, {}),
|
12336
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
12337
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-base font-semibold", children: title }),
|
12338
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm", children: content })
|
12339
|
+
] })
|
12340
|
+
] }),
|
12341
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 w-full justify-end items-end pt-3", children: [
|
12342
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { shape: "round", onClick: handleCancel, children: titleCancelBtn }),
|
12343
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { shape: "round", type: "primary", onClick: handleSubmit, children: titleSubmitBtn })
|
12344
|
+
] })
|
12345
|
+
] }) });
|
12346
|
+
};
|
12347
|
+
|
12348
|
+
var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
|
12349
|
+
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DRAFT"] = 0] = "DRAFT";
|
12350
|
+
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["WATING_APPROVAL"] = 1] = "WATING_APPROVAL";
|
12351
|
+
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["ACTIVE"] = 2] = "ACTIVE";
|
12352
|
+
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["INACTIVE"] = 3] = "INACTIVE";
|
12353
|
+
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["REJECT"] = 4] = "REJECT";
|
12354
|
+
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DELETE"] = 5] = "DELETE";
|
12355
|
+
return CATEGORY_LIST_ENUM2;
|
12356
|
+
})(CATEGORY_LIST_ENUM || {});
|
12357
|
+
|
12262
12358
|
const BulkAction = ({
|
12263
12359
|
quantity,
|
12264
|
-
|
12265
|
-
|
12266
|
-
|
12267
|
-
|
12268
|
-
|
12269
|
-
|
12360
|
+
handleRestore,
|
12361
|
+
handleSendApproval,
|
12362
|
+
handleCancelSendApproval,
|
12363
|
+
handleRefuseApproval,
|
12364
|
+
handleApproval,
|
12365
|
+
handleCancelApproval,
|
12270
12366
|
handleDelete,
|
12271
|
-
|
12272
|
-
|
12367
|
+
handleActivate,
|
12368
|
+
handleInActivate,
|
12369
|
+
status
|
12273
12370
|
}) => {
|
12274
12371
|
//! State
|
12275
12372
|
const listIcon = [
|
@@ -12294,7 +12391,10 @@ const BulkAction = ({
|
|
12294
12391
|
)
|
12295
12392
|
}
|
12296
12393
|
),
|
12297
|
-
action:
|
12394
|
+
action: handleRestore,
|
12395
|
+
showConfirmModal: false,
|
12396
|
+
title: "Khôi phục",
|
12397
|
+
arrShow: [CATEGORY_LIST_ENUM?.DELETE, CATEGORY_LIST_ENUM?.REJECT]
|
12298
12398
|
},
|
12299
12399
|
{
|
12300
12400
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12316,7 +12416,12 @@ const BulkAction = ({
|
|
12316
12416
|
)
|
12317
12417
|
}
|
12318
12418
|
),
|
12319
|
-
action:
|
12419
|
+
action: handleSendApproval,
|
12420
|
+
showConfirmModal: true,
|
12421
|
+
typeIcon: "info",
|
12422
|
+
title: "Xác nhận gửi duyệt",
|
12423
|
+
content: "Bạn có chắc chắn muốn gửi duyệt mục này không?",
|
12424
|
+
arrShow: [CATEGORY_LIST_ENUM?.DRAFT]
|
12320
12425
|
},
|
12321
12426
|
{
|
12322
12427
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12338,7 +12443,12 @@ const BulkAction = ({
|
|
12338
12443
|
)
|
12339
12444
|
}
|
12340
12445
|
),
|
12341
|
-
action:
|
12446
|
+
action: handleCancelSendApproval,
|
12447
|
+
showConfirmModal: true,
|
12448
|
+
typeIcon: "error",
|
12449
|
+
title: "Xác nhận hủy gửi duyệt",
|
12450
|
+
content: "Bạn có chắc chắn muốn hủy gửi duyệt mục này không?",
|
12451
|
+
arrShow: [CATEGORY_LIST_ENUM?.WATING_APPROVAL]
|
12342
12452
|
},
|
12343
12453
|
{
|
12344
12454
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
@@ -12369,7 +12479,12 @@ const BulkAction = ({
|
|
12369
12479
|
]
|
12370
12480
|
}
|
12371
12481
|
),
|
12372
|
-
action:
|
12482
|
+
action: handleRefuseApproval,
|
12483
|
+
showConfirmModal: true,
|
12484
|
+
typeIcon: "error",
|
12485
|
+
title: "Xác nhận từ chối duyệt",
|
12486
|
+
content: "Bạn có chắc chắn muốn từ chối duyệt mục này không? Hành động này không thể hoàn tác.",
|
12487
|
+
arrShow: [CATEGORY_LIST_ENUM?.WATING_APPROVAL]
|
12373
12488
|
},
|
12374
12489
|
{
|
12375
12490
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12391,7 +12506,12 @@ const BulkAction = ({
|
|
12391
12506
|
)
|
12392
12507
|
}
|
12393
12508
|
),
|
12394
|
-
action:
|
12509
|
+
action: handleApproval,
|
12510
|
+
showConfirmModal: true,
|
12511
|
+
typeIcon: "info",
|
12512
|
+
title: "Xác nhận duyệt",
|
12513
|
+
content: "Bạn có chắc chắn muốn duyệt mục này không?",
|
12514
|
+
arrShow: [CATEGORY_LIST_ENUM?.WATING_APPROVAL]
|
12395
12515
|
},
|
12396
12516
|
{
|
12397
12517
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12413,7 +12533,12 @@ const BulkAction = ({
|
|
12413
12533
|
)
|
12414
12534
|
}
|
12415
12535
|
),
|
12416
|
-
action:
|
12536
|
+
action: handleCancelApproval,
|
12537
|
+
showConfirmModal: true,
|
12538
|
+
typeIcon: "error",
|
12539
|
+
title: "Xác nhận hủy duyệt",
|
12540
|
+
content: "Bạn có chắc chắn muốn hủy duyệt mục này không?",
|
12541
|
+
arrShow: [CATEGORY_LIST_ENUM?.ACTIVE]
|
12417
12542
|
},
|
12418
12543
|
{
|
12419
12544
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12433,7 +12558,16 @@ const BulkAction = ({
|
|
12433
12558
|
)
|
12434
12559
|
}
|
12435
12560
|
),
|
12436
|
-
action: handleDelete
|
12561
|
+
action: handleDelete,
|
12562
|
+
showConfirmModal: true,
|
12563
|
+
typeIcon: "error",
|
12564
|
+
title: "Xác nhận xóa",
|
12565
|
+
content: "Bạn có chắc chắn muốn xóa mục này không? Hành động này không thể hoàn tác.",
|
12566
|
+
arrShow: [
|
12567
|
+
CATEGORY_LIST_ENUM?.DRAFT,
|
12568
|
+
CATEGORY_LIST_ENUM?.ACTIVE,
|
12569
|
+
CATEGORY_LIST_ENUM?.INACTIVE
|
12570
|
+
]
|
12437
12571
|
},
|
12438
12572
|
{
|
12439
12573
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12455,7 +12589,12 @@ const BulkAction = ({
|
|
12455
12589
|
)
|
12456
12590
|
}
|
12457
12591
|
),
|
12458
|
-
action:
|
12592
|
+
action: handleActivate,
|
12593
|
+
showConfirmModal: true,
|
12594
|
+
typeIcon: "info",
|
12595
|
+
title: "Xác nhận kích hoạt",
|
12596
|
+
content: "Bạn có chắc chắn muốn kích hoạt mục này không?",
|
12597
|
+
arrShow: [CATEGORY_LIST_ENUM?.INACTIVE]
|
12459
12598
|
},
|
12460
12599
|
{
|
12461
12600
|
icon: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
@@ -12477,132 +12616,68 @@ const BulkAction = ({
|
|
12477
12616
|
)
|
12478
12617
|
}
|
12479
12618
|
),
|
12480
|
-
action:
|
12619
|
+
action: handleInActivate,
|
12620
|
+
showConfirmModal: true,
|
12621
|
+
typeIcon: "info",
|
12622
|
+
title: "Xác nhận vô hiệu hóa",
|
12623
|
+
content: "Bạn có chắc chắn muốn vô hiệu hóa mục này không?",
|
12624
|
+
arrShow: [CATEGORY_LIST_ENUM?.ACTIVE]
|
12481
12625
|
}
|
12482
12626
|
];
|
12627
|
+
const [open, setOpen] = useState(false);
|
12628
|
+
const [notifyContent, setNotifyContent] = useState({
|
12629
|
+
title: "",
|
12630
|
+
content: "",
|
12631
|
+
typeIcon: "info",
|
12632
|
+
handleCancel: () => {
|
12633
|
+
},
|
12634
|
+
handleSubmit: () => {
|
12635
|
+
}
|
12636
|
+
});
|
12483
12637
|
//! Function
|
12638
|
+
const IsShow = (arrStatus) => {
|
12639
|
+
return arrStatus.includes(status);
|
12640
|
+
};
|
12484
12641
|
//! Render
|
12485
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3 px-[10px] py-3 bg-[#2561ED] rounded-lg w-fit", children: [
|
12642
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-full flex justify-center items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3 px-[10px] py-3 bg-[#2561ED] rounded-lg w-fit", children: [
|
12486
12643
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-white px-3", children: [
|
12487
12644
|
"Đã chọn: ",
|
12488
12645
|
quantity
|
12489
12646
|
] }),
|
12490
12647
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "h-5 border-l border-white mx-1" }),
|
12491
12648
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center space-x-3", children: listIcon.map(
|
12492
|
-
(item, index) => item?.
|
12649
|
+
(item, index) => IsShow(item?.arrShow) && /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: item?.title, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12493
12650
|
"button",
|
12494
12651
|
{
|
12495
12652
|
className: "p-1 rounded-sm transition duration-200 cursor-pointer hover:bg-[#1B4ACB] hover:rounded-sm",
|
12496
|
-
onClick: item
|
12653
|
+
onClick: item?.showConfirmModal ? () => {
|
12654
|
+
setOpen(true);
|
12655
|
+
setNotifyContent({
|
12656
|
+
title: item?.title || "",
|
12657
|
+
content: item?.content || "",
|
12658
|
+
typeIcon: item?.typeIcon,
|
12659
|
+
handleCancel: () => {
|
12660
|
+
setOpen(false);
|
12661
|
+
},
|
12662
|
+
handleSubmit: item?.action
|
12663
|
+
});
|
12664
|
+
} : item?.action,
|
12497
12665
|
children: item.icon
|
12498
12666
|
},
|
12499
12667
|
index
|
12500
|
-
)
|
12501
|
-
) })
|
12502
|
-
|
12503
|
-
|
12504
|
-
|
12505
|
-
|
12506
|
-
|
12507
|
-
|
12508
|
-
|
12509
|
-
|
12510
|
-
|
12511
|
-
|
12512
|
-
|
12513
|
-
...restProps
|
12514
|
-
}) => {
|
12515
|
-
//! State
|
12516
|
-
const IconType = () => {
|
12517
|
-
switch (typeIcon) {
|
12518
|
-
case "success":
|
12519
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12520
|
-
"svg",
|
12521
|
-
{
|
12522
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12523
|
-
width: "24",
|
12524
|
-
height: "24",
|
12525
|
-
viewBox: "0 0 24 24",
|
12526
|
-
fill: "none",
|
12527
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12528
|
-
"path",
|
12529
|
-
{
|
12530
|
-
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM16.5352 8.57109L11.5992 15.4148C11.5302 15.5111 11.4393 15.5896 11.3339 15.6437C11.2286 15.6978 11.1118 15.7261 10.9934 15.7261C10.8749 15.7261 10.7582 15.6978 10.6528 15.6437C10.5474 15.5896 10.4565 15.5111 10.3875 15.4148L7.46484 11.3648C7.37578 11.2406 7.46484 11.0672 7.61719 11.0672H8.71641C8.95547 11.0672 9.18281 11.182 9.32344 11.3789L10.9922 13.6945L14.6766 8.58516C14.8172 8.39062 15.0422 8.27344 15.2836 8.27344H16.3828C16.5352 8.27344 16.6242 8.44688 16.5352 8.57109Z",
|
12531
|
-
fill: "#52C41A"
|
12532
|
-
}
|
12533
|
-
)
|
12534
|
-
}
|
12535
|
-
);
|
12536
|
-
case "error":
|
12537
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12538
|
-
"svg",
|
12539
|
-
{
|
12540
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12541
|
-
width: "24",
|
12542
|
-
height: "24",
|
12543
|
-
viewBox: "0 0 24 24",
|
12544
|
-
fill: "none",
|
12545
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12546
|
-
"path",
|
12547
|
-
{
|
12548
|
-
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM15.8766 15.9891L14.3297 15.982L12 13.2047L9.67266 15.9797L8.12344 15.9867C8.02031 15.9867 7.93594 15.9047 7.93594 15.7992C7.93594 15.7547 7.95234 15.7125 7.98047 15.6773L11.0297 12.0445L7.98047 8.41406C7.95215 8.37971 7.93643 8.3367 7.93594 8.29219C7.93594 8.18906 8.02031 8.10469 8.12344 8.10469L9.67266 8.11172L12 10.8891L14.3273 8.11406L15.8742 8.10703C15.9773 8.10703 16.0617 8.18906 16.0617 8.29453C16.0617 8.33906 16.0453 8.38125 16.0172 8.41641L12.9727 12.0469L16.0195 15.6797C16.0477 15.7148 16.0641 15.757 16.0641 15.8016C16.0641 15.9047 15.9797 15.9891 15.8766 15.9891Z",
|
12549
|
-
fill: "#FF4D4F"
|
12550
|
-
}
|
12551
|
-
)
|
12552
|
-
}
|
12553
|
-
);
|
12554
|
-
case "info":
|
12555
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12556
|
-
"svg",
|
12557
|
-
{
|
12558
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12559
|
-
width: "24",
|
12560
|
-
height: "24",
|
12561
|
-
viewBox: "0 0 24 24",
|
12562
|
-
fill: "none",
|
12563
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12564
|
-
"path",
|
12565
|
-
{
|
12566
|
-
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM12.75 17.0625C12.75 17.1656 12.6656 17.25 12.5625 17.25H11.4375C11.3344 17.25 11.25 17.1656 11.25 17.0625V10.6875C11.25 10.5844 11.3344 10.5 11.4375 10.5H12.5625C12.6656 10.5 12.75 10.5844 12.75 10.6875V17.0625ZM12 9C11.7056 8.99399 11.4253 8.87282 11.2192 8.6625C11.0132 8.45218 10.8977 8.16945 10.8977 7.875C10.8977 7.58055 11.0132 7.29782 11.2192 7.0875C11.4253 6.87718 11.7056 6.75601 12 6.75C12.2944 6.75601 12.5747 6.87718 12.7808 7.0875C12.9868 7.29782 13.1023 7.58055 13.1023 7.875C13.1023 8.16945 12.9868 8.45218 12.7808 8.6625C12.5747 8.87282 12.2944 8.99399 12 9Z",
|
12567
|
-
fill: "#1677FF"
|
12568
|
-
}
|
12569
|
-
)
|
12570
|
-
}
|
12571
|
-
);
|
12572
|
-
case "warning":
|
12573
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12574
|
-
"svg",
|
12575
|
-
{
|
12576
|
-
xmlns: "http://www.w3.org/2000/svg",
|
12577
|
-
width: "24",
|
12578
|
-
height: "24",
|
12579
|
-
viewBox: "0 0 24 24",
|
12580
|
-
fill: "none",
|
12581
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
12582
|
-
"path",
|
12583
|
-
{
|
12584
|
-
d: "M12 1.5C6.20156 1.5 1.5 6.20156 1.5 12C1.5 17.7984 6.20156 22.5 12 22.5C17.7984 22.5 22.5 17.7984 22.5 12C22.5 6.20156 17.7984 1.5 12 1.5ZM11.25 6.9375C11.25 6.83437 11.3344 6.75 11.4375 6.75H12.5625C12.6656 6.75 12.75 6.83437 12.75 6.9375V13.3125C12.75 13.4156 12.6656 13.5 12.5625 13.5H11.4375C11.3344 13.5 11.25 13.4156 11.25 13.3125V6.9375ZM12 17.25C11.7056 17.244 11.4253 17.1228 11.2192 16.9125C11.0132 16.7022 10.8977 16.4195 10.8977 16.125C10.8977 15.8305 11.0132 15.5478 11.2192 15.3375C11.4253 15.1272 11.7056 15.006 12 15C12.2944 15.006 12.5747 15.1272 12.7808 15.3375C12.9868 15.5478 13.1023 15.8305 13.1023 16.125C13.1023 16.4195 12.9868 16.7022 12.7808 16.9125C12.5747 17.1228 12.2944 17.244 12 17.25Z",
|
12585
|
-
fill: "#FAAD14"
|
12586
|
-
}
|
12587
|
-
)
|
12588
|
-
}
|
12589
|
-
);
|
12590
|
-
}
|
12591
|
-
};
|
12592
|
-
//! Function
|
12593
|
-
//! Render
|
12594
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Modal, { ...restProps, footer: null, closeIcon: null, width: 400, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
12595
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-3", children: [
|
12596
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconType, {}),
|
12597
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
12598
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-base font-semibold", children: title }),
|
12599
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm", children: content })
|
12600
|
-
] })
|
12601
|
-
] }),
|
12602
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex gap-2 w-full justify-end items-end pt-3", children: [
|
12603
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { shape: "round", onClick: handleCancel, children: titleCancelBtn }),
|
12604
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button, { shape: "round", type: "primary", onClick: handleSubmit, children: titleSubmitBtn })
|
12605
|
-
] })
|
12668
|
+
) })
|
12669
|
+
) }),
|
12670
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
12671
|
+
ConfirmModal,
|
12672
|
+
{
|
12673
|
+
title: notifyContent?.title,
|
12674
|
+
content: notifyContent?.content,
|
12675
|
+
typeIcon: notifyContent?.typeIcon,
|
12676
|
+
open,
|
12677
|
+
handleCancel: notifyContent?.handleCancel,
|
12678
|
+
handleSubmit: notifyContent?.handleSubmit
|
12679
|
+
}
|
12680
|
+
)
|
12606
12681
|
] }) });
|
12607
12682
|
};
|
12608
12683
|
|
@@ -3495,8 +3495,6 @@ var getProxyFormState = (formState, control, localProxyFormState, isRoot = true)
|
|
3495
3495
|
return result;
|
3496
3496
|
};
|
3497
3497
|
|
3498
|
-
const useIsomorphicLayoutEffect$1 = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
3499
|
-
|
3500
3498
|
/**
|
3501
3499
|
* This custom hook allows you to subscribe to each form state, and isolate the re-render at the custom hook level. It has its scope in terms of form state subscription, so it would not affect other useFormState and useForm. Using this hook can reduce the re-render impact on large and complex form application.
|
3502
3500
|
*
|
@@ -3541,8 +3539,10 @@ function useFormState(props) {
|
|
3541
3539
|
isValid: false,
|
3542
3540
|
errors: false,
|
3543
3541
|
});
|
3544
|
-
|
3545
|
-
|
3542
|
+
const _name = React__default.useRef(name);
|
3543
|
+
_name.current = name;
|
3544
|
+
React__default.useEffect(() => control._subscribe({
|
3545
|
+
name: _name.current,
|
3546
3546
|
formState: _localProxyFormState.current,
|
3547
3547
|
exact,
|
3548
3548
|
callback: (formState) => {
|
@@ -3552,7 +3552,7 @@ function useFormState(props) {
|
|
3552
3552
|
...formState,
|
3553
3553
|
});
|
3554
3554
|
},
|
3555
|
-
}), [
|
3555
|
+
}), [control, disabled, exact]);
|
3556
3556
|
React__default.useEffect(() => {
|
3557
3557
|
_localProxyFormState.current.isValid && control._setValid(true);
|
3558
3558
|
}, [control]);
|
@@ -3592,17 +3592,19 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) =>
|
|
3592
3592
|
function useWatch(props) {
|
3593
3593
|
const methods = useFormContext();
|
3594
3594
|
const { control = methods.control, name, defaultValue, disabled, exact, } = props || {};
|
3595
|
+
const _name = React__default.useRef(name);
|
3595
3596
|
const _defaultValue = React__default.useRef(defaultValue);
|
3596
|
-
|
3597
|
-
|
3598
|
-
name:
|
3597
|
+
_name.current = name;
|
3598
|
+
React__default.useEffect(() => control._subscribe({
|
3599
|
+
name: _name.current,
|
3599
3600
|
formState: {
|
3600
3601
|
values: true,
|
3601
3602
|
},
|
3602
3603
|
exact,
|
3603
3604
|
callback: (formState) => !disabled &&
|
3604
|
-
updateValue(generateWatchOutput(
|
3605
|
-
}), [
|
3605
|
+
updateValue(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, _defaultValue.current)),
|
3606
|
+
}), [control, disabled, exact]);
|
3607
|
+
const [value, updateValue] = React__default.useState(control._getWatch(name, defaultValue));
|
3606
3608
|
React__default.useEffect(() => control._removeUnmounted());
|
3607
3609
|
return value;
|
3608
3610
|
}
|
@@ -4418,7 +4420,6 @@ function createFormControl(props = {}) {
|
|
4418
4420
|
let _formState = {
|
4419
4421
|
submitCount: 0,
|
4420
4422
|
isDirty: false,
|
4421
|
-
isReady: false,
|
4422
4423
|
isLoading: isFunction$1(_options.defaultValues),
|
4423
4424
|
isValidating: false,
|
4424
4425
|
isSubmitted: false,
|
@@ -4433,7 +4434,7 @@ function createFormControl(props = {}) {
|
|
4433
4434
|
};
|
4434
4435
|
const _fields = {};
|
4435
4436
|
let _defaultValues = isObject(_options.defaultValues) || isObject(_options.values)
|
4436
|
-
? cloneObject(_options.
|
4437
|
+
? cloneObject(_options.values || _options.defaultValues) || {}
|
4437
4438
|
: {};
|
4438
4439
|
let _formValues = _options.shouldUnregister
|
4439
4440
|
? {}
|
@@ -5484,7 +5485,6 @@ function useForm(props = {}) {
|
|
5484
5485
|
validatingFields: {},
|
5485
5486
|
errors: props.errors || {},
|
5486
5487
|
disabled: props.disabled || false,
|
5487
|
-
isReady: false,
|
5488
5488
|
defaultValues: isFunction$1(props.defaultValues)
|
5489
5489
|
? undefined
|
5490
5490
|
: props.defaultValues,
|
@@ -5502,37 +5502,12 @@ function useForm(props = {}) {
|
|
5502
5502
|
}
|
5503
5503
|
const control = _formControl.current.control;
|
5504
5504
|
control._options = props;
|
5505
|
-
|
5506
|
-
|
5507
|
-
|
5508
|
-
|
5509
|
-
|
5510
|
-
});
|
5511
|
-
updateFormState((data) => ({
|
5512
|
-
...data,
|
5513
|
-
isReady: true,
|
5514
|
-
}));
|
5515
|
-
control._formState.isReady = true;
|
5516
|
-
return sub;
|
5517
|
-
}, [control]);
|
5505
|
+
React__default.useLayoutEffect(() => control._subscribe({
|
5506
|
+
formState: control._proxyFormState,
|
5507
|
+
callback: () => updateFormState({ ...control._formState }),
|
5508
|
+
reRenderRoot: true,
|
5509
|
+
}), [control]);
|
5518
5510
|
React__default.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
5519
|
-
React__default.useEffect(() => {
|
5520
|
-
if (props.mode) {
|
5521
|
-
control._options.mode = props.mode;
|
5522
|
-
}
|
5523
|
-
if (props.reValidateMode) {
|
5524
|
-
control._options.reValidateMode = props.reValidateMode;
|
5525
|
-
}
|
5526
|
-
if (props.errors && !isEmptyObject(props.errors)) {
|
5527
|
-
control._setErrors(props.errors);
|
5528
|
-
}
|
5529
|
-
}, [control, props.errors, props.mode, props.reValidateMode]);
|
5530
|
-
React__default.useEffect(() => {
|
5531
|
-
props.shouldUnregister &&
|
5532
|
-
control._subjects.state.next({
|
5533
|
-
values: control._getWatch(),
|
5534
|
-
});
|
5535
|
-
}, [control, props.shouldUnregister]);
|
5536
5511
|
React__default.useEffect(() => {
|
5537
5512
|
if (control._proxyFormState.isDirty) {
|
5538
5513
|
const isDirty = control._getDirty();
|
@@ -5552,7 +5527,12 @@ function useForm(props = {}) {
|
|
5552
5527
|
else {
|
5553
5528
|
control._resetDefaultValues();
|
5554
5529
|
}
|
5555
|
-
}, [
|
5530
|
+
}, [props.values, control]);
|
5531
|
+
React__default.useEffect(() => {
|
5532
|
+
if (props.errors && !isEmptyObject(props.errors)) {
|
5533
|
+
control._setErrors(props.errors);
|
5534
|
+
}
|
5535
|
+
}, [props.errors, control]);
|
5556
5536
|
React__default.useEffect(() => {
|
5557
5537
|
if (!control._state.mount) {
|
5558
5538
|
control._setValid();
|
@@ -5564,6 +5544,12 @@ function useForm(props = {}) {
|
|
5564
5544
|
}
|
5565
5545
|
control._removeUnmounted();
|
5566
5546
|
});
|
5547
|
+
React__default.useEffect(() => {
|
5548
|
+
props.shouldUnregister &&
|
5549
|
+
control._subjects.state.next({
|
5550
|
+
values: control._getWatch(),
|
5551
|
+
});
|
5552
|
+
}, [props.shouldUnregister, control]);
|
5567
5553
|
_formControl.current.formState = getProxyFormState(formState, control);
|
5568
5554
|
return _formControl.current;
|
5569
5555
|
}
|
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, a as TinyMCE } from '../chunks/Switch-
|
2
|
-
export { C as CheckboxField, R as RadioGroup, S as Select } from '../chunks/Checkbox-
|
1
|
+
export { D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, a as TinyMCE } from '../chunks/Switch-C3IZzn6L.js';
|
2
|
+
export { C as CheckboxField, R as RadioGroup, S as Select } from '../chunks/Checkbox-2LoiNtBe.js';
|
package/es/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/ErrorBoundary-
|
2
|
-
export { D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TinyMCE, T as Typography } from './chunks/Switch-
|
3
|
-
export { C as CheckboxField, R as RadioGroup, S as Select } from './chunks/Checkbox-
|
1
|
+
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/ErrorBoundary-Ja4PIPaU.js';
|
2
|
+
export { D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TinyMCE, T as Typography } from './chunks/Switch-C3IZzn6L.js';
|
3
|
+
export { C as CheckboxField, R as RadioGroup, S as Select } from './chunks/Checkbox-2LoiNtBe.js';
|
4
4
|
export { u as useToast } from './chunks/cloneDeep-BLYi2V0G.js';
|
5
5
|
export { u as useFiltersHandler, a as useMessage } from './chunks/useMessage-D_-VT5B4.js';
|
package/es/ui/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/ErrorBoundary-
|
2
|
-
export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-
|
1
|
+
export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/ErrorBoundary-Ja4PIPaU.js';
|
2
|
+
export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-C3IZzn6L.js';
|
package/package.json
CHANGED
package/types/hooks.d.ts
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { ArgsProps } from 'antd/
|
2
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
1
|
+
import { ArgsProps } from 'antd/lib/message';
|
2
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/es/notification';
|
3
3
|
import { default as default_2 } from 'react';
|
4
4
|
|
5
5
|
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
6
6
|
|
7
|
-
export declare type OptionalArgsMessage = Partial<
|
8
|
-
type?:
|
7
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps> & {
|
8
|
+
type?: ArgsProps["type"];
|
9
9
|
};
|
10
10
|
|
11
|
-
export declare type OptionalArgsToast = Partial<
|
11
|
+
export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
|
12
12
|
message?: React.ReactNode;
|
13
13
|
};
|
14
14
|
|
package/types/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { AffixProps } from 'antd';
|
|
2
2
|
import { AlertProps as AlertProps_2 } from 'antd';
|
3
3
|
import { Anchor as Anchor_2 } from 'antd';
|
4
4
|
import { AnchorProps } from 'antd';
|
5
|
-
import { ArgsProps } from 'antd/
|
6
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
5
|
+
import { ArgsProps } from 'antd/lib/message';
|
6
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/es/notification';
|
7
7
|
import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
|
8
8
|
import { BadgeProps as BadgeProps_2 } from 'antd';
|
9
9
|
import { BasicProps } from 'antd/es/layout/layout';
|
@@ -23,8 +23,8 @@ import { Control } from 'react-hook-form';
|
|
23
23
|
import { ControllerFieldState } from 'react-hook-form';
|
24
24
|
import { ControllerRenderProps } from 'react-hook-form';
|
25
25
|
import { Dayjs } from 'dayjs';
|
26
|
-
import { default as default_2 } from '
|
27
|
-
import { default as default_3 } from '
|
26
|
+
import { default as default_2 } from 'antd/es/anchor/AnchorLink';
|
27
|
+
import { default as default_3 } from 'react';
|
28
28
|
import { DefaultOptionType } from 'antd/es/cascader';
|
29
29
|
import { DefaultValues } from 'react-hook-form';
|
30
30
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -105,7 +105,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
105
105
|
export declare type AlertProps = AlertProps_2;
|
106
106
|
|
107
107
|
export declare const Anchor: typeof Anchor_2 & {
|
108
|
-
Link: typeof
|
108
|
+
Link: typeof default_2;
|
109
109
|
};
|
110
110
|
|
111
111
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
@@ -113,7 +113,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
113
113
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
114
114
|
|
115
115
|
export declare interface AppfixProps extends AffixProps {
|
116
|
-
children:
|
116
|
+
children: default_3.ReactNode;
|
117
117
|
}
|
118
118
|
|
119
119
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
@@ -202,22 +202,23 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
202
202
|
|
203
203
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
204
204
|
|
205
|
-
export declare const BulkAction: ({ quantity,
|
205
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
206
206
|
|
207
207
|
export declare interface BulkActionProps {
|
208
208
|
quantity: number;
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
209
|
+
handleRestore?: () => void;
|
210
|
+
handleSendApproval?: () => void;
|
211
|
+
handleCancelSendApproval?: () => void;
|
212
|
+
handleRefuseApproval?: () => void;
|
213
|
+
handleApproval?: () => void;
|
214
|
+
handleCancelApproval?: () => void;
|
215
215
|
handleDelete?: () => void;
|
216
|
-
|
217
|
-
|
216
|
+
handleActivate?: () => void;
|
217
|
+
handleInActivate?: () => void;
|
218
|
+
status?: number;
|
218
219
|
}
|
219
220
|
|
220
|
-
export declare const Button:
|
221
|
+
export declare const Button: default_3.FC<ButtonProps>;
|
221
222
|
|
222
223
|
export declare type ButtonProps = ButtonProps_2;
|
223
224
|
|
@@ -264,20 +265,22 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
264
265
|
content: string;
|
265
266
|
titleCancelBtn?: string;
|
266
267
|
titleSubmitBtn?: string;
|
267
|
-
typeIcon:
|
268
|
+
typeIcon: ConfirmModalType;
|
268
269
|
handleCancel?: () => void;
|
269
270
|
handleSubmit?: () => void;
|
270
271
|
}
|
271
272
|
|
272
|
-
export declare
|
273
|
+
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
274
|
+
|
275
|
+
export declare const Container: default_3.FC<ContainerProps>;
|
273
276
|
|
274
277
|
export declare interface ContainerProps {
|
275
|
-
children:
|
278
|
+
children: default_3.ReactNode;
|
276
279
|
size?: TailwindMaxWidth;
|
277
280
|
className?: string;
|
278
281
|
}
|
279
282
|
|
280
|
-
declare type CustomInputTypeAttribute =
|
283
|
+
declare type CustomInputTypeAttribute = default_3.HTMLInputTypeAttribute | "money";
|
281
284
|
|
282
285
|
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
283
286
|
field?: ControllerRenderProps<any, any>;
|
@@ -291,7 +294,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
291
294
|
label?: string;
|
292
295
|
maxDate?: Date;
|
293
296
|
showTimeSelect?: boolean;
|
294
|
-
customOnChange?: (date: any, event:
|
297
|
+
customOnChange?: (date: any, event: default_3.SyntheticEvent<any>) => void;
|
295
298
|
customValue?: Date | null;
|
296
299
|
size?: TSize;
|
297
300
|
}
|
@@ -334,7 +337,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
334
337
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
335
338
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
336
339
|
handleReload: () => void;
|
337
|
-
render():
|
340
|
+
render(): default_3.ReactNode;
|
338
341
|
}
|
339
342
|
|
340
343
|
export declare interface ErrorBoundaryProps {
|
@@ -347,7 +350,7 @@ export declare interface ErrorBoundaryState {
|
|
347
350
|
errorInfo: ErrorInfo | null;
|
348
351
|
}
|
349
352
|
|
350
|
-
export declare const ErrorMessage:
|
353
|
+
export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
351
354
|
|
352
355
|
export declare interface ErrorMessageProps {
|
353
356
|
errorMessage?: string;
|
@@ -390,8 +393,8 @@ export declare interface InputProps extends InputProps_2 {
|
|
390
393
|
customStyleInput?: string;
|
391
394
|
type?: CustomInputTypeAttribute;
|
392
395
|
afterOnChange?: (value: number | string | null) => void;
|
393
|
-
iconStartInput?:
|
394
|
-
iconEndInput?:
|
396
|
+
iconStartInput?: default_3.ReactNode;
|
397
|
+
iconEndInput?: default_3.ReactNode;
|
395
398
|
allowNegative?: boolean;
|
396
399
|
decimalScale?: number;
|
397
400
|
prefix?: string;
|
@@ -411,12 +414,12 @@ export declare interface LabelProps {
|
|
411
414
|
required?: boolean;
|
412
415
|
}
|
413
416
|
|
414
|
-
export declare const Layout:
|
415
|
-
Header:
|
416
|
-
Footer:
|
417
|
-
Content:
|
418
|
-
Sider:
|
419
|
-
_InternalSiderContext:
|
417
|
+
export declare const Layout: default_3.FC<LayoutProps> & {
|
418
|
+
Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
419
|
+
Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
420
|
+
Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
421
|
+
Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
|
422
|
+
_InternalSiderContext: default_3.Context<SiderContextProps>;
|
420
423
|
};
|
421
424
|
|
422
425
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -442,11 +445,11 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
|
|
442
445
|
multiple: true;
|
443
446
|
};
|
444
447
|
|
445
|
-
export declare type OptionalArgsMessage = Partial<
|
446
|
-
type?:
|
448
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps> & {
|
449
|
+
type?: ArgsProps["type"];
|
447
450
|
};
|
448
451
|
|
449
|
-
export declare type OptionalArgsToast = Partial<
|
452
|
+
export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
|
450
453
|
message?: React.ReactNode;
|
451
454
|
};
|
452
455
|
|
@@ -564,7 +567,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
564
567
|
setValue?: UseFormSetValue<T>;
|
565
568
|
handleSubmit?: FormEventHandler<any>;
|
566
569
|
reset?: UseFormReset<T>;
|
567
|
-
}) =>
|
570
|
+
}) => default_3.ReactNode;
|
568
571
|
onReset?: () => void;
|
569
572
|
classNamesContainer?: string;
|
570
573
|
classNameWrapperForm?: string;
|
@@ -658,8 +661,8 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
|
|
658
661
|
|
659
662
|
declare type TabItem = {
|
660
663
|
key: string;
|
661
|
-
label:
|
662
|
-
children:
|
664
|
+
label: default_3.ReactNode;
|
665
|
+
children: default_3.ReactNode;
|
663
666
|
disabled?: boolean;
|
664
667
|
};
|
665
668
|
|
@@ -680,8 +683,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
680
683
|
onChangePage: (page: number) => void;
|
681
684
|
onChangePageSize: (size: number) => void;
|
682
685
|
onSort?: (sortField: string | number | symbol) => void;
|
683
|
-
rowsSelected?:
|
684
|
-
onSelect: (newSelectedRowKeys:
|
686
|
+
rowsSelected?: default_3.Key[];
|
687
|
+
onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
|
685
688
|
onRowClick?: (record: T) => void;
|
686
689
|
rowKey?: string | ((record: T) => string);
|
687
690
|
className?: string;
|
@@ -689,7 +692,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
689
692
|
onSave?: (data: T) => void;
|
690
693
|
}
|
691
694
|
|
692
|
-
export declare const Tabs:
|
695
|
+
export declare const Tabs: default_3.FC<TabsProps>;
|
693
696
|
|
694
697
|
export declare type TabsProps = TabsProps_2 & {
|
695
698
|
items: TabItem[];
|
@@ -735,7 +738,7 @@ export declare interface TinyProps extends IAllProps {
|
|
735
738
|
text_patterns?: any;
|
736
739
|
}
|
737
740
|
|
738
|
-
export declare const Tooltip:
|
741
|
+
export declare const Tooltip: default_3.FC<TooltipProps>;
|
739
742
|
|
740
743
|
export declare type TooltipProps = TooltipProps_2;
|
741
744
|
|
@@ -779,13 +782,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
|
|
779
782
|
|
780
783
|
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
781
784
|
filters: InitialFiltersSearch<T>;
|
782
|
-
rowsSelected:
|
783
|
-
setRowsSelected:
|
784
|
-
setFilters:
|
785
|
+
rowsSelected: default_3.Key[];
|
786
|
+
setRowsSelected: default_3.Dispatch<default_3.SetStateAction<default_3.Key[]>>;
|
787
|
+
setFilters: default_3.Dispatch<default_3.SetStateAction<InitialFiltersSearch<T>>>;
|
785
788
|
goToPage: (PageIndex: number) => void;
|
786
789
|
changeRowlimit: (value: number) => void;
|
787
790
|
resetToInitialFilters: () => void;
|
788
|
-
handleCheckBox: (newSelectedRowKeys:
|
791
|
+
handleCheckBox: (newSelectedRowKeys: default_3.Key[]) => void;
|
789
792
|
handleChangePage: (nextPage: number) => void;
|
790
793
|
handleRequestSort: (sortField: string | number | symbol) => void;
|
791
794
|
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
package/types/ui.d.ts
CHANGED
@@ -17,8 +17,8 @@ import { ColProps as ColProps_2 } from 'antd';
|
|
17
17
|
import { ColSize } from 'antd/es/grid';
|
18
18
|
import { Component } from 'react';
|
19
19
|
import { Control } from 'react-hook-form';
|
20
|
-
import { default as default_2 } from '
|
21
|
-
import { default as default_3 } from '
|
20
|
+
import { default as default_2 } from 'antd/es/anchor/AnchorLink';
|
21
|
+
import { default as default_3 } from 'react';
|
22
22
|
import { DefaultOptionType } from 'antd/es/cascader';
|
23
23
|
import { DefaultValues } from 'react-hook-form';
|
24
24
|
import { DividerProps as DividerProps_2 } from 'antd';
|
@@ -86,7 +86,7 @@ export declare const Alert: React.FC<AlertProps>;
|
|
86
86
|
export declare type AlertProps = AlertProps_2;
|
87
87
|
|
88
88
|
export declare const Anchor: typeof Anchor_2 & {
|
89
|
-
Link: typeof
|
89
|
+
Link: typeof default_2;
|
90
90
|
};
|
91
91
|
|
92
92
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
@@ -94,7 +94,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
|
94
94
|
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
95
95
|
|
96
96
|
export declare interface AppfixProps extends AffixProps {
|
97
|
-
children:
|
97
|
+
children: default_3.ReactNode;
|
98
98
|
}
|
99
99
|
|
100
100
|
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
@@ -183,22 +183,23 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
183
183
|
|
184
184
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
185
185
|
|
186
|
-
export declare const BulkAction: ({ quantity,
|
186
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
187
187
|
|
188
188
|
export declare interface BulkActionProps {
|
189
189
|
quantity: number;
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
190
|
+
handleRestore?: () => void;
|
191
|
+
handleSendApproval?: () => void;
|
192
|
+
handleCancelSendApproval?: () => void;
|
193
|
+
handleRefuseApproval?: () => void;
|
194
|
+
handleApproval?: () => void;
|
195
|
+
handleCancelApproval?: () => void;
|
196
196
|
handleDelete?: () => void;
|
197
|
-
|
198
|
-
|
197
|
+
handleActivate?: () => void;
|
198
|
+
handleInActivate?: () => void;
|
199
|
+
status?: number;
|
199
200
|
}
|
200
201
|
|
201
|
-
export declare const Button:
|
202
|
+
export declare const Button: default_3.FC<ButtonProps>;
|
202
203
|
|
203
204
|
export declare type ButtonProps = ButtonProps_2;
|
204
205
|
|
@@ -231,15 +232,17 @@ export declare interface ConfirmModalProps extends ModalProps {
|
|
231
232
|
content: string;
|
232
233
|
titleCancelBtn?: string;
|
233
234
|
titleSubmitBtn?: string;
|
234
|
-
typeIcon:
|
235
|
+
typeIcon: ConfirmModalType;
|
235
236
|
handleCancel?: () => void;
|
236
237
|
handleSubmit?: () => void;
|
237
238
|
}
|
238
239
|
|
239
|
-
export declare
|
240
|
+
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
241
|
+
|
242
|
+
export declare const Container: default_3.FC<ContainerProps>;
|
240
243
|
|
241
244
|
export declare interface ContainerProps {
|
242
|
-
children:
|
245
|
+
children: default_3.ReactNode;
|
243
246
|
size?: TailwindMaxWidth;
|
244
247
|
className?: string;
|
245
248
|
}
|
@@ -280,7 +283,7 @@ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoun
|
|
280
283
|
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
281
284
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
282
285
|
handleReload: () => void;
|
283
|
-
render():
|
286
|
+
render(): default_3.ReactNode;
|
284
287
|
}
|
285
288
|
|
286
289
|
export declare interface ErrorBoundaryProps {
|
@@ -293,7 +296,7 @@ export declare interface ErrorBoundaryState {
|
|
293
296
|
errorInfo: ErrorInfo | null;
|
294
297
|
}
|
295
298
|
|
296
|
-
export declare const ErrorMessage:
|
299
|
+
export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
297
300
|
|
298
301
|
export declare interface ErrorMessageProps {
|
299
302
|
errorMessage?: string;
|
@@ -338,12 +341,12 @@ export declare interface LabelProps {
|
|
338
341
|
required?: boolean;
|
339
342
|
}
|
340
343
|
|
341
|
-
export declare const Layout:
|
342
|
-
Header:
|
343
|
-
Footer:
|
344
|
-
Content:
|
345
|
-
Sider:
|
346
|
-
_InternalSiderContext:
|
344
|
+
export declare const Layout: default_3.FC<LayoutProps> & {
|
345
|
+
Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
346
|
+
Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
347
|
+
Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
|
348
|
+
Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
|
349
|
+
_InternalSiderContext: default_3.Context<SiderContextProps>;
|
347
350
|
};
|
348
351
|
|
349
352
|
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
@@ -431,7 +434,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
431
434
|
setValue?: UseFormSetValue<T>;
|
432
435
|
handleSubmit?: FormEventHandler<any>;
|
433
436
|
reset?: UseFormReset<T>;
|
434
|
-
}) =>
|
437
|
+
}) => default_3.ReactNode;
|
435
438
|
onReset?: () => void;
|
436
439
|
classNamesContainer?: string;
|
437
440
|
classNameWrapperForm?: string;
|
@@ -503,8 +506,8 @@ export declare type SubMenuProps = SubMenuProps_2;
|
|
503
506
|
|
504
507
|
declare type TabItem = {
|
505
508
|
key: string;
|
506
|
-
label:
|
507
|
-
children:
|
509
|
+
label: default_3.ReactNode;
|
510
|
+
children: default_3.ReactNode;
|
508
511
|
disabled?: boolean;
|
509
512
|
};
|
510
513
|
|
@@ -525,8 +528,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
525
528
|
onChangePage: (page: number) => void;
|
526
529
|
onChangePageSize: (size: number) => void;
|
527
530
|
onSort?: (sortField: string | number | symbol) => void;
|
528
|
-
rowsSelected?:
|
529
|
-
onSelect: (newSelectedRowKeys:
|
531
|
+
rowsSelected?: default_3.Key[];
|
532
|
+
onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
|
530
533
|
onRowClick?: (record: T) => void;
|
531
534
|
rowKey?: string | ((record: T) => string);
|
532
535
|
className?: string;
|
@@ -534,7 +537,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
534
537
|
onSave?: (data: T) => void;
|
535
538
|
}
|
536
539
|
|
537
|
-
export declare const Tabs:
|
540
|
+
export declare const Tabs: default_3.FC<TabsProps>;
|
538
541
|
|
539
542
|
export declare type TabsProps = TabsProps_2 & {
|
540
543
|
items: TabItem[];
|
@@ -553,7 +556,7 @@ export declare const Timeline: React.FC<TimelineProps>;
|
|
553
556
|
|
554
557
|
export declare type TimelineProps = TimelineProps_2;
|
555
558
|
|
556
|
-
export declare const Tooltip:
|
559
|
+
export declare const Tooltip: default_3.FC<TooltipProps>;
|
557
560
|
|
558
561
|
export declare type TooltipProps = TooltipProps_2;
|
559
562
|
|