@konoma-development/react-components 0.2.1 → 0.2.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/@konoma-development/react-components.js +314 -183
- package/dist/@konoma-development/react-components.js.map +1 -1
- package/dist/components/form/checkbox.d.ts +1 -1
- package/dist/components/form/checkboxList.d.ts +1 -1
- package/dist/components/form/form.d.ts +2 -1
- package/dist/components/form/input.d.ts +1 -1
- package/dist/components/form/phoneInput.d.ts +1 -1
- package/dist/components/form/radiobuttonGroup.d.ts +1 -1
- package/dist/components/form/select.d.ts +1 -1
- package/dist/components/form/tagList.d.ts +1 -1
- package/dist/components/form/textarea.d.ts +1 -1
- package/dist/components/form/types.d.ts +5 -1
- package/dist/components/form/validators.d.ts +2 -2
- package/dist/components/table/pagination.d.ts +2 -1
- package/dist/components/table/table.d.ts +2 -1
- package/dist/components/ui/button.d.ts +3 -1
- package/dist/components/ui/icon.d.ts +2 -1
- package/dist/components/ui/modal.d.ts +2 -1
- package/dist/components/ui/tabs.d.ts +2 -1
- package/dist/components/ui/tag.d.ts +2 -1
- package/dist/eslint.config.d.ts +2 -1174
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function () {
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
try{if(typeof document != 'undefined'){var elementStyle = document.createElement('style');elementStyle.appendChild(document.createTextNode("/*! tailwindcss v4.1.10 | MIT License | https://tailwindcss.com */\n@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-divide-y-reverse:0;--tw-border-style:solid;--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-outline-style:solid;--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}}}@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-gray-200:oklch(92.8% .006 264.531);--color-black:#000;--color-white:#fff;--spacing:.25rem;--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);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--animate-spin:spin 1s linear infinite;--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}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentcolor)}::file-selector-button{border-color:var(--color-gray-200,currentcolor)}}@layer components;@layer utilities{#app .pointer-events-none{pointer-events:none}#app .visible{visibility:visible}#app .absolute{position:absolute}#app .fixed{position:fixed}#app .relative{position:relative}#app .sticky{position:sticky}#app .inset-0{inset:calc(var(--spacing)*0)}#app .top-0{top:calc(var(--spacing)*0)}#app .top-\\[5px\\]{top:5px}#app .right-0{right:calc(var(--spacing)*0)}#app .right-3{right:calc(var(--spacing)*3)}#app .right-4{right:calc(var(--spacing)*4)}#app .-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}#app .bottom-0{bottom:calc(var(--spacing)*0)}#app .bottom-4{bottom:calc(var(--spacing)*4)}#app .left-0{left:calc(var(--spacing)*0)}#app .left-3{left:calc(var(--spacing)*3)}#app .left-\\[5px\\]{left:5px}#app .z-1{z-index:1}#app .z-10{z-index:10}#app .z-20{z-index:20}#app .my-auto{margin-block:auto}#app .mt-3{margin-top:calc(var(--spacing)*3)}#app .ml-2{margin-left:calc(var(--spacing)*2)}#app .flex{display:flex}#app .grid{display:grid}#app .hidden{display:none}#app .inline-flex{display:inline-flex}#app .h-0{height:calc(var(--spacing)*0)}#app .h-0\\.5{height:calc(var(--spacing)*.5)}#app .h-1\\.5{height:calc(var(--spacing)*1.5)}#app .h-3{height:calc(var(--spacing)*3)}#app .h-4{height:calc(var(--spacing)*4)}#app .h-5{height:calc(var(--spacing)*5)}#app .h-6{height:calc(var(--spacing)*6)}#app .h-8{height:calc(var(--spacing)*8)}#app .h-10{height:calc(var(--spacing)*10)}#app .h-12{height:calc(var(--spacing)*12)}#app .h-14{height:calc(var(--spacing)*14)}#app .h-16{height:calc(var(--spacing)*16)}#app .h-24{height:calc(var(--spacing)*24)}#app .h-auto{height:auto}#app .h-fit{height:fit-content}#app .h-full{height:100%}#app .h-px{height:1px}#app .max-h-100{max-height:calc(var(--spacing)*100)}#app .max-h-full{max-height:100%}#app .min-h-10{min-height:calc(var(--spacing)*10)}#app .w-0{width:calc(var(--spacing)*0)}#app .w-1\\.5{width:calc(var(--spacing)*1.5)}#app .w-3{width:calc(var(--spacing)*3)}#app .w-4{width:calc(var(--spacing)*4)}#app .w-5{width:calc(var(--spacing)*5)}#app .w-6{width:calc(var(--spacing)*6)}#app .w-8{width:calc(var(--spacing)*8)}#app .w-16{width:calc(var(--spacing)*16)}#app .w-18{width:calc(var(--spacing)*18)}#app .w-48{width:calc(var(--spacing)*48)}#app .w-full{width:100%}#app .max-w-full{max-width:100%}#app .min-w-4{min-width:calc(var(--spacing)*4)}#app .grow{flex-grow:1}#app .animate-spin{animation:var(--animate-spin)}#app .cursor-not-allowed{cursor:not-allowed}#app .cursor-pointer{cursor:pointer}#app .cursor-row-resize{cursor:row-resize}#app .cursor-text{cursor:text}#app .resize{resize:both}#app .resize-none{resize:none}#app .appearance-none{appearance:none}#app .flex-col{flex-direction:column}#app .flex-col-reverse{flex-direction:column-reverse}#app .flex-row{flex-direction:row}#app .flex-row-reverse{flex-direction:row-reverse}#app .flex-wrap{flex-wrap:wrap}#app .items-center{align-items:center}#app .items-start{align-items:flex-start}#app .justify-between{justify-content:space-between}#app .justify-center{justify-content:center}#app .justify-end{justify-content:flex-end}#app .justify-start{justify-content:flex-start}#app .gap-1{gap:calc(var(--spacing)*1)}#app .gap-2{gap:calc(var(--spacing)*2)}#app .gap-4{gap:calc(var(--spacing)*4)}#app .gap-5{gap:calc(var(--spacing)*5)}#app .gap-10{gap:calc(var(--spacing)*10)}:where(#app .divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}#app .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#app .overflow-x-auto{overflow-x:auto}#app .overflow-y-auto{overflow-y:auto}#app .rounded-full{border-radius:3.40282e38px}#app .rounded-krc-button{border-radius:var(--krc-button-borderRadius,1.5rem)}#app .rounded-krc-checkbox{border-radius:var(--krc-checkbox-borderRadius,.25rem)}#app .rounded-krc-input{border-radius:var(--krc-input-borderRadius,1.5rem)}#app .rounded-krc-modal{border-radius:var(--krc-modal-borderRadius,.5rem)}#app .rounded-krc-phone-input{border-radius:var(--krc-phoneInput-borderRadius,1.5rem)}#app .rounded-krc-radiobutton-group{border-radius:var(--krc-radiobuttonGroup-borderRadius,.5rem)}#app .rounded-krc-select{border-radius:var(--krc-select-borderRadius,1.5rem)}#app .rounded-krc-table{border-radius:var(--krc-table-borderRadius,1rem)}#app .rounded-krc-table-column-chooser{border-radius:var(--krc-tableColumnChooser-borderRadius,.375rem)}#app .rounded-krc-tag{border-radius:var(--krc-tag-borderRadius,.75rem)}#app .rounded-krc-tag-list{border-radius:var(--krc-tagList-borderRadius,1.5rem)}#app .rounded-krc-tag-list-add{border-radius:var(--krc-tagListAdd-borderRadius,.75rem)}#app .rounded-krc-textarea{border-radius:var(--krc-textarea-borderRadius,1rem)}#app .rounded-md{border-radius:var(--radius-md)}#app .rounded-t-krc-modal{border-top-left-radius:var(--krc-modal-borderRadius,.5rem);border-top-right-radius:var(--krc-modal-borderRadius,.5rem)}#app .rounded-t-krc-table{border-top-left-radius:var(--krc-table-borderRadius,1rem);border-top-right-radius:var(--krc-table-borderRadius,1rem)}#app .rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}#app .rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}#app .rounded-b-krc-modal{border-bottom-right-radius:var(--krc-modal-borderRadius,.5rem);border-bottom-left-radius:var(--krc-modal-borderRadius,.5rem)}#app .rounded-b-krc-table{border-bottom-right-radius:var(--krc-table-borderRadius,1rem);border-bottom-left-radius:var(--krc-table-borderRadius,1rem)}#app .border{border-style:var(--tw-border-style);border-width:1px}#app .border-r{border-right-style:var(--tw-border-style);border-right-width:1px}#app .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#app .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#app .border-none{--tw-border-style:none;border-style:none}#app .bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){#app .bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}#app .bg-krc-table-header{background-color:var(--krc-table-header-backgroundColor,#f9fafb)}#app .bg-white{background-color:var(--color-white)}#app .fill-white{fill:var(--color-white)}#app .p-2{padding:calc(var(--spacing)*2)}#app .p-4{padding:calc(var(--spacing)*4)}#app .px-1{padding-inline:calc(var(--spacing)*1)}#app .px-3{padding-inline:calc(var(--spacing)*3)}#app .px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}#app .px-4{padding-inline:calc(var(--spacing)*4)}#app .px-6{padding-inline:calc(var(--spacing)*6)}#app .py-0{padding-block:calc(var(--spacing)*0)}#app .py-1{padding-block:calc(var(--spacing)*1)}#app .py-2{padding-block:calc(var(--spacing)*2)}#app .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}#app .py-3{padding-block:calc(var(--spacing)*3)}#app .pt-4{padding-top:calc(var(--spacing)*4)}#app .pr-0{padding-right:calc(var(--spacing)*0)}#app .pr-10{padding-right:calc(var(--spacing)*10)}#app .pr-12{padding-right:calc(var(--spacing)*12)}#app .pb-2{padding-bottom:calc(var(--spacing)*2)}#app .pb-4{padding-bottom:calc(var(--spacing)*4)}#app .pl-0{padding-left:calc(var(--spacing)*0)}#app .pl-1{padding-left:calc(var(--spacing)*1)}#app .pl-10{padding-left:calc(var(--spacing)*10)}#app .pl-11{padding-left:calc(var(--spacing)*11)}#app .pl-13{padding-left:calc(var(--spacing)*13)}#app .pl-16{padding-left:calc(var(--spacing)*16)}#app .text-center{text-align:center}#app .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}#app .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#app .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#app .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#app .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}#app .text-white{color:var(--color-white)}#app .shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px 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)}#app .shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .shadow-sm{--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)}#app .ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){#app .outline-hidden{outline-offset:2px;outline:2px solid #0000}}#app .outline-1{outline-style:var(--tw-outline-style);outline-width:1px}#app .outline-offset-2{outline-offset:2px}#app .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,)}#app .outline-solid{--tw-outline-style:solid;outline-style:solid}#app .not-disabled\\:bg-white:not(:disabled){background-color:var(--color-white)}#app .group-active\\:outline-solid:is(:where(.group):active *){--tw-outline-style:solid;outline-style:solid}#app .placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#app .first\\:grow:first-child{flex-grow:1}#app .first\\:rounded-tl-krc-table:first-child{border-top-left-radius:var(--krc-table-borderRadius,1rem)}#app .last\\:rounded-tr-krc-table:last-child{border-top-right-radius:var(--krc-table-borderRadius,1rem)}#app .last\\:rounded-b-krc-table:last-child{border-bottom-right-radius:var(--krc-table-borderRadius,1rem);border-bottom-left-radius:var(--krc-table-borderRadius,1rem)}#app .focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}#app .focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){#app .focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}#app .disabled\\:pointer-events-none:disabled{pointer-events:none}#app .disabled\\:\\!cursor-not-allowed:disabled{cursor:not-allowed!important}#app .disabled\\:\\!opacity-50:disabled{opacity:.5!important}#app .disabled\\:\\!shadow-none:disabled{--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}#app .disabled\\:\\!ring-0:disabled{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)!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}#app .has-focus\\:ring-2:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@keyframes spin{to{transform:rotate(360deg)}}"));document.head.appendChild(elementStyle);}}catch(e){console.error('vite-plugin-css-injected-by-js', e);}
|
|
4
|
+
try{if(typeof document != 'undefined'){var elementStyle = document.createElement('style');elementStyle.appendChild(document.createTextNode("/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */\n@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-divide-y-reverse:0;--tw-border-style:solid;--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-outline-style:solid;--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}}}@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-gray-200:oklch(92.8% .006 264.531);--color-black:#000;--color-white:#fff;--spacing:.25rem;--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);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--animate-spin:spin 1s linear infinite;--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}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*,:after,:before,::backdrop{border-color:var(--color-gray-200,currentcolor)}::file-selector-button{border-color:var(--color-gray-200,currentcolor)}}@layer components;@layer utilities{#app .pointer-events-none{pointer-events:none}#app .visible{visibility:visible}#app .absolute{position:absolute}#app .fixed{position:fixed}#app .relative{position:relative}#app .sticky{position:sticky}#app .inset-0{inset:calc(var(--spacing)*0)}#app .top-0{top:calc(var(--spacing)*0)}#app .top-\\[5px\\]{top:5px}#app .right-0{right:calc(var(--spacing)*0)}#app .right-3{right:calc(var(--spacing)*3)}#app .right-4{right:calc(var(--spacing)*4)}#app .-bottom-0\\.5{bottom:calc(var(--spacing)*-.5)}#app .bottom-0{bottom:calc(var(--spacing)*0)}#app .bottom-4{bottom:calc(var(--spacing)*4)}#app .left-0{left:calc(var(--spacing)*0)}#app .left-3{left:calc(var(--spacing)*3)}#app .left-\\[5px\\]{left:5px}#app .z-1{z-index:1}#app .z-10{z-index:10}#app .z-20{z-index:20}#app .my-auto{margin-block:auto}#app .-mt-4{margin-top:calc(var(--spacing)*-4)}#app .mt-3{margin-top:calc(var(--spacing)*3)}#app .ml-2{margin-left:calc(var(--spacing)*2)}#app .flex{display:flex}#app .grid{display:grid}#app .hidden{display:none}#app .inline-flex{display:inline-flex}#app .h-0{height:calc(var(--spacing)*0)}#app .h-0\\.5{height:calc(var(--spacing)*.5)}#app .h-1\\.5{height:calc(var(--spacing)*1.5)}#app .h-3{height:calc(var(--spacing)*3)}#app .h-4{height:calc(var(--spacing)*4)}#app .h-5{height:calc(var(--spacing)*5)}#app .h-6{height:calc(var(--spacing)*6)}#app .h-8{height:calc(var(--spacing)*8)}#app .h-10{height:calc(var(--spacing)*10)}#app .h-12{height:calc(var(--spacing)*12)}#app .h-14{height:calc(var(--spacing)*14)}#app .h-16{height:calc(var(--spacing)*16)}#app .h-24{height:calc(var(--spacing)*24)}#app .h-auto{height:auto}#app .h-fit{height:fit-content}#app .h-full{height:100%}#app .h-px{height:1px}#app .max-h-100{max-height:calc(var(--spacing)*100)}#app .max-h-full{max-height:100%}#app .min-h-10{min-height:calc(var(--spacing)*10)}#app .w-0{width:calc(var(--spacing)*0)}#app .w-1\\.5{width:calc(var(--spacing)*1.5)}#app .w-3{width:calc(var(--spacing)*3)}#app .w-4{width:calc(var(--spacing)*4)}#app .w-5{width:calc(var(--spacing)*5)}#app .w-6{width:calc(var(--spacing)*6)}#app .w-8{width:calc(var(--spacing)*8)}#app .w-16{width:calc(var(--spacing)*16)}#app .w-18{width:calc(var(--spacing)*18)}#app .w-48{width:calc(var(--spacing)*48)}#app .w-full{width:100%}#app .max-w-full{max-width:100%}#app .min-w-4{min-width:calc(var(--spacing)*4)}#app .grow{flex-grow:1}#app .animate-spin{animation:var(--animate-spin)}#app .cursor-not-allowed{cursor:not-allowed}#app .cursor-pointer{cursor:pointer}#app .cursor-row-resize{cursor:row-resize}#app .cursor-text{cursor:text}#app .resize{resize:both}#app .resize-none{resize:none}#app .appearance-none{appearance:none}#app .flex-col{flex-direction:column}#app .flex-col-reverse{flex-direction:column-reverse}#app .flex-row{flex-direction:row}#app .flex-row-reverse{flex-direction:row-reverse}#app .flex-wrap{flex-wrap:wrap}#app .items-center{align-items:center}#app .items-start{align-items:flex-start}#app .justify-between{justify-content:space-between}#app .justify-center{justify-content:center}#app .justify-end{justify-content:flex-end}#app .justify-start{justify-content:flex-start}#app .gap-1{gap:calc(var(--spacing)*1)}#app .gap-2{gap:calc(var(--spacing)*2)}#app .gap-4{gap:calc(var(--spacing)*4)}#app .gap-5{gap:calc(var(--spacing)*5)}#app .gap-10{gap:calc(var(--spacing)*10)}:where(#app .divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px*var(--tw-divide-y-reverse));border-bottom-width:calc(1px*calc(1 - var(--tw-divide-y-reverse)))}#app .truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#app .overflow-x-auto{overflow-x:auto}#app .overflow-y-auto{overflow-y:auto}#app .rounded-full{border-radius:3.40282e38px}#app .rounded-krc-button{border-radius:var(--krc-button-borderRadius,1.5rem)}#app .rounded-krc-checkbox{border-radius:var(--krc-checkbox-borderRadius,.25rem)}#app .rounded-krc-input{border-radius:var(--krc-input-borderRadius,1.5rem)}#app .rounded-krc-modal{border-radius:var(--krc-modal-borderRadius,.5rem)}#app .rounded-krc-phone-input{border-radius:var(--krc-phoneInput-borderRadius,1.5rem)}#app .rounded-krc-radiobutton-group{border-radius:var(--krc-radiobuttonGroup-borderRadius,.5rem)}#app .rounded-krc-select{border-radius:var(--krc-select-borderRadius,1.5rem)}#app .rounded-krc-table{border-radius:var(--krc-table-borderRadius,1rem)}#app .rounded-krc-table-column-chooser{border-radius:var(--krc-tableColumnChooser-borderRadius,.375rem)}#app .rounded-krc-tag{border-radius:var(--krc-tag-borderRadius,.75rem)}#app .rounded-krc-tag-list{border-radius:var(--krc-tagList-borderRadius,1.5rem)}#app .rounded-krc-tag-list-add{border-radius:var(--krc-tagListAdd-borderRadius,.75rem)}#app .rounded-krc-textarea{border-radius:var(--krc-textarea-borderRadius,1rem)}#app .rounded-md{border-radius:var(--radius-md)}#app .rounded-t-krc-modal{border-top-left-radius:var(--krc-modal-borderRadius,.5rem);border-top-right-radius:var(--krc-modal-borderRadius,.5rem)}#app .rounded-t-krc-table{border-top-left-radius:var(--krc-table-borderRadius,1rem);border-top-right-radius:var(--krc-table-borderRadius,1rem)}#app .rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}#app .rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}#app .rounded-b-krc-modal{border-bottom-right-radius:var(--krc-modal-borderRadius,.5rem);border-bottom-left-radius:var(--krc-modal-borderRadius,.5rem)}#app .rounded-b-krc-table{border-bottom-right-radius:var(--krc-table-borderRadius,1rem);border-bottom-left-radius:var(--krc-table-borderRadius,1rem)}#app .border{border-style:var(--tw-border-style);border-width:1px}#app .border-r{border-right-style:var(--tw-border-style);border-right-width:1px}#app .border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}#app .border-l{border-left-style:var(--tw-border-style);border-left-width:1px}#app .border-none{--tw-border-style:none;border-style:none}#app .bg-black\\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){#app .bg-black\\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}#app .bg-krc-table-header{background-color:var(--krc-table-header-backgroundColor,#f9fafb)}#app .bg-white{background-color:var(--color-white)}#app .fill-white{fill:var(--color-white)}#app .p-2{padding:calc(var(--spacing)*2)}#app .p-4{padding:calc(var(--spacing)*4)}#app .px-1{padding-inline:calc(var(--spacing)*1)}#app .px-3{padding-inline:calc(var(--spacing)*3)}#app .px-3\\.5{padding-inline:calc(var(--spacing)*3.5)}#app .px-4{padding-inline:calc(var(--spacing)*4)}#app .px-6{padding-inline:calc(var(--spacing)*6)}#app .py-0{padding-block:calc(var(--spacing)*0)}#app .py-1{padding-block:calc(var(--spacing)*1)}#app .py-2{padding-block:calc(var(--spacing)*2)}#app .py-2\\.5{padding-block:calc(var(--spacing)*2.5)}#app .py-3{padding-block:calc(var(--spacing)*3)}#app .pt-4{padding-top:calc(var(--spacing)*4)}#app .pr-0{padding-right:calc(var(--spacing)*0)}#app .pr-10{padding-right:calc(var(--spacing)*10)}#app .pr-12{padding-right:calc(var(--spacing)*12)}#app .pb-2{padding-bottom:calc(var(--spacing)*2)}#app .pb-4{padding-bottom:calc(var(--spacing)*4)}#app .pl-0{padding-left:calc(var(--spacing)*0)}#app .pl-1{padding-left:calc(var(--spacing)*1)}#app .pl-10{padding-left:calc(var(--spacing)*10)}#app .pl-11{padding-left:calc(var(--spacing)*11)}#app .pl-13{padding-left:calc(var(--spacing)*13)}#app .pl-16{padding-left:calc(var(--spacing)*16)}#app .text-center{text-align:center}#app .text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}#app .text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#app .text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}#app .font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}#app .font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}#app .text-white{color:var(--color-white)}#app .shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px 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)}#app .shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .shadow-sm{--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)}#app .ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){#app .outline-hidden{outline-offset:2px;outline:2px solid #0000}}#app .outline-1{outline-style:var(--tw-outline-style);outline-width:1px}#app .outline-offset-2{outline-offset:2px}#app .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,)}#app .outline-solid{--tw-outline-style:solid;outline-style:solid}#app .not-disabled\\:bg-white:not(:disabled){background-color:var(--color-white)}#app .group-active\\:outline-solid:is(:where(.group):active *){--tw-outline-style:solid;outline-style:solid}#app .placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}#app .first\\:grow:first-child{flex-grow:1}#app .first\\:rounded-tl-krc-table:first-child{border-top-left-radius:var(--krc-table-borderRadius,1rem)}#app .last\\:rounded-tr-krc-table:last-child{border-top-right-radius:var(--krc-table-borderRadius,1rem)}#app .last\\:rounded-b-krc-table:last-child{border-bottom-right-radius:var(--krc-table-borderRadius,1rem);border-bottom-left-radius:var(--krc-table-borderRadius,1rem)}#app .focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}#app .focus\\:not-disabled\\:ring-2:focus:not(:disabled){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}#app .focus-visible\\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){#app .focus-visible\\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}#app .disabled\\:pointer-events-none:disabled{pointer-events:none}#app .disabled\\:\\!cursor-not-allowed:disabled{cursor:not-allowed!important}#app .disabled\\:\\!opacity-50:disabled{opacity:.5!important}#app .disabled\\:\\!shadow-none:disabled{--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}#app .disabled\\:\\!ring-0:disabled{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor)!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}#app .has-focus\\:ring-2:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@property --tw-divide-y-reverse{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@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-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@keyframes spin{to{transform:rotate(360deg)}}"));document.head.appendChild(elementStyle);}}catch(e){console.error('vite-plugin-css-injected-by-js', e);}
|
|
5
5
|
|
|
6
6
|
})();
|
|
7
7
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
@@ -2335,9 +2335,10 @@ var Icon$1 = React__default.forwardRef(
|
|
|
2335
2335
|
function Icon({
|
|
2336
2336
|
path,
|
|
2337
2337
|
name,
|
|
2338
|
+
dataTestId,
|
|
2338
2339
|
...props
|
|
2339
2340
|
}) {
|
|
2340
|
-
return path ? /* @__PURE__ */ jsx("svg", { ...props, children: /* @__PURE__ */ jsx("use", { href: path }) }) : name ? /* @__PURE__ */ jsx(Icon$1, { icon: name, height: "none", width: "none", ...props }) : /* @__PURE__ */ jsx(Fragment, {});
|
|
2341
|
+
return path ? /* @__PURE__ */ jsx("svg", { ...props, "data-testid": dataTestId, children: /* @__PURE__ */ jsx("use", { href: path }) }) : name ? /* @__PURE__ */ jsx(Icon$1, { "data-testid": dataTestId, icon: name, height: "none", width: "none", ...props }) : /* @__PURE__ */ jsx(Fragment, {});
|
|
2341
2342
|
}
|
|
2342
2343
|
|
|
2343
2344
|
const baseClasses$d = {
|
|
@@ -2372,6 +2373,7 @@ function Checkbox({
|
|
|
2372
2373
|
className = "",
|
|
2373
2374
|
name,
|
|
2374
2375
|
error,
|
|
2376
|
+
dataTestId,
|
|
2375
2377
|
...props
|
|
2376
2378
|
}) {
|
|
2377
2379
|
const ref = useRef(null);
|
|
@@ -2393,6 +2395,7 @@ function Checkbox({
|
|
|
2393
2395
|
className: "h-0 w-0 appearance-none",
|
|
2394
2396
|
defaultChecked: !!defaultValue,
|
|
2395
2397
|
checked: !!value,
|
|
2398
|
+
"data-testid": dataTestId,
|
|
2396
2399
|
onChange: (e) => onChange(e.target.checked, e),
|
|
2397
2400
|
disabled,
|
|
2398
2401
|
...props
|
|
@@ -2412,6 +2415,7 @@ function Checkbox({
|
|
|
2412
2415
|
name,
|
|
2413
2416
|
className: "h-0 w-0 appearance-none",
|
|
2414
2417
|
defaultChecked: !!defaultValue,
|
|
2418
|
+
"data-testid": dataTestId,
|
|
2415
2419
|
onChange: (e) => onChange(e.target.checked, e),
|
|
2416
2420
|
disabled
|
|
2417
2421
|
}
|
|
@@ -2431,6 +2435,7 @@ function Checkbox({
|
|
|
2431
2435
|
value: 0,
|
|
2432
2436
|
className: "h-0 w-0 appearance-none",
|
|
2433
2437
|
defaultChecked: !!defaultValue,
|
|
2438
|
+
"data-testid": dataTestId,
|
|
2434
2439
|
onChange: (e) => onChange(e.target.checked, e),
|
|
2435
2440
|
disabled
|
|
2436
2441
|
}
|
|
@@ -2469,6 +2474,7 @@ function CheckboxList({
|
|
|
2469
2474
|
required,
|
|
2470
2475
|
labelPosition = "top",
|
|
2471
2476
|
values = [],
|
|
2477
|
+
dataTestId = "",
|
|
2472
2478
|
onChange = () => {
|
|
2473
2479
|
return;
|
|
2474
2480
|
}
|
|
@@ -2483,6 +2489,7 @@ function CheckboxList({
|
|
|
2483
2489
|
return /* @__PURE__ */ jsx(
|
|
2484
2490
|
Checkbox,
|
|
2485
2491
|
{
|
|
2492
|
+
dataTestId: dataTestId + i,
|
|
2486
2493
|
name,
|
|
2487
2494
|
label: option.label.toString(),
|
|
2488
2495
|
error,
|
|
@@ -2509,6 +2516,7 @@ function Form({
|
|
|
2509
2516
|
validators,
|
|
2510
2517
|
data,
|
|
2511
2518
|
formRef,
|
|
2519
|
+
dataTestId,
|
|
2512
2520
|
onValidation = () => {
|
|
2513
2521
|
return;
|
|
2514
2522
|
},
|
|
@@ -2557,7 +2565,7 @@ function Form({
|
|
|
2557
2565
|
setErrors(errors2);
|
|
2558
2566
|
onValidation(errors2);
|
|
2559
2567
|
}
|
|
2560
|
-
return /* @__PURE__ */ jsx("form", { ref: formRef, onSubmit: submit, className, children: /* @__PURE__ */ jsx(ErrorContext.Provider, { value: { errors, setErrors: updateErrors }, children }) });
|
|
2568
|
+
return /* @__PURE__ */ jsx("form", { ref: formRef, "data-testid": dataTestId, onSubmit: submit, className, children: /* @__PURE__ */ jsx(ErrorContext.Provider, { value: { errors, setErrors: updateErrors }, children }) });
|
|
2561
2569
|
}
|
|
2562
2570
|
|
|
2563
2571
|
/** Checks if value is string */
|
|
@@ -7530,20 +7538,21 @@ const IMaskInputFn = (props, ref) => React__default.createElement(IMaskInputClas
|
|
|
7530
7538
|
const IMaskInput = React__default.forwardRef(IMaskInputFn);
|
|
7531
7539
|
|
|
7532
7540
|
const baseClasses$b = {
|
|
7533
|
-
|
|
7541
|
+
controlClasses: "w-full h-10 rounded-krc-input px-3 py-2 outline-hidden placeholder:text-secondary-500 placeholder:text-sm text-secondary-900 text-sm disabled:pointer-events-none not-disabled:bg-white disabled:bg-secondary-50 disabled:text-secondary-400",
|
|
7534
7542
|
wrapperClasses: "group flex flex-col gap-1",
|
|
7535
7543
|
labelClasses: "flex flex-row justify-start text-sm font-medium text-secondary-900",
|
|
7536
7544
|
iconLeftClasses: "absolute bottom-0 left-3 top-0 my-auto h-5 w-5 text-secondary-300",
|
|
7537
7545
|
iconRightClasses: "h-5 w-5",
|
|
7538
|
-
wrapperRightClasses: "absolute
|
|
7539
|
-
errorClasses: "text-sm text-error-500",
|
|
7546
|
+
wrapperRightClasses: "absolute right-3 top-0 my-auto flex flex-row items-center gap-2 text-secondary-300 text-sm h-10",
|
|
7547
|
+
errorClasses: "text-sm text-error-500 -mt-4",
|
|
7540
7548
|
classesError: "ring-error-500 ring-2",
|
|
7541
|
-
classesNeutral: "border-secondary-300 border focus:ring-2 hover:border-secondary-400 focus:ring-primary-900",
|
|
7549
|
+
classesNeutral: "border-secondary-300 border focus:not-disabled:ring-2 hover:not-disabled:border-secondary-400 focus:not-disabled:ring-primary-900",
|
|
7542
7550
|
additionalClassesIconLeft: "pl-10",
|
|
7543
|
-
additionalClassesIconRight: "pr-12"
|
|
7551
|
+
additionalClassesIconRight: "pr-12",
|
|
7552
|
+
classes: "relative h-14"
|
|
7544
7553
|
};
|
|
7545
7554
|
function Input$2({
|
|
7546
|
-
|
|
7555
|
+
controlClasses = baseClasses$b.controlClasses,
|
|
7547
7556
|
wrapperClasses = baseClasses$b.wrapperClasses,
|
|
7548
7557
|
labelClasses = baseClasses$b.labelClasses,
|
|
7549
7558
|
iconLeftClasses = baseClasses$b.iconLeftClasses,
|
|
@@ -7551,6 +7560,7 @@ function Input$2({
|
|
|
7551
7560
|
errorClasses = baseClasses$b.errorClasses,
|
|
7552
7561
|
classesError = baseClasses$b.classesError,
|
|
7553
7562
|
classesNeutral = baseClasses$b.classesNeutral,
|
|
7563
|
+
classes = baseClasses$b.classes,
|
|
7554
7564
|
additionalClassesIconLeft = baseClasses$b.additionalClassesIconLeft,
|
|
7555
7565
|
additionalClassesIconRight = baseClasses$b.additionalClassesIconRight,
|
|
7556
7566
|
wrapperRightClasses = baseClasses$b.wrapperRightClasses,
|
|
@@ -7570,6 +7580,7 @@ function Input$2({
|
|
|
7570
7580
|
defaultValue,
|
|
7571
7581
|
placeholder,
|
|
7572
7582
|
className = "",
|
|
7583
|
+
dataTestId,
|
|
7573
7584
|
onIconRightClick = () => {
|
|
7574
7585
|
return;
|
|
7575
7586
|
},
|
|
@@ -7590,7 +7601,7 @@ function Input$2({
|
|
|
7590
7601
|
},
|
|
7591
7602
|
...props
|
|
7592
7603
|
}) {
|
|
7593
|
-
const classesFull = [
|
|
7604
|
+
const classesFull = [controlClasses];
|
|
7594
7605
|
if (iconLeftPath || iconLeftName) {
|
|
7595
7606
|
classesFull.push(additionalClassesIconLeft);
|
|
7596
7607
|
}
|
|
@@ -7614,7 +7625,7 @@ function Input$2({
|
|
|
7614
7625
|
" ",
|
|
7615
7626
|
required && "*"
|
|
7616
7627
|
] }),
|
|
7617
|
-
/* @__PURE__ */ jsxs("div", { className:
|
|
7628
|
+
/* @__PURE__ */ jsxs("div", { className: classes, children: [
|
|
7618
7629
|
mask ? /* @__PURE__ */ jsx(
|
|
7619
7630
|
IMaskInput,
|
|
7620
7631
|
{
|
|
@@ -7623,6 +7634,7 @@ function Input$2({
|
|
|
7623
7634
|
unmask: true,
|
|
7624
7635
|
ref,
|
|
7625
7636
|
step,
|
|
7637
|
+
"data-testid": dataTestId,
|
|
7626
7638
|
inputRef,
|
|
7627
7639
|
placeholder,
|
|
7628
7640
|
value: value?.toString(),
|
|
@@ -7632,7 +7644,9 @@ function Input$2({
|
|
|
7632
7644
|
onChange(e.currentTarget.value);
|
|
7633
7645
|
},
|
|
7634
7646
|
onClick: (e) => {
|
|
7635
|
-
|
|
7647
|
+
if (e.isTrusted) {
|
|
7648
|
+
ref.current?.showPicker?.();
|
|
7649
|
+
}
|
|
7636
7650
|
onClick(e);
|
|
7637
7651
|
},
|
|
7638
7652
|
onBlur,
|
|
@@ -7646,13 +7660,16 @@ function Input$2({
|
|
|
7646
7660
|
...props,
|
|
7647
7661
|
ref,
|
|
7648
7662
|
placeholder,
|
|
7649
|
-
|
|
7650
|
-
|
|
7663
|
+
"data-testid": dataTestId,
|
|
7664
|
+
value: value?.toString() || "",
|
|
7665
|
+
defaultValue: defaultValue?.toString() || "",
|
|
7651
7666
|
onInput: (e) => {
|
|
7652
7667
|
onChange(e.currentTarget.value);
|
|
7653
7668
|
},
|
|
7654
7669
|
onClick: (e) => {
|
|
7655
|
-
|
|
7670
|
+
if (e.isTrusted) {
|
|
7671
|
+
ref.current?.showPicker?.();
|
|
7672
|
+
}
|
|
7656
7673
|
onClick(e);
|
|
7657
7674
|
},
|
|
7658
7675
|
step,
|
|
@@ -8197,7 +8214,7 @@ function requireReactDom_production () {
|
|
|
8197
8214
|
reactDom_production.useFormStatus = function () {
|
|
8198
8215
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
8199
8216
|
};
|
|
8200
|
-
reactDom_production.version = "19.
|
|
8217
|
+
reactDom_production.version = "19.2.0";
|
|
8201
8218
|
return reactDom_production;
|
|
8202
8219
|
}
|
|
8203
8220
|
|
|
@@ -8625,7 +8642,7 @@ function requireReactDom_development () {
|
|
|
8625
8642
|
reactDom_development.useFormStatus = function () {
|
|
8626
8643
|
return resolveDispatcher().useHostTransitionStatus();
|
|
8627
8644
|
};
|
|
8628
|
-
reactDom_development.version = "19.
|
|
8645
|
+
reactDom_development.version = "19.2.0";
|
|
8629
8646
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
8630
8647
|
"function" ===
|
|
8631
8648
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
@@ -8722,8 +8739,9 @@ function getOppositeAxis(axis) {
|
|
|
8722
8739
|
function getAxisLength(axis) {
|
|
8723
8740
|
return axis === 'y' ? 'height' : 'width';
|
|
8724
8741
|
}
|
|
8742
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
8725
8743
|
function getSideAxis(placement) {
|
|
8726
|
-
return
|
|
8744
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
8727
8745
|
}
|
|
8728
8746
|
function getAlignmentAxis(placement) {
|
|
8729
8747
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -8748,19 +8766,19 @@ function getExpandedPlacements(placement) {
|
|
|
8748
8766
|
function getOppositeAlignmentPlacement(placement) {
|
|
8749
8767
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
8750
8768
|
}
|
|
8769
|
+
const lrPlacement = ['left', 'right'];
|
|
8770
|
+
const rlPlacement = ['right', 'left'];
|
|
8771
|
+
const tbPlacement = ['top', 'bottom'];
|
|
8772
|
+
const btPlacement = ['bottom', 'top'];
|
|
8751
8773
|
function getSideList(side, isStart, rtl) {
|
|
8752
|
-
const lr = ['left', 'right'];
|
|
8753
|
-
const rl = ['right', 'left'];
|
|
8754
|
-
const tb = ['top', 'bottom'];
|
|
8755
|
-
const bt = ['bottom', 'top'];
|
|
8756
8774
|
switch (side) {
|
|
8757
8775
|
case 'top':
|
|
8758
8776
|
case 'bottom':
|
|
8759
|
-
if (rtl) return isStart ?
|
|
8760
|
-
return isStart ?
|
|
8777
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
8778
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
8761
8779
|
case 'left':
|
|
8762
8780
|
case 'right':
|
|
8763
|
-
return isStart ?
|
|
8781
|
+
return isStart ? tbPlacement : btPlacement;
|
|
8764
8782
|
default:
|
|
8765
8783
|
return [];
|
|
8766
8784
|
}
|
|
@@ -9102,7 +9120,7 @@ const flip$2 = function (options) {
|
|
|
9102
9120
|
if (!ignoreCrossAxisOverflow ||
|
|
9103
9121
|
// We leave the current main axis only if every placement on that axis
|
|
9104
9122
|
// overflows the main axis.
|
|
9105
|
-
overflowsData.every(d => d.overflows[0] > 0
|
|
9123
|
+
overflowsData.every(d => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
|
|
9106
9124
|
// Try next placement and re-run the lifecycle.
|
|
9107
9125
|
return {
|
|
9108
9126
|
data: {
|
|
@@ -9281,6 +9299,7 @@ function isShadowRoot(value) {
|
|
|
9281
9299
|
}
|
|
9282
9300
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
9283
9301
|
}
|
|
9302
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
9284
9303
|
function isOverflowElement(element) {
|
|
9285
9304
|
const {
|
|
9286
9305
|
overflow,
|
|
@@ -9288,27 +9307,32 @@ function isOverflowElement(element) {
|
|
|
9288
9307
|
overflowY,
|
|
9289
9308
|
display
|
|
9290
9309
|
} = getComputedStyle$1(element);
|
|
9291
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
9310
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
9292
9311
|
}
|
|
9312
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
9293
9313
|
function isTableElement(element) {
|
|
9294
|
-
return
|
|
9314
|
+
return tableElements.has(getNodeName(element));
|
|
9295
9315
|
}
|
|
9316
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
9296
9317
|
function isTopLayer(element) {
|
|
9297
|
-
return
|
|
9318
|
+
return topLayerSelectors.some(selector => {
|
|
9298
9319
|
try {
|
|
9299
9320
|
return element.matches(selector);
|
|
9300
|
-
} catch (
|
|
9321
|
+
} catch (_e) {
|
|
9301
9322
|
return false;
|
|
9302
9323
|
}
|
|
9303
9324
|
});
|
|
9304
9325
|
}
|
|
9326
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
9327
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
9328
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
9305
9329
|
function isContainingBlock(elementOrCss) {
|
|
9306
9330
|
const webkit = isWebKit();
|
|
9307
9331
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
9308
9332
|
|
|
9309
9333
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
9310
9334
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
9311
|
-
return
|
|
9335
|
+
return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
|
|
9312
9336
|
}
|
|
9313
9337
|
function getContainingBlock(element) {
|
|
9314
9338
|
let currentNode = getParentNode(element);
|
|
@@ -9326,8 +9350,9 @@ function isWebKit() {
|
|
|
9326
9350
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
9327
9351
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
9328
9352
|
}
|
|
9353
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
9329
9354
|
function isLastTraversableNode(node) {
|
|
9330
|
-
return
|
|
9355
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
9331
9356
|
}
|
|
9332
9357
|
function getComputedStyle$1(element) {
|
|
9333
9358
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -9527,14 +9552,9 @@ function getWindowScrollBarX(element, rect) {
|
|
|
9527
9552
|
return rect.left + leftScroll;
|
|
9528
9553
|
}
|
|
9529
9554
|
|
|
9530
|
-
function getHTMLOffset(documentElement, scroll
|
|
9531
|
-
if (ignoreScrollbarX === void 0) {
|
|
9532
|
-
ignoreScrollbarX = false;
|
|
9533
|
-
}
|
|
9555
|
+
function getHTMLOffset(documentElement, scroll) {
|
|
9534
9556
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
9535
|
-
const x = htmlRect.left + scroll.scrollLeft - (
|
|
9536
|
-
// RTL <body> scrollbar.
|
|
9537
|
-
getWindowScrollBarX(documentElement, htmlRect));
|
|
9557
|
+
const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
9538
9558
|
const y = htmlRect.top + scroll.scrollTop;
|
|
9539
9559
|
return {
|
|
9540
9560
|
x,
|
|
@@ -9573,7 +9593,7 @@ function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
|
|
|
9573
9593
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
9574
9594
|
}
|
|
9575
9595
|
}
|
|
9576
|
-
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll
|
|
9596
|
+
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
9577
9597
|
return {
|
|
9578
9598
|
width: rect.width * scale.x,
|
|
9579
9599
|
height: rect.height * scale.y,
|
|
@@ -9607,6 +9627,10 @@ function getDocumentRect(element) {
|
|
|
9607
9627
|
};
|
|
9608
9628
|
}
|
|
9609
9629
|
|
|
9630
|
+
// Safety check: ensure the scrollbar space is reasonable in case this
|
|
9631
|
+
// calculation is affected by unusual styles.
|
|
9632
|
+
// Most scrollbars leave 15-18px of space.
|
|
9633
|
+
const SCROLLBAR_MAX = 25;
|
|
9610
9634
|
function getViewportRect(element, strategy) {
|
|
9611
9635
|
const win = getWindow(element);
|
|
9612
9636
|
const html = getDocumentElement(element);
|
|
@@ -9624,6 +9648,24 @@ function getViewportRect(element, strategy) {
|
|
|
9624
9648
|
y = visualViewport.offsetTop;
|
|
9625
9649
|
}
|
|
9626
9650
|
}
|
|
9651
|
+
const windowScrollbarX = getWindowScrollBarX(html);
|
|
9652
|
+
// <html> `overflow: hidden` + `scrollbar-gutter: stable` reduces the
|
|
9653
|
+
// visual width of the <html> but this is not considered in the size
|
|
9654
|
+
// of `html.clientWidth`.
|
|
9655
|
+
if (windowScrollbarX <= 0) {
|
|
9656
|
+
const doc = html.ownerDocument;
|
|
9657
|
+
const body = doc.body;
|
|
9658
|
+
const bodyStyles = getComputedStyle(body);
|
|
9659
|
+
const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
|
|
9660
|
+
const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
|
|
9661
|
+
if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {
|
|
9662
|
+
width -= clippingStableScrollbarWidth;
|
|
9663
|
+
}
|
|
9664
|
+
} else if (windowScrollbarX <= SCROLLBAR_MAX) {
|
|
9665
|
+
// If the <body> scrollbar is on the left, the width needs to be extended
|
|
9666
|
+
// by the scrollbar amount so there isn't extra space on the right.
|
|
9667
|
+
width += windowScrollbarX;
|
|
9668
|
+
}
|
|
9627
9669
|
return {
|
|
9628
9670
|
width,
|
|
9629
9671
|
height,
|
|
@@ -9632,6 +9674,7 @@ function getViewportRect(element, strategy) {
|
|
|
9632
9674
|
};
|
|
9633
9675
|
}
|
|
9634
9676
|
|
|
9677
|
+
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
9635
9678
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
9636
9679
|
function getInnerBoundingClientRect(element, strategy) {
|
|
9637
9680
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -9696,7 +9739,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
9696
9739
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
9697
9740
|
currentContainingBlockComputedStyle = null;
|
|
9698
9741
|
}
|
|
9699
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
9742
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
9700
9743
|
if (shouldDropCurrentNode) {
|
|
9701
9744
|
// Drop non-containing blocks.
|
|
9702
9745
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -12671,7 +12714,8 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
12671
12714
|
prevWasFocused: false,
|
|
12672
12715
|
inputIsHiddenAfterUpdate: undefined,
|
|
12673
12716
|
prevProps: undefined,
|
|
12674
|
-
instancePrefix: ''
|
|
12717
|
+
instancePrefix: '',
|
|
12718
|
+
isAppleDevice: false
|
|
12675
12719
|
};
|
|
12676
12720
|
_this.blockOptionHover = false;
|
|
12677
12721
|
_this.isComposing = false;
|
|
@@ -12681,7 +12725,6 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
12681
12725
|
_this.openAfterFocus = false;
|
|
12682
12726
|
_this.scrollToFocusedOptionOnUpdate = false;
|
|
12683
12727
|
_this.userIsDragging = void 0;
|
|
12684
|
-
_this.isAppleDevice = isAppleDevice();
|
|
12685
12728
|
_this.controlRef = null;
|
|
12686
12729
|
_this.getControlRef = function (ref) {
|
|
12687
12730
|
_this.controlRef = ref;
|
|
@@ -13218,6 +13261,12 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
13218
13261
|
if (this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef) {
|
|
13219
13262
|
scrollIntoView(this.menuListRef, this.focusedOptionRef);
|
|
13220
13263
|
}
|
|
13264
|
+
if (isAppleDevice()) {
|
|
13265
|
+
// eslint-disable-next-line react/no-did-mount-set-state
|
|
13266
|
+
this.setState({
|
|
13267
|
+
isAppleDevice: true
|
|
13268
|
+
});
|
|
13269
|
+
}
|
|
13221
13270
|
}
|
|
13222
13271
|
}, {
|
|
13223
13272
|
key: "componentDidUpdate",
|
|
@@ -13597,7 +13646,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
13597
13646
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
13598
13647
|
'aria-required': required,
|
|
13599
13648
|
role: 'combobox',
|
|
13600
|
-
'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
13649
|
+
'aria-activedescendant': this.state.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
13601
13650
|
}, menuIsOpen && {
|
|
13602
13651
|
'aria-controls': this.getElementId('listbox')
|
|
13603
13652
|
}), !isSearchable && {
|
|
@@ -13846,7 +13895,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
13846
13895
|
onMouseOver: onHover,
|
|
13847
13896
|
tabIndex: -1,
|
|
13848
13897
|
role: 'option',
|
|
13849
|
-
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
13898
|
+
'aria-selected': _this4.state.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
13850
13899
|
};
|
|
13851
13900
|
|
|
13852
13901
|
return /*#__PURE__*/React.createElement(Option, _extends({}, commonProps, {
|
|
@@ -14025,7 +14074,7 @@ var Select$1 = /*#__PURE__*/function (_Component) {
|
|
|
14025
14074
|
isFocused: isFocused,
|
|
14026
14075
|
selectValue: selectValue,
|
|
14027
14076
|
focusableOptions: focusableOptions,
|
|
14028
|
-
isAppleDevice: this.isAppleDevice
|
|
14077
|
+
isAppleDevice: this.state.isAppleDevice
|
|
14029
14078
|
}));
|
|
14030
14079
|
}
|
|
14031
14080
|
}, {
|
|
@@ -14245,7 +14294,7 @@ function ComponentsWrapper({ children, locale }) {
|
|
|
14245
14294
|
const CUSTOM_ENTRY_VALUE = "CUSTOM_ENTRY_VALUE";
|
|
14246
14295
|
const baseClasses$a = {
|
|
14247
14296
|
classes: "rounded-krc-select h-10 py-0 border shadow-none",
|
|
14248
|
-
errorClasses: "text-sm text-error-500",
|
|
14297
|
+
errorClasses: "text-sm text-error-500 -mt-4",
|
|
14249
14298
|
labelClasses: "text-sm font-medium text-secondary-900",
|
|
14250
14299
|
labelWrapperClasses: "group flex flex-col gap-1",
|
|
14251
14300
|
classesNeutral: "border-secondary-300 group-hover:border-secondary-400",
|
|
@@ -14295,6 +14344,7 @@ function Select({
|
|
|
14295
14344
|
customValueLabel = "Eigenen Wert hinzufügen",
|
|
14296
14345
|
menuPortalTarget,
|
|
14297
14346
|
isMulti,
|
|
14347
|
+
dataTestId,
|
|
14298
14348
|
onInput = () => {
|
|
14299
14349
|
return;
|
|
14300
14350
|
},
|
|
@@ -14348,6 +14398,8 @@ function Select({
|
|
|
14348
14398
|
borderRadius: void 0
|
|
14349
14399
|
})
|
|
14350
14400
|
},
|
|
14401
|
+
"data-testid": dataTestId,
|
|
14402
|
+
id: dataTestId,
|
|
14351
14403
|
isSearchable: searchable,
|
|
14352
14404
|
menuPlacement,
|
|
14353
14405
|
isDisabled: disabled,
|
|
@@ -14474,6 +14526,7 @@ function PhoneInput({
|
|
|
14474
14526
|
name,
|
|
14475
14527
|
value,
|
|
14476
14528
|
defaultValue,
|
|
14529
|
+
dataTestId,
|
|
14477
14530
|
className = "",
|
|
14478
14531
|
onChange = () => {
|
|
14479
14532
|
return;
|
|
@@ -14563,6 +14616,7 @@ function PhoneInput({
|
|
|
14563
14616
|
mask: masks[countryCode.label],
|
|
14564
14617
|
radix: ".",
|
|
14565
14618
|
unmask: true,
|
|
14619
|
+
"data-testid": dataTestId,
|
|
14566
14620
|
ref,
|
|
14567
14621
|
id: name,
|
|
14568
14622
|
placeholder: placeholders[countryCode.label],
|
|
@@ -14615,6 +14669,7 @@ function RadioButtonGroup({
|
|
|
14615
14669
|
value,
|
|
14616
14670
|
label,
|
|
14617
14671
|
name,
|
|
14672
|
+
dataTestId = "",
|
|
14618
14673
|
arrangement = "horizontal",
|
|
14619
14674
|
onChange = () => {
|
|
14620
14675
|
return;
|
|
@@ -14634,6 +14689,7 @@ function RadioButtonGroup({
|
|
|
14634
14689
|
{
|
|
14635
14690
|
className: "appearance-none",
|
|
14636
14691
|
type: "radio",
|
|
14692
|
+
"data-testid": dataTestId + i,
|
|
14637
14693
|
name,
|
|
14638
14694
|
value: option.value.toString(),
|
|
14639
14695
|
checked: value?.toString() === option.value.toString(),
|
|
@@ -14664,6 +14720,7 @@ function Tag({
|
|
|
14664
14720
|
iconLeftName,
|
|
14665
14721
|
iconRightPath,
|
|
14666
14722
|
iconRightName,
|
|
14723
|
+
dataTestId,
|
|
14667
14724
|
title,
|
|
14668
14725
|
onClick = () => {
|
|
14669
14726
|
return;
|
|
@@ -14675,7 +14732,7 @@ function Tag({
|
|
|
14675
14732
|
return;
|
|
14676
14733
|
}
|
|
14677
14734
|
}) {
|
|
14678
|
-
return /* @__PURE__ */ jsxs("div", { className: wrapperClasses, onClick, children: [
|
|
14735
|
+
return /* @__PURE__ */ jsxs("div", { className: wrapperClasses, onClick, "data-testid": dataTestId, children: [
|
|
14679
14736
|
(iconLeftPath || iconLeftName) && /* @__PURE__ */ jsx(Icon, { name: iconLeftName, path: iconLeftPath, className: iconLeftClasses, onClick: onClickIconLeft }),
|
|
14680
14737
|
/* @__PURE__ */ jsx("div", { className: titleClasses, children: title }),
|
|
14681
14738
|
(iconRightPath || iconRightName) && /* @__PURE__ */ jsx(Icon, { name: iconRightName, path: iconRightPath, className: iconRightClasses, onClick: onClickIconRight })
|
|
@@ -14700,6 +14757,7 @@ function TagList({
|
|
|
14700
14757
|
error,
|
|
14701
14758
|
required,
|
|
14702
14759
|
values,
|
|
14760
|
+
dataTestId,
|
|
14703
14761
|
addTagTitle = "",
|
|
14704
14762
|
onChange = () => {
|
|
14705
14763
|
return;
|
|
@@ -14720,12 +14778,22 @@ function TagList({
|
|
|
14720
14778
|
required && "*"
|
|
14721
14779
|
] }),
|
|
14722
14780
|
/* @__PURE__ */ jsxs("div", { className: classesFull.join(" "), children: [
|
|
14723
|
-
values?.map((value, i) => /* @__PURE__ */ jsx(
|
|
14781
|
+
values?.map((value, i) => /* @__PURE__ */ jsx(
|
|
14782
|
+
Tag,
|
|
14783
|
+
{
|
|
14784
|
+
title: value.toString(),
|
|
14785
|
+
onClick: () => onChange(value),
|
|
14786
|
+
"data-testid": dataTestId,
|
|
14787
|
+
iconRightName: "heroicons:x-mark-16-solid"
|
|
14788
|
+
},
|
|
14789
|
+
i
|
|
14790
|
+
)),
|
|
14724
14791
|
/* @__PURE__ */ jsx(
|
|
14725
14792
|
Tag,
|
|
14726
14793
|
{
|
|
14727
14794
|
title: addTagTitle,
|
|
14728
14795
|
iconLeftName: "heroicons:plus-16-solid",
|
|
14796
|
+
"data-testid": dataTestId,
|
|
14729
14797
|
wrapperClasses: "flex flex-row h-6 cursor-pointer items-center justify-center gap-1 rounded-krc-tag-list-add border border-secondary-300 px-3 py-1 bg-white",
|
|
14730
14798
|
onClick: () => onChange("")
|
|
14731
14799
|
}
|
|
@@ -15608,6 +15676,7 @@ function Textarea({
|
|
|
15608
15676
|
value,
|
|
15609
15677
|
disabled,
|
|
15610
15678
|
defaultValue,
|
|
15679
|
+
dataTestId,
|
|
15611
15680
|
maxLengthLabel,
|
|
15612
15681
|
/** UNUSED, only listed so that the typing for onInput does not clash with the onInput event of the textarea */
|
|
15613
15682
|
onInput = () => {
|
|
@@ -15667,6 +15736,7 @@ function Textarea({
|
|
|
15667
15736
|
{
|
|
15668
15737
|
maxLength: maxLength || void 0,
|
|
15669
15738
|
ref: textarea,
|
|
15739
|
+
"data-testid": dataTestId,
|
|
15670
15740
|
value: text,
|
|
15671
15741
|
disabled,
|
|
15672
15742
|
defaultValue: defaultValue?.toString(),
|
|
@@ -15750,7 +15820,7 @@ const validators = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty
|
|
|
15750
15820
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
15751
15821
|
|
|
15752
15822
|
/*!
|
|
15753
|
-
* tabbable 6.
|
|
15823
|
+
* tabbable 6.3.0
|
|
15754
15824
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
15755
15825
|
*/
|
|
15756
15826
|
// NOTE: separate `:not()` selectors has broader browser support than the newer
|
|
@@ -15777,7 +15847,7 @@ var getRootNode = !NoElement && Element.prototype.getRootNode ? function (elemen
|
|
|
15777
15847
|
* @returns {boolean} True if inert itself or by way of being in an inert ancestor.
|
|
15778
15848
|
* False if `node` is falsy.
|
|
15779
15849
|
*/
|
|
15780
|
-
var
|
|
15850
|
+
var _isInert = function isInert(node, lookUp) {
|
|
15781
15851
|
var _node$getAttribute;
|
|
15782
15852
|
if (lookUp === void 0) {
|
|
15783
15853
|
lookUp = true;
|
|
@@ -15793,7 +15863,7 @@ var isInert = function isInert(node, lookUp) {
|
|
|
15793
15863
|
// code works for any kind of node
|
|
15794
15864
|
// CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
|
|
15795
15865
|
// so it likely would not support `:is([inert] *)` either...
|
|
15796
|
-
var result = inert || lookUp && node &&
|
|
15866
|
+
var result = inert || lookUp && node && _isInert(node.parentNode); // recursive
|
|
15797
15867
|
|
|
15798
15868
|
return result;
|
|
15799
15869
|
};
|
|
@@ -15821,7 +15891,7 @@ var isContentEditable = function isContentEditable(node) {
|
|
|
15821
15891
|
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
15822
15892
|
// even if `includeContainer=false`, we still have to check it for inertness because
|
|
15823
15893
|
// if it's inert, all its children are inert
|
|
15824
|
-
if (
|
|
15894
|
+
if (_isInert(el)) {
|
|
15825
15895
|
return [];
|
|
15826
15896
|
}
|
|
15827
15897
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
@@ -15866,12 +15936,12 @@ var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
|
15866
15936
|
* @param {IterativeOptions} options
|
|
15867
15937
|
* @returns {Array.<Element|CandidateScope>}
|
|
15868
15938
|
*/
|
|
15869
|
-
var
|
|
15939
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
15870
15940
|
var candidates = [];
|
|
15871
15941
|
var elementsToCheck = Array.from(elements);
|
|
15872
15942
|
while (elementsToCheck.length) {
|
|
15873
15943
|
var element = elementsToCheck.shift();
|
|
15874
|
-
if (
|
|
15944
|
+
if (_isInert(element, false)) {
|
|
15875
15945
|
// no need to look up since we're drilling down
|
|
15876
15946
|
// anything inside this container will also be inert
|
|
15877
15947
|
continue;
|
|
@@ -15880,7 +15950,7 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
15880
15950
|
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
15881
15951
|
var assigned = element.assignedElements();
|
|
15882
15952
|
var content = assigned.length ? assigned : element.children;
|
|
15883
|
-
var nestedCandidates =
|
|
15953
|
+
var nestedCandidates = _getCandidatesIteratively(content, true, options);
|
|
15884
15954
|
if (options.flatten) {
|
|
15885
15955
|
candidates.push.apply(candidates, nestedCandidates);
|
|
15886
15956
|
} else {
|
|
@@ -15904,7 +15974,7 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
15904
15974
|
// no inert look up because we're already drilling down and checking for inertness
|
|
15905
15975
|
// on the way down, so all containers to this root node should have already been
|
|
15906
15976
|
// vetted as non-inert
|
|
15907
|
-
var validShadowRoot = !
|
|
15977
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
15908
15978
|
if (shadowRoot && validShadowRoot) {
|
|
15909
15979
|
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
15910
15980
|
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
@@ -15912,7 +15982,7 @@ var getCandidatesIteratively = function getCandidatesIteratively(elements, inclu
|
|
|
15912
15982
|
// children of the web component element (which has the shadow), in the light dom, but
|
|
15913
15983
|
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
15914
15984
|
// _after_ we return from this recursive call
|
|
15915
|
-
var _nestedCandidates =
|
|
15985
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
15916
15986
|
if (options.flatten) {
|
|
15917
15987
|
candidates.push.apply(candidates, _nestedCandidates);
|
|
15918
15988
|
} else {
|
|
@@ -16089,6 +16159,28 @@ var isZeroArea = function isZeroArea(node) {
|
|
|
16089
16159
|
var isHidden = function isHidden(node, _ref) {
|
|
16090
16160
|
var displayCheck = _ref.displayCheck,
|
|
16091
16161
|
getShadowRoot = _ref.getShadowRoot;
|
|
16162
|
+
if (displayCheck === 'full-native') {
|
|
16163
|
+
if ('checkVisibility' in node) {
|
|
16164
|
+
// Chrome >= 105, Edge >= 105, Firefox >= 106, Safari >= 17.4
|
|
16165
|
+
// @see https://developer.mozilla.org/en-US/docs/Web/API/Element/checkVisibility#browser_compatibility
|
|
16166
|
+
var visible = node.checkVisibility({
|
|
16167
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
16168
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
16169
|
+
checkOpacity: false,
|
|
16170
|
+
opacityProperty: false,
|
|
16171
|
+
contentVisibilityAuto: true,
|
|
16172
|
+
visibilityProperty: true,
|
|
16173
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
16174
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
16175
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
16176
|
+
// we include it anyway.
|
|
16177
|
+
checkVisibilityCSS: true
|
|
16178
|
+
});
|
|
16179
|
+
return !visible;
|
|
16180
|
+
}
|
|
16181
|
+
// Fall through to manual visibility checks
|
|
16182
|
+
}
|
|
16183
|
+
|
|
16092
16184
|
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
16093
16185
|
// (see notes about this further down), which means we will consider it visible
|
|
16094
16186
|
// (this is legacy behavior from a very long way back)
|
|
@@ -16102,7 +16194,10 @@ var isHidden = function isHidden(node, _ref) {
|
|
|
16102
16194
|
if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
16103
16195
|
return true;
|
|
16104
16196
|
}
|
|
16105
|
-
if (!displayCheck || displayCheck === 'full' ||
|
|
16197
|
+
if (!displayCheck || displayCheck === 'full' ||
|
|
16198
|
+
// full-native can run this branch when it falls through in case
|
|
16199
|
+
// Element#checkVisibility is unsupported
|
|
16200
|
+
displayCheck === 'full-native' || displayCheck === 'legacy-full') {
|
|
16106
16201
|
if (typeof getShadowRoot === 'function') {
|
|
16107
16202
|
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
16108
16203
|
// 'non-zero-area' fallback
|
|
@@ -16215,7 +16310,7 @@ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(o
|
|
|
16215
16310
|
// we must do an inert look up to filter out any elements inside an inert ancestor
|
|
16216
16311
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
16217
16312
|
// note related to `candidateSelectors`)
|
|
16218
|
-
|
|
16313
|
+
_isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
|
|
16219
16314
|
// For a details element with a summary, the summary element gets the focus
|
|
16220
16315
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
16221
16316
|
return false;
|
|
@@ -16228,7 +16323,7 @@ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(opt
|
|
|
16228
16323
|
}
|
|
16229
16324
|
return true;
|
|
16230
16325
|
};
|
|
16231
|
-
var
|
|
16326
|
+
var isShadowRootTabbable = function isShadowRootTabbable(shadowHostNode) {
|
|
16232
16327
|
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
16233
16328
|
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
16234
16329
|
return true;
|
|
@@ -16242,14 +16337,14 @@ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNod
|
|
|
16242
16337
|
* @param {Array.<Element|CandidateScope>} candidates
|
|
16243
16338
|
* @returns Element[]
|
|
16244
16339
|
*/
|
|
16245
|
-
var
|
|
16340
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
16246
16341
|
var regularTabbables = [];
|
|
16247
16342
|
var orderedTabbables = [];
|
|
16248
16343
|
candidates.forEach(function (item, i) {
|
|
16249
16344
|
var isScope = !!item.scopeParent;
|
|
16250
16345
|
var element = isScope ? item.scopeParent : item;
|
|
16251
16346
|
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
16252
|
-
var elements = isScope ?
|
|
16347
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
16253
16348
|
if (candidateTabindex === 0) {
|
|
16254
16349
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
16255
16350
|
} else {
|
|
@@ -16271,22 +16366,22 @@ var tabbable = function tabbable(container, options) {
|
|
|
16271
16366
|
options = options || {};
|
|
16272
16367
|
var candidates;
|
|
16273
16368
|
if (options.getShadowRoot) {
|
|
16274
|
-
candidates =
|
|
16369
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
16275
16370
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
16276
16371
|
flatten: false,
|
|
16277
16372
|
getShadowRoot: options.getShadowRoot,
|
|
16278
|
-
shadowRootFilter:
|
|
16373
|
+
shadowRootFilter: isShadowRootTabbable
|
|
16279
16374
|
});
|
|
16280
16375
|
} else {
|
|
16281
16376
|
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
16282
16377
|
}
|
|
16283
|
-
return
|
|
16378
|
+
return _sortByOrder(candidates);
|
|
16284
16379
|
};
|
|
16285
16380
|
var focusable = function focusable(container, options) {
|
|
16286
16381
|
options = options || {};
|
|
16287
16382
|
var candidates;
|
|
16288
16383
|
if (options.getShadowRoot) {
|
|
16289
|
-
candidates =
|
|
16384
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
16290
16385
|
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
16291
16386
|
flatten: true,
|
|
16292
16387
|
getShadowRoot: options.getShadowRoot
|
|
@@ -16422,23 +16517,15 @@ function getFloatingFocusElement(floatingElement) {
|
|
|
16422
16517
|
return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE$1) ? floatingElement : floatingElement.querySelector("[" + FOCUSABLE_ATTRIBUTE$1 + "]") || floatingElement;
|
|
16423
16518
|
}
|
|
16424
16519
|
|
|
16425
|
-
function getNodeChildren(nodes, id) {
|
|
16426
|
-
|
|
16520
|
+
function getNodeChildren(nodes, id, onlyOpenChildren) {
|
|
16521
|
+
if (onlyOpenChildren === void 0) {
|
|
16522
|
+
onlyOpenChildren = true;
|
|
16523
|
+
}
|
|
16524
|
+
const directChildren = nodes.filter(node => {
|
|
16427
16525
|
var _node$context;
|
|
16428
|
-
return node.parentId === id && ((_node$context = node.context) == null ? void 0 : _node$context.open);
|
|
16526
|
+
return node.parentId === id && (!onlyOpenChildren || ((_node$context = node.context) == null ? void 0 : _node$context.open));
|
|
16429
16527
|
});
|
|
16430
|
-
|
|
16431
|
-
while (currentChildren.length) {
|
|
16432
|
-
currentChildren = nodes.filter(node => {
|
|
16433
|
-
var _currentChildren;
|
|
16434
|
-
return (_currentChildren = currentChildren) == null ? void 0 : _currentChildren.some(n => {
|
|
16435
|
-
var _node$context2;
|
|
16436
|
-
return node.parentId === n.id && ((_node$context2 = node.context) == null ? void 0 : _node$context2.open);
|
|
16437
|
-
});
|
|
16438
|
-
});
|
|
16439
|
-
allChildren = allChildren.concat(currentChildren);
|
|
16440
|
-
}
|
|
16441
|
-
return allChildren;
|
|
16528
|
+
return directChildren.flatMap(child => [child, ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
|
|
16442
16529
|
}
|
|
16443
16530
|
function getNodeAncestors(nodes, id) {
|
|
16444
16531
|
var _nodes$find;
|
|
@@ -17064,7 +17151,7 @@ function markOthers(avoidElements, ariaHidden, inert) {
|
|
|
17064
17151
|
inert = false;
|
|
17065
17152
|
}
|
|
17066
17153
|
const body = getDocument(avoidElements[0]).body;
|
|
17067
|
-
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live]'))), body, ariaHidden, inert);
|
|
17154
|
+
return applyAttributeToOthers(avoidElements.concat(Array.from(body.querySelectorAll('[aria-live],[role="status"],output'))), body, ariaHidden, inert);
|
|
17068
17155
|
}
|
|
17069
17156
|
|
|
17070
17157
|
const HIDDEN_STYLES = {
|
|
@@ -17157,7 +17244,7 @@ function useFloatingPortalNode(props) {
|
|
|
17157
17244
|
if (!uniqueId) return;
|
|
17158
17245
|
if (portalNodeRef.current) return;
|
|
17159
17246
|
let container = root || (portalContext == null ? void 0 : portalContext.portalNode);
|
|
17160
|
-
if (container && !
|
|
17247
|
+
if (container && !isNode(container)) container = container.current;
|
|
17161
17248
|
container = container || document.body;
|
|
17162
17249
|
let idWrapper = null;
|
|
17163
17250
|
if (id) {
|
|
@@ -17300,8 +17387,11 @@ function useLiteMergeRefs(refs) {
|
|
|
17300
17387
|
|
|
17301
17388
|
const LIST_LIMIT = 20;
|
|
17302
17389
|
let previouslyFocusedElements = [];
|
|
17303
|
-
function
|
|
17390
|
+
function clearDisconnectedPreviouslyFocusedElements() {
|
|
17304
17391
|
previouslyFocusedElements = previouslyFocusedElements.filter(el => el.isConnected);
|
|
17392
|
+
}
|
|
17393
|
+
function addPreviouslyFocusedElement(element) {
|
|
17394
|
+
clearDisconnectedPreviouslyFocusedElements();
|
|
17305
17395
|
if (element && getNodeName(element) !== 'body') {
|
|
17306
17396
|
previouslyFocusedElements.push(element);
|
|
17307
17397
|
if (previouslyFocusedElements.length > LIST_LIMIT) {
|
|
@@ -17310,7 +17400,8 @@ function addPreviouslyFocusedElement(element) {
|
|
|
17310
17400
|
}
|
|
17311
17401
|
}
|
|
17312
17402
|
function getPreviouslyFocusedElement() {
|
|
17313
|
-
|
|
17403
|
+
clearDisconnectedPreviouslyFocusedElements();
|
|
17404
|
+
return previouslyFocusedElements[previouslyFocusedElements.length - 1];
|
|
17314
17405
|
}
|
|
17315
17406
|
function getFirstTabbableElement(container) {
|
|
17316
17407
|
const tabbableOptions = getTabbableOptions();
|
|
@@ -17406,6 +17497,7 @@ function FloatingFocusManager(props) {
|
|
|
17406
17497
|
const preventReturnFocusRef = React.useRef(false);
|
|
17407
17498
|
const isPointerDownRef = React.useRef(false);
|
|
17408
17499
|
const tabbableIndexRef = React.useRef(-1);
|
|
17500
|
+
const blurTimeoutRef = React.useRef(-1);
|
|
17409
17501
|
const isInsidePortal = portalContext != null;
|
|
17410
17502
|
const floatingFocusElement = getFloatingFocusElement(floating);
|
|
17411
17503
|
const getTabbableContent = useEffectEvent(function (container) {
|
|
@@ -17533,14 +17625,28 @@ function FloatingFocusManager(props) {
|
|
|
17533
17625
|
}
|
|
17534
17626
|
});
|
|
17535
17627
|
}
|
|
17628
|
+
const shouldHandleBlurCapture = Boolean(!tree && portalContext);
|
|
17629
|
+
function markInsideReactTree() {
|
|
17630
|
+
clearTimeoutIfSet(blurTimeoutRef);
|
|
17631
|
+
dataRef.current.insideReactTree = true;
|
|
17632
|
+
blurTimeoutRef.current = window.setTimeout(() => {
|
|
17633
|
+
dataRef.current.insideReactTree = false;
|
|
17634
|
+
});
|
|
17635
|
+
}
|
|
17536
17636
|
if (floating && isHTMLElement(domReference)) {
|
|
17537
17637
|
domReference.addEventListener('focusout', handleFocusOutside);
|
|
17538
17638
|
domReference.addEventListener('pointerdown', handlePointerDown);
|
|
17539
17639
|
floating.addEventListener('focusout', handleFocusOutside);
|
|
17640
|
+
if (shouldHandleBlurCapture) {
|
|
17641
|
+
floating.addEventListener('focusout', markInsideReactTree, true);
|
|
17642
|
+
}
|
|
17540
17643
|
return () => {
|
|
17541
17644
|
domReference.removeEventListener('focusout', handleFocusOutside);
|
|
17542
17645
|
domReference.removeEventListener('pointerdown', handlePointerDown);
|
|
17543
17646
|
floating.removeEventListener('focusout', handleFocusOutside);
|
|
17647
|
+
if (shouldHandleBlurCapture) {
|
|
17648
|
+
floating.removeEventListener('focusout', markInsideReactTree, true);
|
|
17649
|
+
}
|
|
17544
17650
|
};
|
|
17545
17651
|
}
|
|
17546
17652
|
}, [disabled, domReference, floating, floatingFocusElement, modal, tree, portalContext, onOpenChange, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, orderRef, dataRef]);
|
|
@@ -17556,15 +17662,11 @@ function FloatingFocusManager(props) {
|
|
|
17556
17662
|
// Don't hide portals nested within the parent portal.
|
|
17557
17663
|
const portalNodes = Array.from((portalContext == null || (_portalContext$portal = portalContext.portalNode) == null ? void 0 : _portalContext$portal.querySelectorAll("[" + createAttribute('portal') + "]")) || []);
|
|
17558
17664
|
const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];
|
|
17559
|
-
const ancestorFloatingNodes = tree && !modal ? ancestors.map(node => {
|
|
17560
|
-
var _node$context6;
|
|
17561
|
-
return (_node$context6 = node.context) == null ? void 0 : _node$context6.elements.floating;
|
|
17562
|
-
}) : [];
|
|
17563
17665
|
const rootAncestorComboboxDomReference = (_ancestors$find = ancestors.find(node => {
|
|
17564
|
-
var _node$
|
|
17565
|
-
return isTypeableCombobox(((_node$
|
|
17666
|
+
var _node$context6;
|
|
17667
|
+
return isTypeableCombobox(((_node$context6 = node.context) == null ? void 0 : _node$context6.elements.domReference) || null);
|
|
17566
17668
|
})) == null || (_ancestors$find = _ancestors$find.context) == null ? void 0 : _ancestors$find.elements.domReference;
|
|
17567
|
-
const insideElements = [floating, rootAncestorComboboxDomReference, ...portalNodes, ...
|
|
17669
|
+
const insideElements = [floating, rootAncestorComboboxDomReference, ...portalNodes, ...getInsideElements(), startDismissButtonRef.current, endDismissButtonRef.current, beforeGuardRef.current, afterGuardRef.current, portalContext == null ? void 0 : portalContext.beforeOutsideRef.current, portalContext == null ? void 0 : portalContext.afterOutsideRef.current, orderRef.current.includes('reference') || isUntrappedTypeableCombobox ? domReference : null].filter(x => x != null);
|
|
17568
17670
|
const cleanup = modal || isUntrappedTypeableCombobox ? markOthers(insideElements, !useInert, useInert) : markOthers(insideElements);
|
|
17569
17671
|
return () => {
|
|
17570
17672
|
cleanup();
|
|
@@ -17643,9 +17745,9 @@ function FloatingFocusManager(props) {
|
|
|
17643
17745
|
return () => {
|
|
17644
17746
|
events.off('openchange', onOpenChange);
|
|
17645
17747
|
const activeEl = activeElement(doc);
|
|
17646
|
-
const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId()).some(node => {
|
|
17647
|
-
var _node$
|
|
17648
|
-
return contains((_node$
|
|
17748
|
+
const isFocusInsideFloatingTree = contains(floating, activeEl) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some(node => {
|
|
17749
|
+
var _node$context7;
|
|
17750
|
+
return contains((_node$context7 = node.context) == null ? void 0 : _node$context7.elements.floating, activeEl);
|
|
17649
17751
|
});
|
|
17650
17752
|
const returnElement = getReturnElement();
|
|
17651
17753
|
queueMicrotask(() => {
|
|
@@ -17672,6 +17774,9 @@ function FloatingFocusManager(props) {
|
|
|
17672
17774
|
queueMicrotask(() => {
|
|
17673
17775
|
preventReturnFocusRef.current = false;
|
|
17674
17776
|
});
|
|
17777
|
+
return () => {
|
|
17778
|
+
queueMicrotask(clearDisconnectedPreviouslyFocusedElements);
|
|
17779
|
+
};
|
|
17675
17780
|
}, [disabled]);
|
|
17676
17781
|
|
|
17677
17782
|
// Synchronize the `context` & `modal` value to the FloatingPortal context.
|
|
@@ -17912,7 +18017,6 @@ function useDismiss(context, props) {
|
|
|
17912
18017
|
outsidePress: outsidePressCapture
|
|
17913
18018
|
} = normalizeProp(capture);
|
|
17914
18019
|
const isComposingRef = React.useRef(false);
|
|
17915
|
-
const blurTimeoutRef = React.useRef(-1);
|
|
17916
18020
|
const closeOnEscapeKeyDown = useEffectEvent(event => {
|
|
17917
18021
|
var _dataRef$current$floa;
|
|
17918
18022
|
if (!open || !enabled || !escapeKey || event.key !== 'Escape') {
|
|
@@ -18147,16 +18251,8 @@ function useDismiss(context, props) {
|
|
|
18147
18251
|
},
|
|
18148
18252
|
[captureHandlerKeys[outsidePressEvent]]: () => {
|
|
18149
18253
|
dataRef.current.insideReactTree = true;
|
|
18150
|
-
},
|
|
18151
|
-
onBlurCapture() {
|
|
18152
|
-
if (tree) return;
|
|
18153
|
-
clearTimeoutIfSet(blurTimeoutRef);
|
|
18154
|
-
dataRef.current.insideReactTree = true;
|
|
18155
|
-
blurTimeoutRef.current = window.setTimeout(() => {
|
|
18156
|
-
dataRef.current.insideReactTree = false;
|
|
18157
|
-
});
|
|
18158
18254
|
}
|
|
18159
|
-
}), [closeOnEscapeKeyDown, outsidePressEvent, dataRef
|
|
18255
|
+
}), [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);
|
|
18160
18256
|
return React.useMemo(() => enabled ? {
|
|
18161
18257
|
reference,
|
|
18162
18258
|
floating
|
|
@@ -18485,17 +18581,11 @@ function useRole(context, props) {
|
|
|
18485
18581
|
// avoid defaulting to `menuitem` as it may overwrite custom role props.
|
|
18486
18582
|
switch (role) {
|
|
18487
18583
|
case 'select':
|
|
18584
|
+
case 'combobox':
|
|
18488
18585
|
return {
|
|
18489
18586
|
...commonProps,
|
|
18490
|
-
'aria-selected':
|
|
18587
|
+
'aria-selected': selected
|
|
18491
18588
|
};
|
|
18492
|
-
case 'combobox':
|
|
18493
|
-
{
|
|
18494
|
-
return {
|
|
18495
|
-
...commonProps,
|
|
18496
|
-
'aria-selected': selected
|
|
18497
|
-
};
|
|
18498
|
-
}
|
|
18499
18589
|
}
|
|
18500
18590
|
return {};
|
|
18501
18591
|
}, [floatingId, role]);
|
|
@@ -18598,11 +18688,9 @@ function Pagination({
|
|
|
18598
18688
|
controlClasses = baseClasses$3.controlClasses,
|
|
18599
18689
|
xToY,
|
|
18600
18690
|
currentPage,
|
|
18601
|
-
currentStart,
|
|
18602
|
-
currentEnd,
|
|
18603
|
-
currentTotal,
|
|
18604
18691
|
totalPages,
|
|
18605
18692
|
showButtons,
|
|
18693
|
+
dataTestId,
|
|
18606
18694
|
onFirstPage = () => {
|
|
18607
18695
|
return;
|
|
18608
18696
|
},
|
|
@@ -18615,7 +18703,7 @@ function Pagination({
|
|
|
18615
18703
|
onLastPage = () => {
|
|
18616
18704
|
return;
|
|
18617
18705
|
},
|
|
18618
|
-
toPage = (
|
|
18706
|
+
toPage = () => {
|
|
18619
18707
|
return;
|
|
18620
18708
|
}
|
|
18621
18709
|
}) {
|
|
@@ -18640,6 +18728,7 @@ function Pagination({
|
|
|
18640
18728
|
Icon,
|
|
18641
18729
|
{
|
|
18642
18730
|
className: previousPageActive ? activeIconClasses : inactiveIconClasses,
|
|
18731
|
+
dataTestId: dataTestId ? dataTestId + "-first-page" : void 0,
|
|
18643
18732
|
name: "lucide:chevron-first",
|
|
18644
18733
|
onClick: () => previousPageActive ? onFirstPage() : void 0
|
|
18645
18734
|
}
|
|
@@ -18648,6 +18737,7 @@ function Pagination({
|
|
|
18648
18737
|
Icon,
|
|
18649
18738
|
{
|
|
18650
18739
|
className: previousPageActive ? activeIconClasses : inactiveIconClasses,
|
|
18740
|
+
dataTestId: dataTestId ? dataTestId + "-previous-page" : void 0,
|
|
18651
18741
|
name: "lucide:chevron-left",
|
|
18652
18742
|
onClick: () => previousPageActive ? onPreviousPage() : void 0
|
|
18653
18743
|
}
|
|
@@ -18656,6 +18746,7 @@ function Pagination({
|
|
|
18656
18746
|
Input$2,
|
|
18657
18747
|
{
|
|
18658
18748
|
centered: true,
|
|
18749
|
+
dataTestId: dataTestId ? dataTestId + "-page-input" : void 0,
|
|
18659
18750
|
value: pageInternal,
|
|
18660
18751
|
onChange: (v) => setPageInternal(+v),
|
|
18661
18752
|
onKeyDown: (e) => onKeyDown(e)
|
|
@@ -18665,6 +18756,7 @@ function Pagination({
|
|
|
18665
18756
|
Icon,
|
|
18666
18757
|
{
|
|
18667
18758
|
className: nextPageActive ? activeIconClasses : inactiveIconClasses,
|
|
18759
|
+
dataTestId: dataTestId ? dataTestId + "-next-page" : void 0,
|
|
18668
18760
|
name: "lucide:chevron-right",
|
|
18669
18761
|
onClick: () => nextPageActive ? onNextPage() : void 0
|
|
18670
18762
|
}
|
|
@@ -18673,6 +18765,7 @@ function Pagination({
|
|
|
18673
18765
|
Icon,
|
|
18674
18766
|
{
|
|
18675
18767
|
className: nextPageActive ? activeIconClasses : inactiveIconClasses,
|
|
18768
|
+
dataTestId: dataTestId ? dataTestId + "-last-page" : void 0,
|
|
18676
18769
|
name: "lucide:chevron-last",
|
|
18677
18770
|
onClick: () => nextPageActive ? onLastPage() : void 0
|
|
18678
18771
|
}
|
|
@@ -22459,6 +22552,7 @@ function Table({
|
|
|
22459
22552
|
pagesize = 10,
|
|
22460
22553
|
xToY,
|
|
22461
22554
|
isInfinite = true,
|
|
22555
|
+
name = "",
|
|
22462
22556
|
onDragRow = () => {
|
|
22463
22557
|
return;
|
|
22464
22558
|
},
|
|
@@ -22508,7 +22602,7 @@ function Table({
|
|
|
22508
22602
|
async function updateFilters(newFilters) {
|
|
22509
22603
|
await onUpdateFilters(newFilters);
|
|
22510
22604
|
}
|
|
22511
|
-
return /* @__PURE__ */ jsxs("div", { className: wrapperClasses, children: [
|
|
22605
|
+
return /* @__PURE__ */ jsxs("div", { className: wrapperClasses, "data-testid": name + "-table", children: [
|
|
22512
22606
|
/* @__PURE__ */ jsxs(
|
|
22513
22607
|
"div",
|
|
22514
22608
|
{
|
|
@@ -22524,12 +22618,14 @@ function Table({
|
|
|
22524
22618
|
/* @__PURE__ */ jsxs(
|
|
22525
22619
|
"div",
|
|
22526
22620
|
{
|
|
22621
|
+
"data-testid": name + "-table-header",
|
|
22527
22622
|
ref: header,
|
|
22528
22623
|
className: "sticky top-0 z-1 flex flex-row items-center justify-between rounded-t-krc-table bg-krc-table-header",
|
|
22529
22624
|
children: [
|
|
22530
|
-
!!currentColumnsLeft.length && /* @__PURE__ */ jsx("div", { className: "sticky left-0 flex flex-row z-1", children: currentColumnsLeft.map((column) => /* @__PURE__ */ jsxs(
|
|
22625
|
+
!!currentColumnsLeft.length && /* @__PURE__ */ jsx("div", { className: "sticky left-0 flex flex-row z-1", "data-testid": name + "-table-header-left", children: currentColumnsLeft.map((column) => /* @__PURE__ */ jsxs(
|
|
22531
22626
|
"div",
|
|
22532
22627
|
{
|
|
22628
|
+
"data-testid": `${name}-table-header-left-${column.id.toString()}`,
|
|
22533
22629
|
style: {
|
|
22534
22630
|
minWidth: column.initialWidth,
|
|
22535
22631
|
maxWidth: !column.grow ? column.initialWidth : void 0
|
|
@@ -22572,6 +22668,7 @@ function Table({
|
|
|
22572
22668
|
Input$2,
|
|
22573
22669
|
{
|
|
22574
22670
|
defaultValue: filters[column.filterKey]?.join(", "),
|
|
22671
|
+
dataTestId: `${name}-table-header-left-filter-${column.id.toString()}`,
|
|
22575
22672
|
onKeyDown: async (e) => {
|
|
22576
22673
|
if (e.key === "Enter" && column.filterKey) {
|
|
22577
22674
|
const key = column.filterKey;
|
|
@@ -22617,6 +22714,7 @@ function Table({
|
|
|
22617
22714
|
minWidth: column.initialWidth,
|
|
22618
22715
|
maxWidth: !column.grow ? column.initialWidth : void 0
|
|
22619
22716
|
},
|
|
22717
|
+
"data-testid": `${name}-table-header-center-${column.id.toString()}`,
|
|
22620
22718
|
className: [
|
|
22621
22719
|
headerClasses,
|
|
22622
22720
|
hasFilters ? "h-24" : "h-12",
|
|
@@ -22655,6 +22753,7 @@ function Table({
|
|
|
22655
22753
|
Input$2,
|
|
22656
22754
|
{
|
|
22657
22755
|
defaultValue: filters[column.filterKey]?.join(", "),
|
|
22756
|
+
dataTestId: `${name}-table-header-center-filter-${column.id.toString()}`,
|
|
22658
22757
|
onKeyDown: async (e) => {
|
|
22659
22758
|
if (e.key === "Enter" && column.filterKey) {
|
|
22660
22759
|
const key = column.filterKey;
|
|
@@ -22700,6 +22799,7 @@ function Table({
|
|
|
22700
22799
|
minWidth: column.initialWidth,
|
|
22701
22800
|
maxWidth: !column.grow ? column.initialWidth : void 0
|
|
22702
22801
|
},
|
|
22802
|
+
"data-testid": `${name}-table-header-right-${column.id.toString()}`,
|
|
22703
22803
|
className: "flex h-full flex-row items-start justify-end truncate bg-krc-table-header px-4 py-3 text-xs font-medium last:rounded-tr-krc-table",
|
|
22704
22804
|
children: column.title
|
|
22705
22805
|
},
|
|
@@ -22714,6 +22814,7 @@ function Table({
|
|
|
22714
22814
|
Row,
|
|
22715
22815
|
{
|
|
22716
22816
|
index: i,
|
|
22817
|
+
name,
|
|
22717
22818
|
entry,
|
|
22718
22819
|
onDragRow,
|
|
22719
22820
|
onDropRow,
|
|
@@ -22732,62 +22833,73 @@ function Table({
|
|
|
22732
22833
|
i
|
|
22733
22834
|
);
|
|
22734
22835
|
}) }) : /* @__PURE__ */ jsx(Fragment, { children: data.map((entry, i) => {
|
|
22735
|
-
return /* @__PURE__ */ jsxs(
|
|
22736
|
-
|
|
22737
|
-
|
|
22738
|
-
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22742
|
-
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
|
|
22748
|
-
|
|
22749
|
-
|
|
22750
|
-
|
|
22751
|
-
|
|
22752
|
-
|
|
22753
|
-
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
|
|
22757
|
-
|
|
22758
|
-
|
|
22759
|
-
|
|
22760
|
-
|
|
22761
|
-
|
|
22762
|
-
|
|
22763
|
-
|
|
22764
|
-
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22770
|
-
|
|
22771
|
-
|
|
22772
|
-
|
|
22773
|
-
|
|
22774
|
-
|
|
22775
|
-
|
|
22776
|
-
|
|
22777
|
-
|
|
22778
|
-
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22783
|
-
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22836
|
+
return /* @__PURE__ */ jsxs(
|
|
22837
|
+
"div",
|
|
22838
|
+
{
|
|
22839
|
+
"data-testid": `${name}-table-row`,
|
|
22840
|
+
"data-foo": "bar",
|
|
22841
|
+
className: rowClasses,
|
|
22842
|
+
onClick: () => onRowClick(entry),
|
|
22843
|
+
onDoubleClick: () => onRowDoubleClick(entry),
|
|
22844
|
+
children: [
|
|
22845
|
+
!!currentColumnsLeft.length && /* @__PURE__ */ jsx("div", { className: "sticky left-0 flex flex-row border-r", children: currentColumnsLeft.map((column) => {
|
|
22846
|
+
return /* @__PURE__ */ jsx(
|
|
22847
|
+
"div",
|
|
22848
|
+
{
|
|
22849
|
+
style: {
|
|
22850
|
+
minWidth: column.initialWidth,
|
|
22851
|
+
maxWidth: !column.grow ? column.initialWidth : void 0
|
|
22852
|
+
},
|
|
22853
|
+
className: [rowLeftWrapperClasses, column.grow ? "grow" : ""].join(" "),
|
|
22854
|
+
title: entry[column.id] || "",
|
|
22855
|
+
children: cellRenderer?.[column.id]?.(entry) || /* @__PURE__ */ jsx("div", { "data-testid": `${name}-table-row-left-${column.id.toString()}`, className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
|
|
22856
|
+
},
|
|
22857
|
+
column.id.toString()
|
|
22858
|
+
);
|
|
22859
|
+
}) }),
|
|
22860
|
+
currentColumnsCenter.map((column) => {
|
|
22861
|
+
return /* @__PURE__ */ jsx(
|
|
22862
|
+
"div",
|
|
22863
|
+
{
|
|
22864
|
+
style: {
|
|
22865
|
+
minWidth: column.initialWidth,
|
|
22866
|
+
maxWidth: !column.grow ? column.initialWidth : void 0
|
|
22867
|
+
},
|
|
22868
|
+
className: [rowCenterWrapperClasses, column.grow ? "grow" : ""].join(" "),
|
|
22869
|
+
title: entry[column.id] ? entry[column.id].toString() : "",
|
|
22870
|
+
children: cellRenderer?.[column.id]?.(entry) || /* @__PURE__ */ jsx("div", { "data-testid": `${name}-table-row-center-${column.id.toString()}}`, className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
|
|
22871
|
+
},
|
|
22872
|
+
column.id.toString()
|
|
22873
|
+
);
|
|
22874
|
+
}),
|
|
22875
|
+
!!currentColumnsRight.length && /* @__PURE__ */ jsx("div", { className: "sticky right-0 flex flex-row border-l", children: currentColumnsRight.map((column) => {
|
|
22876
|
+
return /* @__PURE__ */ jsx(
|
|
22877
|
+
"div",
|
|
22878
|
+
{
|
|
22879
|
+
style: {
|
|
22880
|
+
minWidth: column.initialWidth,
|
|
22881
|
+
maxWidth: !column.grow ? column.initialWidth : void 0
|
|
22882
|
+
},
|
|
22883
|
+
className: [rowRightWrapperClasses, column.grow ? "grow" : ""].join(" "),
|
|
22884
|
+
title: entry[column.id] || "",
|
|
22885
|
+
children: cellRenderer?.[column.id]?.(entry) || /* @__PURE__ */ jsx("div", { "data-testid": `${name}-table-row-right-${column.id.toString()}`, className: "h-14 truncate p-4 text-sm", children: entry[column.id] || "-" })
|
|
22886
|
+
},
|
|
22887
|
+
column.id.toString()
|
|
22888
|
+
);
|
|
22889
|
+
}) }),
|
|
22890
|
+
/* @__PURE__ */ jsx(
|
|
22891
|
+
"div",
|
|
22892
|
+
{
|
|
22893
|
+
style: { width: `${(header.current?.scrollWidth || 0) - 1}px` },
|
|
22894
|
+
className: "absolute bottom-0 left-0 right-0 h-px bg-krc-table-header"
|
|
22895
|
+
}
|
|
22896
|
+
)
|
|
22897
|
+
]
|
|
22898
|
+
},
|
|
22899
|
+
i
|
|
22900
|
+
);
|
|
22789
22901
|
}) }),
|
|
22790
|
-
data.length === 0 && /* @__PURE__ */ jsx("div", { className: noDataClasses, children: noEntryLabel })
|
|
22902
|
+
data.length === 0 && /* @__PURE__ */ jsx("div", { "data-testid": name + "-table-no-data", className: noDataClasses, children: noEntryLabel })
|
|
22791
22903
|
]
|
|
22792
22904
|
}
|
|
22793
22905
|
),
|
|
@@ -22796,6 +22908,7 @@ function Table({
|
|
|
22796
22908
|
{
|
|
22797
22909
|
showButtons: !isInfinite,
|
|
22798
22910
|
xToY,
|
|
22911
|
+
dataTestId: `${name}-table-pagination`,
|
|
22799
22912
|
currentTotal: totalRows,
|
|
22800
22913
|
currentLoaded: data.length,
|
|
22801
22914
|
currentStart,
|
|
@@ -22827,7 +22940,8 @@ function Row({
|
|
|
22827
22940
|
rowClasses,
|
|
22828
22941
|
rowLeftWrapperClasses,
|
|
22829
22942
|
rowCenterWrapperClasses,
|
|
22830
|
-
rowRightWrapperClasses
|
|
22943
|
+
rowRightWrapperClasses,
|
|
22944
|
+
name
|
|
22831
22945
|
}) {
|
|
22832
22946
|
const dragRef = useRef(null);
|
|
22833
22947
|
const previewRef = useRef(null);
|
|
@@ -22893,6 +23007,7 @@ function Row({
|
|
|
22893
23007
|
ref: previewRef,
|
|
22894
23008
|
style: { opacity },
|
|
22895
23009
|
"data-handler-id": handlerId,
|
|
23010
|
+
"data-testid": `${name}-table-row`,
|
|
22896
23011
|
children: [
|
|
22897
23012
|
!!currentColumnsLeft.length && /* @__PURE__ */ jsx("div", { className: "sticky left-0 flex flex-row border-r", children: currentColumnsLeft.map((column) => {
|
|
22898
23013
|
return /* @__PURE__ */ jsx(
|
|
@@ -23053,6 +23168,8 @@ function Button({
|
|
|
23053
23168
|
iconLeftName,
|
|
23054
23169
|
iconRightPath,
|
|
23055
23170
|
iconRightName,
|
|
23171
|
+
name,
|
|
23172
|
+
dataTestId,
|
|
23056
23173
|
onClick
|
|
23057
23174
|
}) {
|
|
23058
23175
|
const classes = [classesBase, className];
|
|
@@ -23079,12 +23196,23 @@ function Button({
|
|
|
23079
23196
|
loadingClasses.push(loadingClassesAlert);
|
|
23080
23197
|
break;
|
|
23081
23198
|
}
|
|
23082
|
-
return /* @__PURE__ */ jsxs(
|
|
23083
|
-
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
|
|
23087
|
-
|
|
23199
|
+
return /* @__PURE__ */ jsxs(
|
|
23200
|
+
"button",
|
|
23201
|
+
{
|
|
23202
|
+
"data-testid": dataTestId,
|
|
23203
|
+
name,
|
|
23204
|
+
onClick: async (e) => await onClick?.(e),
|
|
23205
|
+
className: classes.join(" "),
|
|
23206
|
+
disabled,
|
|
23207
|
+
type,
|
|
23208
|
+
children: [
|
|
23209
|
+
(iconLeftPath || iconLeftName) && /* @__PURE__ */ jsx(Icon, { className: iconLeftClasses, name: iconLeftName, path: iconLeftPath }),
|
|
23210
|
+
label && /* @__PURE__ */ jsx("span", { children: label }),
|
|
23211
|
+
(iconRightPath || iconRightName) && /* @__PURE__ */ jsx(Icon, { className: iconRightClasses, name: iconRightName, path: iconRightPath }),
|
|
23212
|
+
loading && /* @__PURE__ */ jsx(LoadingIndicator, { className: loadingClasses.join(" ") })
|
|
23213
|
+
]
|
|
23214
|
+
}
|
|
23215
|
+
);
|
|
23088
23216
|
}
|
|
23089
23217
|
|
|
23090
23218
|
function Modal({
|
|
@@ -23101,12 +23229,13 @@ function Modal({
|
|
|
23101
23229
|
headerContent,
|
|
23102
23230
|
footerContent,
|
|
23103
23231
|
title,
|
|
23232
|
+
dataTestId,
|
|
23104
23233
|
footerActions,
|
|
23105
23234
|
hasCloseIcon,
|
|
23106
23235
|
onClose
|
|
23107
23236
|
}) {
|
|
23108
23237
|
return /* @__PURE__ */ jsx(Fragment, { children: reactDomExports.createPortal(
|
|
23109
|
-
/* @__PURE__ */ jsx("div", { className: backdropClasses, onMouseDown: onClose, role: "presentation", children: /* @__PURE__ */ jsxs(
|
|
23238
|
+
/* @__PURE__ */ jsx("div", { className: backdropClasses, onMouseDown: onClose, role: "presentation", "data-testid": dataTestId, children: /* @__PURE__ */ jsxs(
|
|
23110
23239
|
"div",
|
|
23111
23240
|
{
|
|
23112
23241
|
role: "presentation",
|
|
@@ -23151,6 +23280,7 @@ function Tabs({
|
|
|
23151
23280
|
showCounts = true,
|
|
23152
23281
|
tabs,
|
|
23153
23282
|
active,
|
|
23283
|
+
dataTestId = "",
|
|
23154
23284
|
onClick
|
|
23155
23285
|
}) {
|
|
23156
23286
|
function equalTabs(tab1, tab2) {
|
|
@@ -23162,6 +23292,7 @@ function Tabs({
|
|
|
23162
23292
|
return /* @__PURE__ */ jsx("div", { className: wrapperClasses, children: tabs.map((tab, i) => /* @__PURE__ */ jsxs(
|
|
23163
23293
|
"div",
|
|
23164
23294
|
{
|
|
23295
|
+
"data-testid": dataTestId + i,
|
|
23165
23296
|
onClick: () => {
|
|
23166
23297
|
onClick(tab.id);
|
|
23167
23298
|
},
|