ingred-ui 25.12.0 → 25.12.1

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.es.js CHANGED
@@ -20,16 +20,13 @@ import*as e from"react";import t,{forwardRef as n,useState as r,useRef as i,useE
20
20
  ${Q};
21
21
  ${({theme:e,gap:t})=>t&&`gap: ${e.spacing*t}px`};
22
22
  `,K=y.div`
23
- border-top: ${({theme:e})=>`1px solid ${e.palette.divider}`};
23
+ border-bottom: ${({theme:e})=>`1px solid ${e.palette.gray.main}`};
24
24
  `,ee=y(q)`
25
- background-color: ${({disabled:e,theme:t})=>t.palette.gray.light};
25
+ background-color: ${({theme:e})=>e.palette.gray.highlight};
26
26
  color: ${({disabled:e,theme:t})=>e?t.palette.text.disabled:"auto"};
27
27
  cursor: ${({disabled:e})=>e?"not-allowed":"pointer"};
28
- pointer-events: ${({disabled:e})=>e?"none":"auto"};
28
+
29
29
  justify-content: space-between;
30
- transition:
31
- background-color 0.3s,
32
- border-top 0.3s;
33
30
  `,te=y.div`
34
31
  padding: ${({theme:e})=>e.spacing}px
35
32
  ${({theme:e})=>2*e.spacing}px;
@@ -54,7 +51,7 @@ import*as e from"react";import t,{forwardRef as n,useState as r,useRef as i,useE
54
51
  overflow: ${({overflow:e})=>e};
55
52
  transition: 0.3s all;
56
53
  background-color: ${({theme:e})=>e.palette.white};
57
- `,oe=n((function(e,n){var{title:a,expanded:l=!1,disabled:s=!1,onChange:c,children:d}=e,u=$(e,["title","expanded","disabled","onChange","children"]);const p=j(),[m,h]=r(l),[g,f]=r("0px"),[b,v]=r("hidden"),y=i(null),x=e=>{var t,n,r,i;e?f(`${null!==(n=null===(t=y.current)||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0}px`):(f(`${null!==(i=null===(r=y.current)||void 0===r?void 0:r.scrollHeight)&&void 0!==i?i:0}px`),v("hidden"),setTimeout((()=>f("0px")),100))},w=(e,t)=>{h(t),x(t),c&&c(e,t)};return o((()=>{h(l),x(l)}),[l]),t.createElement(K,Object.assign({ref:n},u),t.createElement(ee,{display:"flex",tabIndex:s?-1:0,role:"button","aria-expanded":m,"aria-controls":`accordion-content-${a}`,expanded:m,disabled:s,onClick:e=>{w(e,!m)},onKeyDown:e=>{"Enter"===e.key&&w(e,!m)}},t.createElement(te,null,a),t.createElement(re,null,t.createElement(ne,{expanded:m},t.createElement(U,{name:"arrow_bottom",size:"md",color:s?p.palette.text.disabled:"black"})))),t.createElement(ie,{ref:y,height:g,overflow:b,onTransitionEnd:()=>{m&&(f("auto"),v("visible"))}},d))})),ae=y.p`
54
+ `,oe=n((function(e,n){var{title:a,expanded:l=!1,disabled:s=!1,onChange:c,children:d}=e,u=$(e,["title","expanded","disabled","onChange","children"]);const p=j(),[m,h]=r(l),[g,f]=r("0px"),[b,v]=r("hidden"),y=i(null),x=e=>{var t,n,r,i;e?f(`${null!==(n=null===(t=y.current)||void 0===t?void 0:t.scrollHeight)&&void 0!==n?n:0}px`):(f(`${null!==(i=null===(r=y.current)||void 0===r?void 0:r.scrollHeight)&&void 0!==i?i:0}px`),v("hidden"),setTimeout((()=>f("0px")),100))},w=(e,t)=>{h(t),x(t),c&&c(e,t)};return o((()=>{h(l),x(l)}),[l]),t.createElement(K,Object.assign({ref:n},u),t.createElement(ee,{display:"flex",tabIndex:s?-1:0,role:"button","aria-expanded":m,"aria-disabled":s,"aria-controls":`accordion-content-${a}`,expanded:m,disabled:s,onClick:e=>{s||w(e,!m)},onKeyDown:e=>{s||"Enter"===e.key&&w(e,!m)}},t.createElement(te,null,a),t.createElement(re,null,t.createElement(ne,{expanded:m},t.createElement(U,{name:"arrow_bottom",size:"md",color:s?p.palette.text.disabled:"black"})))),t.createElement(ie,{ref:y,height:g,overflow:b,onTransitionEnd:()=>{m&&(f("auto"),v("visible"))}},d))})),ae=y.p`
58
55
  color: ${({color:e})=>e};
59
56
  text-align: ${({align:e})=>e};
60
57
  font-size: ${({fontSize:e})=>e};
@@ -2260,6 +2257,10 @@ object-assign
2260
2257
  }
2261
2258
  `,kw=y.div`
2262
2259
  position: relative;
2260
+ display: flex;
2261
+ flex-direction: column;
2262
+ justify-content: center;
2263
+ gap: 4px;
2263
2264
  box-sizing: border-box;
2264
2265
  padding: 8px ${({isSmallLayout:e})=>e?6:10}px;
2265
2266
  height: 100%;
@@ -2345,10 +2346,6 @@ object-assign
2345
2346
  font-size: 13px;
2346
2347
  line-height: 16px;
2347
2348
  color: ${({theme:e})=>e.palette.black};
2348
-
2349
- &:not(:last-child) {
2350
- margin-bottom: 4px;
2351
- }
2352
2349
  `,$w=y.button`
2353
2350
  padding: 0;
2354
2351
  border: 0;
@@ -2698,7 +2695,7 @@ object-assign
2698
2695
  `,UC=y(XC)`
2699
2696
  border-bottom: 1px solid ${({theme:e})=>e.palette.divider};
2700
2697
  `,QC=y(oe)`
2701
- border-top: none;
2698
+ border-bottom: none;
2702
2699
  `,qC=y.div`
2703
2700
  padding-left: ${({theme:e})=>e.spacing/2}px;
2704
2701
  `,KC=({children:e,disableCheckbox:n=!1,item:r,onAdd:i,onRemove:o})=>{var a;return t.createElement(q,{display:"flex",justifyContent:"space-between"},r.items||n?e:t.createElement(Rh,{checked:null!==(a=null==r?void 0:r.selected)&&void 0!==a&&a,onClick:()=>{r.selected?null==o||o(r):null==i||i(r)}},e))},eE=({disableCheckbox:e,items:n,onAdd:r,onRemove:i})=>t.createElement(YC,null,n.map(((o,a)=>t.createElement(t.Fragment,null,o.items?t.createElement(UC,{key:o.id},t.createElement(QC,{title:t.createElement(qC,null,t.createElement(KC,{item:o,onAdd:r,onRemove:i},o.content))},t.createElement(eE,{disableCheckbox:e,items:o.items,onAdd:r,onRemove:i}))):t.createElement(JC,{key:o.id,isLastIndex:a+1===n.length},t.createElement(KC,{disableCheckbox:e,item:o,onAdd:r,onRemove:i},o.content)))))),tE=y.div`