@solibo/solibo-ui 2.2.4 → 2.2.6
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/assets/index.css +1 -1
- package/dist/components/dropdown/index.cjs +1 -1
- package/dist/components/dropdown/index.js +192 -153
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.js +20 -20
- package/dist/index.d.ts +13 -1
- package/dist/tokens.json +1 -1
- package/package.json +1 -1
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes stagger-in{0%{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}@media (prefers-reduced-motion: reduce){*{animation:none!important;opacity:1!important;transition:none!important;translate:none!important}}[data-animation=stagger]{--stagger-duration: var(--utils-tokens-transition-duration);--stagger-parent: var(--utils-tokens-transition-duration);--stagger-step: var(--utils-tokens-transition-duration)}[data-animation=stagger] *{--stagger-index: 0;--stagger-next: calc(var(--stagger-total) + var(--stagger-duration));--stagger-self: calc(var(--stagger-index) * var(--stagger-step));--stagger-total: calc(var(--stagger-parent) + var(--stagger-self));animation:stagger-in var(--stagger-duration) var(--utils-tokens-transition-timing-function) var(--utils-tokens-transition-delay) both;animation-delay:var(--stagger-total);opacity:0;translate:0 var(--scale-4);will-change:opacity,translate}[data-animation=stagger] *>*{--stagger-parent: var(--stagger-next)}[data-animation=stagger]>*:nth-child(1),[data-animation=stagger] *>*:nth-child(1){--stagger-index: 0}[data-animation=stagger]>*:nth-child(2),[data-animation=stagger] *>*:nth-child(2){--stagger-index: 1}[data-animation=stagger]>*:nth-child(3),[data-animation=stagger] *>*:nth-child(3){--stagger-index: 2}[data-animation=stagger]>*:nth-child(4),[data-animation=stagger] *>*:nth-child(4){--stagger-index: 3}[data-animation=stagger]>*:nth-child(5),[data-animation=stagger] *>*:nth-child(5){--stagger-index: 4}[data-animation=stagger]>*:nth-child(6),[data-animation=stagger] *>*:nth-child(6){--stagger-index: 5}[data-animation=stagger]>*:nth-child(7),[data-animation=stagger] *>*:nth-child(7){--stagger-index: 6}[data-animation=stagger]>*:nth-child(8),[data-animation=stagger] *>*:nth-child(8){--stagger-index: 7}[data-animation=stagger]>*:nth-child(9),[data-animation=stagger] *>*:nth-child(9){--stagger-index: 8}[data-animation=stagger]>*:nth-child(10),[data-animation=stagger] *>*:nth-child(10){--stagger-index: 9}[data-animation=stagger][data-stagger-step]{--stagger-step: attr(data-stagger-step time, 25ms)}[data-animation=stagger] [data-stagger-off],[data-animation=stagger] [data-stagger-off] *{--stagger-duration: 0ms;--stagger-parent: 0ms;--stagger-step: 0ms;animation:none!important;opacity:1!important;translate:none!important}@media print{@page{margin:1.5cm}*,*:before,*:after{animation:none!important;box-shadow:none!important;text-shadow:none!important;transition:none!important}html,body{background:#fff!important;color:#000!important;font:12pt/1.4 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif!important}body{margin:0}nav,aside,button:not([data-print-content]),input,select,textarea,iframe,video,audio,body:before,[data-component=controls],[data-component=toolbar],[data-component=menu],[data-message-actions],[data-content=collapsible-indicator],[data-component=messages]>[data-component=editor],[data-component=messages]>[data-component=tooltip],.no-print,.print-hidden,[aria-hidden=true]{display:none!important}main,article,section,[data-component=appshell],[data-component=panel],[data-component=messages],[data-message-list],[data-component=list],[data-print-flow]{display:block!important;height:auto!important;max-height:none!important;min-height:0!important;min-width:0!important;overflow:visible!important;position:static!important;max-width:none!important;width:100%!important}main,article,section{margin:0!important;padding:0!important}article[data-component=card]{overflow:visible!important}[data-animation],[data-animation] *{opacity:1!important;translate:none!important}[data-message-type]{display:block!important;-moz-column-break-inside:auto;break-inside:auto;margin:0 0 1em!important;padding:0!important;background:transparent!important}[data-message-type]>*,[data-message-type] [data-appearance]{margin-inline:0!important;max-width:none!important;width:auto!important}[data-message-type] [data-appearance]{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;text-overflow:clip!important}[data-content=user-generated],html [data-content=user-generated] :is(p,table,th,td,tr),[data-component=file],[data-component=file] :is(a,button,span),[data-component=avatar] :is(strong,span){max-height:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere}[data-component=file] button{color:#000!important}header,[data-component=message],[data-component=file]{color:#000!important}header :is(p,span,strong,b,em,time,h1,h2,h3,h4,h5,h6),[data-component=message] :is(p,span,strong,b,em,time,h1,h2,h3,h4,h5,h6),[data-component=file] :is(p,span,strong,b,em,time,h1,h2,h3,h4,h5,h6){color:inherit!important}[data-component=avatar] span,[data-component=file],[data-component=panel],[data-component=card],[data-component=messages]>ul{background-color:transparent!important}header{-moz-column-break-after:avoid;break-after:avoid}[data-component=card] :is(h1,h2,h3,h4,h5,h6){overflow:visible!important;white-space:normal!important}h1,h2,h3{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}p,h1,h2,h3,h4,h5,h6{orphans:3;widows:3}a{color:#000!important;text-decoration:underline}[data-component=file]>a[href]{flex-wrap:wrap}[data-component=file]>a[href]:after{flex-basis:100%}[data-content=user-generated] a[href^=http]:after,a[data-print-url][href^=http]:after,[data-component=file]>a[href]:not([href^="#"]):after{content:" (" attr(href) ")";font-size:90%;overflow-wrap:anywhere}table{border-collapse:collapse;page-break-inside:auto;width:100%}html [data-content=user-generated] table{table-layout:auto!important;width:100%!important}tr,img{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}th,td{border:1px solid #000;padding:.25rem .4rem;vertical-align:top}thead{display:table-header-group}img,svg{height:auto!important;max-width:100%!important}pre,code{white-space:pre-wrap;word-break:break-word}pre,blockquote{-moz-column-break-inside:auto;break-inside:auto}.no-print,.print-hidden,[aria-hidden=true],[hidden]{display:none!important}}:root{--breakpoint-lg: 1024;--breakpoint-md: 768;--breakpoint-sm: 480;--colors-blue-100: #c9dcff;--colors-blue-200: var(--colors-new-brand-blue);--colors-blue-300: #6695ff;--colors-blue-400: #296afa;--colors-blue-50: var(--colors-new-brand-light-blue);--colors-blue-500: #0b4ad5;--colors-blue-600: #0c3797;--colors-blue-700: #0c2764;--colors-blue-800: #0b1938;--colors-blue-900: #090e1b;--colors-box-shadow: #0000001f;--colors-box-shadow-heavy: #0006;--colors-categories-bg-grey-1: #e3e4e6;--colors-categories-bg-grey-2: #d4dce5;--colors-categories-bg-pink-1: #e7e3ea;--colors-categories-bg-pink-2: #e3d2f0;--colors-categories-bg-pink-3: #d8bfe5;--colors-categories-bg-pink-4: #e0c3d8;--colors-categories-bg-pink-5: #e8c6d2;--colors-categories-bg-yellow-1: #d9cbaf;--colors-categories-bg-yellow-2: #d9c7c0;--colors-categories-bg-yellow-3: #cdb8ac;--colors-categories-content-on-grey: #3f444a;--colors-categories-content-on-pink: #783b65;--colors-categories-content-on-yellow: #65483f;--colors-green-100: #d9e0d7;--colors-green-200: #b8c7b3;--colors-green-300: #90aa88;--colors-green-400: #698c5f;--colors-green-50: #eff1ee;--colors-green-500: #4a6344;--colors-green-600: var(--colors-new-brand-shadow-green);--colors-green-700: var(--colors-new-brand-dark-green);--colors-green-800: #151b13;--colors-green-900: #0c0f0b;--colors-neutral-0: #fff;--colors-neutral-100: #ebebeb;--colors-neutral-200: #dfdfdf;--colors-neutral-300: #b3b3b3;--colors-neutral-400: #7b7b7b;--colors-neutral-50: #f5f5f5;--colors-neutral-500: #525252;--colors-neutral-600: #373737;--colors-neutral-700: #2a2a2a;--colors-neutral-800: #1c1c1c;--colors-neutral-900: #0b0b0b;--colors-new-brand-blue: #abc5ff;--colors-new-brand-dark-green: #202b1b;--colors-new-brand-light-blue: #e8f1ff;--colors-new-brand-light-yellow: #f8fac0;--colors-new-brand-nature-white: #f7f7e1;--colors-new-brand-shadow-green: #263821;--colors-new-brand-shadow-yellow: #7d8233;--colors-new-brand-yellow: #cde517;--colors-orange-100: #fbe7d3;--colors-orange-200: #f1cda7;--colors-orange-300: #e6b37a;--colors-orange-400: #dc9c50;--colors-orange-50: #fff5ea;--colors-orange-500: #cf8a33;--colors-orange-600: #a96f23;--colors-orange-700: #885716;--colors-orange-800: #633e0d;--colors-orange-900: #442a08;--colors-red-100: #f8e2de;--colors-red-200: #e9bbb3;--colors-red-300: #d1897e;--colors-red-400: #aa5449;--colors-red-50: #fff4f2;--colors-red-500: #862b22;--colors-red-600: #702018;--colors-red-700: #5a1610;--colors-red-800: #43100b;--colors-red-900: #2d0906;--colors-semantic-bg-backdrop: #000000d9;--colors-semantic-bg-disabled: var(--colors-neutral-50);--colors-semantic-bg-overlay: var(--colors-neutral-100);--colors-semantic-bg-page: var(--colors-neutral-50);--colors-semantic-bg-surface: var(--colors-neutral-0);--colors-semantic-border-active: var(--colors-neutral-800);--colors-semantic-border-default: var(--colors-neutral-200);--colors-semantic-border-destructive: var(--colors-red-600);--colors-semantic-border-disabled: var(--colors-neutral-100);--colors-semantic-border-focus: var(--colors-new-brand-shadow-yellow);--colors-semantic-border-on-color: var(--colors-neutral-0);--colors-semantic-border-strong: var(--colors-neutral-300);--colors-semantic-border-subtle: var(--colors-neutral-100);--colors-semantic-content-destructive: var(--colors-red-700);--colors-semantic-content-disabled: var(--colors-neutral-400);--colors-semantic-content-highlight: var(--colors-green-200);--colors-semantic-content-link: var(--colors-blue-500);--colors-semantic-content-link-hover: var(--colors-blue-700);--colors-semantic-content-link-visited: var(--colors-blue-600);--colors-semantic-content-on-color: var(--colors-semantic-primary-on-primary);--colors-semantic-content-primary: var(--colors-green-700);--colors-semantic-content-secondary: var(--colors-neutral-600);--colors-semantic-content-tertiary: var(--colors-neutral-500);--colors-semantic-interactive-destructive-bg: var(--colors-red-500);--colors-semantic-interactive-destructive-disabled: var(--colors-red-200);--colors-semantic-interactive-destructive-hover: var(--colors-red-600);--colors-semantic-interactive-disabled: var(--colors-neutral-200);--colors-semantic-interactive-hover: var(--colors-green-50);--colors-semantic-interactive-hover-overlay: #0000001f;--colors-semantic-interactive-hover-subtle: var(--colors-neutral-100);--colors-semantic-interactive-neutral: var(--colors-neutral-300);--colors-semantic-interactive-pressed: var(--colors-green-100);--colors-semantic-interactive-secondary-bg: var(--colors-green-100);--colors-semantic-interactive-secondary-destructive-hover: var(--colors-red-50);--colors-semantic-interactive-secondary-hover: var(--colors-green-200);--colors-semantic-interactive-selected: var(--colors-green-100);--colors-semantic-main-nav-admin-bg: var(--colors-red-800);--colors-semantic-main-nav-admin-content: var(--colors-red-100);--colors-semantic-main-nav-admin-content-active: var(--colors-neutral-0);--colors-semantic-main-nav-admin-hover: var(--colors-red-600);--colors-semantic-main-nav-admin-selected: var(--colors-red-600);--colors-semantic-main-nav-admin-selected-border: var(--colors-yellow-500);--colors-semantic-main-nav-admin-submenu-bg: var(--colors-neutral-900);--colors-semantic-main-nav-forvalt-bg: var(--colors-blue-800);--colors-semantic-main-nav-forvalt-content: var(--colors-blue-100);--colors-semantic-main-nav-forvalt-content-active: var(--colors-neutral-0);--colors-semantic-main-nav-forvalt-hover: var(--colors-blue-700);--colors-semantic-main-nav-forvalt-selected: var(--colors-blue-700);--colors-semantic-main-nav-forvalt-selected-border: var(--colors-yellow-500);--colors-semantic-main-nav-forvalt-submenu-bg: var(--colors-blue-900);--colors-semantic-main-nav-portal-bg: var(--colors-green-700);--colors-semantic-main-nav-portal-content: var(--colors-new-brand-light-yellow);--colors-semantic-main-nav-portal-content-active: var(--colors-neutral-0);--colors-semantic-main-nav-portal-hover: var(--colors-green-800);--colors-semantic-main-nav-portal-selected: var(--colors-green-800);--colors-semantic-main-nav-portal-selected-border: var(--colors-yellow-500);--colors-semantic-main-nav-portal-submenu-bg: var(--colors-green-900);--colors-semantic-primary-on-primary: var(--colors-new-brand-light-yellow);--colors-semantic-primary-on-primary-subtle: var(--colors-green-600);--colors-semantic-primary-primary: var(--colors-green-700);--colors-semantic-primary-primary-active: var(--colors-green-500);--colors-semantic-primary-primary-hover: var(--colors-green-600);--colors-semantic-primary-primary-subtle: var(--colors-green-100);--colors-semantic-primary-primary-subtle-border: var(--colors-green-300);--colors-semantic-roles-bg-board: var(--colors-new-brand-light-yellow);--colors-semantic-roles-bg-external: var(--colors-green-100);--colors-semantic-roles-bg-owner: var(--colors-blue-200);--colors-semantic-roles-bg-renter: var(--colors-blue-50);--colors-semantic-roles-bg-solibo: var(--colors-green-700);--colors-semantic-roles-content-board: var(--colors-green-700);--colors-semantic-roles-content-external: var(--colors-green-800);--colors-semantic-roles-content-owner: var(--colors-new-brand-dark-green);--colors-semantic-roles-content-renter: var(--colors-new-brand-dark-green);--colors-semantic-roles-content-solibo: var(--colors-new-brand-light-yellow);--colors-semantic-status-active-bg: var(--colors-new-brand-yellow);--colors-semantic-status-active-content: var(--colors-new-brand-dark-green);--colors-semantic-status-error-bg: var(--colors-red-50);--colors-semantic-status-error-border: var(--colors-red-300);--colors-semantic-status-error-content: var(--colors-red-800);--colors-semantic-status-error-content-inverse: var(--colors-neutral-0);--colors-semantic-status-info-bg: var(--colors-blue-50);--colors-semantic-status-info-border: var(--colors-blue-300);--colors-semantic-status-info-content: var(--colors-blue-800);--colors-semantic-status-info-content-inverse: var(--colors-neutral-0);--colors-semantic-status-pending-bg: var(--colors-neutral-200);--colors-semantic-status-pending-content: var(--colors-neutral-600);--colors-semantic-status-success-bg: var(--colors-green-100);--colors-semantic-status-success-border: var(--colors-green-300);--colors-semantic-status-success-content: var(--colors-green-800);--colors-semantic-status-success-content-inverse: var(--colors-neutral-0);--colors-semantic-status-warning-bg: var(--colors-orange-50);--colors-semantic-status-warning-border: var(--colors-orange-300);--colors-semantic-status-warning-content: var(--colors-orange-800);--colors-semantic-status-warning-content-inverse: var(--colors-neutral-0);--colors-translucent: #fff3;--colors-yellow-100: #f2f7a4;--colors-yellow-200: #e6f078;--colors-yellow-300: #daea46;--colors-yellow-400: var(--colors-new-brand-yellow);--colors-yellow-50: var(--colors-new-brand-light-yellow);--colors-yellow-500: #b0c62a;--colors-yellow-600: #96a439;--colors-yellow-700: var(--colors-new-brand-shadow-yellow);--colors-yellow-800: #50551c;--colors-yellow-900: #282b0d;--font-body: "Geist";--font-font-weight-bold: 700;--font-font-weight-medium: 500;--font-font-weight-regular: 400;--font-font-weight-semibold: 600;--font-headline: "Degular";--scale-0: 0px;--scale-1: 1px;--scale-12: 12px;--scale-14: 14px;--scale-16: 16px;--scale-18: 18px;--scale-2: 2px;--scale-20: 20px;--scale-24: 24px;--scale-28: 28px;--scale-32: 32px;--scale-4: 4px;--scale-40: 40px;--scale-48: 48px;--scale-56: 56px;--scale-64: 64px;--scale-72: 72px;--scale-8: 8px;--scale-80: 80px;--scale-88: 88px;--scale-96: 96px;--scale-negative-16: -16px;--shape-border-radius-radius-2xl: var(--scale-16);--shape-border-radius-radius-full: var(--scale-32);--shape-border-radius-radius-lg: var(--scale-8);--shape-border-radius-radius-md: var(--scale-4);--shape-border-radius-radius-none: var(--scale-0);--shape-border-radius-radius-sm: var(--scale-2);--shape-border-radius-radius-xl: var(--scale-12);--shape-border-width-default: 1px;--shape-border-width-thick: 2px;--shape-box-shadow-lg-blur: 12px;--shape-box-shadow-lg-color: var(--colors-box-shadow);--shape-box-shadow-lg-position-x: 0px;--shape-box-shadow-lg-position-y: 12px;--shape-box-shadow-lg-spread: -12px;--shape-box-shadow-md-blur: 8px;--shape-box-shadow-md-color: var(--colors-box-shadow);--shape-box-shadow-md-position-x: 0px;--shape-box-shadow-md-position-y: 8px;--shape-box-shadow-md-spread: -8px;--shape-box-shadow-sm-blur: 4px;--shape-box-shadow-sm-color: var(--colors-box-shadow);--shape-box-shadow-sm-position-x: 0px;--shape-box-shadow-sm-position-y: 4px;--shape-box-shadow-sm-spread: -4px;--shape-box-shadow-xl-blur: 16px;--shape-box-shadow-xl-color: var(--colors-box-shadow);--shape-box-shadow-xl-position-x: 0px;--shape-box-shadow-xl-position-y: 16px;--shape-box-shadow-xl-spread: -16px;--shape-box-shadow-xs-blur: 2px;--shape-box-shadow-xs-color: var(--colors-box-shadow);--shape-box-shadow-xs-position-x: 0px;--shape-box-shadow-xs-position-y: 1px;--shape-box-shadow-xs-spread: 0px;--shape-image-desktop-max-height: 400px;--shape-image-desktop-max-width: 320px;--shape-image-desktop-min-height: 96px;--shape-image-desktop-min-width: 96px;--shape-image-mobile-max-height: 320px;--shape-image-mobile-max-width: 240px;--shape-image-mobile-min-height: 96px;--shape-image-mobile-min-width: 96px;--shape-outline-focus: 3px;--shape-outline-selected: 1px;--shape-spacing-2xl: var(--scale-48);--shape-spacing-2xs: var(--scale-4);--shape-spacing-3xl: var(--scale-64);--shape-spacing-3xs: var(--scale-2);--shape-spacing-lg: var(--scale-24);--shape-spacing-md: var(--scale-16);--shape-spacing-none: var(--scale-0);--shape-spacing-sm: var(--scale-12);--shape-spacing-xl: var(--scale-32);--shape-spacing-xs: var(--scale-8);--shape-width-max: 480px;--shape-width-max-lg: 640px;--shape-width-sidebar: 240px;--typography-font-sizes-body-lg: var(--scale-18);--typography-font-sizes-body-md: var(--scale-16);--typography-font-sizes-body-sm: var(--scale-14);--typography-font-sizes-caption: var(--scale-12);--typography-font-sizes-display-lg: var(--scale-56);--typography-font-sizes-display-sm: var(--scale-48);--typography-font-sizes-h1: var(--scale-32);--typography-font-sizes-h2: var(--scale-28);--typography-font-sizes-h3: var(--scale-24);--typography-font-sizes-h4: var(--scale-20);--typography-font-sizes-label-lg: var(--scale-16);--typography-font-sizes-label-sm: var(--scale-14);--utils-tokens-blur-default: var(--scale-8);--utils-tokens-font-family-body: "Geist", "Arial", sans-serif;--utils-tokens-font-family-headline: "Degular", "Arial", sans-serif;--utils-tokens-gradient: linear-gradient(180deg, rgb(255 255 255 / 100%), transparent 50%);--utils-tokens-icon-large: var(--scale-32);--utils-tokens-icon-medium: var(--scale-24);--utils-tokens-icon-small: var(--scale-16);--utils-tokens-icon-tiny: var(--scale-12);--utils-tokens-negative-unit: var(--scale-negative-16);--utils-tokens-opacity-minimal: .5;--utils-tokens-transition-delay: 125ms;--utils-tokens-transition-duration: .25s;--utils-tokens-transition-timing-function: ease-out;--utils-tokens-unit: var(--scale-16);--utils-tokens-z-max: 2147483648}[data-theme=dark]{--colors-box-shadow: #000000e0;--colors-orange-100: #fdd7b0;--colors-orange-200: #fbc48a;--colors-orange-300: #faa954;--colors-orange-400: #f99933;--colors-orange-50: #fef2e6;--colors-orange-500: #f77f00;--colors-orange-600: #e17400;--colors-orange-700: #af5a00;--colors-orange-800: #884600;--colors-orange-900: #683500;--colors-red-100: #ebb2b1;--colors-red-200: #e28c8b;--colors-red-300: #d45856;--colors-red-400: #cc3835;--colors-red-50: #f9e6e6;--colors-red-500: #bf0603;--colors-red-600: #ae0503;--colors-red-700: #880402;--colors-red-800: #690302;--colors-red-900: #500301;--colors-semantic-bg-disabled: var(--colors-neutral-800);--colors-semantic-bg-overlay: var(--colors-neutral-600);--colors-semantic-bg-page: var(--colors-neutral-900);--colors-semantic-bg-surface: var(--colors-neutral-700);--colors-semantic-border-active: var(--colors-neutral-50);--colors-semantic-border-default: var(--colors-neutral-500);--colors-semantic-border-destructive: var(--colors-red-300);--colors-semantic-border-disabled: var(--colors-neutral-700);--colors-semantic-border-on-color: var(--colors-neutral-400);--colors-semantic-border-subtle: var(--colors-neutral-600);--colors-semantic-content-destructive: var(--colors-red-600);--colors-semantic-content-disabled: var(--colors-neutral-500);--colors-semantic-content-highlight: var(--colors-green-700);--colors-semantic-content-link: var(--colors-blue-400);--colors-semantic-content-link-hover: var(--colors-blue-600);--colors-semantic-content-on-color: var(--colors-neutral-0);--colors-semantic-content-primary: var(--colors-neutral-50);--colors-semantic-content-secondary: var(--colors-neutral-200);--colors-semantic-content-tertiary: var(--colors-neutral-300);--colors-semantic-interactive-destructive-bg: var(--colors-red-600);--colors-semantic-interactive-destructive-hover: var(--colors-red-700);--colors-semantic-interactive-disabled: var(--colors-neutral-500);--colors-semantic-interactive-hover: var(--colors-neutral-500);--colors-semantic-interactive-hover-subtle: var(--colors-neutral-600);--colors-semantic-interactive-neutral: var(--colors-neutral-400);--colors-semantic-interactive-pressed: var(--colors-green-700);--colors-semantic-interactive-secondary-bg: var(--colors-neutral-600);--colors-semantic-interactive-secondary-hover: var(--colors-neutral-500);--colors-semantic-interactive-selected: var(--colors-green-400);--colors-semantic-main-nav-admin-submenu-bg: var(--colors-red-900);--colors-semantic-main-nav-forvalt-hover: var(--colors-neutral-700);--colors-semantic-main-nav-forvalt-submenu-bg: var(--colors-neutral-900);--colors-semantic-primary-on-primary: var(--colors-neutral-0);--colors-semantic-primary-on-primary-subtle: var(--colors-green-200);--colors-semantic-primary-primary: var(--colors-green-300);--colors-semantic-primary-primary-active: var(--colors-green-50);--colors-semantic-primary-primary-hover: var(--colors-green-200);--colors-semantic-primary-primary-subtle: var(--colors-green-500);--colors-semantic-primary-primary-subtle-border: var(--colors-green-600);--colors-semantic-roles-content-owner: var(--colors-blue-800);--colors-semantic-roles-content-renter: var(--colors-blue-800);--colors-semantic-status-error-bg: var(--colors-red-200);--colors-semantic-status-info-bg: var(--colors-blue-200);--colors-semantic-status-info-border: var(--colors-blue-400);--colors-semantic-status-success-bg: var(--colors-green-200);--colors-semantic-status-warning-bg: var(--colors-orange-200);--colors-semantic-status-warning-border: var(--colors-orange-400)}@media (width <= 960px){:root{--typography-font-sizes-body-lg: var(--scale-16);--typography-font-sizes-display-lg: var(--scale-40);--typography-font-sizes-display-sm: var(--scale-32);--typography-font-sizes-h1: var(--scale-24);--typography-font-sizes-h2: var(--scale-20);--typography-font-sizes-h3: var(--scale-18);--typography-font-sizes-h4: var(--scale-16)}}*,:before,:after{box-sizing:border-box}:where(body,figure,input){margin:0}:where(img){display:block}:where(input,button,textarea,select){font:inherit}@media (prefers-reduced-motion: no-preference){@view-transition{navigation: auto;}:where(html,body){scroll-behavior:smooth}}:where(dt){font-weight:var(--font-font-weight-semibold);margin-top:var(--utils-tokens-unit)}:where(body){background-color:var(--colors-semantic-bg-page);font-family:var(--utils-tokens-font-family-body);font-size:var(--typography-font-sizes-body-md);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:where(:focus-visible){outline:solid var(--scale-2) var(--colors-semantic-border-focus);outline-offset:var(--shape-outline-offset, calc(var(--scale-2) * -1));border-radius:var(--shape-border-radius-radius-md)}:where(article a){color:var(--colors-semantic-content-link)}:where(b,strong){font-weight:var(--font-font-weight-bold)}:where(menu,ol,p,ul){margin-block:var(--utils-tokens-unit)}:where(menu,ol,ul){list-style:none;padding-inline-start:0}:where(small,sub){font-size:var(--typography-font-sizes-body-sm)}[data-content=screen-reader]{border:0;clip:rect(0,0,0,0);height:var(--scale-1);margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--scale-1)}*[data-content=user-generated]{overflow-x:auto;word-break:break-word}*[data-content=user-generated] p{background-color:inherit!important;margin:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}*[data-content=user-generated] p img{max-width:calc(100% - calc(2 * var(--utils-tokens-unit)))!important}*[data-content=user-generated] table{border-collapse:collapse;margin-bottom:var(--utils-tokens-unit);overflow:hidden!important;table-layout:fixed;text-overflow:ellipsis;width:auto!important}*[data-content=user-generated] table th,*[data-content=user-generated] table td,*[data-content=user-generated] table tr{max-width:calc(100% - calc(2 * var(--utils-tokens-unit)))!important;overflow:hidden;text-overflow:ellipsis;width:auto!important}*[data-content=user-generated] table th,*[data-content=user-generated] table td{border:var(--scale-1) solid var(--colors-semantic-border-default);padding:var(--scale-8) var(--utils-tokens-unit);text-align:left}*[data-content=user-generated] table th{background-color:var(--colors-semantic-bg-page)}*[data-content=user-generated] table th:first-child{border-top-left-radius:var(--shape-border-radius-radius-md)}*[data-content=user-generated] table th:last-child{border-top-right-radius:var(--shape-border-radius-radius-md)}*[data-content=user-generated] ul{margin-left:var(--scale-4)!important}*[data-content=user-generated] ul li{list-style:disc;margin-bottom:var(--scale-8);margin-left:var(--scale-16)}[data-required]{position:relative}[data-required]:after{color:var(--colors-semantic-status-error-content);content:"*";font-size:calc(var(--utils-tokens-unit) * 1.5);margin-left:var(--scale-2);position:absolute}[data-span=all]{-moz-column-span:all;column-span:all;grid-column:1 / -1}@supports (-moz-appearance: none){*{scrollbar-color:var(--colors-semantic-interactive-neutral) transparent}}::-webkit-scrollbar{height:var(--scale-8);width:var(--scale-8)}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background-color:transparent}::-webkit-scrollbar-thumb{background-color:var(--colors-semantic-interactive-neutral);border-radius:var(--shape-border-radius-radius-lg)}
|
|
1
|
+
@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1}to{opacity:0}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes stagger-in{0%{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}@media (prefers-reduced-motion: reduce){*{animation:none!important;opacity:1!important;transition:none!important;translate:none!important}}[data-animation=stagger]{--stagger-duration: var(--utils-tokens-transition-duration);--stagger-parent: var(--utils-tokens-transition-duration);--stagger-step: var(--utils-tokens-transition-duration)}[data-animation=stagger] *{--stagger-index: 0;--stagger-next: calc(var(--stagger-total) + var(--stagger-duration));--stagger-self: calc(var(--stagger-index) * var(--stagger-step));--stagger-total: calc(var(--stagger-parent) + var(--stagger-self));animation:stagger-in var(--stagger-duration) var(--utils-tokens-transition-timing-function) var(--utils-tokens-transition-delay) both;animation-delay:var(--stagger-total);opacity:0;translate:0 var(--scale-4);will-change:opacity,translate}[data-animation=stagger] *>*{--stagger-parent: var(--stagger-next)}[data-animation=stagger]>*:nth-child(1),[data-animation=stagger] *>*:nth-child(1){--stagger-index: 0}[data-animation=stagger]>*:nth-child(2),[data-animation=stagger] *>*:nth-child(2){--stagger-index: 1}[data-animation=stagger]>*:nth-child(3),[data-animation=stagger] *>*:nth-child(3){--stagger-index: 2}[data-animation=stagger]>*:nth-child(4),[data-animation=stagger] *>*:nth-child(4){--stagger-index: 3}[data-animation=stagger]>*:nth-child(5),[data-animation=stagger] *>*:nth-child(5){--stagger-index: 4}[data-animation=stagger]>*:nth-child(6),[data-animation=stagger] *>*:nth-child(6){--stagger-index: 5}[data-animation=stagger]>*:nth-child(7),[data-animation=stagger] *>*:nth-child(7){--stagger-index: 6}[data-animation=stagger]>*:nth-child(8),[data-animation=stagger] *>*:nth-child(8){--stagger-index: 7}[data-animation=stagger]>*:nth-child(9),[data-animation=stagger] *>*:nth-child(9){--stagger-index: 8}[data-animation=stagger]>*:nth-child(10),[data-animation=stagger] *>*:nth-child(10){--stagger-index: 9}[data-animation=stagger][data-stagger-step]{--stagger-step: attr(data-stagger-step time, 25ms)}[data-animation=stagger] [data-stagger-off],[data-animation=stagger] [data-stagger-off] *{--stagger-duration: 0ms;--stagger-parent: 0ms;--stagger-step: 0ms;animation:none!important;opacity:1!important;translate:none!important}@media print{@page{margin:1.5cm}*,*:before,*:after{animation:none!important;box-shadow:none!important;text-shadow:none!important;transition:none!important}html,body{background:#fff!important;color:#000!important;font:12pt/1.4 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif!important}body{margin:0}nav,aside,button:not([data-print-content]),input,select,textarea,iframe,video,audio,body:before,[data-component=controls],[data-component=toolbar],[data-component=menu],[data-message-actions],[data-content=collapsible-indicator],[data-component=messages]>[data-component=editor],[data-component=messages]>[data-component=tooltip],.no-print,.print-hidden,[aria-hidden=true]{display:none!important}main,article,section,[data-component=appshell],[data-component=panel],[data-component=messages],[data-message-list],[data-component=list],[data-print-flow]{display:block!important;height:auto!important;max-height:none!important;min-height:0!important;min-width:0!important;overflow:visible!important;position:static!important;max-width:none!important;width:100%!important}main,article,section{margin:0!important;padding:0!important}article[data-component=card]{overflow:visible!important}[data-animation],[data-animation] *{opacity:1!important;translate:none!important}[data-message-type]{display:block!important;-moz-column-break-inside:auto;break-inside:auto;margin:0 0 1em!important;padding:0!important;background:transparent!important}[data-message-type]>*,[data-message-type] [data-appearance]{margin-inline:0!important;max-width:none!important;width:auto!important}[data-message-type] [data-appearance]{display:block!important;-webkit-line-clamp:unset!important;overflow:visible!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;text-overflow:clip!important}[data-content=user-generated],html [data-content=user-generated] :is(p,table,th,td,tr),[data-component=file],[data-component=file] :is(a,button,span),[data-component=avatar] :is(strong,span){max-height:none!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;overflow-wrap:anywhere}[data-component=file] button{color:#000!important}header,[data-component=message],[data-component=file]{color:#000!important}header :is(p,span,strong,b,em,time,h1,h2,h3,h4,h5,h6),[data-component=message] :is(p,span,strong,b,em,time,h1,h2,h3,h4,h5,h6),[data-component=file] :is(p,span,strong,b,em,time,h1,h2,h3,h4,h5,h6){color:inherit!important}[data-component=avatar] span,[data-component=file],[data-component=panel],[data-component=card],[data-component=messages]>ul{background-color:transparent!important}header{-moz-column-break-after:avoid;break-after:avoid}[data-component=card] :is(h1,h2,h3,h4,h5,h6){overflow:visible!important;white-space:normal!important}h1,h2,h3{-moz-column-break-after:avoid;break-after:avoid;page-break-after:avoid}p,h1,h2,h3,h4,h5,h6{orphans:3;widows:3}a{color:#000!important;text-decoration:underline}[data-component=file]>a[href]{flex-wrap:wrap}[data-component=file]>a[href]:after{flex-basis:100%}[data-content=user-generated] a[href^=http]:after,a[data-print-url][href^=http]:after,[data-component=file]>a[href]:not([href^="#"]):after{content:" (" attr(href) ")";font-size:90%;overflow-wrap:anywhere}table{border-collapse:collapse;page-break-inside:auto;width:100%}html [data-content=user-generated] table{table-layout:auto!important;width:100%!important}tr,img{-moz-column-break-inside:avoid;break-inside:avoid;page-break-inside:avoid}th,td{border:1px solid #000;padding:.25rem .4rem;vertical-align:top}thead{display:table-header-group}img,svg{height:auto!important;max-width:100%!important}pre,code{white-space:pre-wrap;word-break:break-word}pre,blockquote{-moz-column-break-inside:auto;break-inside:auto}.no-print,.print-hidden,[aria-hidden=true],[hidden]{display:none!important}}:root{--breakpoint-lg: 1024;--breakpoint-md: 768;--breakpoint-sm: 480;--colors-blue-100: #c9dcff;--colors-blue-200: var(--colors-new-brand-blue);--colors-blue-300: #6695ff;--colors-blue-400: #296afa;--colors-blue-50: var(--colors-new-brand-light-blue);--colors-blue-500: #0b4ad5;--colors-blue-600: #0c3797;--colors-blue-700: #0c2764;--colors-blue-800: #0b1938;--colors-blue-900: #090e1b;--colors-box-shadow: #0000001f;--colors-box-shadow-heavy: #0006;--colors-categories-bg-grey-1: #e3e4e6;--colors-categories-bg-grey-2: #d4dce5;--colors-categories-bg-pink-1: #e7e3ea;--colors-categories-bg-pink-2: #e3d2f0;--colors-categories-bg-pink-3: #d8bfe5;--colors-categories-bg-pink-4: #e0c3d8;--colors-categories-bg-pink-5: #e8c6d2;--colors-categories-bg-yellow-1: #d9cbaf;--colors-categories-bg-yellow-2: #d9c7c0;--colors-categories-bg-yellow-3: #cdb8ac;--colors-categories-content-on-grey: #3f444a;--colors-categories-content-on-pink: #783b65;--colors-categories-content-on-yellow: #65483f;--colors-green-100: #d9e0d7;--colors-green-200: #b8c7b3;--colors-green-300: #90aa88;--colors-green-400: #698c5f;--colors-green-50: #eff1ee;--colors-green-500: #4a6344;--colors-green-600: var(--colors-new-brand-shadow-green);--colors-green-700: var(--colors-new-brand-dark-green);--colors-green-800: #151b13;--colors-green-900: #0c0f0b;--colors-neutral-0: #fff;--colors-neutral-100: #ebebeb;--colors-neutral-200: #dfdfdf;--colors-neutral-300: #b3b3b3;--colors-neutral-400: #7b7b7b;--colors-neutral-50: #f5f5f5;--colors-neutral-500: #525252;--colors-neutral-600: #373737;--colors-neutral-700: #2a2a2a;--colors-neutral-800: #1c1c1c;--colors-neutral-900: #0b0b0b;--colors-new-brand-blue: #abc5ff;--colors-new-brand-dark-green: #202b1b;--colors-new-brand-light-blue: #e8f1ff;--colors-new-brand-light-yellow: #f8fac0;--colors-new-brand-nature-white: #f7f7e1;--colors-new-brand-shadow-green: #263821;--colors-new-brand-shadow-yellow: #7d8233;--colors-new-brand-yellow: #cde517;--colors-orange-100: #fbe7d3;--colors-orange-200: #f1cda7;--colors-orange-300: #e6b37a;--colors-orange-400: #dc9c50;--colors-orange-50: #fff5ea;--colors-orange-500: #cf8a33;--colors-orange-600: #a96f23;--colors-orange-700: #885716;--colors-orange-800: #633e0d;--colors-orange-900: #442a08;--colors-red-100: #f8e2de;--colors-red-200: #e9bbb3;--colors-red-300: #d1897e;--colors-red-400: #aa5449;--colors-red-50: #fff4f2;--colors-red-500: #862b22;--colors-red-600: #702018;--colors-red-700: #5a1610;--colors-red-800: #43100b;--colors-red-900: #2d0906;--colors-semantic-bg-backdrop: #000000d9;--colors-semantic-bg-disabled: var(--colors-neutral-50);--colors-semantic-bg-overlay: var(--colors-neutral-100);--colors-semantic-bg-page: var(--colors-neutral-50);--colors-semantic-bg-surface: var(--colors-neutral-0);--colors-semantic-border-active: var(--colors-neutral-800);--colors-semantic-border-default: var(--colors-neutral-200);--colors-semantic-border-destructive: var(--colors-red-600);--colors-semantic-border-disabled: var(--colors-neutral-100);--colors-semantic-border-focus: var(--colors-new-brand-shadow-yellow);--colors-semantic-border-on-color: var(--colors-neutral-0);--colors-semantic-border-strong: var(--colors-neutral-300);--colors-semantic-border-subtle: var(--colors-neutral-100);--colors-semantic-content-destructive: var(--colors-red-700);--colors-semantic-content-disabled: var(--colors-neutral-400);--colors-semantic-content-highlight: var(--colors-green-200);--colors-semantic-content-link: var(--colors-blue-500);--colors-semantic-content-link-hover: var(--colors-blue-700);--colors-semantic-content-link-visited: var(--colors-blue-600);--colors-semantic-content-on-color: var(--colors-semantic-primary-on-primary);--colors-semantic-content-primary: var(--colors-green-700);--colors-semantic-content-secondary: var(--colors-neutral-600);--colors-semantic-content-tertiary: var(--colors-neutral-500);--colors-semantic-interactive-destructive-bg: var(--colors-red-500);--colors-semantic-interactive-destructive-disabled: var(--colors-red-200);--colors-semantic-interactive-destructive-hover: var(--colors-red-600);--colors-semantic-interactive-disabled: var(--colors-neutral-200);--colors-semantic-interactive-hover: var(--colors-green-50);--colors-semantic-interactive-hover-overlay: #0000001f;--colors-semantic-interactive-hover-subtle: var(--colors-neutral-100);--colors-semantic-interactive-neutral: var(--colors-neutral-300);--colors-semantic-interactive-pressed: var(--colors-green-100);--colors-semantic-interactive-secondary-bg: var(--colors-green-100);--colors-semantic-interactive-secondary-destructive-hover: var(--colors-red-50);--colors-semantic-interactive-secondary-hover: var(--colors-green-200);--colors-semantic-interactive-selected: var(--colors-green-100);--colors-semantic-main-nav-admin-bg: var(--colors-red-800);--colors-semantic-main-nav-admin-content: var(--colors-red-100);--colors-semantic-main-nav-admin-content-active: var(--colors-neutral-0);--colors-semantic-main-nav-admin-hover: var(--colors-red-600);--colors-semantic-main-nav-admin-selected: var(--colors-red-600);--colors-semantic-main-nav-admin-selected-border: var(--colors-yellow-500);--colors-semantic-main-nav-admin-submenu-bg: var(--colors-neutral-900);--colors-semantic-main-nav-forvalt-bg: var(--colors-blue-800);--colors-semantic-main-nav-forvalt-content: var(--colors-blue-100);--colors-semantic-main-nav-forvalt-content-active: var(--colors-neutral-0);--colors-semantic-main-nav-forvalt-hover: var(--colors-blue-700);--colors-semantic-main-nav-forvalt-selected: var(--colors-blue-700);--colors-semantic-main-nav-forvalt-selected-border: var(--colors-yellow-500);--colors-semantic-main-nav-forvalt-submenu-bg: var(--colors-blue-900);--colors-semantic-main-nav-portal-bg: var(--colors-green-700);--colors-semantic-main-nav-portal-content: var(--colors-new-brand-light-yellow);--colors-semantic-main-nav-portal-content-active: var(--colors-neutral-0);--colors-semantic-main-nav-portal-hover: var(--colors-green-800);--colors-semantic-main-nav-portal-selected: var(--colors-green-800);--colors-semantic-main-nav-portal-selected-border: var(--colors-yellow-500);--colors-semantic-main-nav-portal-submenu-bg: var(--colors-green-900);--colors-semantic-primary-on-primary: var(--colors-new-brand-light-yellow);--colors-semantic-primary-on-primary-subtle: var(--colors-green-600);--colors-semantic-primary-primary: var(--colors-green-700);--colors-semantic-primary-primary-active: var(--colors-green-500);--colors-semantic-primary-primary-hover: var(--colors-green-600);--colors-semantic-primary-primary-subtle: var(--colors-green-100);--colors-semantic-primary-primary-subtle-border: var(--colors-green-300);--colors-semantic-roles-bg-board: var(--colors-new-brand-light-yellow);--colors-semantic-roles-bg-external: var(--colors-green-100);--colors-semantic-roles-bg-owner: var(--colors-blue-200);--colors-semantic-roles-bg-renter: var(--colors-blue-50);--colors-semantic-roles-bg-solibo: var(--colors-green-700);--colors-semantic-roles-content-board: var(--colors-green-700);--colors-semantic-roles-content-external: var(--colors-green-800);--colors-semantic-roles-content-owner: var(--colors-new-brand-dark-green);--colors-semantic-roles-content-renter: var(--colors-new-brand-dark-green);--colors-semantic-roles-content-solibo: var(--colors-new-brand-light-yellow);--colors-semantic-status-active-bg: var(--colors-new-brand-yellow);--colors-semantic-status-active-content: var(--colors-new-brand-dark-green);--colors-semantic-status-error-bg: var(--colors-red-50);--colors-semantic-status-error-border: var(--colors-red-300);--colors-semantic-status-error-content: var(--colors-red-800);--colors-semantic-status-error-content-inverse: var(--colors-neutral-0);--colors-semantic-status-info-bg: var(--colors-blue-50);--colors-semantic-status-info-border: var(--colors-blue-300);--colors-semantic-status-info-content: var(--colors-blue-800);--colors-semantic-status-info-content-inverse: var(--colors-neutral-0);--colors-semantic-status-pending-bg: var(--colors-neutral-200);--colors-semantic-status-pending-content: var(--colors-neutral-600);--colors-semantic-status-success-bg: var(--colors-green-100);--colors-semantic-status-success-border: var(--colors-green-300);--colors-semantic-status-success-content: var(--colors-green-800);--colors-semantic-status-success-content-inverse: var(--colors-neutral-0);--colors-semantic-status-warning-bg: var(--colors-orange-50);--colors-semantic-status-warning-border: var(--colors-orange-300);--colors-semantic-status-warning-content: var(--colors-orange-800);--colors-semantic-status-warning-content-inverse: var(--colors-neutral-0);--colors-translucent: #fff3;--colors-yellow-100: #f2f7a4;--colors-yellow-200: #e6f078;--colors-yellow-300: #daea46;--colors-yellow-400: var(--colors-new-brand-yellow);--colors-yellow-50: var(--colors-new-brand-light-yellow);--colors-yellow-500: #b0c62a;--colors-yellow-600: #96a439;--colors-yellow-700: var(--colors-new-brand-shadow-yellow);--colors-yellow-800: #50551c;--colors-yellow-900: #282b0d;--font-body: "Geist";--font-font-weight-bold: 700;--font-font-weight-medium: 500;--font-font-weight-regular: 400;--font-font-weight-semibold: 600;--font-headline: "Degular";--scale-0: 0px;--scale-1: 1px;--scale-12: 12px;--scale-14: 14px;--scale-16: 16px;--scale-18: 18px;--scale-2: 2px;--scale-20: 20px;--scale-24: 24px;--scale-28: 28px;--scale-32: 32px;--scale-4: 4px;--scale-40: 40px;--scale-48: 48px;--scale-56: 56px;--scale-64: 64px;--scale-72: 72px;--scale-8: 8px;--scale-80: 80px;--scale-88: 88px;--scale-96: 96px;--scale-negative-16: -16px;--shape-border-radius-radius-2xl: var(--scale-16);--shape-border-radius-radius-full: var(--scale-32);--shape-border-radius-radius-lg: var(--scale-8);--shape-border-radius-radius-md: var(--scale-4);--shape-border-radius-radius-none: var(--scale-0);--shape-border-radius-radius-sm: var(--scale-2);--shape-border-radius-radius-xl: var(--scale-12);--shape-border-width-default: 1px;--shape-border-width-thick: 2px;--shape-box-shadow-lg-blur: 12px;--shape-box-shadow-lg-color: var(--colors-box-shadow);--shape-box-shadow-lg-position-x: 0px;--shape-box-shadow-lg-position-y: 12px;--shape-box-shadow-lg-spread: -12px;--shape-box-shadow-md-blur: 8px;--shape-box-shadow-md-color: var(--colors-box-shadow);--shape-box-shadow-md-position-x: 0px;--shape-box-shadow-md-position-y: 8px;--shape-box-shadow-md-spread: -8px;--shape-box-shadow-sm-blur: 4px;--shape-box-shadow-sm-color: var(--colors-box-shadow);--shape-box-shadow-sm-position-x: 0px;--shape-box-shadow-sm-position-y: 4px;--shape-box-shadow-sm-spread: -4px;--shape-box-shadow-xl-blur: 16px;--shape-box-shadow-xl-color: var(--colors-box-shadow);--shape-box-shadow-xl-position-x: 0px;--shape-box-shadow-xl-position-y: 16px;--shape-box-shadow-xl-spread: -16px;--shape-box-shadow-xs-blur: 2px;--shape-box-shadow-xs-color: var(--colors-box-shadow);--shape-box-shadow-xs-position-x: 0px;--shape-box-shadow-xs-position-y: 1px;--shape-box-shadow-xs-spread: 0px;--shape-image-desktop-max-height: 400px;--shape-image-desktop-max-width: 320px;--shape-image-desktop-min-height: 96px;--shape-image-desktop-min-width: 96px;--shape-image-mobile-max-height: 320px;--shape-image-mobile-max-width: 240px;--shape-image-mobile-min-height: 96px;--shape-image-mobile-min-width: 96px;--shape-outline-focus: 3px;--shape-outline-selected: 1px;--shape-spacing-2xl: var(--scale-48);--shape-spacing-2xs: var(--scale-4);--shape-spacing-3xl: var(--scale-64);--shape-spacing-3xs: var(--scale-2);--shape-spacing-lg: var(--scale-24);--shape-spacing-md: var(--scale-16);--shape-spacing-none: var(--scale-0);--shape-spacing-sm: var(--scale-12);--shape-spacing-xl: var(--scale-32);--shape-spacing-xs: var(--scale-8);--shape-width-max: 480px;--shape-width-max-lg: 640px;--shape-width-sidebar: 240px;--typography-font-sizes-body-lg: var(--scale-18);--typography-font-sizes-body-md: var(--scale-16);--typography-font-sizes-body-sm: var(--scale-14);--typography-font-sizes-caption: var(--scale-12);--typography-font-sizes-display-lg: var(--scale-56);--typography-font-sizes-display-sm: var(--scale-48);--typography-font-sizes-h1: var(--scale-32);--typography-font-sizes-h2: var(--scale-28);--typography-font-sizes-h3: var(--scale-24);--typography-font-sizes-h4: var(--scale-20);--typography-font-sizes-label-lg: var(--scale-16);--typography-font-sizes-label-sm: var(--scale-14);--utils-tokens-blur-default: var(--scale-8);--utils-tokens-font-family-body: "Geist", "Arial", sans-serif;--utils-tokens-font-family-headline: "Degular", "Arial", sans-serif;--utils-tokens-gradient: linear-gradient(180deg, rgb(255 255 255 / 100%), transparent 50%);--utils-tokens-icon-large: var(--scale-32);--utils-tokens-icon-medium: var(--scale-24);--utils-tokens-icon-small: var(--scale-16);--utils-tokens-icon-tiny: var(--scale-12);--utils-tokens-negative-unit: var(--scale-negative-16);--utils-tokens-opacity-minimal: .5;--utils-tokens-transition-delay: 125ms;--utils-tokens-transition-duration: .25s;--utils-tokens-transition-timing-function: ease-out;--utils-tokens-unit: var(--scale-16);--utils-tokens-z-max: 2147483648}[data-theme=dark]{--colors-box-shadow: #000000e0;--colors-orange-100: #fdd7b0;--colors-orange-200: #fbc48a;--colors-orange-300: #faa954;--colors-orange-400: #f99933;--colors-orange-50: #fef2e6;--colors-orange-500: #f77f00;--colors-orange-600: #e17400;--colors-orange-700: #af5a00;--colors-orange-800: #884600;--colors-orange-900: #683500;--colors-red-100: #ebb2b1;--colors-red-200: #e28c8b;--colors-red-300: #d45856;--colors-red-400: #cc3835;--colors-red-50: #f9e6e6;--colors-red-500: #bf0603;--colors-red-600: #ae0503;--colors-red-700: #880402;--colors-red-800: #690302;--colors-red-900: #500301;--colors-semantic-bg-disabled: var(--colors-neutral-800);--colors-semantic-bg-overlay: var(--colors-neutral-600);--colors-semantic-bg-page: var(--colors-neutral-900);--colors-semantic-bg-surface: var(--colors-neutral-700);--colors-semantic-border-active: var(--colors-neutral-50);--colors-semantic-border-default: var(--colors-neutral-500);--colors-semantic-border-destructive: var(--colors-red-300);--colors-semantic-border-disabled: var(--colors-neutral-700);--colors-semantic-border-on-color: var(--colors-neutral-400);--colors-semantic-border-subtle: var(--colors-neutral-600);--colors-semantic-content-destructive: var(--colors-red-600);--colors-semantic-content-disabled: var(--colors-neutral-500);--colors-semantic-content-highlight: var(--colors-green-700);--colors-semantic-content-link: var(--colors-blue-400);--colors-semantic-content-link-hover: var(--colors-blue-600);--colors-semantic-content-on-color: var(--colors-neutral-0);--colors-semantic-content-primary: var(--colors-neutral-50);--colors-semantic-content-secondary: var(--colors-neutral-200);--colors-semantic-content-tertiary: var(--colors-neutral-300);--colors-semantic-interactive-destructive-bg: var(--colors-red-600);--colors-semantic-interactive-destructive-hover: var(--colors-red-700);--colors-semantic-interactive-disabled: var(--colors-neutral-500);--colors-semantic-interactive-hover: var(--colors-neutral-500);--colors-semantic-interactive-hover-subtle: var(--colors-neutral-600);--colors-semantic-interactive-neutral: var(--colors-neutral-400);--colors-semantic-interactive-pressed: var(--colors-green-700);--colors-semantic-interactive-secondary-bg: var(--colors-neutral-600);--colors-semantic-interactive-secondary-hover: var(--colors-neutral-500);--colors-semantic-interactive-selected: var(--colors-green-400);--colors-semantic-main-nav-admin-submenu-bg: var(--colors-red-900);--colors-semantic-main-nav-forvalt-hover: var(--colors-neutral-700);--colors-semantic-main-nav-forvalt-submenu-bg: var(--colors-neutral-900);--colors-semantic-primary-on-primary: var(--colors-neutral-0);--colors-semantic-primary-on-primary-subtle: var(--colors-green-200);--colors-semantic-primary-primary: var(--colors-green-300);--colors-semantic-primary-primary-active: var(--colors-green-50);--colors-semantic-primary-primary-hover: var(--colors-green-200);--colors-semantic-primary-primary-subtle: var(--colors-green-500);--colors-semantic-primary-primary-subtle-border: var(--colors-green-600);--colors-semantic-roles-content-owner: var(--colors-blue-800);--colors-semantic-roles-content-renter: var(--colors-blue-800);--colors-semantic-status-error-bg: var(--colors-red-200);--colors-semantic-status-info-bg: var(--colors-blue-200);--colors-semantic-status-info-border: var(--colors-blue-400);--colors-semantic-status-success-bg: var(--colors-green-200);--colors-semantic-status-warning-bg: var(--colors-orange-200);--colors-semantic-status-warning-border: var(--colors-orange-400)}@media (width <= 960px){:root{--typography-font-sizes-body-lg: var(--scale-16);--typography-font-sizes-display-lg: var(--scale-40);--typography-font-sizes-display-sm: var(--scale-32);--typography-font-sizes-h1: var(--scale-24);--typography-font-sizes-h2: var(--scale-20);--typography-font-sizes-h3: var(--scale-18);--typography-font-sizes-h4: var(--scale-16)}}*,:before,:after{box-sizing:border-box}:where(body,figure,input){margin:0}:where(img){display:block}:where(input,button,textarea,select){font:inherit}@media (prefers-reduced-motion: no-preference){@view-transition{navigation: auto;}:where(html,body){scroll-behavior:smooth}}:where(dt){font-weight:var(--font-font-weight-semibold);margin-top:var(--utils-tokens-unit)}:where(body){background-color:var(--colors-semantic-bg-page);font-family:var(--utils-tokens-font-family-body);font-size:var(--typography-font-sizes-body-md);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:where(:focus-visible){outline:solid var(--scale-2) var(--colors-semantic-border-focus);outline-offset:var(--shape-outline-offset, calc(var(--scale-2) * -1));border-radius:var(--shape-border-radius-radius-md)}:where(article a){color:var(--colors-semantic-content-link)}:where(b,strong){font-weight:var(--font-font-weight-bold)}:where(menu,ol,p,ul){margin-block:var(--utils-tokens-unit)}:where(menu,ol,ul){list-style:none;padding-inline-start:0}:where(small,sub){font-size:var(--typography-font-sizes-body-sm)}[data-content=screen-reader]{border:0;clip:rect(0,0,0,0);height:var(--scale-1);margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:var(--scale-1)}*[data-content=user-generated]{overflow-x:auto;word-break:break-word}*[data-content=user-generated] p{background-color:transparent!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}*[data-content=user-generated] p img{max-width:calc(100% - calc(2 * var(--utils-tokens-unit)))!important}*[data-content=user-generated] table{border-collapse:collapse;margin-bottom:var(--utils-tokens-unit);overflow:hidden!important;table-layout:fixed;text-overflow:ellipsis;width:auto!important}*[data-content=user-generated] table th,*[data-content=user-generated] table td,*[data-content=user-generated] table tr{max-width:calc(100% - calc(2 * var(--utils-tokens-unit)))!important;overflow:hidden;text-overflow:ellipsis;width:auto!important}*[data-content=user-generated] table th,*[data-content=user-generated] table td{border:var(--scale-1) solid var(--colors-semantic-border-default);padding:var(--scale-8) var(--utils-tokens-unit);text-align:left}*[data-content=user-generated] table th{background-color:var(--colors-semantic-bg-page)}*[data-content=user-generated] table th:first-child{border-top-left-radius:var(--shape-border-radius-radius-md)}*[data-content=user-generated] table th:last-child{border-top-right-radius:var(--shape-border-radius-radius-md)}*[data-content=user-generated] ul{margin-left:var(--scale-4)!important}*[data-content=user-generated] ul li{list-style:disc;margin-bottom:var(--scale-8);margin-left:var(--scale-16)}[data-required]{position:relative}[data-required]:after{color:var(--colors-semantic-status-error-content);content:"*";font-size:calc(var(--utils-tokens-unit) * 1.5);margin-left:var(--scale-2);position:absolute}[data-span=all]{-moz-column-span:all;column-span:all;grid-column:1 / -1}@supports (-moz-appearance: none){*{scrollbar-color:var(--colors-semantic-interactive-neutral) transparent}}::-webkit-scrollbar{height:var(--scale-8);width:var(--scale-8)}::-webkit-scrollbar-track,::-webkit-scrollbar-corner{background-color:transparent}::-webkit-scrollbar-thumb{background-color:var(--colors-semantic-interactive-neutral);border-radius:var(--shape-border-radius-radius-lg)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index41.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index41.css');const s=require("react/jsx-runtime"),C=require("classix"),r=require("react"),V=require("../button/index.cjs"),$e=require("../../icons-BIdcCH-v.cjs"),fe=require("../../index-7blZaPiA.cjs"),De=require("../list/index.cjs"),Fe=require("../loading/index.cjs"),F=require("../../index-VLDsM9it.cjs");function L(t){return typeof t=="string"||typeof t=="number"?String(t):Array.isArray(t)?t.map(L).join(" "):r.isValidElement(t)?L(t.props.children):""}function Le(t){return r.isValidElement(t)&&t.type==="option"}function Me(t){return r.isValidElement(t)&&t.type==="optgroup"}function Qe(t){return r.isValidElement(t)&&t.type===r.Fragment}function We(t){return r.isValidElement(t)&&t.type===F.Select}function Z(t,c,i=!1){const o=[];return r.Children.forEach(t,n=>{if(Qe(n))o.push(...Z(n.props.children,c,i));else if(Le(n)){const a=L(n.props.children).trim(),h=n.props.value!=null?String(n.props.value):a;o.push({disabled:i||!!n.props.disabled,groupLabel:c,hidden:!!n.props.hidden,isPlaceholder:!!(n.props.hidden&&h===""),label:n.props.children,selected:!!n.props.selected,text:a,value:h})}else Me(n)&&o.push(...Z(n.props.children,n.props.label,i||!!n.props.disabled))}),o}function ze(t){const c=t.trim();if(!c)return null;const o=[.../[*?]/.test(c)?c:`*${c}*`].map(n=>n==="*"?".*":n==="?"?".":n.replace(/[|\\{}()[\]^$+.,]/g,"\\$&")).join("");return new RegExp(`^${o}$`,"i")}function Ge(t,c){const i=ze(c),o=t.filter(n=>!n.hidden&&!n.isPlaceholder);return i?o.filter(n=>i.test([n.groupLabel,n.text,n.value].filter(Boolean).join(" "))):o}function Pe(t,c){return t.find(i=>i.value===c)??t.find(i=>i.isPlaceholder)??t[0]}function Te(t,c,i){var o,n;return c!=null?String(c):i!=null?String(i):((o=t.find(a=>a.selected))==null?void 0:o.value)??((n=t[0])==null?void 0:n.value)??""}function Ae(t){if(We(t)){const{children:c,placeholder:i,...o}=t.props;return{children:s.jsxs(s.Fragment,{children:[i&&s.jsx("option",{hidden:!0,value:"",children:i}),c]}),props:o}}return{children:t.props.children,props:t.props}}const Ke="_combobox_5r227_3",Oe="_dropdown_5r227_20",He="_empty_5r227_25",Je="_group_5r227_26",Ue="_placeholder_5r227_27",Xe="_filter_5r227_35",Ye="_native_5r227_45",Ze="_option_5r227_55",et="_options_5r227_76",tt="_panel_5r227_83",nt="_selected_5r227_108",st="_text_5r227_112",rt="_trigger_5r227_120",lt="_minimal_5r227_157",it="_inline_5r227_217",ot="_label_5r227_249",l={combobox:Ke,"combobox-input":"_combobox-input_5r227_12",dropdown:Oe,empty:He,group:Je,placeholder:Ue,filter:Xe,native:Ye,option:Ze,options:et,panel:tt,selected:nt,text:st,trigger:rt,minimal:lt,inline:it,label:ot,"inline-field":"_inline-field_5r227_255"};function pe(t,c){return{"--icon-svg":$e.iconSVG(t,c)}}const ct=({children:t,className:c,combobox:i=!1,createOption:o,emptyLabel:n="No matches found",errorLabel:a,onRetry:h,retryLabel:me="Retry",label:b,filterOptions:_e=!0,hasNextPage:v=!1,loading:m=!1,loadMoreLabel:be="Load more",onLoadMore:g,onOpenChange:I,onSearchChange:B,searchValue:M,renderOption:Q,searchPlaceholder:W="Filter",selectedItems:ve,variant:j="default",...xe})=>{const z=Ae(t),{defaultValue:ye,onChange:G,value:P,...he}=z.props,u=F.sanitizeSelectProps(he),{className:ge,...je}=u,ee=r.useRef(null),te=r.useRef(null),k=r.useId(),ne=r.useRef(null),x=r.useRef(null),se=r.useRef(null),re=r.useRef(null),T=r.useRef(!1),A=r.useRef(!1),K=r.useRef(g),le=!!g,w=Z(z.children),E=P!=null,O=Te(w,P,ye),[H,J]=r.useState(()=>O),[d,we]=r.useState(!1),[Ee,Re]=r.useState(""),R=M??Ee,N=r.useCallback(e=>{M===void 0&&Re(e),B==null||B(e)},[B,M]),p=r.useCallback(e=>{T.current===e||e&&u.disabled||(T.current=e,we(e),I==null||I(e),e||N(""))},[I,u.disabled,N]),q=E?String(P):H,ie={default:F.resolveColor("--colors-semantic-content-secondary"),white:F.resolveColor("--color-white","white")},oe=j==="minimal"?ie.white:ie.default,$=Pe(w,q),Ne=pe("CaretDown",oe),Se=pe("MagnifyingGlass",oe),U=Ge(w,_e?R:""),y=R.trim(),D=!!(i&&o&&y&&o.isValid(y)),Ce=b&&j==="inline"?fe.formatInlineLabel(b):b,ce=e=>e?(Q==null?void 0:Q({groupLabel:e.groupLabel,isSelected:e.value===q,label:e.label,text:e.text,value:e.value}))??e.label:"Select an option";r.useEffect(()=>{!E&&!w.some(e=>e.value===H)&&J(O)},[O,H,E,w]),r.useEffect(()=>{var e;d&&((e=x.current)==null||e.focus())},[d]),r.useEffect(()=>{if(!d)return;const e=f=>{var _;(_=te.current)!=null&&_.contains(f.target)||p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,d]),r.useEffect(()=>{K.current=g},[g]),r.useEffect(()=>{u.disabled&&p(!1)},[p,u.disabled]);const X=r.useCallback(()=>{!T.current||u.disabled||m||a||!v||!K.current||A.current||(A.current=!0,K.current())},[a,v,m,u.disabled]);r.useEffect(()=>{if(A.current=!1,!d||u.disabled||m||a||!v||!le)return;const e=re.current,f=se.current;if(!e||!f||typeof IntersectionObserver>"u")return;let _=!0;const S=new IntersectionObserver(ke=>{_&&ke.some(qe=>qe.isIntersecting)&&X()},{root:f});return S.observe(e),()=>{_=!1,S.disconnect()}},[d,m,a,v,le,X,U.length,R,u.disabled]);const Ve=e=>{E||J(e.target.value),G==null||G(e)},Y=()=>{var e;p(!1),i||(e=ee.current)==null||e.focus()},ae=()=>{var e;N(""),p(!0),(e=x.current)==null||e.focus()},ue=()=>{!o||!D||(o.onCreate(y),ae())},Ie=e=>{var S;E||J(e);const f=ne.current;if(!f){Y();return}const _=(S=Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype,"value"))==null?void 0:S.set;_==null||_.call(f,e),f.dispatchEvent(new Event("change",{bubbles:!0})),i?ae():Y()},Be=e=>{e.key==="Escape"&&Y(),e.key==="Enter"&&e.target===x.current&&D&&(e.preventDefault(),ue())},de=s.jsxs("div",{className:C(l.dropdown,j==="inline"&&l.inline,j==="minimal"&&l.minimal,c),onKeyDown:Be,ref:te,...xe,"data-component":"dropdown",children:[s.jsx("select",{...je,"aria-hidden":"true",className:C(l.native,ge),onChange:Ve,ref:ne,tabIndex:-1,value:q,children:z.children}),i?s.jsxs("div",{className:l.combobox,onClick:()=>{var e;return(e=x.current)==null?void 0:e.focus()},children:[ve,s.jsx("input",{"aria-autocomplete":"list","aria-expanded":d,"aria-label":u["aria-label"]??b??W,className:l["combobox-input"],disabled:u.disabled,onChange:e=>{N(e.target.value),p(!0)},onClick:()=>p(!0),onFocus:()=>p(!0),placeholder:W||void 0,ref:x,role:"combobox",type:"text",value:R})]}):s.jsx(V.Button,{"aria-expanded":d,"aria-haspopup":"dialog","aria-labelledby":b?`${k} ${k}-value`:void 0,className:C(l.trigger,($==null?void 0:$.isPlaceholder)&&l.placeholder),"data-open":d?"true":void 0,disabled:u.disabled,onClick:()=>p(!d),ref:ee,style:Ne,variant:"simple",children:s.jsx("span",{className:l.text,id:`${k}-value`,children:ce($)})}),d&&s.jsxs("div",{className:l.panel,children:[!i&&s.jsx(fe.Input,{"aria-label":"Filter",className:l.filter,icon:"MagnifyingGlass",onChange:e=>N(e.target.value),placeholder:W,ref:x,style:Se,type:"search",value:R}),s.jsxs(De.List,{"aria-label":"Dropdown","aria-busy":m||void 0,className:l.options,ref:se,children:[U.map(e=>{const f=e.value===q;return s.jsx("li",{"data-component":"dropdown",children:s.jsxs(V.Button,{"aria-label":f?`${e.text}, selected`:e.text,className:C(l.option,f&&l.selected),disabled:e.disabled,onClick:()=>Ie(e.value),variant:"tertiary",children:[s.jsx("span",{className:l.text,children:ce(e)}),e.groupLabel&&s.jsx("small",{className:l.group,children:e.groupLabel})]})},`${e.groupLabel??"root"}-${e.value}`)}),D&&o&&s.jsx("li",{children:s.jsx(V.Button,{"aria-label":L(o.render(y))||y,className:l.option,onClick:ue,variant:"tertiary",children:s.jsx("span",{className:l.text,children:o.render(y)})})}),U.length===0&&!D&&!m&&!a&&!v&&s.jsx("li",{className:l.empty,children:n}),a&&s.jsxs("li",{className:l.empty,children:[s.jsx("span",{role:"alert",children:a}),h&&s.jsx(V.Button,{disabled:m,onClick:h,variant:"tertiary",children:me})]}),m&&s.jsx("li",{"aria-label":"Loading",className:l.empty,role:"status",children:s.jsx(Fe.Loading,{size:"small"})}),v&&g&&!a&&s.jsx("li",{ref:re,children:s.jsx(V.Button,{className:l.option,disabled:m,onClick:X,variant:"tertiary",children:be})})]})]})]});return b?s.jsxs("div",{className:C(l.label,j==="inline"&&l["inline-field"]),"data-component":"dropdown",children:[s.jsx("span",{id:k,children:Ce}),de]}):de};exports.Dropdown=ct;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,76 +1,77 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Button as
|
|
5
|
-
import { i as
|
|
6
|
-
import { f as
|
|
7
|
-
import { List as
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
|
|
1
|
+
import { jsxs as _, Fragment as We, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import $ from "classix";
|
|
3
|
+
import ze, { Children as Ge, isValidElement as B, useRef as b, useId as Me, useState as te, useCallback as ne, useEffect as w } from "react";
|
|
4
|
+
import { Button as k } from "../button/index.js";
|
|
5
|
+
import { i as Pe } from "../../icons-DVeBguFb.js";
|
|
6
|
+
import { f as qe, I as Ae } from "../../index-Dd20d_9U.js";
|
|
7
|
+
import { List as Ke } from "../list/index.js";
|
|
8
|
+
import { Loading as Te } from "../loading/index.js";
|
|
9
|
+
import { S as He, s as Oe, r as _e } from "../../index-Dx-KtGBg.js";
|
|
10
|
+
import '../../assets/index41.css';function z(t) {
|
|
11
|
+
return typeof t == "string" || typeof t == "number" ? String(t) : Array.isArray(t) ? t.map(z).join(" ") : B(t) ? z(t.props.children) : "";
|
|
11
12
|
}
|
|
12
|
-
function
|
|
13
|
-
return
|
|
13
|
+
function Je(t) {
|
|
14
|
+
return B(t) && t.type === "option";
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
16
|
+
function Ue(t) {
|
|
17
|
+
return B(t) && t.type === "optgroup";
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
19
|
+
function Xe(t) {
|
|
20
|
+
return B(t) && t.type === ze.Fragment;
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
-
return
|
|
22
|
+
function Ye(t) {
|
|
23
|
+
return B(t) && t.type === He;
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
if (
|
|
28
|
-
|
|
29
|
-
else if (
|
|
30
|
-
const a =
|
|
31
|
-
|
|
32
|
-
disabled:
|
|
33
|
-
groupLabel:
|
|
25
|
+
function re(t, i, l = !1) {
|
|
26
|
+
const s = [];
|
|
27
|
+
return Ge.forEach(t, (n) => {
|
|
28
|
+
if (Xe(n))
|
|
29
|
+
s.push(...re(n.props.children, i, l));
|
|
30
|
+
else if (Je(n)) {
|
|
31
|
+
const a = z(n.props.children).trim(), x = n.props.value != null ? String(n.props.value) : a;
|
|
32
|
+
s.push({
|
|
33
|
+
disabled: l || !!n.props.disabled,
|
|
34
|
+
groupLabel: i,
|
|
34
35
|
hidden: !!n.props.hidden,
|
|
35
|
-
isPlaceholder: !!(n.props.hidden &&
|
|
36
|
+
isPlaceholder: !!(n.props.hidden && x === ""),
|
|
36
37
|
label: n.props.children,
|
|
37
38
|
selected: !!n.props.selected,
|
|
38
39
|
text: a,
|
|
39
|
-
value:
|
|
40
|
+
value: x
|
|
40
41
|
});
|
|
41
|
-
} else
|
|
42
|
-
}),
|
|
42
|
+
} else Ue(n) && s.push(...re(n.props.children, n.props.label, l || !!n.props.disabled));
|
|
43
|
+
}), s;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
-
const
|
|
46
|
-
if (!
|
|
47
|
-
const
|
|
48
|
-
return new RegExp(`^${
|
|
45
|
+
function Ze(t) {
|
|
46
|
+
const i = t.trim();
|
|
47
|
+
if (!i) return null;
|
|
48
|
+
const s = [.../[*?]/.test(i) ? i : `*${i}*`].map((n) => n === "*" ? ".*" : n === "?" ? "." : n.replace(/[|\\{}()[\]^$+.,]/g, "\\$&")).join("");
|
|
49
|
+
return new RegExp(`^${s}$`, "i");
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
-
const
|
|
52
|
-
return
|
|
51
|
+
function et(t, i) {
|
|
52
|
+
const l = Ze(i), s = t.filter((n) => !n.hidden && !n.isPlaceholder);
|
|
53
|
+
return l ? s.filter((n) => l.test([n.groupLabel, n.text, n.value].filter(Boolean).join(" "))) : s;
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
return t.find((
|
|
55
|
+
function tt(t, i) {
|
|
56
|
+
return t.find((l) => l.value === i) ?? t.find((l) => l.isPlaceholder) ?? t[0];
|
|
56
57
|
}
|
|
57
|
-
function
|
|
58
|
-
var
|
|
59
|
-
return
|
|
58
|
+
function nt(t, i, l) {
|
|
59
|
+
var s, n;
|
|
60
|
+
return i != null ? String(i) : l != null ? String(l) : ((s = t.find((a) => a.selected)) == null ? void 0 : s.value) ?? ((n = t[0]) == null ? void 0 : n.value) ?? "";
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
if (
|
|
62
|
+
function rt(t) {
|
|
63
|
+
if (Ye(t)) {
|
|
63
64
|
const {
|
|
64
|
-
children:
|
|
65
|
-
placeholder:
|
|
66
|
-
...
|
|
65
|
+
children: i,
|
|
66
|
+
placeholder: l,
|
|
67
|
+
...s
|
|
67
68
|
} = t.props;
|
|
68
69
|
return {
|
|
69
|
-
children: /* @__PURE__ */
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
children: /* @__PURE__ */ _(We, { children: [
|
|
71
|
+
l && /* @__PURE__ */ o("option", { hidden: !0, value: "", children: l }),
|
|
72
|
+
i
|
|
72
73
|
] }),
|
|
73
|
-
props:
|
|
74
|
+
props: s
|
|
74
75
|
};
|
|
75
76
|
}
|
|
76
77
|
return {
|
|
@@ -78,138 +79,176 @@ function De(t) {
|
|
|
78
79
|
props: t.props
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
|
-
const
|
|
82
|
-
combobox:
|
|
82
|
+
const lt = "_combobox_5r227_3", st = "_dropdown_5r227_20", it = "_empty_5r227_25", ot = "_group_5r227_26", at = "_placeholder_5r227_27", ct = "_filter_5r227_35", ut = "_native_5r227_45", dt = "_option_5r227_55", pt = "_options_5r227_76", ft = "_panel_5r227_83", mt = "_selected_5r227_108", bt = "_text_5r227_112", _t = "_trigger_5r227_120", vt = "_minimal_5r227_157", yt = "_inline_5r227_217", ht = "_label_5r227_249", r = {
|
|
83
|
+
combobox: lt,
|
|
83
84
|
"combobox-input": "_combobox-input_5r227_12",
|
|
84
|
-
dropdown:
|
|
85
|
-
empty:
|
|
86
|
-
group:
|
|
87
|
-
placeholder:
|
|
88
|
-
filter:
|
|
89
|
-
native:
|
|
90
|
-
option:
|
|
91
|
-
options:
|
|
92
|
-
panel:
|
|
93
|
-
selected:
|
|
94
|
-
text:
|
|
95
|
-
trigger:
|
|
96
|
-
minimal:
|
|
97
|
-
inline:
|
|
98
|
-
label:
|
|
85
|
+
dropdown: st,
|
|
86
|
+
empty: it,
|
|
87
|
+
group: ot,
|
|
88
|
+
placeholder: at,
|
|
89
|
+
filter: ct,
|
|
90
|
+
native: ut,
|
|
91
|
+
option: dt,
|
|
92
|
+
options: pt,
|
|
93
|
+
panel: ft,
|
|
94
|
+
selected: mt,
|
|
95
|
+
text: bt,
|
|
96
|
+
trigger: _t,
|
|
97
|
+
minimal: vt,
|
|
98
|
+
inline: yt,
|
|
99
|
+
label: ht,
|
|
99
100
|
"inline-field": "_inline-field_5r227_255"
|
|
100
101
|
};
|
|
101
|
-
function
|
|
102
|
+
function ve(t, i) {
|
|
102
103
|
return {
|
|
103
|
-
"--icon-svg":
|
|
104
|
+
"--icon-svg": Pe(t, i)
|
|
104
105
|
};
|
|
105
106
|
}
|
|
106
|
-
const
|
|
107
|
+
const Vt = ({
|
|
107
108
|
children: t,
|
|
108
|
-
className:
|
|
109
|
-
combobox:
|
|
110
|
-
createOption:
|
|
109
|
+
className: i,
|
|
110
|
+
combobox: l = !1,
|
|
111
|
+
createOption: s,
|
|
111
112
|
emptyLabel: n = "No matches found",
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
113
|
+
errorLabel: a,
|
|
114
|
+
onRetry: x,
|
|
115
|
+
retryLabel: ye = "Retry",
|
|
116
|
+
label: v,
|
|
117
|
+
filterOptions: he = !0,
|
|
118
|
+
hasNextPage: y = !1,
|
|
119
|
+
loading: f = !1,
|
|
120
|
+
loadMoreLabel: ge = "Load more",
|
|
121
|
+
onLoadMore: N,
|
|
122
|
+
onOpenChange: D,
|
|
123
|
+
onSearchChange: j,
|
|
124
|
+
searchValue: G,
|
|
125
|
+
renderOption: M,
|
|
126
|
+
searchPlaceholder: P = "Filter",
|
|
127
|
+
selectedItems: we,
|
|
128
|
+
variant: S = "default",
|
|
129
|
+
...xe
|
|
118
130
|
}) => {
|
|
119
|
-
const
|
|
120
|
-
defaultValue:
|
|
121
|
-
onChange:
|
|
122
|
-
value:
|
|
123
|
-
...
|
|
124
|
-
} =
|
|
125
|
-
className:
|
|
126
|
-
...
|
|
127
|
-
} =
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
const q = rt(t), {
|
|
132
|
+
defaultValue: Ne,
|
|
133
|
+
onChange: A,
|
|
134
|
+
value: K,
|
|
135
|
+
...Se
|
|
136
|
+
} = q.props, c = Oe(Se), {
|
|
137
|
+
className: Ie,
|
|
138
|
+
...Ee
|
|
139
|
+
} = c, le = b(null), se = b(null), F = Me(), ie = b(null), h = b(null), oe = b(null), ae = b(null), T = b(!1), H = b(!1), O = b(N), ce = !!N, I = re(q.children), E = K != null, J = nt(I, K, Ne), [U, X] = te(() => J), [u, Re] = te(!1), [Ce, Ve] = te(""), R = G ?? Ce, C = ne((e) => {
|
|
140
|
+
G === void 0 && Ve(e), j == null || j(e);
|
|
141
|
+
}, [j, G]), p = ne((e) => {
|
|
142
|
+
T.current === e || e && c.disabled || (T.current = e, Re(e), D == null || D(e), e || C(""));
|
|
143
|
+
}, [D, c.disabled, C]), L = E ? String(K) : U, ue = {
|
|
144
|
+
default: _e("--colors-semantic-content-secondary"),
|
|
145
|
+
white: _e("--color-white", "white")
|
|
146
|
+
}, de = S === "minimal" ? ue.white : ue.default, Q = tt(I, L), $e = ve("CaretDown", de), ke = ve("MagnifyingGlass", de), Y = et(I, he ? R : ""), g = R.trim(), W = !!(l && s && g && s.isValid(g)), Be = v && S === "inline" ? qe(v) : v, pe = (e) => e ? (M == null ? void 0 : M({
|
|
131
147
|
groupLabel: e.groupLabel,
|
|
132
|
-
isSelected: e.value ===
|
|
148
|
+
isSelected: e.value === L,
|
|
133
149
|
label: e.label,
|
|
134
150
|
text: e.text,
|
|
135
151
|
value: e.value
|
|
136
152
|
})) ?? e.label : "Select an option";
|
|
137
|
-
|
|
138
|
-
!
|
|
139
|
-
}, [
|
|
153
|
+
w(() => {
|
|
154
|
+
!E && !I.some((e) => e.value === U) && X(J);
|
|
155
|
+
}, [J, U, E, I]), w(() => {
|
|
140
156
|
var e;
|
|
141
|
-
|
|
142
|
-
|
|
157
|
+
u && ((e = h.current) == null || e.focus());
|
|
158
|
+
}, [u]), w(() => {
|
|
159
|
+
if (!u)
|
|
143
160
|
return;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (!c)
|
|
148
|
-
return;
|
|
149
|
-
const e = (u) => {
|
|
150
|
-
var _;
|
|
151
|
-
(_ = K.current) != null && _.contains(u.target) || d(!1);
|
|
161
|
+
const e = (d) => {
|
|
162
|
+
var m;
|
|
163
|
+
(m = se.current) != null && m.contains(d.target) || p(!1);
|
|
152
164
|
};
|
|
153
165
|
return document.addEventListener("mousedown", e), () => {
|
|
154
166
|
document.removeEventListener("mousedown", e);
|
|
155
167
|
};
|
|
156
|
-
}, [
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
168
|
+
}, [p, u]), w(() => {
|
|
169
|
+
O.current = N;
|
|
170
|
+
}, [N]), w(() => {
|
|
171
|
+
c.disabled && p(!1);
|
|
172
|
+
}, [p, c.disabled]);
|
|
173
|
+
const Z = ne(() => {
|
|
174
|
+
!T.current || c.disabled || f || a || !y || !O.current || H.current || (H.current = !0, O.current());
|
|
175
|
+
}, [a, y, f, c.disabled]);
|
|
176
|
+
w(() => {
|
|
177
|
+
if (H.current = !1, !u || c.disabled || f || a || !y || !ce) return;
|
|
178
|
+
const e = ae.current, d = oe.current;
|
|
179
|
+
if (!e || !d || typeof IntersectionObserver > "u") return;
|
|
180
|
+
let m = !0;
|
|
181
|
+
const V = new IntersectionObserver((Le) => {
|
|
182
|
+
m && Le.some((Qe) => Qe.isIntersecting) && Z();
|
|
183
|
+
}, {
|
|
184
|
+
root: d
|
|
185
|
+
});
|
|
186
|
+
return V.observe(e), () => {
|
|
187
|
+
m = !1, V.disconnect();
|
|
188
|
+
};
|
|
189
|
+
}, [u, f, a, y, ce, Z, Y.length, R, c.disabled]);
|
|
190
|
+
const De = (e) => {
|
|
191
|
+
E || X(e.target.value), A == null || A(e);
|
|
192
|
+
}, ee = () => {
|
|
160
193
|
var e;
|
|
161
|
-
|
|
162
|
-
},
|
|
194
|
+
p(!1), l || (e = le.current) == null || e.focus();
|
|
195
|
+
}, fe = () => {
|
|
163
196
|
var e;
|
|
164
|
-
C(""),
|
|
165
|
-
},
|
|
166
|
-
!
|
|
167
|
-
},
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
const
|
|
171
|
-
if (!
|
|
172
|
-
|
|
197
|
+
C(""), p(!0), (e = h.current) == null || e.focus();
|
|
198
|
+
}, me = () => {
|
|
199
|
+
!s || !W || (s.onCreate(g), fe());
|
|
200
|
+
}, je = (e) => {
|
|
201
|
+
var V;
|
|
202
|
+
E || X(e);
|
|
203
|
+
const d = ie.current;
|
|
204
|
+
if (!d) {
|
|
205
|
+
ee();
|
|
173
206
|
return;
|
|
174
207
|
}
|
|
175
|
-
const
|
|
176
|
-
|
|
208
|
+
const m = (V = Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype, "value")) == null ? void 0 : V.set;
|
|
209
|
+
m == null || m.call(d, e), d.dispatchEvent(new Event("change", {
|
|
177
210
|
bubbles: !0
|
|
178
|
-
})),
|
|
179
|
-
},
|
|
180
|
-
e.key === "Escape" &&
|
|
181
|
-
},
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
|
|
211
|
+
})), l ? fe() : ee();
|
|
212
|
+
}, Fe = (e) => {
|
|
213
|
+
e.key === "Escape" && ee(), e.key === "Enter" && e.target === h.current && W && (e.preventDefault(), me());
|
|
214
|
+
}, be = /* @__PURE__ */ _("div", { className: $(r.dropdown, S === "inline" && r.inline, S === "minimal" && r.minimal, i), onKeyDown: Fe, ref: se, ...xe, "data-component": "dropdown", children: [
|
|
215
|
+
/* @__PURE__ */ o("select", { ...Ee, "aria-hidden": "true", className: $(r.native, Ie), onChange: De, ref: ie, tabIndex: -1, value: L, children: q.children }),
|
|
216
|
+
l ? /* @__PURE__ */ _("div", { className: r.combobox, onClick: () => {
|
|
184
217
|
var e;
|
|
185
|
-
return (e =
|
|
218
|
+
return (e = h.current) == null ? void 0 : e.focus();
|
|
186
219
|
}, children: [
|
|
187
|
-
|
|
188
|
-
/* @__PURE__ */
|
|
189
|
-
C(e.target.value),
|
|
190
|
-
}, onClick: () =>
|
|
191
|
-
] }) : /* @__PURE__ */
|
|
192
|
-
|
|
193
|
-
!
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
return /* @__PURE__ */
|
|
198
|
-
/* @__PURE__ */
|
|
199
|
-
e.groupLabel && /* @__PURE__ */
|
|
220
|
+
we,
|
|
221
|
+
/* @__PURE__ */ o("input", { "aria-autocomplete": "list", "aria-expanded": u, "aria-label": c["aria-label"] ?? v ?? P, className: r["combobox-input"], disabled: c.disabled, onChange: (e) => {
|
|
222
|
+
C(e.target.value), p(!0);
|
|
223
|
+
}, onClick: () => p(!0), onFocus: () => p(!0), placeholder: P || void 0, ref: h, role: "combobox", type: "text", value: R })
|
|
224
|
+
] }) : /* @__PURE__ */ o(k, { "aria-expanded": u, "aria-haspopup": "dialog", "aria-labelledby": v ? `${F} ${F}-value` : void 0, className: $(r.trigger, (Q == null ? void 0 : Q.isPlaceholder) && r.placeholder), "data-open": u ? "true" : void 0, disabled: c.disabled, onClick: () => p(!u), ref: le, style: $e, variant: "simple", children: /* @__PURE__ */ o("span", { className: r.text, id: `${F}-value`, children: pe(Q) }) }),
|
|
225
|
+
u && /* @__PURE__ */ _("div", { className: r.panel, children: [
|
|
226
|
+
!l && /* @__PURE__ */ o(Ae, { "aria-label": "Filter", className: r.filter, icon: "MagnifyingGlass", onChange: (e) => C(e.target.value), placeholder: P, ref: h, style: ke, type: "search", value: R }),
|
|
227
|
+
/* @__PURE__ */ _(Ke, { "aria-label": "Dropdown", "aria-busy": f || void 0, className: r.options, ref: oe, children: [
|
|
228
|
+
Y.map((e) => {
|
|
229
|
+
const d = e.value === L;
|
|
230
|
+
return /* @__PURE__ */ o("li", { "data-component": "dropdown", children: /* @__PURE__ */ _(k, { "aria-label": d ? `${e.text}, selected` : e.text, className: $(r.option, d && r.selected), disabled: e.disabled, onClick: () => je(e.value), variant: "tertiary", children: [
|
|
231
|
+
/* @__PURE__ */ o("span", { className: r.text, children: pe(e) }),
|
|
232
|
+
e.groupLabel && /* @__PURE__ */ o("small", { className: r.group, children: e.groupLabel })
|
|
200
233
|
] }) }, `${e.groupLabel ?? "root"}-${e.value}`);
|
|
201
234
|
}),
|
|
202
|
-
|
|
203
|
-
|
|
235
|
+
W && s && /* @__PURE__ */ o("li", { children: /* @__PURE__ */ o(k, { "aria-label": z(s.render(g)) || g, className: r.option, onClick: me, variant: "tertiary", children: /* @__PURE__ */ o("span", { className: r.text, children: s.render(g) }) }) }),
|
|
236
|
+
Y.length === 0 && !W && !f && !a && !y && /* @__PURE__ */ o("li", { className: r.empty, children: n }),
|
|
237
|
+
a && /* @__PURE__ */ _("li", { className: r.empty, children: [
|
|
238
|
+
/* @__PURE__ */ o("span", { role: "alert", children: a }),
|
|
239
|
+
x && /* @__PURE__ */ o(k, { disabled: f, onClick: x, variant: "tertiary", children: ye })
|
|
240
|
+
] }),
|
|
241
|
+
f && /* @__PURE__ */ o("li", { "aria-label": "Loading", className: r.empty, role: "status", children: /* @__PURE__ */ o(Te, { size: "small" }) }),
|
|
242
|
+
y && N && !a && /* @__PURE__ */ o("li", { ref: ae, children: /* @__PURE__ */ o(k, { className: r.option, disabled: f, onClick: Z, variant: "tertiary", children: ge }) })
|
|
204
243
|
] })
|
|
205
244
|
] })
|
|
206
245
|
] });
|
|
207
|
-
return
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
|
|
210
|
-
] }) :
|
|
246
|
+
return v ? /* @__PURE__ */ _("div", { className: $(r.label, S === "inline" && r["inline-field"]), "data-component": "dropdown", children: [
|
|
247
|
+
/* @__PURE__ */ o("span", { id: F, children: Be }),
|
|
248
|
+
be
|
|
249
|
+
] }) : be;
|
|
211
250
|
};
|
|
212
251
|
export {
|
|
213
|
-
|
|
252
|
+
Vt as Dropdown
|
|
214
253
|
};
|
|
215
254
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('../../assets/index54.css');const h=require("react/jsx-runtime"),T=require("classix"),t=require("react"),K=require("react-dom"),N=require("../button/index.cjs"),O="_popover_12bds_1",H="_inline_12bds_6",W="_below_12bds_47",M="_above_12bds_52",U="_trigger_12bds_62",a={popover:O,inline:H,"popover-panel":"_popover-panel_12bds_26",below:W,above:M,"floating-panel":"_floating-panel_12bds_57",trigger:U,"inline-trigger":"_inline-trigger_12bds_66"},X=({children:v,inline:m=!1,triggerAccessibleLabel:k,triggerAriaHasPopup:C,triggerButtonContent:z})=>{const y=t.useRef(null),P=t.useRef(void 0),c=t.useRef(null),R=t.useId(),d=t.useRef(null),[n,D]=t.useState(!1),[F,x]=t.useState(!1),[u,B]=t.useState(),[f,E]=t.useState(!1),[w,S]=t.useState("right"),b=({initialFocus:e}={})=>{var r;P.current=e,B((r=d.current)==null?void 0:r.getBoundingClientRect()),x(!1),E(!1),S("right"),D(!0)},l=t.useCallback(({restoreFocus:e=!0}={})=>{var r;D(!1),e&&((r=d.current)==null||r.focus({preventScroll:!0}))},[]),L=e=>{n&&e.key==="Escape"&&l()},j=e=>{if(!n){if(e.key==="ArrowDown"){e.preventDefault(),b({initialFocus:"first"});return}e.key==="ArrowUp"&&(e.preventDefault(),b({initialFocus:"last"}))}};t.useEffect(()=>{if(!n)return;const e=s=>{var i,p;const o=s.target;(i=y.current)!=null&&i.contains(o)||(p=c.current)!=null&&p.contains(o)||l({restoreFocus:!1})},r=s=>{var o,i;s.target instanceof Node&&((o=c.current)!=null&&o.contains(s.target))||l({restoreFocus:((i=c.current)==null?void 0:i.contains(document.activeElement))??!1})};return document.addEventListener("mousedown",e),window.addEventListener("scroll",r,!0),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("scroll",r,!0)}},[l,n]);const g=t.useCallback(()=>{const e=c.current,r=d.current;if(!e||!r)return;const s=e.getBoundingClientRect(),o=r.getBoundingClientRect();B(o),x(!0);const i=o.top,p=window.innerHeight-o.bottom;E(s.height>p&&i>p),S(s.width>window.innerWidth-o.left&&o.right>window.innerWidth-o.left?"left":"right")},[]);t.useLayoutEffect(()=>{if(n)return g(),window.addEventListener("resize",g),()=>{window.removeEventListener("resize",g)}},[n,g]);const q=e=>{e.preventDefault(),e.stopPropagation(),n?l({restoreFocus:!1}):b()},A={"aria-controls":n?R:void 0,"aria-expanded":n,"aria-haspopup":C,"aria-label":k,className:m?a["inline-trigger"]:a.trigger,onClick:q,onKeyDown:j},I=[w==="left"?"translateX(-100%)":"",f?"translateY(calc(-100% - var(--shape-spacing-2xs)))":""].filter(Boolean).join(" "),_=n?h.jsx("div",{className:T(a["popover-panel"],a[f?"above":"below"],a["floating-panel"]),"data-horizontal-placement":w,"data-placement":f?"above":"below",id:R,ref:c,style:u?{left:w==="left"?u.right:u.left,position:"fixed",top:f?u.top:u.bottom,transform:I||void 0}:{position:"fixed",left:0,top:0},children:typeof v=="function"?v({close:l,initialFocus:P.current,isOpen:n,isPositioned:F}):v}):null;return h.jsxs("div",{className:T(a.popover,m&&a.inline),"data-open":n,onKeyDown:L,onClick:e=>{e.preventDefault(),e.stopPropagation()},ref:y,"data-component":"popover",children:[h.jsx(N.Button,{...A,ref:d,variant:m?"simple":"tertiary",children:z}),_&&typeof document<"u"?K.createPortal(_,document.body):_]})};exports.Popover=X;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -3,7 +3,7 @@ import z from "classix";
|
|
|
3
3
|
import { useRef as m, useId as W, useState as f, useCallback as C, useEffect as U, useLayoutEffect as X } from "react";
|
|
4
4
|
import { createPortal as Y } from "react-dom";
|
|
5
5
|
import { Button as q } from "../button/index.js";
|
|
6
|
-
import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12bds_6", M = "_below_12bds_47", Q = "_above_12bds_52", V = "_trigger_12bds_62",
|
|
6
|
+
import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12bds_6", M = "_below_12bds_47", Q = "_above_12bds_52", V = "_trigger_12bds_62", i = {
|
|
7
7
|
popover: G,
|
|
8
8
|
inline: J,
|
|
9
9
|
"popover-panel": "_popover-panel_12bds_26",
|
|
@@ -12,14 +12,14 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
|
|
|
12
12
|
"floating-panel": "_floating-panel_12bds_57",
|
|
13
13
|
trigger: V,
|
|
14
14
|
"inline-trigger": "_inline-trigger_12bds_66"
|
|
15
|
-
},
|
|
15
|
+
}, se = ({
|
|
16
16
|
children: v,
|
|
17
|
-
inline:
|
|
17
|
+
inline: w = !1,
|
|
18
18
|
triggerAccessibleLabel: F,
|
|
19
19
|
triggerAriaHasPopup: L,
|
|
20
20
|
triggerButtonContent: A
|
|
21
21
|
}) => {
|
|
22
|
-
const y = m(null), P = m(void 0), l = m(null), B = W(), d = m(null), [t, D] = f(!1), [I, E] = f(!1), [c, x] = f(), [u, R] = f(!1), [
|
|
22
|
+
const y = m(null), P = m(void 0), l = m(null), B = W(), d = m(null), [t, D] = f(!1), [I, E] = f(!1), [c, x] = f(), [u, R] = f(!1), [b, T] = f("right"), _ = ({
|
|
23
23
|
initialFocus: e
|
|
24
24
|
} = {}) => {
|
|
25
25
|
var n;
|
|
@@ -36,12 +36,12 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
|
|
|
36
36
|
}, N = (e) => {
|
|
37
37
|
if (!t) {
|
|
38
38
|
if (e.key === "ArrowDown") {
|
|
39
|
-
e.preventDefault(),
|
|
39
|
+
e.preventDefault(), _({
|
|
40
40
|
initialFocus: "first"
|
|
41
41
|
});
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
e.key === "ArrowUp" && (e.preventDefault(),
|
|
44
|
+
e.key === "ArrowUp" && (e.preventDefault(), _({
|
|
45
45
|
initialFocus: "last"
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
@@ -50,15 +50,15 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
|
|
|
50
50
|
if (!t)
|
|
51
51
|
return;
|
|
52
52
|
const e = (r) => {
|
|
53
|
-
var
|
|
53
|
+
var s, p;
|
|
54
54
|
const o = r.target;
|
|
55
|
-
(
|
|
55
|
+
(s = y.current) != null && s.contains(o) || (p = l.current) != null && p.contains(o) || a({
|
|
56
56
|
restoreFocus: !1
|
|
57
57
|
});
|
|
58
58
|
}, n = (r) => {
|
|
59
|
-
var o,
|
|
59
|
+
var o, s;
|
|
60
60
|
r.target instanceof Node && ((o = l.current) != null && o.contains(r.target)) || a({
|
|
61
|
-
restoreFocus: ((
|
|
61
|
+
restoreFocus: ((s = l.current) == null ? void 0 : s.contains(document.activeElement)) ?? !1
|
|
62
62
|
});
|
|
63
63
|
};
|
|
64
64
|
return document.addEventListener("mousedown", e), window.addEventListener("scroll", n, !0), () => {
|
|
@@ -70,8 +70,8 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
|
|
|
70
70
|
if (!e || !n) return;
|
|
71
71
|
const r = e.getBoundingClientRect(), o = n.getBoundingClientRect();
|
|
72
72
|
x(o), E(!0);
|
|
73
|
-
const
|
|
74
|
-
R(r.height > p &&
|
|
73
|
+
const s = o.top, p = window.innerHeight - o.bottom;
|
|
74
|
+
R(r.height > p && s > p), T(r.width > window.innerWidth - o.left && o.right > window.innerWidth - o.left ? "left" : "right");
|
|
75
75
|
}, []);
|
|
76
76
|
X(() => {
|
|
77
77
|
if (t)
|
|
@@ -82,17 +82,17 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
|
|
|
82
82
|
const j = (e) => {
|
|
83
83
|
e.preventDefault(), e.stopPropagation(), t ? a({
|
|
84
84
|
restoreFocus: !1
|
|
85
|
-
}) :
|
|
85
|
+
}) : _();
|
|
86
86
|
}, O = {
|
|
87
87
|
"aria-controls": t ? B : void 0,
|
|
88
88
|
"aria-expanded": t,
|
|
89
89
|
"aria-haspopup": L,
|
|
90
90
|
"aria-label": F,
|
|
91
|
-
className:
|
|
91
|
+
className: w ? i["inline-trigger"] : i.trigger,
|
|
92
92
|
onClick: j,
|
|
93
93
|
onKeyDown: N
|
|
94
|
-
}, S = [
|
|
95
|
-
left:
|
|
94
|
+
}, S = [b === "left" ? "translateX(-100%)" : "", u ? "translateY(calc(-100% - var(--shape-spacing-2xs)))" : ""].filter(Boolean).join(" "), h = t ? /* @__PURE__ */ k("div", { className: z(i["popover-panel"], i[u ? "above" : "below"], i["floating-panel"]), "data-horizontal-placement": b, "data-placement": u ? "above" : "below", id: B, ref: l, style: c ? {
|
|
95
|
+
left: b === "left" ? c.right : c.left,
|
|
96
96
|
position: "fixed",
|
|
97
97
|
top: u ? c.top : c.bottom,
|
|
98
98
|
transform: S || void 0
|
|
@@ -106,14 +106,14 @@ import '../../assets/index54.css';const G = "_popover_12bds_1", J = "_inline_12b
|
|
|
106
106
|
isOpen: t,
|
|
107
107
|
isPositioned: I
|
|
108
108
|
}) : v }) : null;
|
|
109
|
-
return /* @__PURE__ */ H("div", { className: z(
|
|
109
|
+
return /* @__PURE__ */ H("div", { className: z(i.popover, w && i.inline), "data-open": t, onKeyDown: K, onClick: (e) => {
|
|
110
110
|
e.preventDefault(), e.stopPropagation();
|
|
111
111
|
}, ref: y, "data-component": "popover", children: [
|
|
112
|
-
/* @__PURE__ */ k(q, { ...O, ref: d, variant: "simple", children: A }),
|
|
113
|
-
|
|
112
|
+
/* @__PURE__ */ k(q, { ...O, ref: d, variant: w ? "simple" : "tertiary", children: A }),
|
|
113
|
+
h && typeof document < "u" ? Y(h, document.body) : h
|
|
114
114
|
] });
|
|
115
115
|
};
|
|
116
116
|
export {
|
|
117
|
-
|
|
117
|
+
se as Popover
|
|
118
118
|
};
|
|
119
119
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -243,7 +243,7 @@ export declare const Divider: ({ className, ...props }: DividerProps) => JSX.Ele
|
|
|
243
243
|
|
|
244
244
|
export declare type DividerProps = React.ComponentPropsWithoutRef<'hr'>;
|
|
245
245
|
|
|
246
|
-
export declare const Dropdown: ({ children: selectElement, className, combobox, createOption, emptyLabel, label, renderOption, searchPlaceholder, selectedItems, variant, ...props }: DropdownProps) => JSX.Element;
|
|
246
|
+
export declare const Dropdown: ({ children: selectElement, className, combobox, createOption, emptyLabel, errorLabel, onRetry, retryLabel, label, filterOptions, hasNextPage, loading, loadMoreLabel, onLoadMore, onOpenChange, onSearchChange, searchValue, renderOption, searchPlaceholder, selectedItems, variant, ...props }: DropdownProps) => JSX.Element;
|
|
247
247
|
|
|
248
248
|
export declare type DropdownCreateOption = {
|
|
249
249
|
isValid: (value: string) => boolean;
|
|
@@ -267,7 +267,19 @@ declare type DropdownProps = Omit<default_2.ComponentPropsWithoutRef<'div'>, 'ch
|
|
|
267
267
|
combobox?: boolean;
|
|
268
268
|
createOption?: DropdownCreateOption;
|
|
269
269
|
emptyLabel?: string;
|
|
270
|
+
errorLabel?: string;
|
|
271
|
+
onRetry?: () => void;
|
|
272
|
+
retryLabel?: string;
|
|
270
273
|
label?: string;
|
|
274
|
+
/** Disable local matching when the supplied options are already server-filtered. */
|
|
275
|
+
filterOptions?: boolean;
|
|
276
|
+
hasNextPage?: boolean;
|
|
277
|
+
loading?: boolean;
|
|
278
|
+
loadMoreLabel?: string;
|
|
279
|
+
onLoadMore?: () => void;
|
|
280
|
+
onOpenChange?: (open: boolean) => void;
|
|
281
|
+
onSearchChange?: (value: string) => void;
|
|
282
|
+
searchValue?: string;
|
|
271
283
|
renderOption?: (option: DropdownRenderOption) => default_2.ReactNode;
|
|
272
284
|
searchPlaceholder?: string;
|
|
273
285
|
selectedItems?: default_2.ReactNode;
|
package/dist/tokens.json
CHANGED