@chromatic-com/tetra 3.2.12--canary.50826e8.0 → 3.2.12
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/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -291,6 +291,7 @@
|
|
|
291
291
|
bottom: ${e=>e.type==="user"?-2:-4}px;
|
|
292
292
|
height: ${e=>e.type==="user"?100:70}%;
|
|
293
293
|
width: ${e=>e.type==="user"?100:70}%;
|
|
294
|
+
vertical-align: top;
|
|
294
295
|
|
|
295
296
|
path {
|
|
296
297
|
fill: ${h.slate300};
|
|
@@ -318,7 +319,7 @@
|
|
|
318
319
|
font-size: ${B[16]};
|
|
319
320
|
line-height: ${ge.large}px;
|
|
320
321
|
`}
|
|
321
|
-
`,Ba=({isLoading:e=false,username:t="loading",src:o,size:r="medium",type:n="user",...s})=>{let a=i__namespace.default.createElement(Jp,{
|
|
322
|
+
`,Ba=({isLoading:e=false,username:t="loading",src:o,size:r="medium",type:n="user",...s})=>{let a=i__namespace.default.createElement(Jp,{name:n==="user"?"useralt":"repository",type:n}),l={};return e?(l["aria-busy"]=true,l["aria-label"]="Loading avatar ..."):o?a=i__namespace.default.createElement("img",{src:o,alt:t}):(l["aria-label"]=t,a=i__namespace.default.createElement(ed,{size:r,"aria-hidden":"true"},t.substring(0,1))),i__namespace.default.createElement(Qp,{size:r,isLoading:e,src:o,type:n,...l,...s},a)};var wn=react.css`
|
|
322
323
|
box-sizing: border-box;
|
|
323
324
|
|
|
324
325
|
> * {
|
|
@@ -485,8 +486,8 @@
|
|
|
485
486
|
}
|
|
486
487
|
|
|
487
488
|
&[data-state='open'] {
|
|
488
|
-
background-color: ${({variant:e})=>e==="light"?`hsl(from ${h.
|
|
489
|
-
color: ${({variant:e})=>e==="light"?h.
|
|
489
|
+
background-color: ${({variant:e})=>e==="light"?`hsl(from ${h.blue600} h s l / 0.07)`:`hsl(from ${h.blue400} h s l / 0.07)`};
|
|
490
|
+
color: ${({variant:e})=>e==="light"?h.blue600:h.blue400};
|
|
490
491
|
}
|
|
491
492
|
`,fl=({children:e,variant:t="light"})=>i__namespace.default.createElement(i__namespace.default.Fragment,null,i__namespace.default.createElement(vd,{variant:t},e));var xd=Xe__default.default(Kt__namespace.Content)`
|
|
492
493
|
margin: 0;
|
|
@@ -881,11 +882,11 @@
|
|
|
881
882
|
`,D2=({title:e,description:t,image:o,linkWrapper:r,href:n})=>i__namespace.default.createElement(Bo,{asChild:true},i__namespace.default.createElement(H2,{href:n,LinkWrapper:r},i__namespace.default.createElement(Jt,{paddingX:3,paddingY:3,gap:5},i__namespace.default.createElement(Jt,{gap:.5},i__namespace.default.createElement(je,{as:"div",lineHeightAuto:true,variant:"body14",fontWeight:"bold"},e),i__namespace.default.createElement(je,{as:"div",variant:"body14",color:"slate600"},t)),i__namespace.default.createElement(Z2,{src:o,alt:""})))),Jl=({item:e})=>{var t;return i__namespace.default.createElement(k2,null,(t=e.menu)==null?void 0:t.map((o,r)=>i__namespace.default.createElement(L2,{key:r,bg:(o==null?void 0:o.backgroundColor)||"white",index:r},o.content.map(n=>i__namespace.default.createElement(i.Fragment,{key:n.title},n.type==="separator"&&i__namespace.default.createElement(E2,{index:r},i__namespace.default.createElement(je,{variant:"subheading",color:"slate600"},n.title)),n.type==="link"&&i__namespace.default.createElement(fs,{content:n}),n.type==="card"&&i__namespace.default.createElement(D2,{...n}))))))};var F2=Xe__default.default(Xl,{shouldForwardProp:e=>e!=="theTheme"&&e!=="isActive"})`
|
|
882
883
|
${Ln}
|
|
883
884
|
background-color: ${({isActive:e})=>e&&"rgba(30, 167, 253, 0.07)"};
|
|
884
|
-
color: ${({isActive:e,theTheme:t})=>e?t==="light"?h.blue700:h.
|
|
885
|
+
color: ${({isActive:e,theTheme:t})=>e?t==="light"?h.blue700:h.blue500:t==="light"?h.slate800:h.white};
|
|
885
886
|
|
|
886
887
|
&[data-state='open'] {
|
|
887
|
-
background-color: rgba(30, 167, 253, 0.
|
|
888
|
-
color: ${({theTheme:e})=>e==="light"?h.blue700:h.
|
|
888
|
+
background-color: rgba(30, 167, 253, 0.14);
|
|
889
|
+
color: ${({theTheme:e})=>e==="light"?h.blue700:h.blue500};
|
|
889
890
|
}
|
|
890
891
|
|
|
891
892
|
&[data-state='open'] > .CaretDown {
|
|
@@ -1327,8 +1328,8 @@
|
|
|
1327
1328
|
}
|
|
1328
1329
|
|
|
1329
1330
|
&[data-state='open'] {
|
|
1330
|
-
background-color: ${({variant:e})=>e==="light"?`hsl(from ${h.
|
|
1331
|
-
color: ${({variant:e})=>e==="light"?h.
|
|
1331
|
+
background-color: ${({variant:e})=>e==="light"?`hsl(from ${h.blue600} h s l / 0.07)`:`hsl(from ${h.blue400} h s l / 0.07)`};
|
|
1332
|
+
color: ${({variant:e})=>e==="light"?h.blue600:h.blue400};
|
|
1332
1333
|
}
|
|
1333
1334
|
|
|
1334
1335
|
&[data-state='open'] > .CaretDown {
|
|
@@ -1390,13 +1391,13 @@
|
|
|
1390
1391
|
`};
|
|
1391
1392
|
|
|
1392
1393
|
${e=>e.variant==="positive"&&react.css`
|
|
1393
|
-
color: ${h.
|
|
1394
|
+
color: ${h.green500};
|
|
1394
1395
|
`};
|
|
1395
1396
|
${e=>e.variant==="negative"&&react.css`
|
|
1396
1397
|
color: ${h.orange500};
|
|
1397
1398
|
`};
|
|
1398
1399
|
${e=>e.variant==="warning"&&react.css`
|
|
1399
|
-
color:
|
|
1400
|
+
color: ${h.yellow500};
|
|
1400
1401
|
`};
|
|
1401
1402
|
${e=>e.variant==="neutral"&&react.css`
|
|
1402
1403
|
color: ${h.slate600};
|
|
@@ -1576,7 +1577,7 @@
|
|
|
1576
1577
|
font-size: ${B[12]};
|
|
1577
1578
|
line-height: 14px;
|
|
1578
1579
|
`}
|
|
1579
|
-
color: ${h.
|
|
1580
|
+
color: ${h.slate400};
|
|
1580
1581
|
`,Eg=Xe__default.default.div`
|
|
1581
1582
|
display: flex;
|
|
1582
1583
|
align-items: center;
|