UNPKG

@guruhotel/aura-ui

Version:

⚛️ React UI library by GuruHotel

1 lines 8.87 kB
exports.__esModule=!0,exports.StyledSubTrigger=exports.StyledSubContent=exports.StyledShortcut=exports.StyledSeparator=exports.StyledRadioItem=exports.StyledMenuSub=exports.StyledLabel=exports.StyledItemIndicator=exports.StyledItem=exports.StyledContent=exports.StyledCheckboxItem=exports.StyledArrow=void 0;var o=require("../theme"),r=function(o,r){if(!r&&o&&o.__esModule)return o;if(null===o||"object"!=typeof o&&"function"!=typeof o)return{default:o};var t=e(r);if(t&&t.has(o))return t.get(o);var a={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if("default"!==d&&Object.prototype.hasOwnProperty.call(o,d)){var i=l?Object.getOwnPropertyDescriptor(o,d):null;i&&(i.get||i.set)?Object.defineProperty(a,d,i):a[d]=o[d]}a.default=o,t&&t.set(o,a);return a}(require("@radix-ui/react-context-menu")),t=require("./context-menu.constants");function e(o){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(e=function(o){return o?t:r})(o)}const a=(0,o.styled)(r.Item,{...t.itemStyles});exports.StyledItem=a;const l=(0,o.styled)(r.CheckboxItem,{...t.itemStyles});exports.StyledCheckboxItem=l;const d=(0,o.styled)(r.RadioItem,{...t.itemStyles});exports.StyledRadioItem=d;const i=(0,o.styled)(r.SubTrigger,{...t.itemStyles});exports.StyledSubTrigger=i;const $=(0,o.styled)(r.Sub);exports.StyledMenuSub=$;const n=(0,o.styled)(r.Label,{paddingLeft:25,lineHeight:"$base",color:"$gray11",fontSize:"$sm"});exports.StyledLabel=n;const c=(0,o.styled)(r.Separator,{height:1,backgroundColor:"$gray6",margin:5});exports.StyledSeparator=c;const g=(0,o.styled)(r.ItemIndicator,{position:"absolute",left:0,width:25,display:"inline-flex",alignItems:"center",justifyContent:"center"});exports.StyledItemIndicator=g;const u=(0,o.styled)(r.Arrow,{fill:"white"});exports.StyledArrow=u;const h=(0,o.styled)("div",{marginLeft:"auto",paddingLeft:20,color:"$gray11","[data-highlighted] > &":{color:"$surfaceLight"},"[data-disabled] &":{color:"$gray8"}});exports.StyledShortcut=h;const s=(0,o.styled)(r.SubContent,{...t.contentStyles,variants:{colorScheme:{text:{color:"$text11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$text9",color:"$text1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$text4",color:"$text11"},"&[data-highlighted]":{backgroundColor:"$text9",color:"$text1"}}},guru:{color:"$guru11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$guru9",color:"$guru1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$guru4",color:"$guru11"},"&[data-highlighted]":{backgroundColor:"$guru9",color:"$guru1"}}},fellow:{color:"$fellow11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$fellow9",color:"$fellow1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$fellow4",color:"$fellow11"},"&[data-highlighted]":{backgroundColor:"$fellow9",color:"$fellow1"}}},darkie:{color:"$darkie11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$darkie9",color:"$darkie1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$darkie4",color:"$darkie11"},"&[data-highlighted]":{backgroundColor:"$darkie9",color:"$darkie1"}}},red:{color:"$red11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$red9",color:"$red1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$red4",color:"$red11"},"&[data-highlighted]":{backgroundColor:"$red9",color:"$red1"}}},nature:{color:"$nature11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$nature9",color:"$nature1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$nature4",color:"$nature11"},"&[data-highlighted]":{backgroundColor:"$nature9",color:"$nature1"}}},sunshine:{color:"$sunshine11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$sunshine9",color:"$sunshine1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$sunshine4",color:"$sunshine11"},"&[data-highlighted]":{backgroundColor:"$sunshine9",color:"$sunshine1"}}},violet:{color:"$violet11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$violet9",color:"$violet1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$violet4",color:"$violet11"},"&[data-highlighted]":{backgroundColor:"$violet9",color:"$violet1"}}},gray:{color:"$gray11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$gray9",color:"$gray1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$gray4",color:"$gray11"},"&[data-highlighted]":{backgroundColor:"$gray9",color:"$gray1"}}},primary:{color:"$primary11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$primary9",color:"$primary1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$primary4",color:"$primary11"},"&[data-highlighted]":{backgroundColor:"$primary9",color:"$primary1"}}},secondary:{color:"$secondary11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"secondary9",color:"secondary1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"secondary4",color:"$secondary11"},"&[data-highlighted]":{backgroundColor:"secondary9",color:"secondary1"}}},utilitary:{color:"$utilitary11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"utilitary9",color:"utilitary1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"utilitary4",color:"$utilitary11"},"&[data-highlighted]":{backgroundColor:"utilitary9",color:"utilitary1"}}}}},defaultVariants:{colorScheme:"guru"}});exports.StyledSubContent=s;const y=(0,o.styled)(r.Content,{...t.contentStyles,variants:{colorScheme:{text:{color:"$text11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$text9",color:"$text1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$text4",color:"$text11"},"&[data-highlighted]":{backgroundColor:"$text9",color:"$text1"}}},guru:{color:"$guru11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$guru9",color:"$guru1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$guru4",color:"$guru11"},"&[data-highlighted]":{backgroundColor:"$guru9",color:"$guru1"}}},fellow:{color:"$fellow11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$fellow9",color:"$fellow1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$fellow4",color:"$fellow11"},"&[data-highlighted]":{backgroundColor:"$fellow9",color:"$fellow1"}}},darkie:{color:"$darkie11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$darkie9",color:"$darkie1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$darkie4",color:"$darkie11"},"&[data-highlighted]":{backgroundColor:"$darkie9",color:"$darkie1"}}},red:{color:"$red11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$red9",color:"$red1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$red4",color:"$red11"},"&[data-highlighted]":{backgroundColor:"$red9",color:"$red1"}}},nature:{color:"$nature11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$nature9",color:"$nature1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$nature4",color:"$nature11"},"&[data-highlighted]":{backgroundColor:"$nature9",color:"$nature1"}}},sunshine:{color:"$sunshine11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$sunshine9",color:"$sunshine1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$sunshine4",color:"$sunshine11"},"&[data-highlighted]":{backgroundColor:"$sunshine9",color:"$sunshine1"}}},violet:{color:"$violet11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$violet9",color:"$violet1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$violet4",color:"$violet11"},"&[data-highlighted]":{backgroundColor:"$violet9",color:"$violet1"}}},gray:{color:"$gray11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$gray9",color:"$gray1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$gray4",color:"$gray11"},"&[data-highlighted]":{backgroundColor:"$gray9",color:"$gray1"}}},primary:{color:"$primary11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"$primary9",color:"$primary1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"$primary4",color:"$primary11"},"&[data-highlighted]":{backgroundColor:"$primary9",color:"$primary1"}}},secondary:{color:"$secondary11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"secondary9",color:"secondary1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"secondary4",color:"$secondary11"},"&[data-highlighted]":{backgroundColor:"secondary9",color:"secondary1"}}},utilitary:{color:"$utilitary11",[`& ${a}, & ${l}, & ${d}`]:{"&[data-highlighted]":{backgroundColor:"utilitary9",color:"utilitary1"}},[`& ${i}`]:{'&[data-state="open"]':{backgroundColor:"utilitary4",color:"$utilitary11"},"&[data-highlighted]":{backgroundColor:"utilitary9",color:"utilitary1"}}}}},defaultVariants:{colorScheme:"guru"}});exports.StyledContent=y;