PageSourceSearch

https://cdn2.prose.com/build/client/assets/Checkbox-BlEwlhSS.js

js prose.com collected 2026-10-02 02:41:23 UTC 4,185 bytes, 68 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9a154db4-11cf-5203-8636-bcc5c39fd0df")}catch(e){}}();
3import{j as r}from"./jsx-runtime-Bd7SJnjc.js";import{e as w}from"./TextField-Bxc-WxYl.js";import{T as j}from"./text-bS-fhLah.js";import{t as n,c as p}from"./index-D5w148lj.js";import{h as v}from"./getEnv-DW8_anR-.js";import{b as l}from"./chunk-KS7C4IRE-CAm7c3ci.js";import{S as E}from"./BasicModal-DWsr_-TQ.js";import{g as h}from"./styled-components.browser.esm-BK8Eny2Y.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"}}catch{}})();const S=e=>l.createElement("svg",{height:15,width:18,...e},l.createElement("path",{d:"M1.157 1.157l11.556 11.556m-11.556 0L12.713 1.157",fill:"none",fillRule:"evenodd",stroke:"current",strokeWidth:1.5})),z=e=>l.createElement("svg",{height:15,width:18,...e},l.createElement("path",{d:"M1 8.68L5.235 13 17 1",fill:"none",stroke:"current",strokeWidth:1.5})),m={hero1:"h1",hero2:"h1","hero-mono":"h1","h1r-mono":"h3","h2r-mono":"h4",h1r:"h3",h2r:"h4",h1:"h3",h2:"h4",h3:"h5",h4:"h6",mono1:"label1regular",mono2:"label2regular",mono3:"label3regular",mono4:"label3regular",p1:"body3regular",p2:"body4regular",p3:"body5regular",p4:"body5regular"},C={inherit:"inherit",noir:"primary.400",noirDark:"neutral.900",grey:"neutral.800",red:"red",rouge:"error.200",sorbet:"accent.200",gold:"secondary.300",vert:"primary.300",white:"neutral.100",lilasDark2:"tertiary.300",lime:"highlight.200",lavender:"tertiary.200"},$=h.div`
4  display: flex;
5  align-items: center;
6  color: ${n.colors.primary[400]};
7
8  & label:hover {
9    cursor: pointer;
10  }
11`,M=h.div`
12  display: contents;
13
14  & > .check {
15    position: absolute;
16    background-color: ${n.colors.neutral[100]};
17    box-shadow: 2px 2px 3px 0 ${n.colors.neutral[600]};
18    transition: background-color 100ms ease-in;
19
20    &.selected {
21      background-color: ${n.colors.primary[300]};
22    }
23
24    &.disabled {
25      background-color: ${n.colors.neutral[400]};
26      box-shadow: none;
27    }
28
29    /* stylelint-disable-next-line selector-class-pattern */
30    &.displayMode {
31      background-color: transparent;
32      box-shadow: none;
33    }
34  }
35
36  & .size-small {
37    width: 16px;
38    height: 16px;
39  }
40
41  & .size-medium {
42    width: 28px;
43    height: 28px;
44  }
45
46  & .size-large {
47    width: 40px;
48    height: 40px;
49  }
50`,R=h.input`
51  cursor: pointer;
52
53  position: relative;
54  z-index: 1;
55
56  flex-shrink: 0;
57
58  border: none;
59
60  appearance: none;
61  background: none;
62
63  &.disabled {
64    cursor: not-allowed;
65  }
66`,u={small:"size-small",medium:"size-medium",large:"size-large"},T=({className:e,color:o,dataPrefix:t})=>r.jsx(z,{"aria-hidden":!0,className:e,"data-testid":`${t}-enabled-icon`,focusable:!1,role:"presentation",stroke:o,viewBox:"-5 -6 28 28"}),I=({className:e,color:o,dataPrefix:t})=>r.jsx(S,{"aria-hidden":!0,className:e,"data-testid":`${t}-disabled-icon`,focusable:!1,role:"presentation",stroke:o,viewBox:"-7 -7 28 28"}),L=({className:e,dataPrefix:o,color:t,selected:i,children:s})=>r.jsxs(M,{className:e,children:[i?r.jsx(T,{className:e,color:t,dataPrefix:o}):r.jsx(I,{className:e,color:t,dataPrefix:o}),s]}),_=({disabled:e=!1,id:o,label:t,labelColor:i="inherit",labelVariant:s="p1",name:g,onBlur:x,onChange:b,size:d="medium",value:a=!1,dataPrefix:f="checkbox",displayMode:c=!1,dataTestId:y})=>{const k=v(m,s)?m[s]:s;return r.jsx($,{"data-testid":y,children:r.jsxs(L,{className:p("check",u[d],c&&"displayMode",a&&"selected",e&&"disabled"),color:c?n.colors.primary[400]:e?n.colors.neutral[700]:n.colors.neutral[100],dataPrefix:f,selected:a,children:[r.jsx(R,{checked:w(a)?!1:a,className:p(u[d],e&&"disabled"),disabled:e,id:o,name:g,onBlur:x,onChange:b,type:"checkbox"}),r.jsx(E,{size:"16"}),r.jsx(j,{as:"label",color:e?"neutral.700":c?"neutral.800":C[i],htmlFor:o,variant:k,children:t})]})})};export{_ as C,z as S,S as a};
67
68//# debugId=9a154db4-11cf-5203-8636-bcc5c39fd0df

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.