@pnkx-lib/ui 1.9.197 → 1.9.200
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/{bundle-mjs-BBFHkixS.js → bundle-mjs-BME7zF0Z.js} +1 -1
- package/es/chunks/{index.esm-o4O8pXMN.js → index.esm-AaUjBMaK.js} +39 -21
- package/es/chunks/{layout-DnU0VrHH.js → layout-7Xdid6Lv.js} +11 -5
- package/es/fields/CascaderField.js +1 -1
- package/es/fields/DatePicker.js +1 -1
- package/es/fields/Input.js +1 -1
- package/es/fields/PnkxField.js +1 -1
- package/es/fields/Select.js +1 -1
- package/es/fields/SliderRanger.js +1 -1
- package/es/fields/SliderSingle.js +1 -1
- package/es/fields/Switch.js +1 -1
- package/es/fields/Textarea.js +3 -3
- package/es/fields/TinyMCE.js +11 -47
- package/es/ui/CategoryStatus.js +1 -1
- package/es/ui/Container.js +1 -1
- package/es/ui/Heading.js +1 -1
- package/es/ui/Layout.js +1 -1
- package/es/ui/SearchFilterForm.js +1 -1
- package/es/ui/Sidebar.js +2 -2
- package/es/ui/index.js +11 -4
- package/package.json +8 -1
- package/types/components/ui/Table/index.d.ts +3 -1
package/dist/style.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */
|
|
2
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-blue-600:oklch(54.6% .245 262.881);--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-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-3xl:1.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-1{top:calc(var(--spacing)*1)}.right-1{right:calc(var(--spacing)*1)}.bottom-1\/100{bottom:1%}.left-1\/2{left:50%}.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}}.m-auto{margin:auto}.-mx-2{margin-inline:calc(var(--spacing)*-2)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-auto{margin-inline:auto}.\!my-5{margin-block:calc(var(--spacing)*5)!important}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-20{margin-top:calc(var(--spacing)*20)}.mt-\[15px\]{margin-top:15px}.mr-3{margin-right:calc(var(--spacing)*3)}.mr-8{margin-right:calc(var(--spacing)*8)}.\!mb-4{margin-bottom:calc(var(--spacing)*4)!important}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.\!ml-2{margin-left:calc(var(--spacing)*2)!important}.ml-0{margin-left:calc(var(--spacing)*0)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-6{margin-left:calc(var(--spacing)*6)}.ml-10{margin-left:calc(var(--spacing)*10)}.ml-\[-2rem\]{margin-left:-2rem}.ml-\[7\%\]{margin-left:7%}.ml-\[10px\]{margin-left:10px}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.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-20{height:calc(var(--spacing)*20)}.h-\[32px\]{height:32px}.h-\[300px\]{height:300px}.h-\[calc\(100vh-64px\)\]{height:calc(100vh - 64px)}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-17{width:calc(var(--spacing)*17)}.w-20{width:calc(var(--spacing)*20)}.w-\[20\%\]{width:20%}.w-\[54px\]{width:54px}.w-\[60px\]{width:60px}.w-\[250px\]{width:250px}.w-\[255px\]{width:255px}.w-fit{width:fit-content}.w-full{width:100%}.w-lg{width:var(--container-lg)}.w-xl{width:var(--container-xl)}.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-fit{max-width:fit-content}.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)}.min-w-fit{min-width:fit-content}.flex-1{flex:1}.flex-grow{flex-grow:1}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[110\%\]{--tw-translate-y:110%;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-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.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}.items-end-safe{align-items:safe 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-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}: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)))}.gap-x-3{column-gap:calc(var(--spacing)*3)}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}: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)))}.gap-y-5{row-gap:calc(var(--spacing)*5)}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.\!rounded-3xl{border-radius:var(--radius-3xl)!important}.\!rounded-\[8px\]{border-radius:8px!important}.\!rounded-full{border-radius:3.40282e38px!important}.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)}.\!border{border-style:var(--tw-border-style)!important;border-width:1px!important}.border{border-style:var(--tw-border-style);border-width:1px}.border-t-1{border-top-style:var(--tw-border-style);border-top-width:1px}.\!border-b-1{border-bottom-style:var(--tw-border-style)!important;border-bottom-width:1px!important}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.\!border-none{--tw-border-style:none!important;border-style:none!important}.\!border-\[\#007BE5\]{border-color:#007be5!important}.\!border-\[\#BDE3FF\]{border-color:#bde3ff!important}.\!border-\[\#FFCDC9\]{border-color:#ffcdc9!important}.\!border-\[white\]{border-color:#fff!important}.border-\[\#BDE3FF\]{border-color:#bde3ff}.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)}.\!border-t-\[\#F0F0F0\]{border-top-color:#f0f0f0!important}.\!border-b-\[\#F0F0F0\]{border-bottom-color:#f0f0f0!important}.\!bg-\[\#007BE5\]{background-color:#007be5!important}.\!bg-\[\#E5F4FF\]{background-color:#e5f4ff!important}.\!bg-\[\#E7F0FF\]{background-color:#e7f0ff!important}.bg-\[\#007BE5\]{background-color:#007be5}.bg-\[\#27CD7F\]{background-color:#27cd7f}.bg-\[\#722ED1\]{background-color:#722ed1}.bg-\[\#001523\]{background-color:#001523}.bg-\[\#2561ED\]{background-color:#2561ed}.bg-\[\#B2B7C2\]{background-color:#b2b7c2}.bg-\[\#DA9438\]{background-color:#da9438}.bg-\[\#DD4338\]{background-color:#dd4338}.bg-\[\#E7F0FF\]{background-color:#e7f0ff}.bg-\[\#EEEEF0\]{background-color:#eeeef0}.bg-\[\#FFFFFF\]{background-color:#fff}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-white{background-color:var(--color-white)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-4{padding:calc(var(--spacing)*4)}.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-6{padding-inline:calc(var(--spacing)*6)}.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-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.pr-3\.5{padding-right:calc(var(--spacing)*3.5)}.pr-6{padding-right:calc(var(--spacing)*6)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-15{padding-bottom:calc(var(--spacing)*15)}.pb-\[15px\]{padding-bottom:15px}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.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-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\!text-\[12px\]{font-size:12px!important}.text-\[12px\]{font-size:12px}.text-\[14px\]{font-size:14px}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.\!font-light{--tw-font-weight:var(--font-weight-light)!important;font-weight:var(--font-weight-light)!important}.\!font-medium{--tw-font-weight:var(--font-weight-medium)!important;font-weight:var(--font-weight-medium)!important}.font-\[400\]{--tw-font-weight:400;font-weight:400}.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-\[\#4D4D57\]{color:#4d4d57!important}.\!text-\[\#007BE5\]{color:#007be5!important}.\!text-\[\#DD4338\]{color:#dd4338!important}.\!text-\[\#E0E0E0\]{color:#e0e0e0!important}.\!text-\[white\]{color:#fff!important}.text-\[\#5C657D\]{color:#5c657d}.text-\[\#007BE5\]{color:#007be5}.text-\[\#116DFF\]{color:#116dff}.text-\[\#B2B7C2\]{color:#b2b7c2}.text-\[\#FFFFFF\]{color:#fff}.text-black{color:var(--color-black)}.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-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.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)}.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}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:rounded-sm:hover{border-radius:var(--radius-sm)}.hover\:bg-\[\#1B4ACB\]:hover{background-color:#1b4acb}.hover\:bg-\[\#E7F0FF\]:hover{background-color:#e7f0ff}.hover\:bg-\[\#EEEEF0\]:hover{background-color:#eeeef0}.hover\:bg-\[\#F5F6F7\]:hover{background-color:#f5f6f7}.hover\:bg-\[\#FFFFFF\]:hover{background-color:#fff}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:text-\[\#007BE5\]:hover{color:#007be5}.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\:px-6{padding-inline:calc(var(--spacing)*6)}}@media (min-width:48rem){.md\:mt-0{margin-top:calc(var(--spacing)*0)}.md\:flex-row{flex-direction:row}:where(.md\:space-y-0>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*0)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*0)*calc(1 - var(--tw-space-y-reverse)))}:where(.md\: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)))}.md\:text-left{text-align:left}}@media (min-width:64rem){.lg\:px-8{padding-inline:calc(var(--spacing)*8)}}}.scrollbar-hidden::-webkit-scrollbar{display:none}.scrollbar-hidden{-ms-overflow-style:none;scrollbar-width:none}.setting-table-modal div .ant-modal-content{padding:20px 0!important}.setting-table-modal div .ant-modal-header,.setting-table-modal div .ant-modal-footer{padding:0 24px!important}.containerSearchSelect :global(.ant-select-selector){border-radius:100px;border-color:#bde3ff!important}.inputSearchKey :global(.ant-input-clear-icon){color:#e7f0ff}.customBadge :global(.ant-badge-count){color:#4d4d57!important;box-shadow:none!important;background:0 0!important}.customBadge{background-color:#eeeef0!important}.customBadge .ant-badge-count{color:#4d4d57!important;box-shadow:none!important;background:0 0!important}.customBadgeActive{background-color:#bde3ff!important}.customBadgeActive .ant-badge-count{font-weight:500;color:#0f1d40!important;box-shadow:none!important;background:0 0!important}.customContainButtonIcon .ant-btn-icon{height:18px}.ant-table-cell:before{display:none!important}.ant-table-thead .ant-table-cell{font-weight:500;background-color:#d6e6fe!important;border-start-start-radius:0!important;border-start-end-radius:0!important}.ant-table-thead th.ant-table-column-has-sorters:hover{background-color:#d6e6fe}.ant-table-row.table-row-even{background-color:#f7f7f8}.ant-table-row.table-row-odd{background-color:#fff}.ant-table-cell-row-hover{cursor:pointer;background-color:#e7f0ff!important}.ant-table-body{scrollbar-width:auto;scrollbar-color:auto}.ant-table-body::-webkit-scrollbar{width:8px}.ant-table-body::-webkit-scrollbar-track{background-color:#e1e6e6}.ant-table-body::-webkit-scrollbar-thumb{background-color:#a8caff;border-radius:6px}.ant-table-body::-webkit-scrollbar-thumb:hover{background-color:#598cf4;border-radius:6px}.ant-select-outlined.ant-select-multiple .ant-select-selection-item{gap:4px;display:flex;background-color:#bde3ff!important;padding:1px 8px!important}@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}
|
|
@@ -412,7 +412,7 @@ const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
|
|
412
412
|
const fractionRegex = /^\d+\/\d+$/;
|
|
413
413
|
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
414
414
|
const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
|
415
|
-
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
415
|
+
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
|
416
416
|
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
|
|
417
417
|
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
418
418
|
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
@@ -62,15 +62,19 @@ function cloneObject(data) {
|
|
|
62
62
|
return copy;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var isKey = (value) => /^\w*$/.test(value);
|
|
66
66
|
|
|
67
67
|
var isUndefined = (val) => val === undefined;
|
|
68
68
|
|
|
69
|
+
var compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];
|
|
70
|
+
|
|
71
|
+
var stringToPath = (input) => compact(input.replace(/["|']|\]/g, '').split(/\.|\[/));
|
|
72
|
+
|
|
69
73
|
var get = (object, path, defaultValue) => {
|
|
70
74
|
if (!path || !isObject(object)) {
|
|
71
75
|
return defaultValue;
|
|
72
76
|
}
|
|
73
|
-
const result =
|
|
77
|
+
const result = (isKey(path) ? [path] : stringToPath(path)).reduce((result, key) => isNullOrUndefined(result) ? result : result[key], object);
|
|
74
78
|
return isUndefined(result) || result === object
|
|
75
79
|
? isUndefined(object[path])
|
|
76
80
|
? defaultValue
|
|
@@ -80,10 +84,6 @@ var get = (object, path, defaultValue) => {
|
|
|
80
84
|
|
|
81
85
|
var isBoolean = (value) => typeof value === 'boolean';
|
|
82
86
|
|
|
83
|
-
var isKey = (value) => /^\w*$/.test(value);
|
|
84
|
-
|
|
85
|
-
var stringToPath = (input) => compact(input.replace(/["|']|\]/g, '').split(/\.|\[/));
|
|
86
|
-
|
|
87
87
|
var set = (object, path, value) => {
|
|
88
88
|
let index = -1;
|
|
89
89
|
const tempPath = isKey(path) ? [path] : stringToPath(path);
|
|
@@ -132,6 +132,7 @@ const INPUT_VALIDATION_RULES = {
|
|
|
132
132
|
};
|
|
133
133
|
|
|
134
134
|
const HookFormContext = React__default.createContext(null);
|
|
135
|
+
HookFormContext.displayName = 'HookFormContext';
|
|
135
136
|
/**
|
|
136
137
|
* This custom hook allows you to access the form context. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. To be used with {@link FormProvider}.
|
|
137
138
|
*
|
|
@@ -230,7 +231,7 @@ function useFormState(props) {
|
|
|
230
231
|
errors: false,
|
|
231
232
|
});
|
|
232
233
|
useIsomorphicLayoutEffect(() => control._subscribe({
|
|
233
|
-
name
|
|
234
|
+
name,
|
|
234
235
|
formState: _localProxyFormState.current,
|
|
235
236
|
exact,
|
|
236
237
|
callback: (formState) => {
|
|
@@ -283,7 +284,7 @@ function useWatch(props) {
|
|
|
283
284
|
const _defaultValue = React__default.useRef(defaultValue);
|
|
284
285
|
const [value, updateValue] = React__default.useState(control._getWatch(name, _defaultValue.current));
|
|
285
286
|
useIsomorphicLayoutEffect(() => control._subscribe({
|
|
286
|
-
name
|
|
287
|
+
name,
|
|
287
288
|
formState: {
|
|
288
289
|
values: true,
|
|
289
290
|
},
|
|
@@ -380,8 +381,8 @@ function useController(props) {
|
|
|
380
381
|
const field = get(control._fields, name);
|
|
381
382
|
if (field && elm) {
|
|
382
383
|
field._f.ref = {
|
|
383
|
-
focus: () => elm.focus(),
|
|
384
|
-
select: () => elm.select(),
|
|
384
|
+
focus: () => elm.focus && elm.focus(),
|
|
385
|
+
select: () => elm.select && elm.select(),
|
|
385
386
|
setCustomValidity: (message) => elm.setCustomValidity(message),
|
|
386
387
|
reportValidity: () => elm.reportValidity(),
|
|
387
388
|
};
|
|
@@ -843,6 +844,12 @@ function schemaErrorLookup(errors, _fields, name) {
|
|
|
843
844
|
error: foundError,
|
|
844
845
|
};
|
|
845
846
|
}
|
|
847
|
+
if (foundError && foundError.root && foundError.root.type) {
|
|
848
|
+
return {
|
|
849
|
+
name: `${fieldName}.root`,
|
|
850
|
+
error: foundError.root,
|
|
851
|
+
};
|
|
852
|
+
}
|
|
846
853
|
names.pop();
|
|
847
854
|
}
|
|
848
855
|
return {
|
|
@@ -1466,7 +1473,7 @@ function createFormControl(props = {}) {
|
|
|
1466
1473
|
return;
|
|
1467
1474
|
}
|
|
1468
1475
|
const fieldValue = value[fieldKey];
|
|
1469
|
-
const fieldName =
|
|
1476
|
+
const fieldName = name + '.' + fieldKey;
|
|
1470
1477
|
const field = get(_fields, fieldName);
|
|
1471
1478
|
(_names.array.has(name) ||
|
|
1472
1479
|
isObject(fieldValue) ||
|
|
@@ -2065,6 +2072,7 @@ function createFormControl(props = {}) {
|
|
|
2065
2072
|
setError,
|
|
2066
2073
|
_subscribe,
|
|
2067
2074
|
_runSchema,
|
|
2075
|
+
_focusError,
|
|
2068
2076
|
_getWatch,
|
|
2069
2077
|
_getDirty,
|
|
2070
2078
|
_setValid,
|
|
@@ -2185,14 +2193,21 @@ function useForm(props = {}) {
|
|
|
2185
2193
|
: props.defaultValues,
|
|
2186
2194
|
});
|
|
2187
2195
|
if (!_formControl.current) {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
props.defaultValues &&
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
+
if (props.formControl) {
|
|
2197
|
+
_formControl.current = {
|
|
2198
|
+
...props.formControl,
|
|
2199
|
+
formState,
|
|
2200
|
+
};
|
|
2201
|
+
if (props.defaultValues && !isFunction(props.defaultValues)) {
|
|
2202
|
+
props.formControl.reset(props.defaultValues, props.resetOptions);
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
else {
|
|
2206
|
+
const { formControl, ...rest } = createFormControl(props);
|
|
2207
|
+
_formControl.current = {
|
|
2208
|
+
...rest,
|
|
2209
|
+
formState,
|
|
2210
|
+
};
|
|
2196
2211
|
}
|
|
2197
2212
|
}
|
|
2198
2213
|
const control = _formControl.current.control;
|
|
@@ -2218,10 +2233,13 @@ function useForm(props = {}) {
|
|
|
2218
2233
|
if (props.reValidateMode) {
|
|
2219
2234
|
control._options.reValidateMode = props.reValidateMode;
|
|
2220
2235
|
}
|
|
2221
|
-
|
|
2236
|
+
}, [control, props.mode, props.reValidateMode]);
|
|
2237
|
+
React__default.useEffect(() => {
|
|
2238
|
+
if (props.errors) {
|
|
2222
2239
|
control._setErrors(props.errors);
|
|
2240
|
+
control._focusError();
|
|
2223
2241
|
}
|
|
2224
|
-
}, [control, props.errors
|
|
2242
|
+
}, [control, props.errors]);
|
|
2225
2243
|
React__default.useEffect(() => {
|
|
2226
2244
|
props.shouldUnregister &&
|
|
2227
2245
|
control._subjects.state.next({
|
|
@@ -2122,7 +2122,6 @@ function resetWarned() {
|
|
|
2122
2122
|
deprecatedWarnList = null;
|
|
2123
2123
|
resetWarned$1();
|
|
2124
2124
|
}
|
|
2125
|
-
// eslint-disable-next-line import/no-mutable-exports
|
|
2126
2125
|
let warning = noop$1;
|
|
2127
2126
|
if (process.env.NODE_ENV !== 'production') {
|
|
2128
2127
|
warning = (valid, component, message) => {
|
|
@@ -3475,7 +3474,7 @@ function genStyleUtils(config) {
|
|
|
3475
3474
|
};
|
|
3476
3475
|
}
|
|
3477
3476
|
|
|
3478
|
-
const version = '5.
|
|
3477
|
+
const version = '5.26.1';
|
|
3479
3478
|
|
|
3480
3479
|
function isStableColor(color) {
|
|
3481
3480
|
return color >= 0 && color <= 255;
|
|
@@ -4002,7 +4001,12 @@ function MotionProvider(_ref) {
|
|
|
4002
4001
|
}, children);
|
|
4003
4002
|
}
|
|
4004
4003
|
|
|
4004
|
+
const MotionCacheContext = /*#__PURE__*/React.createContext(true);
|
|
4005
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
4006
|
+
MotionCacheContext.displayName = 'MotionCacheContext';
|
|
4007
|
+
}
|
|
4005
4008
|
function MotionWrapper(props) {
|
|
4009
|
+
const parentMotion = React.useContext(MotionCacheContext);
|
|
4006
4010
|
const {
|
|
4007
4011
|
children
|
|
4008
4012
|
} = props;
|
|
@@ -4011,11 +4015,13 @@ function MotionWrapper(props) {
|
|
|
4011
4015
|
motion
|
|
4012
4016
|
} = token;
|
|
4013
4017
|
const needWrapMotionProviderRef = React.useRef(false);
|
|
4014
|
-
needWrapMotionProviderRef.current
|
|
4018
|
+
needWrapMotionProviderRef.current || (needWrapMotionProviderRef.current = parentMotion !== motion);
|
|
4015
4019
|
if (needWrapMotionProviderRef.current) {
|
|
4016
|
-
return /*#__PURE__*/React.createElement(
|
|
4020
|
+
return /*#__PURE__*/React.createElement(MotionCacheContext.Provider, {
|
|
4021
|
+
value: motion
|
|
4022
|
+
}, /*#__PURE__*/React.createElement(MotionProvider, {
|
|
4017
4023
|
motion: motion
|
|
4018
|
-
}, children);
|
|
4024
|
+
}, children));
|
|
4019
4025
|
}
|
|
4020
4026
|
return children;
|
|
4021
4027
|
}
|
|
@@ -3,7 +3,7 @@ import { Cascader as Cascader$1 } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
7
7
|
|
|
8
8
|
const Cascader = (props) => {
|
|
9
9
|
//! State
|
package/es/fields/DatePicker.js
CHANGED
|
@@ -10,7 +10,7 @@ import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-BFTU3MA
|
|
|
10
10
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
11
11
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
12
12
|
import { Label } from '../ui/Label.js';
|
|
13
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
13
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
14
14
|
|
|
15
15
|
function requiredArgs(required, args) {
|
|
16
16
|
if (args.length < required) {
|
package/es/fields/Input.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Input as Input$1 } from 'antd';
|
|
|
4
4
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
5
5
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
6
6
|
import { Label } from '../ui/Label.js';
|
|
7
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
7
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
8
8
|
import { Tooltip } from '../ui/Tooltip.js';
|
|
9
9
|
|
|
10
10
|
/**
|
package/es/fields/PnkxField.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { C as Controller } from '../chunks/index.esm-
|
|
3
|
+
import { C as Controller } from '../chunks/index.esm-AaUjBMaK.js';
|
|
4
4
|
|
|
5
5
|
class PnkxField extends React.PureComponent {
|
|
6
6
|
render() {
|
package/es/fields/Select.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Select as Select$1 } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
7
7
|
|
|
8
8
|
const Select = (props) => {
|
|
9
9
|
//! State
|
|
@@ -3,7 +3,7 @@ import { Slider } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
7
7
|
|
|
8
8
|
const SliderRange = (props) => {
|
|
9
9
|
//! State
|
|
@@ -3,7 +3,7 @@ import { Slider } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
7
7
|
|
|
8
8
|
const SliderSingle = (props) => {
|
|
9
9
|
//! State
|
package/es/fields/Switch.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Switch as Switch$1 } from 'antd';
|
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
5
5
|
import { Label } from '../ui/Label.js';
|
|
6
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
7
7
|
|
|
8
8
|
const Switch = (props) => {
|
|
9
9
|
//! State
|
package/es/fields/Textarea.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { g as get } from '../chunks/get-C880miVG.js';
|
|
4
4
|
import { Input } from 'antd';
|
|
5
5
|
import { ErrorMessage } from '../ui/ErrorMessage.js';
|
|
6
6
|
import { Label } from '../ui/Label.js';
|
|
7
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
7
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
8
8
|
|
|
9
9
|
const { TextArea } = Input;
|
|
10
10
|
const Textarea = forwardRef(
|
|
@@ -37,7 +37,7 @@ const Textarea = forwardRef(
|
|
|
37
37
|
);
|
|
38
38
|
};
|
|
39
39
|
//! Render
|
|
40
|
-
return /* @__PURE__ */ jsxs(
|
|
40
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
41
41
|
label && /* @__PURE__ */ jsx(Label, { label, required }),
|
|
42
42
|
/* @__PURE__ */ jsx(
|
|
43
43
|
TextArea,
|
package/es/fields/TinyMCE.js
CHANGED
|
@@ -1301,45 +1301,6 @@ var getTinymce = function (view) {
|
|
|
1301
1301
|
return global && global.tinymce ? global.tinymce : null;
|
|
1302
1302
|
};
|
|
1303
1303
|
|
|
1304
|
-
const toInt = (str) => parseInt(str, 10);
|
|
1305
|
-
const cmp = (a, b) => {
|
|
1306
|
-
const delta = a - b;
|
|
1307
|
-
if (delta === 0) {
|
|
1308
|
-
return 0 /* Comparison.EQ */;
|
|
1309
|
-
}
|
|
1310
|
-
return delta > 0 ? 1 /* Comparison.GT */ : -1 /* Comparison.LT */;
|
|
1311
|
-
};
|
|
1312
|
-
const nu = (major, minor, patch) => ({ major, minor, patch });
|
|
1313
|
-
const parse = (versionString) => {
|
|
1314
|
-
const parts = /([0-9]+)\.([0-9]+)\.([0-9]+)(?:(\-.+)?)/.exec(versionString);
|
|
1315
|
-
return parts ? nu(toInt(parts[1]), toInt(parts[2]), toInt(parts[3])) : nu(0, 0, 0);
|
|
1316
|
-
};
|
|
1317
|
-
const compare = (version1, version2) => {
|
|
1318
|
-
const cmp1 = cmp(version1.major, version2.major);
|
|
1319
|
-
if (cmp1 !== 0 /* Comparison.EQ */) {
|
|
1320
|
-
return cmp1;
|
|
1321
|
-
}
|
|
1322
|
-
const cmp2 = cmp(version1.minor, version2.minor);
|
|
1323
|
-
if (cmp2 !== 0 /* Comparison.EQ */) {
|
|
1324
|
-
return cmp2;
|
|
1325
|
-
}
|
|
1326
|
-
const cmp3 = cmp(version1.patch, version2.patch);
|
|
1327
|
-
if (cmp3 !== 0 /* Comparison.EQ */) {
|
|
1328
|
-
return cmp3;
|
|
1329
|
-
}
|
|
1330
|
-
return 0 /* Comparison.EQ */;
|
|
1331
|
-
};
|
|
1332
|
-
|
|
1333
|
-
// Creates a semver string out of tinymce major and minor properties this also handles
|
|
1334
|
-
// the pre semver case with 3.x versions of tinymce having a extra dot 1.2.3.4 we simply
|
|
1335
|
-
// ignore the extra dot and normalize that to proper semver
|
|
1336
|
-
const createSemVer = (tinymce) => {
|
|
1337
|
-
const semver = [tinymce.majorVersion, tinymce.minorVersion].join('.');
|
|
1338
|
-
return semver.split('.').slice(0, 3).join('.');
|
|
1339
|
-
};
|
|
1340
|
-
const getVersion = (tinymce) => parse(createSemVer(tinymce));
|
|
1341
|
-
const isLessThan = (tinymce, version) => !tinymce ? false : compare(getVersion(tinymce), parse(version)) === -1 /* Semver.Comparison.LT */;
|
|
1342
|
-
|
|
1343
1304
|
var isFunction = function (x) { return typeof x === 'function'; };
|
|
1344
1305
|
var isEventProp = function (name) { return name in eventPropTypes; };
|
|
1345
1306
|
var eventAttrToEventName = function (attrName) { return attrName.substr(2); };
|
|
@@ -1416,10 +1377,7 @@ var getTinymceOrError = function (view) {
|
|
|
1416
1377
|
}
|
|
1417
1378
|
return tinymce;
|
|
1418
1379
|
};
|
|
1419
|
-
var isDisabledOptionSupported = function (
|
|
1420
|
-
var tinymce = getTinymceOrError(view);
|
|
1421
|
-
return !isLessThan(tinymce, '7.6.0');
|
|
1422
|
-
};
|
|
1380
|
+
var isDisabledOptionSupported = function (editor) { return editor.options && editor.options.isRegistered('disabled'); };
|
|
1423
1381
|
|
|
1424
1382
|
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
1425
1383
|
__assign$1 = Object.assign || function(t) {
|
|
@@ -1685,9 +1643,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1685
1643
|
return;
|
|
1686
1644
|
}
|
|
1687
1645
|
var tinymce = getTinymceOrError(_this.view);
|
|
1688
|
-
var finalInit = __assign(__assign(__assign(__assign(
|
|
1689
|
-
? { disabled: _this.props.disabled, readonly: _this.props.readonly }
|
|
1690
|
-
: { readonly: _this.props.disabled || _this.props.readonly }), { inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
|
|
1646
|
+
var finalInit = __assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target, disabled: _this.props.disabled, readonly: _this.props.readonly, inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
|
|
1691
1647
|
_this.editor = editor;
|
|
1692
1648
|
_this.bindHandlers({});
|
|
1693
1649
|
// When running in inline mode the editor gets the initial value
|
|
@@ -1704,6 +1660,14 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1704
1660
|
if (_this.props.init && isFunction(_this.props.init.setup)) {
|
|
1705
1661
|
_this.props.init.setup(editor);
|
|
1706
1662
|
}
|
|
1663
|
+
if (_this.props.disabled) {
|
|
1664
|
+
if (isDisabledOptionSupported(_this.editor)) {
|
|
1665
|
+
_this.editor.options.set('disabled', _this.props.disabled);
|
|
1666
|
+
}
|
|
1667
|
+
else {
|
|
1668
|
+
_this.editor.mode.set('readonly');
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1707
1671
|
}, init_instance_callback: function (editor) {
|
|
1708
1672
|
var _a;
|
|
1709
1673
|
// check for changes that happened since tinymce.init() was called
|
|
@@ -1799,7 +1763,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1799
1763
|
setMode(this.editor, readonly ? 'readonly' : 'design');
|
|
1800
1764
|
}
|
|
1801
1765
|
if (this.props.disabled !== prevProps.disabled) {
|
|
1802
|
-
if (isDisabledOptionSupported(this.
|
|
1766
|
+
if (isDisabledOptionSupported(this.editor)) {
|
|
1803
1767
|
this.editor.options.set('disabled', this.props.disabled);
|
|
1804
1768
|
}
|
|
1805
1769
|
else {
|
package/es/ui/CategoryStatus.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
2
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
3
3
|
|
|
4
4
|
var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
|
|
5
5
|
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DRAFT"] = 0] = "DRAFT";
|
package/es/ui/Container.js
CHANGED
package/es/ui/Heading.js
CHANGED
package/es/ui/Layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { S as SiderContext, a as Sider, C as Content, F as Footer, H as Header, L as Layout$1 } from '../chunks/layout-
|
|
2
|
+
import { S as SiderContext, a as Sider, C as Content, F as Footer, H as Header, L as Layout$1 } from '../chunks/layout-7Xdid6Lv.js';
|
|
3
3
|
|
|
4
4
|
const LayoutComponent = ({
|
|
5
5
|
layoutClassName,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { u as useForm } from '../chunks/index.esm-
|
|
2
|
+
import { u as useForm } from '../chunks/index.esm-AaUjBMaK.js';
|
|
3
3
|
import { Button } from './Button.js';
|
|
4
4
|
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-ZIq9SabE.js';
|
|
5
5
|
import * as React from 'react';
|
package/es/ui/Sidebar.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { useNavigate, useLocation } from 'react-router';
|
|
5
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
6
|
-
import { H as Header } from '../chunks/layout-
|
|
5
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
6
|
+
import { H as Header } from '../chunks/layout-7Xdid6Lv.js';
|
|
7
7
|
import { AutoComplete, Divider, Dropdown, Flex } from 'antd';
|
|
8
8
|
import { Input } from '../fields/Input.js';
|
|
9
9
|
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-ZIq9SabE.js';
|
package/es/ui/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
6
6
|
import React__default, { useLayoutEffect, useEffect, useRef, useMemo, useCallback, useState, memo, useReducer, createContext, useContext } from 'react';
|
|
7
7
|
import { Table as Table$1 } from 'antd';
|
|
8
8
|
import { Modal } from './Modal.js';
|
|
9
|
-
import { u as useForm } from '../chunks/index.esm-
|
|
9
|
+
import { u as useForm } from '../chunks/index.esm-AaUjBMaK.js';
|
|
10
10
|
import { PnkxField } from '../fields/PnkxField.js';
|
|
11
11
|
import { Checkbox } from '../fields/Checkbox.js';
|
|
12
12
|
import { unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
13
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
13
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
14
14
|
import { Badge } from './Badge.js';
|
|
15
15
|
export { typeColorMap } from './Badge.js';
|
|
16
16
|
import { Heading } from './Heading.js';
|
|
@@ -5050,6 +5050,8 @@ const Table = ({
|
|
|
5050
5050
|
setFilters,
|
|
5051
5051
|
noBreadcum,
|
|
5052
5052
|
bulkActionHandlers,
|
|
5053
|
+
size = "small",
|
|
5054
|
+
ellipsisAllColumn = true,
|
|
5053
5055
|
...rest
|
|
5054
5056
|
}) => {
|
|
5055
5057
|
const status = filters?.status;
|
|
@@ -5076,6 +5078,10 @@ const Table = ({
|
|
|
5076
5078
|
disabled: status === TypeStatusTable.ALL
|
|
5077
5079
|
})
|
|
5078
5080
|
};
|
|
5081
|
+
const ellipsisColumns = columns.map((column) => ({
|
|
5082
|
+
...column,
|
|
5083
|
+
ellipsis: column?.ellipsis !== void 0 ? column?.ellipsis : ellipsisAllColumn
|
|
5084
|
+
}));
|
|
5079
5085
|
const startIndex = (filters.page - 1) * filters.size;
|
|
5080
5086
|
const columnsWithIndex = showIndexColumn ? [
|
|
5081
5087
|
{
|
|
@@ -5086,8 +5092,8 @@ const Table = ({
|
|
|
5086
5092
|
align: "center",
|
|
5087
5093
|
render: (_, __, index) => startIndex + index + 1
|
|
5088
5094
|
},
|
|
5089
|
-
...
|
|
5090
|
-
] :
|
|
5095
|
+
...ellipsisColumns
|
|
5096
|
+
] : ellipsisColumns;
|
|
5091
5097
|
//! Function
|
|
5092
5098
|
useEffect(() => {
|
|
5093
5099
|
setData(Array.isArray(dataSource) ? dataSource : []);
|
|
@@ -5141,6 +5147,7 @@ const Table = ({
|
|
|
5141
5147
|
emptyText: /* @__PURE__ */ jsx(EmptyTable, {})
|
|
5142
5148
|
},
|
|
5143
5149
|
rowClassName: (_, index) => `table-row-${index % 2 === 0 ? "even" : "odd"}`,
|
|
5150
|
+
size,
|
|
5144
5151
|
...rest
|
|
5145
5152
|
}
|
|
5146
5153
|
),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnkx-lib/ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.9.
|
|
4
|
+
"version": "1.9.200",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./es/index.js",
|
|
7
7
|
"module": "./es/index.js",
|
|
@@ -61,6 +61,9 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
+
"config": {
|
|
65
|
+
"version-git-message": "chore(release): bump version to %s"
|
|
66
|
+
},
|
|
64
67
|
"scripts": {
|
|
65
68
|
"dev": "vite dev --port 3001",
|
|
66
69
|
"storybook": "storybook dev -p 6006",
|
|
@@ -73,6 +76,9 @@
|
|
|
73
76
|
"build-storybook": "storybook build",
|
|
74
77
|
"deploy": "rm -rf storybook-static && storybook build && vercel --prod",
|
|
75
78
|
"clean": "rm -rf types es dist",
|
|
79
|
+
"preversion": "npm run clean && npm run build",
|
|
80
|
+
"version": "git add -A",
|
|
81
|
+
"postversion": "git push && git push --tags",
|
|
76
82
|
"release:patch": "npm run clean && npm version patch -m \"chore(release): bump version to %s\" && npm run build && npm publish",
|
|
77
83
|
"release:minor": "npm run clean && npm version minor && npm run build && npm publish",
|
|
78
84
|
"release:major": "npm run clean && npm version major && npm run build && npm publish"
|
|
@@ -137,6 +143,7 @@
|
|
|
137
143
|
"@pnkx-lib/core": "^1.1.66",
|
|
138
144
|
"@pnkx-lib/icon": "^0.0.35",
|
|
139
145
|
"@tailwindcss/cli": "^4.1.6",
|
|
146
|
+
"@tanstack/react-query": "^5.80.7",
|
|
140
147
|
"@tinymce/miniature": "^6.0.0",
|
|
141
148
|
"@tinymce/tinymce-react": "^6.0.0",
|
|
142
149
|
"@vitejs/plugin-react-swc": "^3.10.0",
|
|
@@ -39,6 +39,8 @@ export interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
|
|
39
39
|
setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
|
|
40
40
|
noBreadcum?: boolean;
|
|
41
41
|
bulkActionHandlers?: BulkActionHandlers;
|
|
42
|
+
size?: "large" | "middle" | "small";
|
|
43
|
+
ellipsisAllColumn?: boolean;
|
|
42
44
|
}
|
|
43
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, noBreadcum, bulkActionHandlers, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, noBreadcum, bulkActionHandlers, size, ellipsisAllColumn, ...rest }: TableCommonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
44
46
|
export {};
|