dga-ui-react 1.4.0 → 1.5.0
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/charts/cjs/index.js +5 -5
- package/charts/cjs/index.js.map +1 -1
- package/charts/esm/index.js +5 -5
- package/charts/esm/index.js.map +1 -1
- package/charts/index.d.ts +2 -0
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -617,9 +617,11 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
617
617
|
|
|
618
618
|
.leadIcon {
|
|
619
619
|
margin-inline-end: 4px;
|
|
620
|
+
display: inline-flex;
|
|
620
621
|
}
|
|
621
622
|
.trailIcon {
|
|
622
623
|
margin-inline-start: 4px;
|
|
624
|
+
display: inline-flex;
|
|
623
625
|
}
|
|
624
626
|
`,Gr=n=>{var i,{title:a,description:l,icon:s,type:d="default",state:c="default",effect:p="withShadow",expandableContent:u,actionsButtons:g,selected:h,expanded:A,onChange:f}=n,x=v(n,["title","description","icon","type","state","effect","expandableContent","actionsButtons","selected","expanded","onChange"]);const y=b(),[C,w]=o.useState(!1),[$,k]=o.useState(0),S=o.useRef(null),B=void 0!==A?A:C,E="selectable"===d,N="expandable"===d,z="expandable"===d||"selectable"===d?"all":"none";o.useEffect((()=>{var e;N&&(null===(e=S.current)||void 0===e?void 0:e.clientHeight)&&k(S.current.clientHeight)}),[N,null===(i=S.current)||void 0===i?void 0:i.clientHeight]);return t(Wr,Object.assign({className:m("dgaui dgaui_card"+("disabled"===c?" disabled":"")+(E?" selectable":""),x.className),$theme:y,$pointerEvents:z,$effect:p,$contentHeight:$,$expanded:B,$state:c},x,{tabIndex:0,onClick:e=>{x.onClick&&x.onClick(e),null==f||f(e,!h)},children:[(s||E)&&t("div",{className:"cardHeader",children:[e("div",{className:"iconContainer",children:s}),E&&e("div",{className:"checkboxContainer",onClick:e=>e.stopPropagation(),children:e(vr,{value:h,onChange:f,size:"medium",disabled:"disabled"===c})})]}),a&&e("div",{className:"titleContainer",children:a}),l&&e("div",{className:"descriptionContainer",children:l}),!!g&&g.length>0&&"default"===d&&e("div",{className:"actionsButtonsContainer",onClick:e=>e.stopPropagation(),children:g}),N&&t(r,{children:[e("div",{className:"caretButtonContainer",children:e("img",{src:pr,onClick:()=>{void 0===A&&w((e=>!e))},style:{transition:"all 0.2s",transform:B?"rotateZ(-180deg)":"none"}})}),e("div",{className:"expandableContentContainer",style:{height:B?$:0},children:e("div",{className:"expandableContent",ref:S,style:{visibility:B?"visible":"hidden"},children:u})})]})]}))},Wr=sr.div`
|
|
625
627
|
direction: ${e=>e.$theme.direction};
|
|
@@ -2291,6 +2293,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2291
2293
|
.dgaui_radio {
|
|
2292
2294
|
box-shadow: 0 0 0px 12px #f3f4f6;
|
|
2293
2295
|
background-color: #f3f4f6;
|
|
2296
|
+
border-color: ${e=>e.$customStyle.backgroundColorActive};
|
|
2294
2297
|
}
|
|
2295
2298
|
&:has(input:checked) {
|
|
2296
2299
|
.dgaui_radioDot {
|
|
@@ -2302,6 +2305,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2302
2305
|
&:active {
|
|
2303
2306
|
.dgaui_radio {
|
|
2304
2307
|
background-color: #d2d6db;
|
|
2308
|
+
border-color: ${e=>e.$customStyle.backgroundColorActive};
|
|
2305
2309
|
}
|
|
2306
2310
|
&:has(input:checked) {
|
|
2307
2311
|
&:active {
|
|
@@ -2385,13 +2389,16 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
2385
2389
|
}
|
|
2386
2390
|
|
|
2387
2391
|
&:has(input:checked) {
|
|
2392
|
+
border-color: ${e=>e.$customStyle.backgroundColor};
|
|
2388
2393
|
&:hover {
|
|
2394
|
+
border-color: ${e=>e.$customStyle.backgroundColorHovered};
|
|
2389
2395
|
background-color: #f3f4f6;
|
|
2390
2396
|
.dgaui_radioDot {
|
|
2391
2397
|
background-color: ${e=>e.$customStyle.backgroundColorHovered};
|
|
2392
2398
|
}
|
|
2393
2399
|
}
|
|
2394
2400
|
&:active {
|
|
2401
|
+
border-color: ${e=>e.$customStyle.backgroundColorActive};
|
|
2395
2402
|
background-color: #f3f4f6;
|
|
2396
2403
|
.dgaui_radioDot {
|
|
2397
2404
|
background-color: ${e=>e.$customStyle.backgroundColorActive};
|