@epam/ai-dial-navigation-panel 1.4.0-dev.8 → 1.4.0-dev.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"NavigationSidebar.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationSidebar/NavigationSidebar.tsx"],"names":[],"mappings":"AASA,OAAO,EAOL,KAAK,EAAE,EAGR,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAuCpF,2GAA2G;AAC3G,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAoVxD,CAAC"}
1
+ {"version":3,"file":"NavigationSidebar.d.ts","sourceRoot":"","sources":["../../../src/components/NavigationSidebar/NavigationSidebar.tsx"],"names":[],"mappings":"AASA,OAAO,EAOL,KAAK,EAAE,EAGR,MAAM,OAAO,CAAC;AAMf,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AA0DpF,2GAA2G;AAC3G,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAiVxD,CAAC"}
package/index.css CHANGED
@@ -1,3 +1,3 @@
1
1
  ._rail_1hxk4_1{background:var(--np-bg,var(--bg-layer-raised,#fcfcfc));font-family:var(--np-font-family,inherit)}._item_1hxk4_6{color:var(--np-item-text,var(--text-primary,#161b2d))}._item_1hxk4_6 svg{transition:transform .2s cubic-bezier(.34,1.56,.64,1)}._item_1hxk4_6:hover svg,a:focus-visible>._item_1hxk4_6 svg{transform:translateY(-2px)}._item_1hxk4_6:active svg{transition-duration:.1s;transform:translateY(0)}@media (prefers-reduced-motion:reduce){._item_1hxk4_6 svg{transition:none}._item_1hxk4_6:hover svg,a:focus-visible>._item_1hxk4_6 svg{transform:none}}._item_1hxk4_6:not(._itemActive_1hxk4_33):hover{background:var(--np-item-hover-bg,transparent)}._item_1hxk4_6:not(._itemActive_1hxk4_33):hover svg,a:focus-visible>._item_1hxk4_6:not(._itemActive_1hxk4_33) svg{stroke:var(--np-item-hover-icon,currentColor)}._item_1hxk4_6:active{background:var(--np-item-active-bg,var(--bg-control-accent-alpha-active,#2764d933))}a:focus-visible>._item_1hxk4_6:not(._itemActive_1hxk4_33){background:var(--np-item-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}a:focus-visible>._item_1hxk4_6._itemActive_1hxk4_33{outline:2px solid var(--np-item-active-text,var(--text-accent,#1d4ed8));outline-offset:-2px}._item_1hxk4_6._itemActive_1hxk4_33{background:var(--np-item-selected-bg,var(--bg-control-accent-alpha-active,#2764d933));color:var(--np-item-active-text,var(--text-accent,#1d4ed8))}._item_1hxk4_6._itemActive_1hxk4_33 svg{stroke:var(--np-item-active-icon,currentColor)}._item_1hxk4_6._itemFilled_1hxk4_38 svg{fill:var(--np-item-active-icon,currentColor);stroke:none}._item_1hxk4_6._itemFilledOutline_1hxk4_79 svg{fill:var(--np-item-active-icon,currentColor)}._stopStart_8i550_1{stop-color:var(--np-sidebar-gradient-start,#1d4ed8)}._stopEnd_8i550_5{stop-color:var(--np-sidebar-gradient-end,#885df2)}._sidebar_1w4pz_1{background:var(--np-sidebar-bg,var(--bg-layer-raised,#fcfcfc));font-family:var(--np-sidebar-font-family,inherit)}._sidebarColumn_1w4pz_7{transition:width .2s}@media (prefers-reduced-motion:reduce){._sidebarColumn_1w4pz_7{transition:none}}._item_1w4pz_16{color:var(--np-sidebar-item-text,var(--text-primary,#161b2d));cursor:pointer}._item_1w4pz_16:not(._itemActive_1w4pz_21):hover,._item_1w4pz_16:not(._itemActive_1w4pz_21):focus-visible{background:var(--np-sidebar-item-hover-bg,var(--bg-control-accent-alpha-hover-subtle,#2764d90a))}._item_1w4pz_16:focus-visible{outline:1px solid var(--np-sidebar-focus-outline,var(--stroke-focus,#161b2d));outline-offset:2px}._item_1w4pz_16._itemActive_1w4pz_21{background:var(--np-sidebar-item-selected-bg,var(--bg-control-accent-alpha-active-subtle,#2764d914))}._item_1w4pz_16._itemActive_1w4pz_21 svg{stroke:var(--np-sidebar-item-active-icon,currentColor)}._item_1w4pz_16._itemFilled_1w4pz_38 svg{fill:var(--np-sidebar-item-active-icon,currentColor);stroke:none}._item_1w4pz_16._itemFilledOutline_1w4pz_45 svg{fill:var(--np-sidebar-item-active-icon,currentColor)}._itemIcon_1w4pz_49{color:var(--np-sidebar-item-text,var(--text-primary,#161b2d))}._footer_1w4pz_55{background:var(--np-sidebar-bg,var(--bg-layer-raised,#fcfcfc))}._avatar_4hc9t_4._avatar_4hc9t_4{background:var(--np-avatar-bg,var(--bg-control-accent,#1d4ed8));color:var(--np-avatar-text,var(--text-control-permanent,#fcfcfc))}._wrapper_11e9t_1{font-family:var(--np-font-family,inherit)}._trigger_11e9t_5:hover{background:var(--np-trigger-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._trigger_11e9t_5._trigger_11e9t_5:focus-visible{background:var(--np-trigger-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924));outline:1px solid var(--np-focus-outline,var(--stroke-focus,#161b2d));outline-offset:-1px}._triggerOpen_11e9t_18{background:var(--np-trigger-open-bg,var(--bg-control-accent-alpha-active-subtle,#2764d914))}._identityText_11e9t_22,._menuLabel_11e9t_26{color:var(--np-menu-text,var(--text-primary,#161b2d))}._sheet_1k0ml_1{font-family:var(--np-font-family,inherit)}li>._row_1k0ml_12{color:var(--np-sheet-text,var(--text-primary,#161b2d))}li>._row_1k0ml_12:hover,li>._row_1k0ml_12:focus-visible{background:var(--np-sheet-item-hover,var(--bg-control-accent-alpha-hover,#2764d924))}li>._row_1k0ml_12:active{background:var(--np-sheet-item-active,var(--bg-control-neutral-active,#d1dbea))}li>._rowActive_1k0ml_24{color:var(--np-sheet-row-active-text,var(--text-accent,#1d4ed8));background:var(--np-sheet-row-active-bg,var(--bg-control-accent-alpha,#2764d90f))}li>._rowActive_1k0ml_24:hover,li>._rowActive_1k0ml_24:focus-visible{background:var(--np-sheet-row-active-bg-hover,var(--bg-control-accent-alpha-hover,#2764d924))}li>._rowActive_1k0ml_24 ._rowIcon_1k0ml_31{color:inherit}li>._rowActive_1k0ml_24 ._rowIcon_1k0ml_31 svg[fill=none]{fill:currentColor}._rowIcon_1k0ml_31{color:var(--np-sheet-icon,var(--text-secondary,#57647a))}._divider_1k0ml_46{border-color:var(--np-sheet-divider,var(--stroke-secondary,#d1dbea))}._mutedText_1k0ml_50{color:var(--np-sheet-muted-text,var(--text-secondary,#57647a))}._activeIcon_1k0ml_54{color:var(--np-menu-active-icon,var(--text-accent,#1d4ed8))}
2
2
  /*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
3
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--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-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-y-0{inset-block:0}.inset-s-0{inset-inline-start:0}.z-10{z-index:10}.z-50{z-index:50}.m-0{margin:0}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.size-0{width:0;height:0}.size-6{width:1.5rem;height:1.5rem}.size-10{width:2.5rem;height:2.5rem}.size-10\!{width:2.5rem!important;height:2.5rem!important}.size-\[44px\]{width:44px;height:44px}.size-\[60px\]{width:60px;height:60px}.h-6{height:1.5rem}.h-10{height:2.5rem}.h-10\!{height:2.5rem!important}.h-16{height:4rem}.h-\[40px\]{height:40px}.h-\[56px\]{height:56px}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:0}.min-h-0\!{min-height:0!important}.w-6{width:1.5rem}.w-\[60px\]{width:60px}.w-\[72px\]{width:72px}.w-\[320px\]{width:320px}.w-\[336px\]{width:336px}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-0\!{min-width:0!important}.min-w-\[116px\]{min-width:116px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.list-none{list-style-type:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:3.40282e38px}.rounded-full\!{border-radius:3.40282e38px!important}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.border-0\!{border-style:var(--tw-border-style)!important;border-width:0!important}.bg-contain{background-size:contain}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-0{padding:0}.p-2{padding:.5rem}.p-2\!{padding:.5rem!important}.p-4{padding:1rem}.px-4{padding-inline:1rem}.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.py-\[10px\]{padding-block:10px}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.pe-2{padding-inline-end:.5rem}.pt-3{padding-top:.75rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:1px 10px 25px 12px var(--tw-shadow-color,var(--shadow-lg,#2764d914));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:4px 9px 16px 1px var(--tw-shadow-color,var(--shadow-sm-2,var(--shadow-sm,#2764d90f))), 0 -2px 4px 2px var(--tw-shadow-color,var(--shadow-sm-1,#2764d90a));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-\[transform\,visibility\]{transition-property:transform,visibility;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:cubic-bezier(.4, 0, .2, 1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\/toggle\:opacity-0:is(:where(.group\/toggle):hover *){opacity:0}.group-hover\/toggle\:opacity-100:is(:where(.group\/toggle):hover *){opacity:1}}.group-focus-visible\/toggle\:opacity-0:is(:where(.group\/toggle):focus-visible *){opacity:0}.group-focus-visible\/toggle\:opacity-100:is(:where(.group\/toggle):focus-visible *){opacity:1}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}.ltr\:-translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:scale-x-\[-1\]:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:-1;scale:var(--tw-scale-x) var(--tw-scale-y)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--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-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0}.inset-y-0{inset-block:0}.inset-s-0{inset-inline-start:0}.z-10{z-index:10}.z-50{z-index:50}.m-0{margin:0}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.size-0{width:0;height:0}.size-6{width:1.5rem;height:1.5rem}.size-10{width:2.5rem;height:2.5rem}.size-10\!{width:2.5rem!important;height:2.5rem!important}.size-\[44px\]{width:44px;height:44px}.size-\[60px\]{width:60px;height:60px}.h-6{height:1.5rem}.h-10{height:2.5rem}.h-10\!{height:2.5rem!important}.h-16{height:4rem}.h-\[40px\]{height:40px}.h-\[56px\]{height:56px}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:0}.min-h-0\!{min-height:0!important}.w-6{width:1.5rem}.w-\[60px\]{width:60px}.w-\[72px\]{width:72px}.w-\[320px\]{width:320px}.w-\[336px\]{width:336px}.w-full{width:100%}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-0\!{min-width:0!important}.min-w-\[116px\]{min-width:116px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.translate-x-0{--tw-translate-x:0px;translate:var(--tw-translate-x) var(--tw-translate-y)}.list-none{list-style-type:none}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:3.40282e38px}.rounded-full\!{border-radius:3.40282e38px!important}.rounded-none{border-radius:0}.rounded-xl{border-radius:.75rem}.border-0\!{border-style:var(--tw-border-style)!important;border-width:0!important}.bg-contain{background-size:contain}.bg-center{background-position:50%}.bg-no-repeat{background-repeat:no-repeat}.p-0{padding:0}.p-2{padding:.5rem}.p-2\!{padding:.5rem!important}.p-4{padding:1rem}.px-4{padding-inline:1rem}.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.py-\[10px\]{padding-block:10px}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.pe-2{padding-inline-end:.5rem}.pt-3{padding-top:.75rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.no-underline{text-decoration-line:none}.opacity-0{opacity:0}.shadow-lg{--tw-shadow:1px 10px 25px 12px var(--tw-shadow-color,var(--shadow-lg,#2764d914));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:4px 9px 16px 1px var(--tw-shadow-color,var(--shadow-sm-2,var(--shadow-sm,#2764d90f))), 0 -2px 4px 2px var(--tw-shadow-color,var(--shadow-sm-1,#2764d90a));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + 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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.transition-\[transform\,visibility\]{transition-property:transform,visibility;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.duration-200{--tw-duration:.2s;transition-duration:.2s}.ease-in-out{--tw-ease:cubic-bezier(.4, 0, .2, 1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.outline-none{--tw-outline-style:none;outline-style:none}@media (hover:hover){.group-hover\/toggle\:opacity-0:is(:where(.group\/toggle):hover *){opacity:0}.group-hover\/toggle\:opacity-100:is(:where(.group\/toggle):hover *){opacity:1}}.group-focus-visible\/toggle\:opacity-0:is(:where(.group\/toggle):focus-visible *){opacity:0}.group-focus-visible\/toggle\:opacity-100:is(:where(.group\/toggle):focus-visible *){opacity:1}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}.ltr\:-translate-x-full:where(:dir(ltr),[dir=ltr],[dir=ltr] *){--tw-translate-x:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:translate-x-full:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-translate-x:100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.rtl\:scale-x-\[-1\]:where(:dir(rtl),[dir=rtl],[dir=rtl] *){--tw-scale-x:-1;scale:var(--tw-scale-x) var(--tw-scale-y)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@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-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}
package/index.js CHANGED
@@ -2,26 +2,26 @@ import { buildCssVars as e, mergeClasses as t } from "@epam/ai-dial-chat-shared"
2
2
  import { Avatar as n, BASE_ICON_SIZE as r, Button as i, DIAL_ICON_SIZE as a, DIAL_KIT_ICON_STROKE as o, Dropdown as s, DropdownItemType as c, ElementSize as l, EllipsisTooltip as u, GhostIconButton as d, IconButton as f, MenuItem as p, MenuItemMark as m, Tooltip as h } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as g, createContext as _, memo as v, useCallback as y, useContext as b, useEffect as x, useId as S, useMemo as C, useRef as w, useState as T } from "react";
4
4
  import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
5
- import { IconCheck as k, IconChevronDown as A, IconChevronRight as j, IconChevronUp as ee, IconLayoutSidebar as M, IconLogout as te, IconSettings as N, IconUser as P, IconX as ne } from "@tabler/icons-react";
6
- import { BottomSheetShell as F } from "@epam/ai-dial-conversation-input";
5
+ import { IconCheck as k, IconChevronDown as A, IconChevronRight as j, IconChevronUp as ee, IconLayoutSidebar as M, IconLogout as N, IconSettings as P, IconUser as F, IconX as te } from "@tabler/icons-react";
6
+ import { BottomSheetShell as I } from "@epam/ai-dial-conversation-input";
7
7
  //#region src/constants/public-class-names.ts
8
- var I = {
8
+ var L = {
9
9
  rail: "dial-navigation-panel-rail",
10
10
  item: "dial-navigation-panel-item",
11
11
  sidebar: "dial-navigation-panel-sidebar",
12
12
  sidebarItem: "dial-navigation-panel-sidebar-item",
13
13
  sidebarFooter: "dial-navigation-panel-sidebar-footer"
14
- }, L = {
14
+ }, R = {
15
15
  rail: "_rail_1hxk4_1",
16
16
  item: "_item_1hxk4_6",
17
17
  itemActive: "_itemActive_1hxk4_33",
18
18
  itemFilled: "_itemFilled_1hxk4_38",
19
19
  itemFilledOutline: "_itemFilledOutline_1hxk4_79"
20
- }, R = (e, t) => /* @__PURE__ */ D("a", {
20
+ }, z = (e, t) => /* @__PURE__ */ D("a", {
21
21
  href: e.href,
22
22
  className: "contents",
23
23
  children: t
24
- }), z = v(({ items: n, labels: r, logo: i, footer: s, renderLink: c = R, styles: l }) => {
24
+ }), B = v(({ items: n, labels: r, logo: i, footer: s, renderLink: c = z, styles: l }) => {
25
25
  let { colors: u, typography: d, className: p, cssVars: m } = l ?? {}, h = S().replace(/[^\w-]/g, ""), _ = `np-hover-gradient-${h}`, v = `np-active-gradient-${h}`, y = C(() => e({
26
26
  "--np-bg": u?.background,
27
27
  "--np-item-text": u?.itemText,
@@ -44,7 +44,7 @@ var I = {
44
44
  ...m,
45
45
  ...y
46
46
  },
47
- className: t(L.rail, "relative z-10 flex h-full w-[60px] flex-col justify-between shadow-sm", d?.fontClassName, p, I.rail),
47
+ className: t(R.rail, "relative z-10 flex h-full w-[60px] flex-col justify-between shadow-sm", d?.fontClassName, p, L.rail),
48
48
  children: [
49
49
  /* @__PURE__ */ D("svg", {
50
50
  "aria-hidden": !0,
@@ -103,7 +103,7 @@ var I = {
103
103
  "aria-current": e.isActive ? "page" : void 0,
104
104
  tooltipProps: { tooltip: e.label },
105
105
  tabIndex: -1,
106
- className: t(L.item, "rounded-xl", e.isActive && L.itemActive, n && L.itemFilled, e.isActive && !n && L.itemFilledOutline, I.item)
106
+ className: t(R.item, "rounded-xl", e.isActive && R.itemActive, n && R.itemFilled, e.isActive && !n && R.itemFilledOutline, L.item)
107
107
  })) }, e.id);
108
108
  })
109
109
  })]
@@ -111,9 +111,9 @@ var I = {
111
111
  s
112
112
  ]
113
113
  });
114
- }), B = /* @__PURE__ */ function(e) {
114
+ }), V = /* @__PURE__ */ function(e) {
115
115
  return e.Sidebar = "sidebar", e.Drawer = "drawer", e;
116
- }({}), V = [
116
+ }({}), H = [
117
117
  "a[href]",
118
118
  "button:not([disabled])",
119
119
  "input:not([disabled]):not([type=\"hidden\"])",
@@ -121,10 +121,10 @@ var I = {
121
121
  "textarea:not([disabled])",
122
122
  "[tabindex]",
123
123
  "[contenteditable=\"true\"]"
124
- ].join(","), re = (e) => Array.from(e.querySelectorAll(V)).filter((e) => e.tabIndex >= 0 && !e.closest("[inert], [hidden], [aria-hidden=\"true\"]")), H = {
124
+ ].join(","), ne = (e) => Array.from(e.querySelectorAll(H)).filter((e) => e.tabIndex >= 0 && !e.closest("[inert], [hidden], [aria-hidden=\"true\"]")), U = {
125
125
  stopStart: "_stopStart_8i550_1",
126
126
  stopEnd: "_stopEnd_8i550_5"
127
- }, ie = ({ activeGradientId: e }) => /* @__PURE__ */ D("svg", {
127
+ }, re = ({ activeGradientId: e }) => /* @__PURE__ */ D("svg", {
128
128
  "aria-hidden": !0,
129
129
  className: "absolute size-0",
130
130
  focusable: "false",
@@ -137,13 +137,13 @@ var I = {
137
137
  y2: "20.4",
138
138
  children: [/* @__PURE__ */ D("stop", {
139
139
  offset: "0",
140
- className: H.stopStart
140
+ className: U.stopStart
141
141
  }), /* @__PURE__ */ D("stop", {
142
142
  offset: "1",
143
- className: H.stopEnd
143
+ className: U.stopEnd
144
144
  })]
145
145
  }) })
146
- }), U = {
146
+ }), W = {
147
147
  sidebar: "_sidebar_1w4pz_1",
148
148
  sidebarColumn: "_sidebarColumn_1w4pz_7",
149
149
  item: "_item_1w4pz_16",
@@ -152,16 +152,25 @@ var I = {
152
152
  itemFilledOutline: "_itemFilledOutline_1w4pz_45",
153
153
  itemIcon: "_itemIcon_1w4pz_49",
154
154
  footer: "_footer_1w4pz_55"
155
- }, ae = (e, t, n) => /* @__PURE__ */ D("a", {
155
+ }, ie = (e, t, n) => /* @__PURE__ */ D("a", {
156
156
  href: e.href,
157
157
  ...n,
158
158
  children: t
159
- }), oe = (e, t) => e ? "w-[320px] max-w-full" : t ? "w-[72px]" : "w-[336px]", se = (e, n) => e ? t("fixed inset-y-0 inset-s-0 z-50 flex flex-col overflow-hidden shadow-sm outline-none", "transition-[transform,visibility] duration-200 ease-in-out motion-reduce:transition-none", n ? "visible translate-x-0" : "invisible ltr:-translate-x-full rtl:translate-x-full") : t(U.sidebarColumn, "relative z-10 flex h-full shrink-0 flex-col overflow-hidden shadow-sm"), ce = v(({ items: n, labels: r, variant: i = B.Sidebar, isCollapsed: s = !1, onToggleCollapse: c, isOpen: u = !1, onClose: f, id: p, logo: m, renderLink: _ = ae, children: v, userMenu: y, footerActions: b, styles: T }) => {
160
- let { colors: k, typography: A, className: j, cssVars: ee } = T ?? {}, te = A?.fontClassName ?? "dial-small-text", N = i === B.Drawer, P = !N && s, F = S(), L = p ?? F, R = `np-sidebar-gradient-${F.replace(/[^\w-]/g, "")}`, z = w(null), V = w(null), H = w(u);
159
+ }), ae = (e, t) => e ? "w-[320px] max-w-full" : t ? "w-[72px]" : "w-[336px]", oe = (e, n) => e ? t("fixed inset-y-0 inset-s-0 z-50 flex flex-col overflow-hidden shadow-sm outline-none", "duration-200 ease-in-out motion-reduce:transition-none", n ? "visible translate-x-0 transition-transform" : "invisible ltr:-translate-x-full rtl:translate-x-full transition-[transform,visibility]") : t(W.sidebarColumn, "relative z-10 flex h-full shrink-0 flex-col overflow-hidden shadow-sm"), se = (e) => {
160
+ let t = document.activeElement;
161
+ if (t instanceof HTMLElement && t !== document.body) return t;
162
+ let n = document.querySelectorAll("[aria-controls]");
163
+ return Array.from(n).find((t) => t.getAttribute("aria-controls")?.split(/\s+/).includes(e)) ?? null;
164
+ }, ce = v(({ items: n, labels: r, variant: i = V.Sidebar, isCollapsed: s = !1, onToggleCollapse: c, isOpen: u = !1, onClose: f, id: p, logo: m, renderLink: _ = ie, children: v, userMenu: y, footerActions: b, styles: T }) => {
165
+ let { colors: k, typography: A, className: j, cssVars: ee } = T ?? {}, N = A?.fontClassName ?? "dial-small-text", P = i === V.Drawer, F = !P && s, I = S(), R = p ?? I, z = `np-sidebar-gradient-${I.replace(/[^\w-]/g, "")}`, B = w(null), H = w(null), U = w(u);
161
166
  x(() => {
162
- let e = H.current;
163
- H.current = u, N && (u && !e ? (V.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, z.current?.focus()) : !u && e && (V.current?.focus(), V.current = null));
164
- }, [N, u]);
167
+ let e = U.current;
168
+ U.current = u, P && (u && !e ? (H.current = se(R), B.current?.focus()) : !u && e && (H.current?.focus(), H.current = null));
169
+ }, [
170
+ P,
171
+ u,
172
+ R
173
+ ]);
165
174
  let ce = (e) => {
166
175
  if (!e.currentTarget.contains(e.target)) return;
167
176
  if (e.key === "Escape") {
@@ -169,14 +178,14 @@ var I = {
169
178
  return;
170
179
  }
171
180
  if (e.key !== "Tab") return;
172
- let t = re(e.currentTarget);
181
+ let t = ne(e.currentTarget);
173
182
  if (t.length === 0) {
174
183
  e.preventDefault();
175
184
  return;
176
185
  }
177
186
  let n = t[0], r = t[t.length - 1], i = document.activeElement;
178
187
  e.shiftKey && (i === n || i === e.currentTarget) ? (e.preventDefault(), r.focus()) : !e.shiftKey && i === r && (e.preventDefault(), n.focus());
179
- }, W = C(() => e({
188
+ }, G = C(() => e({
180
189
  "--np-sidebar-bg": k?.background,
181
190
  "--np-sidebar-item-text": k?.itemText,
182
191
  "--np-sidebar-item-hover-bg": k?.itemHoverBackground,
@@ -184,86 +193,86 @@ var I = {
184
193
  "--np-sidebar-focus-outline": k?.focusOutline,
185
194
  "--np-sidebar-gradient-start": k?.itemActiveGradientStart,
186
195
  "--np-sidebar-gradient-end": k?.itemActiveGradientEnd,
187
- "--np-sidebar-item-active-icon": k?.itemActiveIcon ?? `url(#${R})`,
196
+ "--np-sidebar-item-active-icon": k?.itemActiveIcon ?? `url(#${z})`,
188
197
  "--np-sidebar-font-family": A?.fontFamily
189
198
  }), [
190
199
  k,
191
200
  A?.fontFamily,
192
- R
193
- ]), G = P ? r.expand ?? "Expand sidebar" : r.collapse ?? "Collapse sidebar", K = r.toggle ?? "Sidebar", q = r.close ?? "Close", J = (e, n) => /* @__PURE__ */ D("span", {
201
+ z
202
+ ]), K = F ? r.expand ?? "Expand sidebar" : r.collapse ?? "Collapse sidebar", q = r.toggle ?? "Sidebar", J = r.close ?? "Close", Y = (e, n) => /* @__PURE__ */ D("span", {
194
203
  style: { backgroundImage: `url("${e}")` },
195
204
  className: t("bg-contain bg-center bg-no-repeat", n)
196
205
  }), le = () => /* @__PURE__ */ D(d, {
197
206
  icon: /* @__PURE__ */ O("span", {
198
207
  className: "relative block size-6 shrink-0",
199
- children: [P && m && J(m.iconUrl, "absolute inset-0 transition-opacity group-focus-visible/toggle:opacity-0 group-hover/toggle:opacity-0"), /* @__PURE__ */ D(M, {
208
+ children: [F && m && Y(m.iconUrl, "absolute inset-0 transition-opacity group-focus-visible/toggle:opacity-0 group-hover/toggle:opacity-0"), /* @__PURE__ */ D(M, {
200
209
  size: a.LG,
201
210
  stroke: o,
202
- className: t("absolute inset-0 rtl:scale-x-[-1]", P && m && "opacity-0 group-hover/toggle:opacity-100 group-focus-visible/toggle:opacity-100"),
211
+ className: t("absolute inset-0 rtl:scale-x-[-1]", F && m && "opacity-0 group-hover/toggle:opacity-100 group-focus-visible/toggle:opacity-100"),
203
212
  "aria-hidden": !0
204
213
  })]
205
214
  }),
206
215
  size: l.Large,
207
- "aria-label": K,
208
- "aria-expanded": !P,
209
- "aria-controls": L,
210
- tooltipProps: { tooltip: G },
216
+ "aria-label": q,
217
+ "aria-expanded": !F,
218
+ "aria-controls": R,
219
+ tooltipProps: { tooltip: K },
211
220
  onClick: c,
212
221
  className: "group/toggle size-10! min-h-0! min-w-0! shrink-0 rounded-full! p-2!"
213
- }), Y = () => /* @__PURE__ */ D(d, {
214
- icon: /* @__PURE__ */ D(ne, {
222
+ }), ue = () => /* @__PURE__ */ D(d, {
223
+ icon: /* @__PURE__ */ D(te, {
215
224
  size: a.LG,
216
225
  stroke: o,
217
226
  "aria-hidden": !0
218
227
  }),
219
228
  size: l.Large,
220
- "aria-label": q,
221
- tooltipProps: { tooltip: q },
229
+ "aria-label": J,
230
+ tooltipProps: { tooltip: J },
222
231
  onClick: f,
223
232
  className: "size-10! min-h-0! min-w-0! shrink-0 rounded-full! p-2!"
224
233
  }), X = () => m && /* @__PURE__ */ D("a", {
225
234
  href: m.href ?? "/",
226
235
  "aria-label": m.ariaLabel,
227
- className: t("flex h-10 items-center", !N && "ps-2"),
228
- children: J(P ? m.iconUrl : m.logoUrl ?? m.iconUrl, P ? "size-6" : "h-6 min-w-[116px]")
236
+ className: t("flex h-10 items-center", !P && "ps-2"),
237
+ children: Y(F ? m.iconUrl : m.logoUrl ?? m.iconUrl, F ? "size-6" : "h-6 min-w-[116px]")
229
238
  }), Z = () => /* @__PURE__ */ O("div", {
230
239
  className: "flex shrink-0 items-center justify-between ps-4 pe-2 pt-3 pb-2",
231
- children: [X(), f && Y()]
232
- }), Q = () => /* @__PURE__ */ O(E, { children: [!(P && c) && X(), c && le()] }), $ = (e) => {
240
+ children: [X(), f && ue()]
241
+ }), Q = () => /* @__PURE__ */ O(E, { children: [!(F && c) && X(), c && le()] }), $ = (e) => {
233
242
  let n = !!e.isActive && !!e.activeIcon, r = n && e.activeIcon || e.icon, i = /* @__PURE__ */ D("span", {
234
- className: t("flex size-6 shrink-0 items-center justify-center", U.itemIcon),
243
+ className: t("flex size-6 shrink-0 items-center justify-center", W.itemIcon),
235
244
  children: /* @__PURE__ */ D(r, {
236
245
  size: a.LG,
237
246
  stroke: o
238
247
  })
239
248
  }), s = _(e, /* @__PURE__ */ O(E, { children: [i, /* @__PURE__ */ D("span", {
240
- className: P ? "sr-only" : te,
249
+ className: F ? "sr-only" : N,
241
250
  children: e.label
242
251
  })] }), {
243
- className: t("flex items-center rounded-full p-2 no-underline", P ? "size-10 justify-center" : "h-10 w-full gap-2", U.item, e.isActive && U.itemActive, n && U.itemFilled, e.isActive && !n && U.itemFilledOutline, I.sidebarItem),
252
+ className: t("flex items-center rounded-full p-2 no-underline", F ? "size-10 justify-center" : "h-10 w-full gap-2", W.item, e.isActive && W.itemActive, n && W.itemFilled, e.isActive && !n && W.itemFilledOutline, L.sidebarItem),
244
253
  "aria-current": e.isActive ? "page" : void 0
245
254
  });
246
- return /* @__PURE__ */ D("li", { children: P ? /* @__PURE__ */ D(h, {
255
+ return /* @__PURE__ */ D("li", { children: F ? /* @__PURE__ */ D(h, {
247
256
  tooltip: e.label,
248
257
  asChild: !0,
249
258
  children: s
250
259
  }) : s }, e.id);
251
- }, ue = P ? /* @__PURE__ */ O(g, { children: [b, y] }) : /* @__PURE__ */ O(g, { children: [y, b] });
260
+ }, de = F ? /* @__PURE__ */ O(g, { children: [b, y] }) : /* @__PURE__ */ O(g, { children: [y, b] });
252
261
  return /* @__PURE__ */ O("nav", {
253
- ref: z,
254
- id: L,
262
+ ref: B,
263
+ id: R,
255
264
  "aria-label": r.ariaLabel,
256
- tabIndex: N ? -1 : void 0,
257
- inert: N && !u,
258
- onKeyDown: N ? ce : void 0,
265
+ tabIndex: P ? -1 : void 0,
266
+ inert: P && !u,
267
+ onKeyDown: P ? ce : void 0,
259
268
  style: {
260
269
  ...ee,
261
- ...W
270
+ ...G
262
271
  },
263
- className: t(U.sidebar, se(N, u), oe(N, P), j, I.sidebar),
272
+ className: t(W.sidebar, oe(P, u), ae(P, F), j, L.sidebar),
264
273
  children: [
265
- !k?.itemActiveIcon && /* @__PURE__ */ D(ie, { activeGradientId: R }),
266
- N ? /* @__PURE__ */ O("div", {
274
+ !k?.itemActiveIcon && /* @__PURE__ */ D(re, { activeGradientId: z }),
275
+ P ? /* @__PURE__ */ O("div", {
267
276
  className: "flex shrink-0 flex-col",
268
277
  children: [Z(), /* @__PURE__ */ D("ul", {
269
278
  className: "m-0 flex list-none flex-col gap-1 p-2",
@@ -280,28 +289,28 @@ var I = {
280
289
  })]
281
290
  }),
282
291
  /* @__PURE__ */ D("div", {
283
- inert: P,
284
- className: t("min-h-0 flex-1 overflow-hidden", P && "invisible"),
292
+ inert: F,
293
+ className: t("min-h-0 flex-1 overflow-hidden", F && "invisible"),
285
294
  children: /* @__PURE__ */ D("div", {
286
- className: t("flex h-full flex-col", N ? "w-full" : "w-[336px]"),
295
+ className: t("flex h-full flex-col", P ? "w-full" : "w-[336px]"),
287
296
  children: v
288
297
  })
289
298
  }),
290
299
  /* @__PURE__ */ D("div", {
291
- className: t("flex shrink-0 px-4 py-3 shadow-lg", U.footer, P ? "flex-col items-start gap-2" : "items-center justify-between gap-2", I.sidebarFooter),
292
- children: ue
300
+ className: t("flex shrink-0 px-4 py-3 shadow-lg", W.footer, F ? "flex-col items-start gap-2" : "items-center justify-between gap-2", L.sidebarFooter),
301
+ children: de
293
302
  })
294
303
  ]
295
304
  });
296
- }), W = /* @__PURE__ */ function(e) {
305
+ }), G = /* @__PURE__ */ function(e) {
297
306
  return e.Avatar = "avatar", e.Profile = "profile", e.Compact = "compact", e;
298
- }({}), G = { avatar: "_avatar_4hc9t_4" }, K = v(({ shortName: e, className: r, textClassName: i = "dial-tiny-text" }) => /* @__PURE__ */ D(n, {
307
+ }({}), K = { avatar: "_avatar_4hc9t_4" }, q = v(({ shortName: e, className: r, textClassName: i = "dial-tiny-text" }) => /* @__PURE__ */ D(n, {
299
308
  name: e ?? "",
300
309
  initials: e ?? "",
301
310
  size: 28,
302
311
  textClassName: i,
303
- className: t(G.avatar, r)
304
- })), q = v(({ profile: e, alt: t, size: r = 28, initialsClassName: i = "dial-tiny-text" }) => {
312
+ className: t(K.avatar, r)
313
+ })), J = v(({ profile: e, alt: t, size: r = 28, initialsClassName: i = "dial-tiny-text" }) => {
305
314
  let a = e.isFallbackShown || !e.imageUrl;
306
315
  return /* @__PURE__ */ D(n, {
307
316
  name: e.displayName,
@@ -310,17 +319,17 @@ var I = {
310
319
  alt: a ? "" : t,
311
320
  size: r,
312
321
  textClassName: i,
313
- className: G.avatar,
322
+ className: K.avatar,
314
323
  onImageError: e.onImageError
315
324
  });
316
- }), J = {
325
+ }), Y = {
317
326
  wrapper: "_wrapper_11e9t_1",
318
327
  trigger: "_trigger_11e9t_5",
319
328
  triggerOpen: "_triggerOpen_11e9t_18",
320
329
  identityText: "_identityText_11e9t_22",
321
330
  menuLabel: "_menuLabel_11e9t_26"
322
- }, le = v(({ profile: n, labels: r, groups: l, onLogout: d, onSettings: f, triggerVariant: p = W.Avatar, isTooltipHidden: h, isIdentityHidden: g = !1, styles: _ }) => {
323
- let { colors: v, typography: y, className: b, cssVars: x } = _ ?? {}, [S, w] = T(!1), k = p === W.Profile, j = p === W.Compact, M = k || j, P = y?.fontClassName ?? "dial-small-text", ne = C(() => e({
331
+ }, le = v(({ profile: n, labels: r, groups: l, onLogout: d, onSettings: f, triggerVariant: p = G.Avatar, isTooltipHidden: h, isIdentityHidden: g = !1, styles: _ }) => {
332
+ let { colors: v, typography: y, className: b, cssVars: x } = _ ?? {}, [S, w] = T(!1), k = p === G.Profile, j = p === G.Compact, M = k || j, F = y?.fontClassName ?? "dial-small-text", te = C(() => e({
324
333
  "--np-avatar-bg": v?.avatarBackground,
325
334
  "--np-avatar-text": v?.avatarText,
326
335
  "--np-menu-text": v?.text,
@@ -328,18 +337,18 @@ var I = {
328
337
  "--np-trigger-open-bg": v?.triggerOpenBackground,
329
338
  "--np-focus-outline": v?.focusOutline,
330
339
  "--np-font-family": y?.fontFamily
331
- }), [v, y?.fontFamily]), F = C(() => t(J.menuLabel, P), [P]), I = C(() => {
340
+ }), [v, y?.fontFamily]), I = C(() => t(Y.menuLabel, F), [F]), L = C(() => {
332
341
  let e = (l ?? []).filter(({ options: e }) => e.length > 0).map(({ id: e, label: t, icon: n, options: r }) => ({
333
342
  key: e,
334
343
  label: /* @__PURE__ */ D("span", {
335
- className: F,
344
+ className: I,
336
345
  children: t
337
346
  }),
338
347
  icon: n,
339
348
  children: r.map((e) => ({
340
349
  key: e.id,
341
350
  label: /* @__PURE__ */ D("span", {
342
- className: F,
351
+ className: I,
343
352
  children: e.label
344
353
  }),
345
354
  icon: e.icon,
@@ -352,9 +361,9 @@ var I = {
352
361
  type: c.PlainText,
353
362
  label: /* @__PURE__ */ O("div", {
354
363
  className: "flex h-[40px] min-w-0 items-center gap-3",
355
- children: [/* @__PURE__ */ D(K, { shortName: n.shortName }), /* @__PURE__ */ D(u, {
364
+ children: [/* @__PURE__ */ D(q, { shortName: n.shortName }), /* @__PURE__ */ D(u, {
356
365
  text: n.displayName,
357
- className: t(J.identityText, P, "min-w-0 flex-1 truncate")
366
+ className: t(Y.identityText, F, "min-w-0 flex-1 truncate")
358
367
  })]
359
368
  })
360
369
  }], ...e];
@@ -367,10 +376,10 @@ var I = {
367
376
  ...f ? [{
368
377
  key: "settings",
369
378
  label: /* @__PURE__ */ D("span", {
370
- className: F,
379
+ className: I,
371
380
  children: r.settings
372
381
  }),
373
- icon: /* @__PURE__ */ D(N, {
382
+ icon: /* @__PURE__ */ D(P, {
374
383
  size: a.SM,
375
384
  "aria-hidden": !0,
376
385
  stroke: o
@@ -380,10 +389,10 @@ var I = {
380
389
  {
381
390
  key: "logout",
382
391
  label: /* @__PURE__ */ D("span", {
383
- className: F,
392
+ className: I,
384
393
  children: r.logOut
385
394
  }),
386
- icon: /* @__PURE__ */ D(te, {
395
+ icon: /* @__PURE__ */ D(N, {
387
396
  size: a.SM,
388
397
  "aria-hidden": !0,
389
398
  stroke: o
@@ -394,28 +403,28 @@ var I = {
394
403
  }, [
395
404
  l,
396
405
  g,
397
- P,
398
406
  F,
407
+ I,
399
408
  r.logOut,
400
409
  r.settings,
401
410
  d,
402
411
  f,
403
412
  n.displayName,
404
413
  n.shortName
405
- ]), L = () => {
414
+ ]), R = () => {
406
415
  if (!k) return /* @__PURE__ */ D(i, {
407
416
  "aria-label": r.trigger,
408
417
  tooltipProps: {
409
418
  tooltip: n.email,
410
419
  hideTooltip: h
411
420
  },
412
- iconBefore: /* @__PURE__ */ D(q, {
421
+ iconBefore: /* @__PURE__ */ D(J, {
413
422
  profile: n,
414
423
  alt: r.avatarAlt,
415
424
  size: j ? 24 : void 0,
416
425
  initialsClassName: y?.avatarInitialsClassName
417
426
  }),
418
- className: t(j ? "size-10! min-h-0! min-w-0! gap-0 rounded-full! border-0! p-2!" : "size-[44px] gap-0 rounded-full! p-0", J.trigger, j && S && J.triggerOpen)
427
+ className: t(j ? "size-10! min-h-0! min-w-0! gap-0 rounded-full! border-0! p-2!" : "size-[44px] gap-0 rounded-full! p-0", Y.trigger, j && S && Y.triggerOpen)
419
428
  });
420
429
  let e = S ? ee : A;
421
430
  return /* @__PURE__ */ D(i, {
@@ -423,7 +432,7 @@ var I = {
423
432
  tooltip: n.email,
424
433
  hideTooltip: h
425
434
  },
426
- iconBefore: /* @__PURE__ */ D(q, {
435
+ iconBefore: /* @__PURE__ */ D(J, {
427
436
  profile: n,
428
437
  alt: "",
429
438
  size: 24,
@@ -431,7 +440,7 @@ var I = {
431
440
  }),
432
441
  label: /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(u, {
433
442
  text: n.displayName,
434
- className: t(J.identityText, P, "min-w-0 truncate")
443
+ className: t(Y.identityText, F, "min-w-0 truncate")
435
444
  }), /* @__PURE__ */ D("span", {
436
445
  className: "sr-only",
437
446
  children: r.trigger
@@ -442,25 +451,25 @@ var I = {
442
451
  "aria-hidden": !0
443
452
  }),
444
453
  textClassName: "min-w-0",
445
- className: t("h-10! min-h-0! max-w-full min-w-0! gap-2 rounded-full! border-0! p-2!", J.trigger, S && J.triggerOpen)
454
+ className: t("h-10! min-h-0! max-w-full min-w-0! gap-2 rounded-full! border-0! p-2!", Y.trigger, S && Y.triggerOpen)
446
455
  });
447
456
  };
448
457
  return /* @__PURE__ */ D("div", {
449
458
  style: {
450
459
  ...x,
451
- ...ne
460
+ ...te
452
461
  },
453
- className: t(J.wrapper, M ? "flex min-w-0 items-center" : "flex size-[60px] items-center justify-center", k && "flex-1", b),
462
+ className: t(Y.wrapper, M ? "flex min-w-0 items-center" : "flex size-[60px] items-center justify-center", k && "flex-1", b),
454
463
  children: /* @__PURE__ */ D(s, {
455
464
  className: M ? "max-w-full min-w-0" : void 0,
456
465
  placement: M ? "top-start" : "top-end",
457
466
  matchReferenceWidth: !1,
458
- items: I,
467
+ items: L,
459
468
  onOpenChange: w,
460
- children: L()
469
+ children: R()
461
470
  })
462
471
  });
463
- }), Y = _(void 0), X = v(({ isOpen: e, onClose: t, children: n, title: r, closeLabel: i, backLabel: a, className: o, style: s }) => {
472
+ }), ue = _(void 0), X = v(({ isOpen: e, onClose: t, children: n, title: r, closeLabel: i, backLabel: a, className: o, style: s }) => {
464
473
  let [c, l] = T([]);
465
474
  x(() => {
466
475
  e || l([]);
@@ -480,9 +489,9 @@ var I = {
480
489
  d,
481
490
  f
482
491
  ]), m = c[c.length - 1];
483
- return /* @__PURE__ */ D(Y.Provider, {
492
+ return /* @__PURE__ */ D(ue.Provider, {
484
493
  value: p,
485
- children: /* @__PURE__ */ D(F, {
494
+ children: /* @__PURE__ */ D(I, {
486
495
  isOpen: e,
487
496
  onClose: f,
488
497
  title: m?.title ?? r,
@@ -495,7 +504,7 @@ var I = {
495
504
  })
496
505
  });
497
506
  }), Z = () => {
498
- let e = b(Y);
507
+ let e = b(ue);
499
508
  if (!e) throw Error("useSheetNavigation must be used within a NavigableBottomSheet");
500
509
  return e;
501
510
  }, Q = {
@@ -519,7 +528,7 @@ var I = {
519
528
  "aria-current": a ? "true" : void 0,
520
529
  className: t("h-auto gap-3 rounded-none px-4 py-[10px]", Q.row, o && Q.rowActive),
521
530
  onClick: n
522
- }) })), ue = v(({ options: e, textClassName: t }) => {
531
+ }) })), de = v(({ options: e, textClassName: t }) => {
523
532
  let { pop: n } = Z();
524
533
  return /* @__PURE__ */ D("ul", {
525
534
  className: "flex flex-col pb-4",
@@ -539,12 +548,12 @@ var I = {
539
548
  }
540
549
  }, e.id))
541
550
  });
542
- }), de = v(({ profile: e, logOutLabel: n, onLogout: i, settingsLabel: a, onSettings: s, groups: c, textClassName: l = "dial-small-text", avatarInitialsClassName: d }) => {
551
+ }), fe = v(({ profile: e, logOutLabel: n, onLogout: i, settingsLabel: a, onSettings: s, groups: c, textClassName: l = "dial-small-text", avatarInitialsClassName: d }) => {
543
552
  let { push: f, close: p } = Z(), m = (c ?? []).filter(({ options: e }) => e.length > 0);
544
553
  return /* @__PURE__ */ O(E, { children: [
545
554
  /* @__PURE__ */ O("div", {
546
555
  className: "flex h-[56px] items-center gap-3 px-4 py-2",
547
- children: [/* @__PURE__ */ D(q, {
556
+ children: [/* @__PURE__ */ D(J, {
548
557
  profile: e,
549
558
  alt: "",
550
559
  initialsClassName: d
@@ -567,7 +576,7 @@ var I = {
567
576
  }),
568
577
  onClick: () => f({
569
578
  title: e.label,
570
- content: /* @__PURE__ */ D(ue, {
579
+ content: /* @__PURE__ */ D(de, {
571
580
  options: e.options,
572
581
  textClassName: l
573
582
  })
@@ -579,7 +588,7 @@ var I = {
579
588
  children: [s && a && /* @__PURE__ */ D($, {
580
589
  label: a,
581
590
  textClassName: l,
582
- icon: /* @__PURE__ */ D(N, {
591
+ icon: /* @__PURE__ */ D(P, {
583
592
  size: r,
584
593
  stroke: o,
585
594
  "aria-hidden": !0
@@ -590,7 +599,7 @@ var I = {
590
599
  }), /* @__PURE__ */ D($, {
591
600
  label: n,
592
601
  textClassName: l,
593
- icon: /* @__PURE__ */ D(te, {
602
+ icon: /* @__PURE__ */ D(N, {
594
603
  size: r,
595
604
  stroke: o,
596
605
  "aria-hidden": !0
@@ -601,7 +610,7 @@ var I = {
601
610
  })]
602
611
  })
603
612
  ] });
604
- }), fe = v(({ items: e, onSelectItem: t, profileLabel: n, logOutLabel: i, onLogout: a, settingsLabel: s, onSettings: c, profile: l, groups: u, footer: d, textClassName: f, avatarInitialsClassName: p }) => {
613
+ }), pe = v(({ items: e, onSelectItem: t, profileLabel: n, logOutLabel: i, onLogout: a, settingsLabel: s, onSettings: c, profile: l, groups: u, footer: d, textClassName: f, avatarInitialsClassName: p }) => {
605
614
  let { push: m, close: h } = Z(), g = (e) => {
606
615
  h(), t(e);
607
616
  };
@@ -623,7 +632,7 @@ var I = {
623
632
  }), l && /* @__PURE__ */ D($, {
624
633
  label: n,
625
634
  textClassName: f,
626
- icon: /* @__PURE__ */ D(P, {
635
+ icon: /* @__PURE__ */ D(F, {
627
636
  size: r,
628
637
  stroke: o,
629
638
  "aria-hidden": !0
@@ -631,7 +640,7 @@ var I = {
631
640
  onClick: () => {
632
641
  l && m({
633
642
  title: n,
634
- content: /* @__PURE__ */ D(de, {
643
+ content: /* @__PURE__ */ D(fe, {
635
644
  profile: l,
636
645
  groups: u,
637
646
  logOutLabel: i,
@@ -645,7 +654,7 @@ var I = {
645
654
  }
646
655
  })]
647
656
  }), d] });
648
- }), pe = v(({ isOpen: n, onClose: r, items: i, onSelectItem: a, labels: o, profile: s, groups: c, onLogout: l, onSettings: u, footer: d, styles: f }) => {
657
+ }), me = v(({ isOpen: n, onClose: r, items: i, onSelectItem: a, labels: o, profile: s, groups: c, onLogout: l, onSettings: u, footer: d, styles: f }) => {
649
658
  let { colors: p, typography: m, className: h, cssVars: g } = f ?? {}, _ = C(() => e({
650
659
  "--np-sheet-text": p?.text,
651
660
  "--np-sheet-item-hover": p?.itemHoverBackground,
@@ -672,7 +681,7 @@ var I = {
672
681
  ...g,
673
682
  ..._
674
683
  },
675
- children: /* @__PURE__ */ D(fe, {
684
+ children: /* @__PURE__ */ D(pe, {
676
685
  items: i,
677
686
  onSelectItem: a,
678
687
  profileLabel: o.profile,
@@ -689,4 +698,4 @@ var I = {
689
698
  });
690
699
  });
691
700
  //#endregion
692
- export { K as AvatarInitials, I as NAVIGATION_PANEL_CLASS, X as NavigableBottomSheet, fe as NavigationMenuPage, z as NavigationPanel, pe as NavigationSheet, ce as NavigationSidebar, B as NavigationSidebarVariant, ue as OptionListPage, de as ProfilePage, $ as SheetRow, q as UserAvatar, le as UserMenu, W as UserMenuTriggerVariant, Z as useSheetNavigation };
701
+ export { q as AvatarInitials, L as NAVIGATION_PANEL_CLASS, X as NavigableBottomSheet, pe as NavigationMenuPage, B as NavigationPanel, me as NavigationSheet, ce as NavigationSidebar, V as NavigationSidebarVariant, de as OptionListPage, fe as ProfilePage, $ as SheetRow, J as UserAvatar, le as UserMenu, G as UserMenuTriggerVariant, Z as useSheetNavigation };
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-navigation-panel",
3
3
  "description": "Primary application navigation — desktop nav rail, user menu, and mobile navigation bottom sheet",
4
- "version": "1.4.0-dev.8",
4
+ "version": "1.4.0-dev.81",
5
5
  "license": "Apache-2.0",
6
+ "sideEffects": [
7
+ "**/*.css",
8
+ "**/*.scss"
9
+ ],
6
10
  "type": "module",
7
11
  "main": "./index.js",
8
12
  "module": "./index.js",
@@ -18,11 +22,11 @@
18
22
  },
19
23
  "dependencies": {
20
24
  "@tabler/icons-react": "^3.50.0",
21
- "@epam/ai-dial-conversation-input": "1.4.0-dev.8"
25
+ "@epam/ai-dial-conversation-input": "1.4.0-dev.81"
22
26
  },
23
27
  "peerDependencies": {
24
28
  "react": "^19.2.8",
25
- "@epam/ai-dial-chat-shared": "1.4.0-dev.8",
29
+ "@epam/ai-dial-chat-shared": "1.4.0-dev.81",
26
30
  "@epam/ai-dial-ui-kit": "^0.16.0"
27
31
  },
28
32
  "repository": {