Skip to content

Commit

Permalink
building refs/heads/bodyportal-sidebarnav/93c72afe4e7486ba52ab6f37b2a…
Browse files Browse the repository at this point in the history
…0da5b38646aef
  • Loading branch information
staxly committed Sep 9, 2024
1 parent 0dd91d2 commit 29141e8
Show file tree
Hide file tree
Showing 53 changed files with 1,928 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import{s as n,C as m,a as i}from"./index.b2a8d8cc.js";import{t as e}from"./theme.6fc3e458.js";import{a as p}from"./buttons.94abc17b.js";const a=n.button`
${o=>p(o.variant)}
font-size: 1.6rem;
line-height: 2rem;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
display: inline-flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: 4rem;
padding: 0 3rem;
border: 0;
border-radius: 0.5rem;
box-shadow: 0px 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
transition: all 0.2s ease-in-out;
text-decoration: none;
user-select: none;
white-space: nowrap;
${o=>o.variant==="primary"?`
&:focus {
outline: solid ${e.colors.palette.white};
box-shadow: inset 0 0 0 3px ${e.colors.palette.black};
}
`:""}
&:not([disabled]) {
cursor: pointer;
}
&:disabled {
opacity: 0.4;
}
& + & {
margin-left: 1.6rem;
}
`,f=o=>{const{disabled:t,isWaiting:r,waitingText:s,children:l,variant:c="primary",...d}=o;return i(a,{...d,disabled:r||t,variant:c,children:r&&s||l})},y=({variant:o="primary",...t})=>i(a,{...t,as:"a",variant:o,children:t.children}),u=m`
color: ${e.colors.link.color};
cursor: pointer;
text-decoration: none;
:hover,
:focus {
text-decoration: underline;
color: ${e.colors.link.hover};
}
`,h=n.button`
cursor: pointer;
border: none;
margin: 0;
padding: 0;
background: none;
`,k=n(h)`
${u}
`;export{f as B,y as L,k as a};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import{s as n,j as r,a as c,F as d}from"./index.b2a8d8cc.js";import{c as a}from"./theme.6fc3e458.js";import"./palette.15e4d008.js";const l={primary:{accentColor:a.palette.mediumBlue,boxShadow:"none"},light:{accentColor:a.palette.white,boxShadow:"0 0 1px 0"}},p=n.label`
font-size: 1.4rem;
display: flex;
align-items: center;
font-weight: ${e=>e.bold?700:400}
`,x=n.input`
accent-color: ${e=>l[e.variant].accentColor};
width: ${e=>e.checkboxSize}rem;
height: ${e=>e.checkboxSize}rem;
margin: 0 1.6rem 0 0;
&:checked {
box-shadow: ${e=>l[e.variant].boxShadow};
}
`,i=({children:e,variant:o="primary",bold:h=!1,size:m=1.6,labelProps:s,...b})=>r(p,{bold:h,...s,children:[c(x,{...b,type:"checkbox",variant:o,checkboxSize:m}),e]}),u=n.div`
text-transform: capitalize;
& + & {
margin-top: 3.2rem;
}
> * + * {
margin-top: 0.5rem;
}
`,t=(e,o)=>r(u,{children:[r("h2",{children:["Size ",o]}),c(i,{size:o,variant:e,children:"Checkbox label"}),c(i,{size:o,variant:e,defaultChecked:!0,children:"Checkbox label"}),c(i,{size:o,variant:e,defaultChecked:!0,bold:!0,children:"Checkbox label"})]}),w=()=>r(d,{children:[t("primary",1.4),t("primary",1.6),t("primary",1.8),t("primary",2)]}),f=()=>r(d,{children:[t("light",1.4),t("light",1.6),t("light",1.8),t("light",2)]});typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{f as Light,w as Primary};
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import{s as m,j as a,a as t,R as b,F as h}from"./index.b2a8d8cc.js";import{$ as g}from"./OverlayArrow.module.a135db62.js";import{$ as u,a as f,b as y,c as n}from"./Menu.module.3f35d5f1.js";import{a as $}from"./buttons.94abc17b.js";import{p as r}from"./palette.15e4d008.js";import"./focusSafely.module.55fcac4c.js";import"./context.module.cc6e965d.js";import"./SelectionManager.module.359ddaef.js";import"./FocusScope.module.c4ce3ca5.js";const x=m(g)`
${e=>$(e.variant)}
align-items: center;
border: 0;
border-radius: 0.5rem;
box-shadow: 0px 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
display: inline-flex;
flex-direction: row;
font-size: 1.6rem;
position: relative;
justify-content: center;
line-height: 2rem;
min-height: 2.5rem;
padding: 0 1.5rem 0 0.5rem;
text-align: left;
text-decoration: none;
transition: all 0.2s ease-in-out;
user-select: none;
${e=>e.width?`width: ${e.width}`:null}
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
&:disabled {
opacity: 0.4;
}
&:not([disabled]) {
cursor: pointer;
}
:after {
background: ${e=>e.variant==="light"?r.black:r.white};
clip-path: polygon(0 0, 100% 100%, 100% 0);
content: ' ';
display: block;
position: absolute;
height: 0.5rem;
margin-top: -0.25rem;
right: 0.5rem;
transform: rotate(135deg);
width: 0.5rem;
}
`,w=m(u)`
margin-top: -0.6rem;
background-color: ${r.white};
border: 0.1rem solid ${r.pale};
padding: 0.3rem 0;
cursor: pointer;
color: ${r.black};
[role="menuitem"] {
font-size: 1.6rem;
min-height: 2.5rem;
line-height: 2rem;
padding: 0 0.5rem;
cursor: pointer;
transition: all 0.2s ease-in-out;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
&:hover {
background-color: ${r.pale};
}
}
`,l=({text:e,children:c,variant:i,width:o,disabled:p,...s})=>a(f,{...s,children:[t(x,{variant:i,width:o,isDisabled:p,children:e}),t(y,{children:t(w,{...s,children:c})})]}),d=e=>{const[c,i]=b.useState(!1),o=()=>{i(!0),setTimeout(()=>{i(!1)},1e3)};return a(h,{children:[a(l,{disabled:c,id:"enabled-grades-menu",text:"Sync/Export Grades",variant:e,children:[t(n,{onAction:o,children:"Sync only completed grades to LMS"}),t(n,{onAction:o,children:"Sync all grades to LMS (including partial)"}),t(n,{onAction:o,children:"Export grades to .csv"})]}),t("br",{}),a(l,{disabled:!0,id:"disabled-grades-menu",text:"Sync/Export Grades",variant:e,children:[t(n,{onAction:o,children:"Sync only completed grades to LMS"}),t(n,{onAction:o,children:"Sync all grades to LMS (including partial)"}),t(n,{onAction:o,children:"Export grades to .csv"})]})]})},D=()=>d("light"),B=()=>d("primary"),F=()=>d("secondary");typeof window<"u"&&window.document&&window.document.createElement&&document.documentElement.setAttribute("data-storyloaded","");export{D as Light,B as Primary,F as Secondary};
Loading

0 comments on commit 29141e8

Please sign in to comment.