dga-ui-react 1.8.2 → 1.8.3
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/cjs/index.js +7 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3578,7 +3578,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3578
3578
|
margin-inline-end: 0;
|
|
3579
3579
|
}
|
|
3580
3580
|
}
|
|
3581
|
-
`,ui=r=>{var{size:o="large",style:n="primary",rounded:i=!0,onColor:a=!1,selected:l=!1,disabled:s=!1,children:d,leadIcon:c,trailIcon:p}=r,u=v(r,["size","style","rounded","onColor","selected","disabled","children","leadIcon","trailIcon"]);const g=b();return t(gi,Object.assign({$size:o,$theme:g,$rounded:i,$selected:l,className:m("dgaui dgaui_chip"+("neutral"===n?" neutral":"")+(s?" disabled":"")+(a?" onColor":""),u.className),tabIndex:0},u,{children:[c&&e("div",{className:"leadIcon",children:c}),e("div",{children:d}),p&&e("div",{className:"trailIcon",children:p})]}))},gi=sr.div`
|
|
3581
|
+
`,ui=r=>{var{size:o="large",style:n="primary",rounded:i=!0,onColor:a=!1,selected:l=!1,disabled:s=!1,children:d,leadIcon:c,trailIcon:p}=r,u=v(r,["size","style","rounded","onColor","selected","disabled","children","leadIcon","trailIcon"]);const g=b();return t(gi,Object.assign({$size:o,$theme:g,$rounded:i,$selected:l,className:m("dgaui dgaui_chip"+("neutral"===n?" neutral":"")+(s?" disabled":"")+(a?" onColor":"")+(l?" selected":""),u.className),tabIndex:0},u,{children:[c&&e("div",{className:"leadIcon",children:c}),e("div",{children:d}),p&&e("div",{className:"trailIcon",children:p})]}))},gi=sr.div`
|
|
3582
3582
|
direction: ${e=>e.$theme.direction};
|
|
3583
3583
|
height: ${e=>"large"===e.$size?32:"medium"===e.$size?24:20}px;
|
|
3584
3584
|
padding: ${e=>"large"===e.$size?4:3}px 12px;
|
|
@@ -3592,8 +3592,10 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3592
3592
|
border-radius: ${e=>e.$rounded?9999:4}px;
|
|
3593
3593
|
position: relative;
|
|
3594
3594
|
outline: none;
|
|
3595
|
+
|
|
3595
3596
|
&:hover {
|
|
3596
3597
|
background-color: ${e=>e.$theme.palette.primary[200]};
|
|
3598
|
+
color: ${e=>e.$theme.palette.primary[800]};
|
|
3597
3599
|
}
|
|
3598
3600
|
|
|
3599
3601
|
&:focus {
|
|
@@ -3630,6 +3632,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3630
3632
|
|
|
3631
3633
|
&:hover {
|
|
3632
3634
|
background-color: ${e=>e.$theme.palette.neutral[200]};
|
|
3635
|
+
color: ${e=>e.$theme.textColor};
|
|
3633
3636
|
}
|
|
3634
3637
|
&:active {
|
|
3635
3638
|
background-color: ${e=>e.$theme.palette.neutral[300]};
|
|
@@ -3658,6 +3661,9 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDeb
|
|
|
3658
3661
|
color: ${Yr};
|
|
3659
3662
|
}
|
|
3660
3663
|
}
|
|
3664
|
+
|
|
3665
|
+
&.selected {
|
|
3666
|
+
}
|
|
3661
3667
|
`,hi=r=>{var{size:o="large",style:n="Primary-Neutral",onColor:i=!1,selected:a=!1,disabled:l=!1,iconOnly:s=!1,children:d,leadIcon:c}=r,p=v(r,["size","style","onColor","selected","disabled","iconOnly","children","leadIcon"]);const u=b();return t(mi,Object.assign({$size:o,$theme:u,$iconOnly:s,$selected:a,className:m("dgaui dgaui_floatingButton"+("Primary-Brand"===n?" primaryBrand":"")+("Secondary-Solid"===n?" secondarySolid":"")+(l?" disabled":"")+(i?" onColor":""),p.className)},p,{children:[c&&e("div",{className:"leadIcon",children:c}),d&&!s&&e("div",{children:d})]}))},mi=sr.button`
|
|
3662
3668
|
direction: ${e=>e.$theme.direction};
|
|
3663
3669
|
height: ${e=>"large"===e.$size?64:56}px;
|