@vacano/ui 1.15.7 → 1.15.8

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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  </p>
8
8
 
9
9
  <p align="center">
10
- <img src="https://img.shields.io/badge/version-1.15.7-blue" />
10
+ <img src="https://img.shields.io/badge/version-1.15.8-blue" />
11
11
  <a href="https://www.npmjs.com/package/@vacano/ui"><img src="https://img.shields.io/npm/v/@vacano/ui" alt="npm version" /></a>
12
12
  <a href="https://github.com/vacano-house/vacano-ui/blob/master/LICENSE.md"><img src="https://img.shields.io/npm/l/@vacano/ui" alt="license" /></a>
13
13
  </p>
package/dist/index.cjs CHANGED
@@ -1973,7 +1973,7 @@
1973
1973
  color: ${n.COLORS["iron-grey"]};
1974
1974
  margin-top: 8px;
1975
1975
  line-height: 1.5;
1976
- `,Y=C.newClassNameGetter("timeline"),Xa=({className:e,classnames:t,items:o,ref:r,...l})=>i.jsx(Na,{...l,ref:r,className:Y("container",e),children:o.map((a,c)=>{const s=c===o.length-1;return i.jsxs(Ia,{className:Y("item",t==null?void 0:t.item),children:[i.jsxs(Ta,{$last:s,children:[i.jsx(Aa,{className:Y("dot",t==null?void 0:t.dot)}),i.jsx(Pa,{className:Y("line",t==null?void 0:t.line),$last:s})]}),i.jsxs(Ba,{className:Y("content",t==null?void 0:t.content),$last:s,children:[i.jsxs(Ma,{children:[i.jsx(_a,{className:Y("title",t==null?void 0:t.title),children:a.title}),a.actions&&i.jsx(Da,{className:Y("actions",t==null?void 0:t.actions),children:a.actions})]}),a.description&&i.jsx(Fa,{className:Y("description",t==null?void 0:t.description),children:a.description}),a.content&&i.jsx(Ga,{className:Y("body",t==null?void 0:t.body),children:a.content})]})]},c)})}),Rt=u.createContext(null),Pe=3,ct={default:{background:"#374151",text:n.COLORS.white,border:"#374151"},success:{background:n.COLORS.green,text:n.COLORS.white,border:n.COLORS.green},warning:{background:n.COLORS.yellow,text:n.COLORS.white,border:n.COLORS.yellow},danger:{background:n.COLORS.red,text:n.COLORS.white,border:n.COLORS.red}},Ya=(e,t)=>{switch(t.type){case"ADD_TOAST":{const o=t.payload;return e.toasts.length<Pe?{...e,toasts:[...e.toasts,o]}:{...e,queue:[...e.queue,o]}}case"REMOVE_TOAST":{const o=t.payload,r=e.toasts.filter(a=>a.id!==o),l=e.queue[0];return l&&r.length<Pe?{toasts:[...r,l],queue:e.queue.slice(1)}:{...e,toasts:r}}case"SHOW_NEXT_FROM_QUEUE":{const o=e.queue[0];return!o||e.toasts.length>=Pe?e:{toasts:[...e.toasts,o],queue:e.queue.slice(1)}}default:return e}},Ha={toasts:[],queue:[]},Be=e=>ct[e]??ct.default,Ua=d.styled.div`
1976
+ `,Y=C.newClassNameGetter("timeline"),Xa=({className:e,classnames:t,items:o,ref:r,...l})=>i.jsx(Na,{...l,ref:r,className:Y("container",e),children:o.map((a,c)=>{const s=c===o.length-1;return i.jsxs(Ia,{className:Y("item",t==null?void 0:t.item),children:[i.jsxs(Ta,{$last:s,children:[i.jsx(Aa,{className:Y("dot",t==null?void 0:t.dot)}),i.jsx(Pa,{className:Y("line",t==null?void 0:t.line),$last:s})]}),i.jsxs(Ba,{className:Y("content",t==null?void 0:t.content),$last:s,children:[i.jsxs(Ma,{children:[i.jsxs("div",{children:[i.jsx(_a,{className:Y("title",t==null?void 0:t.title),children:a.title}),a.description&&i.jsx(Fa,{className:Y("description",t==null?void 0:t.description),children:a.description})]}),a.actions&&i.jsx(Da,{className:Y("actions",t==null?void 0:t.actions),children:a.actions})]}),a.content&&i.jsx(Ga,{className:Y("body",t==null?void 0:t.body),children:a.content})]})]},c)})}),Rt=u.createContext(null),Pe=3,ct={default:{background:"#374151",text:n.COLORS.white,border:"#374151"},success:{background:n.COLORS.green,text:n.COLORS.white,border:n.COLORS.green},warning:{background:n.COLORS.yellow,text:n.COLORS.white,border:n.COLORS.yellow},danger:{background:n.COLORS.red,text:n.COLORS.white,border:n.COLORS.red}},Ya=(e,t)=>{switch(t.type){case"ADD_TOAST":{const o=t.payload;return e.toasts.length<Pe?{...e,toasts:[...e.toasts,o]}:{...e,queue:[...e.queue,o]}}case"REMOVE_TOAST":{const o=t.payload,r=e.toasts.filter(a=>a.id!==o),l=e.queue[0];return l&&r.length<Pe?{toasts:[...r,l],queue:e.queue.slice(1)}:{...e,toasts:r}}case"SHOW_NEXT_FROM_QUEUE":{const o=e.queue[0];return!o||e.toasts.length>=Pe?e:{toasts:[...e.toasts,o],queue:e.queue.slice(1)}}default:return e}},Ha={toasts:[],queue:[]},Be=e=>ct[e]??ct.default,Ua=d.styled.div`
1977
1977
  position: fixed;
1978
1978
  bottom: 24px;
1979
1979
  left: 24px;