@kubit-ui-web/react-components 2.0.0-beta.7 → 2.0.0-beta.9
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/cjs/components/calendar/list/list.js +1 -1
- package/dist/cjs/components/calendar/selector/monthSelector/monthSelector.js +1 -1
- package/dist/cjs/components/image/image.css +1 -38
- package/dist/cjs/components/listOptions/listOptionsStandAlone.js +1 -1
- package/dist/cjs/components/option/optionStandAlone.js +1 -1
- package/dist/cjs/components/popover/styles/index.css +1 -10
- package/dist/cjs/components/popover/styles/keyframes.css +1 -421
- package/dist/cjs/components/popover/styles/popover-arrow.css +1 -42
- package/dist/cjs/components/popover/styles/popover.css +1 -189
- package/dist/cjs/components/skeleton/skeleton.css +1 -20
- package/dist/cjs/components/table/__stories__/css/table.css +1 -7
- package/dist/cjs/components/text/text.css +1 -14
- package/dist/cjs/components/tooltip/hooks/useTooltip.js +1 -1
- package/dist/cjs/components/tooltip/tooltip.css +1 -69
- package/dist/cjs/lib/components/customComponent/customComponent.js +1 -1
- package/dist/cjs/lib/provider/cssProvider/provider.js +1 -1
- package/dist/cjs/lib/provider/cssProvider/stats/stats.js +1 -1641
- package/dist/esm/components/calendar/list/list.js +1 -1
- package/dist/esm/components/calendar/selector/monthSelector/monthSelector.js +1 -1
- package/dist/esm/components/image/image.css +1 -38
- package/dist/esm/components/listOptions/listOptionsStandAlone.js +1 -1
- package/dist/esm/components/option/optionStandAlone.js +7 -7
- package/dist/esm/components/popover/styles/index.css +1 -10
- package/dist/esm/components/popover/styles/keyframes.css +1 -421
- package/dist/esm/components/popover/styles/popover-arrow.css +1 -42
- package/dist/esm/components/popover/styles/popover.css +1 -189
- package/dist/esm/components/skeleton/skeleton.css +1 -20
- package/dist/esm/components/table/__stories__/css/table.css +1 -7
- package/dist/esm/components/text/text.css +1 -14
- package/dist/esm/components/tooltip/hooks/useTooltip.js +1 -1
- package/dist/esm/components/tooltip/tooltip.css +1 -69
- package/dist/esm/lib/components/customComponent/customComponent.js +2 -2
- package/dist/esm/lib/provider/cssProvider/provider.js +1 -1
- package/dist/esm/lib/provider/cssProvider/stats/stats.js +1 -1641
- package/dist/styles/kubit/css/kubit.css +1 -1
- package/package.json +7 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{j as t}from"../../../_virtual/jsx-runtime.js";import{useState as e,useMemo as s}from"react";import{CustomComponent as a}from"../../../lib/components/customComponent/customComponent.js";import{useRoveFocus as o}from"../../../lib/hooks/useRoveFocus/useRoveFocus.js";import{useUtilsProvider as r}from"../../../lib/provider/utilsProvider/utilsProvider.js";import{STATES as i}from"../../../lib/types/states/states.js";import{pickCustomAttributes as n}from"../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{WEEK_DAYS as l}from"../constants/constants.js";import{getAllDaysInMonth as d}from"../utils/getAllDaysInMonth.js";import{getFirstDayOfMonth as m}from"../utils/getFirstDayOfMonth.js";import{getStateDay as c}from"../utils/getState.js";import{groupDaysByWeeks as u}from"../utils/groupDaysByWeeks.js";import{getFirstEmptyAndDisabledDays as y,getDaysAndEmptyDaysUntilMaxDate as D,handleKeyUpMove as f,handleKeyTabMove as g,handleKeyRightMove as p,handleKeyPageUpMove as h,handleKeyPageDownMove as b,handleKeyLeftMove as j,handleKeyDownMove as v}from"../utils/handleKeysmoves.js";const k="ddMMyyyy",M=({cssClasses:M,currentDate:S,disabledDates:x=[],hasRange:w,maxDate:$,minDate:A,onDayClick:C,selectedDate:E,setSelectedDate:F,sundayFirst:R,...I})=>{const{dateHelpers:L,formatDate:N,transformDate:B}=r(),P=S.getMonth()+1,T=S.getFullYear(),U=N(/* @__PURE__ */new Date,k),z=d(P,T),O=m(T,P-1)-(R?0:1),q=[...new Array(O>=0?O:6),...z],G=q.filter(t=>void 0===t),[H,K]=e(0),[W,Y]=e(0),_=I["data-testid"]||"calendar",J={currentDate:S,dayList:q,daysAndEmptyDaysUntilMaxDate:D(G,$,S),firstEmptyAndDisabledDays:y(G,A,S),maxDate:$,minDate:A},Q=s(()=>({calendarBlankDaysSize:G.length,currentFocusSelected:(E[0]?E[0].getDate():/* @__PURE__ */(new Date).getDate())+G.length-1,keyDownMove:v(J),keyLeftMove:j(J),keyPageDownMove:b(J),keyPageUpMove:h(J),keyRightMove:p(J),keyTabMove:g,keyUpMove:f(J),size:q.length}),[G.length,q.length,S,A,$]),[V,X,Z]=o(Q),tt=t=>(t&&(V<G.length&&X(G.length),V>q.length&&X(q.length-1)),V===t),et=t=>{if(W){if(W<E[0])return t>W&&t<E[0];if(W>E[0])return t<W&&t>E[0]}else{if(t>E[0])return t<E[1];if(t<E[0])return t>E[1]}return!1},st=t=>{if(!w)return!1;const e=E?.findIndex(e=>e&&t&&N(e,k)===N(t,k));return 0===e&&W?W<t:0===e?t>E[1]:1===e&&t>E[0]},at=t=>{if(!w)return!1;const e=E?.findIndex(e=>e&&t&&N(e,k)===N(t,k));return 0===e&&W?W>t:0===e?t<E[1]:1===e&&t<E[0]};/* @__PURE__ */
|
|
2
|
-
return t.jsx("tbody",{ref:Z,className:M?.tbody,"data-testid":"tbody-days-list",children:u(q).map((e,s)=>/* @__PURE__ */t.jsx("tr",{className:M?.tablerow,children:e.map((e,o)=>{const r=e||0;let d=!e||L.isBefore(e,A)||L.isAfter(e,B(N($,k),k));d||(d=x.some(t=>e&&L.isDatesEqual(e,t,!1)));const m=c({dayFormatted:r,formatDate:N,hasRange:w,isGhostSelected:et,isSelectedToLeft:st,isSelectedToRight:at,selectedDate:E,today:U}),u={"data-state":d?i.DISABLED:m};return e?/* @__PURE__ */t.jsx("td",{"aria-selected":m===i.SELECTED||void 0,className:M?.listelementrove,style:{width:`calc(100% / ${l})`},...n(u),children:/* @__PURE__ */t.jsx(a,{"aria-label":N(e,{day:"numeric",month:"long",weekday:"long",year:"numeric"}),
|
|
2
|
+
return t.jsx("tbody",{ref:Z,className:M?.tbody,"data-testid":"tbody-days-list",children:u(q).map((e,s)=>/* @__PURE__ */t.jsx("tr",{className:M?.tablerow,children:e.map((e,o)=>{const r=e||0;let d=!e||L.isBefore(e,A)||L.isAfter(e,B(N($,k),k));d||(d=x.some(t=>e&&L.isDatesEqual(e,t,!1)));const m=c({dayFormatted:r,formatDate:N,hasRange:w,isGhostSelected:et,isSelectedToLeft:st,isSelectedToRight:at,selectedDate:E,today:U}),u={"data-state":d?i.DISABLED:m};return e?/* @__PURE__ */t.jsx("td",{"aria-selected":m===i.SELECTED||void 0,className:M?.listelementrove,style:{width:`calc(100% / ${l})`},...n(u),children:/* @__PURE__ */t.jsx(a,{"aria-disabled":d,"aria-label":N(e,{day:"numeric",month:"long",weekday:"long",year:"numeric"}),className:M?.dayslist,component:"button","data-testid":`${_}-${o+l*s}`,focus:tt(o+l*s),index:o+l*s,type:"button",onMouseOver:()=>{1===H&&Y(r)},onSelectItem:()=>{d||(t=>{const[e,s]=E;w?e&&s||!e&&!s?(F([t,0]),K(1),t instanceof Date&&C?.(t.getDate().toString())):(F([e,t]),K(0),t instanceof Date&&C?.(t.getDate().toString())):(F([t]),t instanceof Date&&C?.(t.getDate().toString()))})(r)},...n(u),children:e.getDate()})},`day${o+l*s}${r}`):/* @__PURE__ */t.jsx("td",{"aria-hidden":!0,"aria-label":"empty day",className:M?.listelementempty,style:{width:`calc(100% / ${l})`}},`day${o+l*s}${r}`)})},`table-row-${s.toString()}`))})};export{M as List};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import{j as t}from"../../../../_virtual/jsx-runtime.js";import{useMemo as e}from"react";import{Text as o}from"../../../text/text.js";import{CustomComponent as s}from"../../../../lib/components/customComponent/customComponent.js";import{useRoveFocus as r}from"../../../../lib/hooks/useRoveFocus/useRoveFocus.js";import{useUtilsProvider as a}from"../../../../lib/provider/utilsProvider/utilsProvider.js";import{STATES as n}from"../../../../lib/types/states/states.js";import{pickCustomAttributes as l}from"../../../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{setMonth as i}from"../../utils/setMonth.js";import{keyUpMove as m,keyTabMove as c,keyRightMove as u,keyLeftMove as p,keyDownMove as h}from"./utils/monthSelector.utils.js";const d=({configAccesibility:d,cssClasses:g,currentDate:D,maxDate:b,minDate:M,onMonthClick:f,setCurrentDate:j,today:v,...A})=>{const{dateHelpers:C,transformDate:x}=a(),y=A["data-testid"]||"calendar",E={currentDate:D,maxDate:b,minDate:M},k=e(()=>({currentFocusSelected:D?D.getMonth():/* @__PURE__ */(new Date).getMonth(),keyDownMove:h(E),keyLeftMove:p(E),keyRightMove:u(E),keyTabMove:c,keyUpMove:m(E),size:C.getAllMonthName("long").length}),[C.getAllMonthName("long").length,D]),[S,,F]=r(k),L=t=>{const e=D?.getFullYear();return M?.getFullYear()===e&&M?.getMonth()>t||b?.getFullYear()===e&&b?.getMonth()<t};/* @__PURE__ */
|
|
2
2
|
return t.jsx("ul",{ref:F,"aria-label":d?.monthSelectorAriaLabel,className:g?.monthslist,"data-testid":"tbody-months-list",children:C.getAllMonthName("long",A.locale).map((e,r)=>{const a=((t,e,o)=>{let s;return s=t.getMonth()===e?n.SELECTED:e===v.getMonth()?n.CURRENT:o?n.DISABLED:n.DEFAULT,s})(D,r,L(r)),m={"data-state":L(r)?n.DISABLED:a};/* @__PURE__ */
|
|
3
|
-
return t.jsx("li",{"aria-selected":a===n.SELECTED||void 0,className:g?.monthlistitem,...l(m),children:/* @__PURE__ */t.jsx(s,{"aria-label":e.charAt(0).toUpperCase()+e.slice(1),
|
|
3
|
+
return t.jsx("li",{"aria-selected":a===n.SELECTED||void 0,className:g?.monthlistitem,...l(m),children:/* @__PURE__ */t.jsx(s,{"aria-disabled":L(r),"aria-label":e.charAt(0).toUpperCase()+e.slice(1),className:g?.monthelement,component:"button",focus:S===r,index:r,type:"button",...l(m),onSelectItem:()=>{const t=new Date(D);j(x(i(t,r))),f?.(e)},children:/* @__PURE__ */t.jsx(o,{component:"span","data-testid":y,children:e.charAt(0).toUpperCase()+e.slice(1)})})},e)})})};export{d as MonthSelector};
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--border-radius: 0;
|
|
3
|
-
--fallback-ratio: 1;
|
|
4
|
-
--object-fit: cover;
|
|
5
|
-
--ratio: 1;
|
|
6
|
-
--width: 100%;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.kbt-picture {
|
|
10
|
-
position: relative;
|
|
11
|
-
display: inline-block;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
max-width: 100%;
|
|
14
|
-
max-height: 100%;
|
|
15
|
-
width: var(--width);
|
|
16
|
-
aspect-ratio: var(--ratio);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@supports not (aspect-ratio: 16 / 9) {
|
|
20
|
-
.kbt-picture {
|
|
21
|
-
padding-top: var(--fallback-ratio);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.kbt-picture img {
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: auto;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.kbt-picture img {
|
|
34
|
-
max-width: 100%;
|
|
35
|
-
border-radius: var(--border-radius);
|
|
36
|
-
object-fit: var(--object-fit);
|
|
37
|
-
aspect-ratio: var(--ratio);
|
|
38
|
-
}
|
|
1
|
+
:root{--border-radius:0;--fallback-ratio:1;--object-fit:cover;--ratio:1;--width:100%}.kbt-picture{aspect-ratio:var(--ratio);display:inline-block;max-height:100%;max-width:100%;overflow:hidden;position:relative;width:var(--width)}@supports not (aspect-ratio:16/9){.kbt-picture{padding-top:var(--fallback-ratio)}.kbt-picture img{height:auto;left:0;position:absolute;top:0;width:100%}}.kbt-picture img{aspect-ratio:var(--ratio);border-radius:var(--border-radius);max-width:100%;object-fit:var(--object-fit)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{j as t}from"../../_virtual/jsx-runtime.js";import{forwardRef as o,useMemo as e,useId as i,useImperativeHandle as s}from"react";import{Text as n}from"../text/text.js";import{useRoveFocus as l}from"../../lib/hooks/useRoveFocus/useRoveFocus.js";import{pickCustomAttributes as r}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processText as c}from"../../lib/utils/process/processText/processText.js";import{CustomComponent as a}from"../../lib/components/customComponent/customComponent.js";import{Option as p}from"../option/option.js";import{keyUpMove as d,keyDownMove as m,isSelected as u,getOptionVariant as h}from"./utils/listOptions.utils.js";const v=o(({caseSensitive:o,charsHighlighted:v,checkedIcon:g,content:b,cssClasses:j,highlightedOptionVariant:x,id:k,index:f=0,listComponent:C,multiSelect:$,onOptionClick:y,options:S,optionsContainerArias:F,roveFocus:M,selectedValue:O,title:A,type:I="selection",...N},R)=>{const T=N["data-testid"]??"list-options",V=r(N),H=e(()=>({currentFocusSelected:-1,keyDownMove:m(S),keyLeftMove:0,keyRightMove:0,keyTabMove:null,keyUpMove:d,size:S.length}),[S]),[L,_,w]=l(M??H),z=i();s(R,()=>w.current,[w]);const D=k??z,U="selection"===I,q="navigation"===I,B=S&&S.length>0;/* @__PURE__ */
|
|
2
|
-
return t.jsxs("div",{className:j?.list_options,"data-testid":T,...V,children:[!!A&&S.length>0&&/* @__PURE__ */t.jsx("div",{className:j?.titlecontainer,children:/* @__PURE__ */t.jsx(n,{additionalClasses:{text:j?.title},...c(A)})}),b,B&&/* @__PURE__ */t.jsx(a,{ref:w,"aria-label":F?.["aria-label"],"aria-labelledby":F?.["aria-labelledby"],className:j?.optionscontainer,component:C??"ul",id:D,role:U?"listbox":void 0,children:S.map((e,i)=>{const s=u(e,O,$,o),n=`${T}-section-${f}-option-${i}`,l=/* @__PURE__ */t.jsx(p,{"aria-current":q?s:void 0,"aria-selected":U?s:void 0,checkedIcon:g,component:
|
|
2
|
+
return t.jsxs("div",{className:j?.list_options,"data-testid":T,...V,children:[!!A&&S.length>0&&/* @__PURE__ */t.jsx("div",{className:j?.titlecontainer,children:/* @__PURE__ */t.jsx(n,{additionalClasses:{text:j?.title},...c(A)})}),b,B&&/* @__PURE__ */t.jsx(a,{ref:w,"aria-label":F?.["aria-label"],"aria-labelledby":F?.["aria-labelledby"],className:j?.optionscontainer,component:C??"ul",id:D,role:U?"listbox":void 0,children:S.map((e,i)=>{const s=u(e,O,$,o),n=`${T}-section-${f}-option-${i}`,l=U||q?"div":"li",r=/* @__PURE__ */t.jsx(p,{"aria-current":q?s:void 0,"aria-selected":U?s:void 0,checkedIcon:g,component:l,"data-testid":n,focus:L===i,labelCharsHighlighted:v,multiSelect:$,role:U?"option":void 0,selected:s,tabIndex:q?0:-1,variant:h(e.highlighted,x,N?.optionVariant),...e,onClick:t=>{_(i),y?.(e.value,t),e.onClick?.(t)},onFocus:t=>{i!==L&&_(i),e.onFocus?.(t)}},`${D}Option-${f.toString()}-${i.toString()}`);return"selection"===I?/* @__PURE__ */t.jsx("li",{children:r},`${D}LiOption-${f.toString()}-${i.toString()}`):r})})]})});export{v as ListOptionsStandAlone};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{j as t}from"../../_virtual/jsx-runtime.js";import{forwardRef as s}from"react";import{Text as e}from"../text/text.js";import{ElementOrIcon as o}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{STATES as i}from"../../lib/types/states/states.js";import{pickCustomAttributes as l}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processText as n}from"../../lib/utils/process/processText/processText.js";import{CustomComponent as r}from"../../lib/components/customComponent/customComponent.js";import{isKeyEnterPressed as a,isKeySpacePressed as c}from"../../lib/utils/keyboard/keyboard.js";import{OptionLabelSlice as m}from"./components.ts/optionLabelSlice.js";import{getState as d,getHighlightedIndexes as u}from"./utils/option.utils.js";const b=s(({checkedIcon:s,component:b,componentLink:p,cssClasses:h,disabled:j,extraContent:x,focus:g,hover:f,icon:C,label:E,labelCharsHighlighted:L,multiSelect:k,onBlur:A,onClick:I,onFocus:v,onMouseEnter:y,onMouseLeave:$,role:T,selected:D,sublabel:M,tabIndex:N,url:S,...H})=>{const
|
|
2
|
-
return t.jsxs(r,{"aria-disabled":
|
|
1
|
+
import{j as t}from"../../_virtual/jsx-runtime.js";import{forwardRef as s}from"react";import{Text as e}from"../text/text.js";import{ElementOrIcon as o}from"../../lib/components/elementOrIcon/elementOrIcon.js";import{STATES as i}from"../../lib/types/states/states.js";import{pickCustomAttributes as l}from"../../lib/utils/pickCustomAttributes/pickCustomAttributes.js";import{processText as n}from"../../lib/utils/process/processText/processText.js";import{CustomComponent as r}from"../../lib/components/customComponent/customComponent.js";import{isKeyEnterPressed as a,isKeySpacePressed as c}from"../../lib/utils/keyboard/keyboard.js";import{OptionLabelSlice as m}from"./components.ts/optionLabelSlice.js";import{getState as d,getHighlightedIndexes as u}from"./utils/option.utils.js";const b=s(({checkedIcon:s,component:b,componentLink:p,cssClasses:h,disabled:j,extraContent:x,focus:g,hover:f,icon:C,label:E,labelCharsHighlighted:L,multiSelect:k,onBlur:A,onClick:I,onFocus:v,onMouseEnter:y,onMouseLeave:$,role:T,selected:D,sublabel:M,tabIndex:N,url:S,...H},_)=>{const B=d(j,g,D,k,f,!!L&&L?.length>0),F={"data-state":B},O=B===i.DISABLED,w=l({...H,customAttributes:F}),P=l(F),U=w["data-testid"]||"option",K=[i.MULTIPLE_SELECTED,i.MULTIPLE_SELECTED_HOVER,i.SELECTED].includes(B);let R,V,q;if("string"==typeof E){const{firstHighlightedIndex:t,lastHighlightedIndex:s}=u(E,L);R=E.substring(0,t),V=E.substring(t,s),q=E.substring(s)}/* @__PURE__ */
|
|
2
|
+
return t.jsxs(r,{ref:_,"aria-disabled":O,className:h?.option,...w,component:S?p:b??"div","data-testid":U,role:T,tabIndex:N,url:S,onBlur:A,onClick:t=>{O||I?.(t)},onFocus:v,onKeyDown:t=>{O||!a(t.key)&&!c(t.key)||I?.(t)},onMouseEnter:y,onMouseLeave:$,...P,children:[
|
|
3
3
|
/* @__PURE__ */t.jsxs("div",{className:h?.firstrowcontainer,children:[
|
|
4
|
-
/* @__PURE__ */t.jsxs("div",{className:h?.labeliconcontainer,...
|
|
5
|
-
/* @__PURE__ */t.jsx(o,{className:h?.icon,customAttributes:
|
|
4
|
+
/* @__PURE__ */t.jsxs("div",{className:h?.labeliconcontainer,...P,children:[
|
|
5
|
+
/* @__PURE__ */t.jsx(o,{className:h?.icon,customAttributes:F,...C}),!!n(M).children&&/* @__PURE__ */t.jsx("div",{className:h?.sublabelcontainer,...P,children:/* @__PURE__ */t.jsx(e,{additionalClasses:{text:h?.sublabel},component:"span",customAttributes:F,...n(M)})}),
|
|
6
6
|
/* @__PURE__ */t.jsx("p",{children:"string"==typeof E?/* @__PURE__ */t.jsxs(t.Fragment,{children:[" ",
|
|
7
|
-
/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:h?.label,customAttributes:
|
|
8
|
-
/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:`${h?.label} ${h?.labelhighlighted}`,customAttributes:
|
|
9
|
-
/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:`${h?.label} ${h?.labelhighlighted}`,customAttributes:
|
|
7
|
+
/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:h?.label,customAttributes:F,"data-testid":`${U}-first-no-hightlighted-label`,children:R}),
|
|
8
|
+
/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:`${h?.label} ${h?.labelhighlighted}`,customAttributes:F,"data-testid":`${U}-highlighted-label`,children:V}),
|
|
9
|
+
/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:`${h?.label} ${h?.labelhighlighted}`,customAttributes:F,"data-testid":`${U}-last-no-hightlighted-label`,children:q})]}):/* @__PURE__ */t.jsx(m,{component:"span",cssClasses:h?.label,customAttributes:F,"data-testid":`${U}-label`,children:E})})]}),K&&/* @__PURE__ */t.jsx(o,{className:h?.checkedicon,customAttributes:F,...s})]}),!!x&&x]})});export{b as OptionStandAlone};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* PopoverV2 Styles Index
|
|
3
|
-
* Imports all popover-related CSS files
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* Core popover styles and animations */
|
|
7
|
-
@import './popover.css';
|
|
8
|
-
|
|
9
|
-
/* Arrow positioning and styling */
|
|
10
|
-
@import './popover-arrow.css';
|
|
1
|
+
@import "./popover.css";@import "./popover-arrow.css";
|
|
@@ -1,421 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* CSS animations for popover positioning
|
|
3
|
-
* Each animation corresponds to a specific body position from positionStyles.ts
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/* ========================================
|
|
7
|
-
CENTER POSITION ANIMATIONS
|
|
8
|
-
======================================== */
|
|
9
|
-
|
|
10
|
-
/* Center position - scales from center */
|
|
11
|
-
@keyframes popover-enter-center {
|
|
12
|
-
from {
|
|
13
|
-
opacity: 0;
|
|
14
|
-
transform: translate(-50%, -50%) scale(0.8);
|
|
15
|
-
}
|
|
16
|
-
to {
|
|
17
|
-
opacity: 1;
|
|
18
|
-
transform: translate(-50%, -50%) scale(1);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@keyframes popover-exit-center {
|
|
23
|
-
from {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
transform: translate(-50%, -50%) scale(1);
|
|
26
|
-
}
|
|
27
|
-
to {
|
|
28
|
-
opacity: 0;
|
|
29
|
-
transform: translate(-50%, -50%) scale(0.8);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/* ========================================
|
|
34
|
-
TOP POSITION ANIMATIONS
|
|
35
|
-
======================================== */
|
|
36
|
-
|
|
37
|
-
/* Top center - slides down and fades in */
|
|
38
|
-
@keyframes popover-enter-top {
|
|
39
|
-
from {
|
|
40
|
-
opacity: 0;
|
|
41
|
-
transform: translateX(-50%) translateY(-20px);
|
|
42
|
-
}
|
|
43
|
-
to {
|
|
44
|
-
opacity: 1;
|
|
45
|
-
transform: translateX(-50%) translateY(0);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@keyframes popover-exit-top {
|
|
50
|
-
from {
|
|
51
|
-
opacity: 1;
|
|
52
|
-
transform: translateX(-50%) translateY(0);
|
|
53
|
-
}
|
|
54
|
-
to {
|
|
55
|
-
opacity: 0;
|
|
56
|
-
transform: translateX(-50%) translateY(-20px);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Top start (left) - slides down only (same as top) */
|
|
61
|
-
@keyframes popover-enter-top-start {
|
|
62
|
-
from {
|
|
63
|
-
opacity: 0;
|
|
64
|
-
transform: translateY(-20px);
|
|
65
|
-
}
|
|
66
|
-
to {
|
|
67
|
-
opacity: 1;
|
|
68
|
-
transform: translateY(0);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@keyframes popover-exit-top-start {
|
|
73
|
-
from {
|
|
74
|
-
opacity: 1;
|
|
75
|
-
transform: translateY(0);
|
|
76
|
-
}
|
|
77
|
-
to {
|
|
78
|
-
opacity: 0;
|
|
79
|
-
transform: translateY(-20px);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/* Top end (right) - slides down only (same as top) */
|
|
84
|
-
@keyframes popover-enter-top-end {
|
|
85
|
-
from {
|
|
86
|
-
opacity: 0;
|
|
87
|
-
transform: translateY(-20px);
|
|
88
|
-
}
|
|
89
|
-
to {
|
|
90
|
-
opacity: 1;
|
|
91
|
-
transform: translateY(0);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
@keyframes popover-exit-top-end {
|
|
96
|
-
from {
|
|
97
|
-
opacity: 1;
|
|
98
|
-
transform: translateY(0);
|
|
99
|
-
}
|
|
100
|
-
to {
|
|
101
|
-
opacity: 0;
|
|
102
|
-
transform: translateY(-20px);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* ========================================
|
|
107
|
-
BOTTOM POSITION ANIMATIONS
|
|
108
|
-
======================================== */
|
|
109
|
-
|
|
110
|
-
/* Bottom center - slides up and fades in */
|
|
111
|
-
@keyframes popover-enter-bottom {
|
|
112
|
-
from {
|
|
113
|
-
opacity: 0;
|
|
114
|
-
transform: translateX(-50%) translateY(20px);
|
|
115
|
-
}
|
|
116
|
-
to {
|
|
117
|
-
opacity: 1;
|
|
118
|
-
transform: translateX(-50%) translateY(0);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
@keyframes popover-exit-bottom {
|
|
123
|
-
from {
|
|
124
|
-
opacity: 1;
|
|
125
|
-
transform: translateX(-50%) translateY(0);
|
|
126
|
-
}
|
|
127
|
-
to {
|
|
128
|
-
opacity: 0;
|
|
129
|
-
transform: translateX(-50%) translateY(20px);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/* Bottom start (left) - slides up only (same as bottom) */
|
|
134
|
-
@keyframes popover-enter-bottom-start {
|
|
135
|
-
from {
|
|
136
|
-
opacity: 0;
|
|
137
|
-
transform: translateY(20px);
|
|
138
|
-
}
|
|
139
|
-
to {
|
|
140
|
-
opacity: 1;
|
|
141
|
-
transform: translateY(0);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@keyframes popover-exit-bottom-start {
|
|
146
|
-
from {
|
|
147
|
-
opacity: 1;
|
|
148
|
-
transform: translateY(0);
|
|
149
|
-
}
|
|
150
|
-
to {
|
|
151
|
-
opacity: 0;
|
|
152
|
-
transform: translateY(20px);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/* Bottom end (right) - slides up only (same as bottom) */
|
|
157
|
-
@keyframes popover-enter-bottom-end {
|
|
158
|
-
from {
|
|
159
|
-
opacity: 0;
|
|
160
|
-
transform: translateY(20px);
|
|
161
|
-
}
|
|
162
|
-
to {
|
|
163
|
-
opacity: 1;
|
|
164
|
-
transform: translateY(0);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
@keyframes popover-exit-bottom-end {
|
|
169
|
-
from {
|
|
170
|
-
opacity: 1;
|
|
171
|
-
transform: translateY(0);
|
|
172
|
-
}
|
|
173
|
-
to {
|
|
174
|
-
opacity: 0;
|
|
175
|
-
transform: translateY(20px);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/* ========================================
|
|
180
|
-
LEFT POSITION ANIMATIONS
|
|
181
|
-
======================================== */
|
|
182
|
-
|
|
183
|
-
/* Left center - slides right and fades in */
|
|
184
|
-
@keyframes popover-enter-left {
|
|
185
|
-
from {
|
|
186
|
-
opacity: 0;
|
|
187
|
-
transform: translateY(-50%) translateX(-20px);
|
|
188
|
-
}
|
|
189
|
-
to {
|
|
190
|
-
opacity: 1;
|
|
191
|
-
transform: translateY(-50%) translateX(0);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
@keyframes popover-exit-left {
|
|
196
|
-
from {
|
|
197
|
-
opacity: 1;
|
|
198
|
-
transform: translateY(-50%) translateX(0);
|
|
199
|
-
}
|
|
200
|
-
to {
|
|
201
|
-
opacity: 0;
|
|
202
|
-
transform: translateY(-50%) translateX(-20px);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/* Left start (top) - slides right only (same as left) */
|
|
207
|
-
@keyframes popover-enter-left-start {
|
|
208
|
-
from {
|
|
209
|
-
opacity: 0;
|
|
210
|
-
transform: translateX(-20px);
|
|
211
|
-
}
|
|
212
|
-
to {
|
|
213
|
-
opacity: 1;
|
|
214
|
-
transform: translateX(0);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
@keyframes popover-exit-left-start {
|
|
219
|
-
from {
|
|
220
|
-
opacity: 1;
|
|
221
|
-
transform: translateX(0);
|
|
222
|
-
}
|
|
223
|
-
to {
|
|
224
|
-
opacity: 0;
|
|
225
|
-
transform: translateX(-20px);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/* Left end (bottom) - slides right only (same as left) */
|
|
230
|
-
@keyframes popover-enter-left-end {
|
|
231
|
-
from {
|
|
232
|
-
opacity: 0;
|
|
233
|
-
transform: translateX(-20px);
|
|
234
|
-
}
|
|
235
|
-
to {
|
|
236
|
-
opacity: 1;
|
|
237
|
-
transform: translateX(0);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
@keyframes popover-exit-left-end {
|
|
242
|
-
from {
|
|
243
|
-
opacity: 1;
|
|
244
|
-
transform: translateX(0);
|
|
245
|
-
}
|
|
246
|
-
to {
|
|
247
|
-
opacity: 0;
|
|
248
|
-
transform: translateX(-20px);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/* ========================================
|
|
253
|
-
RIGHT POSITION ANIMATIONS
|
|
254
|
-
======================================== */
|
|
255
|
-
|
|
256
|
-
/* Right center - slides left and fades in */
|
|
257
|
-
@keyframes popover-enter-right {
|
|
258
|
-
from {
|
|
259
|
-
opacity: 0;
|
|
260
|
-
transform: translateY(-50%) translateX(20px);
|
|
261
|
-
}
|
|
262
|
-
to {
|
|
263
|
-
opacity: 1;
|
|
264
|
-
transform: translateY(-50%) translateX(0);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
@keyframes popover-exit-right {
|
|
269
|
-
from {
|
|
270
|
-
opacity: 1;
|
|
271
|
-
transform: translateY(-50%) translateX(0);
|
|
272
|
-
}
|
|
273
|
-
to {
|
|
274
|
-
opacity: 0;
|
|
275
|
-
transform: translateY(-50%) translateX(20px);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/* Right start (top) - slides left only (same as right) */
|
|
280
|
-
@keyframes popover-enter-right-start {
|
|
281
|
-
from {
|
|
282
|
-
opacity: 0;
|
|
283
|
-
transform: translateX(20px);
|
|
284
|
-
}
|
|
285
|
-
to {
|
|
286
|
-
opacity: 1;
|
|
287
|
-
transform: translateX(0);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
@keyframes popover-exit-right-start {
|
|
292
|
-
from {
|
|
293
|
-
opacity: 1;
|
|
294
|
-
transform: translateX(0);
|
|
295
|
-
}
|
|
296
|
-
to {
|
|
297
|
-
opacity: 0;
|
|
298
|
-
transform: translateX(20px);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/* Right end (bottom) - slides left only (same as right) */
|
|
303
|
-
@keyframes popover-enter-right-end {
|
|
304
|
-
from {
|
|
305
|
-
opacity: 0;
|
|
306
|
-
transform: translateX(20px);
|
|
307
|
-
}
|
|
308
|
-
to {
|
|
309
|
-
opacity: 1;
|
|
310
|
-
transform: translateX(0);
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
@keyframes popover-exit-right-end {
|
|
315
|
-
from {
|
|
316
|
-
opacity: 1;
|
|
317
|
-
transform: translateX(0);
|
|
318
|
-
}
|
|
319
|
-
to {
|
|
320
|
-
opacity: 0;
|
|
321
|
-
transform: translateX(20px);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/* ========================================
|
|
326
|
-
NOTE: No default animation needed
|
|
327
|
-
======================================== */
|
|
328
|
-
/* When no placement is specified, center animation is used as fallback */
|
|
329
|
-
|
|
330
|
-
/* ========================================
|
|
331
|
-
UTILITY CLASSES FOR APPLYING ANIMATIONS
|
|
332
|
-
======================================== */
|
|
333
|
-
|
|
334
|
-
/* Animation duration and timing */
|
|
335
|
-
.popover-animate {
|
|
336
|
-
animation-duration: 200ms;
|
|
337
|
-
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
338
|
-
animation-fill-mode: forwards;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
/* Enter animations by position */
|
|
342
|
-
.popover-enter-center {
|
|
343
|
-
animation-name: popover-enter-center;
|
|
344
|
-
}
|
|
345
|
-
.popover-enter-top {
|
|
346
|
-
animation-name: popover-enter-top;
|
|
347
|
-
}
|
|
348
|
-
.popover-enter-top-start {
|
|
349
|
-
animation-name: popover-enter-top-start;
|
|
350
|
-
}
|
|
351
|
-
.popover-enter-top-end {
|
|
352
|
-
animation-name: popover-enter-top-end;
|
|
353
|
-
}
|
|
354
|
-
.popover-enter-bottom {
|
|
355
|
-
animation-name: popover-enter-bottom;
|
|
356
|
-
}
|
|
357
|
-
.popover-enter-bottom-start {
|
|
358
|
-
animation-name: popover-enter-bottom-start;
|
|
359
|
-
}
|
|
360
|
-
.popover-enter-bottom-end {
|
|
361
|
-
animation-name: popover-enter-bottom-end;
|
|
362
|
-
}
|
|
363
|
-
.popover-enter-left {
|
|
364
|
-
animation-name: popover-enter-left;
|
|
365
|
-
}
|
|
366
|
-
.popover-enter-left-start {
|
|
367
|
-
animation-name: popover-enter-left-start;
|
|
368
|
-
}
|
|
369
|
-
.popover-enter-left-end {
|
|
370
|
-
animation-name: popover-enter-left-end;
|
|
371
|
-
}
|
|
372
|
-
.popover-enter-right {
|
|
373
|
-
animation-name: popover-enter-right;
|
|
374
|
-
}
|
|
375
|
-
.popover-enter-right-start {
|
|
376
|
-
animation-name: popover-enter-right-start;
|
|
377
|
-
}
|
|
378
|
-
.popover-enter-right-end {
|
|
379
|
-
animation-name: popover-enter-right-end;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
/* Exit animations by position */
|
|
383
|
-
.popover-exit-center {
|
|
384
|
-
animation-name: popover-exit-center;
|
|
385
|
-
}
|
|
386
|
-
.popover-exit-top {
|
|
387
|
-
animation-name: popover-exit-top;
|
|
388
|
-
}
|
|
389
|
-
.popover-exit-top-start {
|
|
390
|
-
animation-name: popover-exit-top-start;
|
|
391
|
-
}
|
|
392
|
-
.popover-exit-top-end {
|
|
393
|
-
animation-name: popover-exit-top-end;
|
|
394
|
-
}
|
|
395
|
-
.popover-exit-bottom {
|
|
396
|
-
animation-name: popover-exit-bottom;
|
|
397
|
-
}
|
|
398
|
-
.popover-exit-bottom-start {
|
|
399
|
-
animation-name: popover-exit-bottom-start;
|
|
400
|
-
}
|
|
401
|
-
.popover-exit-bottom-end {
|
|
402
|
-
animation-name: popover-exit-bottom-end;
|
|
403
|
-
}
|
|
404
|
-
.popover-exit-left {
|
|
405
|
-
animation-name: popover-exit-left;
|
|
406
|
-
}
|
|
407
|
-
.popover-exit-left-start {
|
|
408
|
-
animation-name: popover-exit-left-start;
|
|
409
|
-
}
|
|
410
|
-
.popover-exit-left-end {
|
|
411
|
-
animation-name: popover-exit-left-end;
|
|
412
|
-
}
|
|
413
|
-
.popover-exit-right {
|
|
414
|
-
animation-name: popover-exit-right;
|
|
415
|
-
}
|
|
416
|
-
.popover-exit-right-start {
|
|
417
|
-
animation-name: popover-exit-right-start;
|
|
418
|
-
}
|
|
419
|
-
.popover-exit-right-end {
|
|
420
|
-
animation-name: popover-exit-right-end;
|
|
421
|
-
}
|
|
1
|
+
@keyframes popover-enter-center{0%{opacity:0;transform:translate(-50%,-50%) scale(.8)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes popover-exit-center{0%{opacity:1;transform:translate(-50%,-50%) scale(1)}to{opacity:0;transform:translate(-50%,-50%) scale(.8)}}@keyframes popover-enter-top{0%{opacity:0;transform:translateX(-50%) translateY(-20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}@keyframes popover-exit-top{0%{opacity:1;transform:translateX(-50%) translateY(0)}to{opacity:0;transform:translateX(-50%) translateY(-20px)}}@keyframes popover-enter-top-start{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes popover-exit-top-start{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}@keyframes popover-enter-top-end{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes popover-exit-top-end{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}@keyframes popover-enter-bottom{0%{opacity:0;transform:translateX(-50%) translateY(20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}@keyframes popover-exit-bottom{0%{opacity:1;transform:translateX(-50%) translateY(0)}to{opacity:0;transform:translateX(-50%) translateY(20px)}}@keyframes popover-enter-bottom-start{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes popover-exit-bottom-start{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}@keyframes popover-enter-bottom-end{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes popover-exit-bottom-end{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(20px)}}@keyframes popover-enter-left{0%{opacity:0;transform:translateY(-50%) translateX(-20px)}to{opacity:1;transform:translateY(-50%) translateX(0)}}@keyframes popover-exit-left{0%{opacity:1;transform:translateY(-50%) translateX(0)}to{opacity:0;transform:translateY(-50%) translateX(-20px)}}@keyframes popover-enter-left-start{0%{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}@keyframes popover-exit-left-start{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-20px)}}@keyframes popover-enter-left-end{0%{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}@keyframes popover-exit-left-end{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-20px)}}@keyframes popover-enter-right{0%{opacity:0;transform:translateY(-50%) translateX(20px)}to{opacity:1;transform:translateY(-50%) translateX(0)}}@keyframes popover-exit-right{0%{opacity:1;transform:translateY(-50%) translateX(0)}to{opacity:0;transform:translateY(-50%) translateX(20px)}}@keyframes popover-enter-right-start{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes popover-exit-right-start{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(20px)}}@keyframes popover-enter-right-end{0%{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}@keyframes popover-exit-right-end{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(20px)}}.popover-animate{animation-duration:.2s;animation-fill-mode:forwards;animation-timing-function:cubic-bezier(.16,1,.3,1)}.popover-enter-center{animation-name:popover-enter-center}.popover-enter-top{animation-name:popover-enter-top}.popover-enter-top-start{animation-name:popover-enter-top-start}.popover-enter-top-end{animation-name:popover-enter-top-end}.popover-enter-bottom{animation-name:popover-enter-bottom}.popover-enter-bottom-start{animation-name:popover-enter-bottom-start}.popover-enter-bottom-end{animation-name:popover-enter-bottom-end}.popover-enter-left{animation-name:popover-enter-left}.popover-enter-left-start{animation-name:popover-enter-left-start}.popover-enter-left-end{animation-name:popover-enter-left-end}.popover-enter-right{animation-name:popover-enter-right}.popover-enter-right-start{animation-name:popover-enter-right-start}.popover-enter-right-end{animation-name:popover-enter-right-end}.popover-exit-center{animation-name:popover-exit-center}.popover-exit-top{animation-name:popover-exit-top}.popover-exit-top-start{animation-name:popover-exit-top-start}.popover-exit-top-end{animation-name:popover-exit-top-end}.popover-exit-bottom{animation-name:popover-exit-bottom}.popover-exit-bottom-start{animation-name:popover-exit-bottom-start}.popover-exit-bottom-end{animation-name:popover-exit-bottom-end}.popover-exit-left{animation-name:popover-exit-left}.popover-exit-left-start{animation-name:popover-exit-left-start}.popover-exit-left-end{animation-name:popover-exit-left-end}.popover-exit-right{animation-name:popover-exit-right}.popover-exit-right-start{animation-name:popover-exit-right-start}.popover-exit-right-end{animation-name:popover-exit-right-end}
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/* PopoverV2 Arrow Styles */
|
|
3
|
-
/* ============================================= */
|
|
4
|
-
|
|
5
|
-
/* Arrow base styles */
|
|
6
|
-
[data-kbt-id='popover-arrow'] {
|
|
7
|
-
position: absolute;
|
|
8
|
-
transform: rotate(45deg);
|
|
9
|
-
z-index: -1;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* Arrow positioning based on placement */
|
|
13
|
-
[data-kbt-id='popover-arrow'][data-kbt-placement^='top'] {
|
|
14
|
-
bottom: calc(-1 * var(--arrow-size, 8px) / 2);
|
|
15
|
-
left: 50%;
|
|
16
|
-
transform: translateX(-50%) rotate(45deg);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
[data-kbt-id='popover-arrow'][data-kbt-placement^='bottom'] {
|
|
20
|
-
top: calc(-1 * var(--arrow-size, 8px) / 2);
|
|
21
|
-
left: 50%;
|
|
22
|
-
transform: translateX(-50%) rotate(45deg);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
[data-kbt-id='popover-arrow'][data-kbt-placement^='left'] {
|
|
26
|
-
right: calc(-1 * var(--arrow-size, 8px) / 2);
|
|
27
|
-
top: 50%;
|
|
28
|
-
transform: translateY(-50%) rotate(45deg);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
[data-kbt-id='popover-arrow'][data-kbt-placement^='right'] {
|
|
32
|
-
left: calc(-1 * var(--arrow-size, 8px) / 2);
|
|
33
|
-
top: 50%;
|
|
34
|
-
transform: translateY(-50%) rotate(45deg);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* Center placement arrow - default to bottom position */
|
|
38
|
-
[data-kbt-id='popover-arrow'][data-kbt-placement='center'] {
|
|
39
|
-
top: calc(-1 * var(--arrow-size, 8px) / 2);
|
|
40
|
-
left: 50%;
|
|
41
|
-
transform: translateX(-50%) rotate(45deg);
|
|
42
|
-
}
|
|
1
|
+
[data-kbt-id=popover-arrow]{position:absolute;transform:rotate(45deg);z-index:-1}[data-kbt-id=popover-arrow][data-kbt-placement^=top]{bottom:calc(var(--arrow-size, 8px)*-1/2);left:50%;transform:translateX(-50%) rotate(45deg)}[data-kbt-id=popover-arrow][data-kbt-placement^=bottom]{left:50%;top:calc(var(--arrow-size, 8px)*-1/2);transform:translateX(-50%) rotate(45deg)}[data-kbt-id=popover-arrow][data-kbt-placement^=left]{right:calc(var(--arrow-size, 8px)*-1/2);top:50%;transform:translateY(-50%) rotate(45deg)}[data-kbt-id=popover-arrow][data-kbt-placement^=right]{left:calc(var(--arrow-size, 8px)*-1/2);top:50%;transform:translateY(-50%) rotate(45deg)}[data-kbt-id=popover-arrow][data-kbt-placement=center]{left:50%;top:calc(var(--arrow-size, 8px)*-1/2);transform:translateX(-50%) rotate(45deg)}
|