@apollion-dsi/core 4.6.0 → 4.6.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/lib/chunks/{chunk-Y36YHL7V.esm.js → chunk-3F7XUWM6.esm.js} +1 -1
- package/lib/chunks/{chunk-PDLC7ADP.esm.js → chunk-3N7IOPDZ.esm.js} +1 -1
- package/lib/chunks/{chunk-COECHEDM.esm.js → chunk-4XKES7HT.esm.js} +1 -1
- package/lib/chunks/{chunk-XEUQ2ZZ7.esm.js → chunk-6HEVSW2V.esm.js} +1 -1
- package/lib/chunks/{chunk-EET35TCO.esm.js → chunk-7H5K33YA.esm.js} +1 -1
- package/lib/chunks/{chunk-HGISQ7M2.esm.js → chunk-ACPEIYRY.esm.js} +1 -1
- package/lib/chunks/{chunk-JI7MAUMF.esm.js → chunk-ANVHNCG7.esm.js} +1 -1
- package/lib/chunks/{chunk-5JVXGQDO.esm.js → chunk-APNJ4SZY.esm.js} +1 -1
- package/lib/chunks/{chunk-3L2A6S7Z.esm.js → chunk-BNA54JV5.esm.js} +1 -1
- package/lib/chunks/{chunk-V4PJ6JMX.esm.js → chunk-BYFCN2I6.esm.js} +1 -1
- package/lib/chunks/chunk-C6KU5XH3.esm.js +1 -0
- package/lib/chunks/{chunk-JCTTBIBO.esm.js → chunk-CIAEV5IC.esm.js} +1 -1
- package/lib/chunks/{chunk-NVAJGI72.esm.js → chunk-DZUMW2QT.esm.js} +1 -1
- package/lib/chunks/{chunk-SOQAII4Z.esm.js → chunk-E47VKU6R.esm.js} +1 -1
- package/lib/chunks/{chunk-JSUB6SAI.esm.js → chunk-EDU7LFTY.esm.js} +1 -1
- package/lib/chunks/{chunk-3T2YWTST.esm.js → chunk-EOQWACJO.esm.js} +1 -1
- package/lib/chunks/{chunk-M4RSCRNV.esm.js → chunk-FMGHKAQQ.esm.js} +1 -1
- package/lib/chunks/{chunk-3GNAZ6RE.esm.js → chunk-G2UHUIV7.esm.js} +1 -1
- package/lib/chunks/{chunk-BRASYKXY.esm.js → chunk-IVA2KDAU.esm.js} +1 -1
- package/lib/chunks/chunk-J3MA4NCQ.esm.js +1 -0
- package/lib/chunks/{chunk-I2AN2PFZ.esm.js → chunk-JBAUV3DU.esm.js} +1 -1
- package/lib/chunks/{chunk-3XU6CXMN.esm.js → chunk-JS7PKUSY.esm.js} +1 -1
- package/lib/chunks/{chunk-M5LWC7U4.esm.js → chunk-JUUAQF4L.esm.js} +1 -1
- package/lib/chunks/{chunk-JH5RXKZ2.esm.js → chunk-KF7426NA.esm.js} +1 -1
- package/lib/chunks/{chunk-R2GYRTGM.esm.js → chunk-KQZ6PQVH.esm.js} +1 -1
- package/lib/chunks/{chunk-FAGNUJE5.esm.js → chunk-LEU7COZC.esm.js} +1 -1
- package/lib/chunks/chunk-LVYAA5GC.esm.js +4 -0
- package/lib/chunks/{chunk-I3GVQWLB.esm.js → chunk-M2P5NIFZ.esm.js} +1 -1
- package/lib/chunks/{chunk-BT6SPTZZ.esm.js → chunk-M5DJ7NU2.esm.js} +1 -1
- package/lib/chunks/{chunk-5XE7FG43.esm.js → chunk-MKX4CXSC.esm.js} +1 -1
- package/lib/chunks/{chunk-MSYUZESJ.esm.js → chunk-MYLMS6E4.esm.js} +1 -1
- package/lib/chunks/{chunk-W25URYOV.esm.js → chunk-NR66O27J.esm.js} +1 -1
- package/lib/chunks/{chunk-5NJB5W4I.esm.js → chunk-NW3CCFKF.esm.js} +1 -1
- package/lib/chunks/{chunk-NQHACZA2.esm.js → chunk-NXXXQ33B.esm.js} +1 -1
- package/lib/chunks/{chunk-YRGWNW2J.esm.js → chunk-PDTS2SFX.esm.js} +1 -1
- package/lib/chunks/{chunk-3B32JQDS.esm.js → chunk-Q274BWW4.esm.js} +1 -1
- package/lib/chunks/{chunk-SB25H273.esm.js → chunk-RV5VLCTJ.esm.js} +1 -1
- package/lib/chunks/{chunk-YLANWXT5.esm.js → chunk-SPHG6PHV.esm.js} +1 -1
- package/lib/chunks/{chunk-T5V5Q4OQ.esm.js → chunk-T2JFKOAF.esm.js} +1 -1
- package/lib/chunks/{chunk-Y23HEGMY.esm.js → chunk-TEWWLITV.esm.js} +1 -1
- package/lib/chunks/{chunk-34SWMWBN.esm.js → chunk-UPEZA4T4.esm.js} +1 -1
- package/lib/chunks/{chunk-W7YMNIET.esm.js → chunk-V6ELLROX.esm.js} +1 -1
- package/lib/chunks/{chunk-WPALIQUB.esm.js → chunk-V6G5244N.esm.js} +1 -1
- package/lib/chunks/{chunk-WS5DFCVD.esm.js → chunk-V6HL36TH.esm.js} +1 -1
- package/lib/chunks/{chunk-LTJCDJQK.esm.js → chunk-WR2YSY3T.esm.js} +1 -1
- package/lib/chunks/{chunk-Q7ARRT27.esm.js → chunk-XYOFBUGS.esm.js} +1 -1
- package/lib/chunks/{chunk-PQKEXTYU.esm.js → chunk-Y5BV2BWO.esm.js} +1 -1
- package/lib/chunks/{chunk-BI3NEN6Y.esm.js → chunk-YGQZR562.esm.js} +1 -1
- package/lib/containers/Base/index.esm.js +1 -1
- package/lib/containers/Card/index.esm.js +1 -1
- package/lib/containers/Content/index.esm.js +1 -1
- package/lib/containers/Flex/index.esm.js +1 -1
- package/lib/containers/Grid/index.esm.js +1 -1
- package/lib/containers/Notification/index.esm.js +1 -1
- package/lib/containers/Paper/index.esm.js +1 -1
- package/lib/containers/Scroll/index.esm.js +1 -1
- package/lib/containers/index.esm.js +1 -1
- package/lib/dataDisplay/DataTable/index.esm.js +1 -1
- package/lib/dataDisplay/DescriptionList/index.esm.js +1 -1
- package/lib/dataDisplay/Table/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableEmpty/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableFooter/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TableHeaderCheckboxCell/index.esm.js +1 -1
- package/lib/dataDisplay/Table/TablePagination/index.esm.js +1 -1
- package/lib/dataDisplay/Table/index.esm.js +1 -1
- package/lib/dataDisplay/Tabs/index.esm.js +1 -1
- package/lib/dataDisplay/index.esm.js +1 -1
- package/lib/elements/Avatar/index.esm.js +1 -1
- package/lib/elements/Button/index.esm.js +1 -1
- package/lib/elements/Dropdown/index.esm.js +1 -1
- package/lib/elements/Icon/index.esm.js +1 -1
- package/lib/elements/IconButton/index.esm.js +1 -1
- package/lib/elements/Image/index.esm.js +1 -1
- package/lib/elements/Label/index.esm.js +1 -1
- package/lib/elements/Link/index.esm.js +1 -1
- package/lib/elements/List/index.esm.js +1 -1
- package/lib/elements/Modal/index.esm.js +1 -1
- package/lib/elements/Popover/index.esm.js +1 -1
- package/lib/elements/ProgressBar/index.esm.js +1 -1
- package/lib/elements/Spinner/index.esm.js +1 -1
- package/lib/elements/Svg/Svg.style.d.ts +9 -3
- package/lib/elements/Svg/index.esm.js +1 -1
- package/lib/elements/Text/index.esm.js +1 -1
- package/lib/elements/Tooltip/index.esm.js +1 -1
- package/lib/elements/index.esm.js +1 -1
- package/lib/factory/System/System.d.ts +12 -0
- package/lib/factory/System/index.esm.js +1 -1
- package/lib/factory/index.esm.js +1 -1
- package/lib/form/Checkbox/index.esm.js +1 -1
- package/lib/form/Field/index.esm.js +1 -1
- package/lib/form/FieldGroup/index.esm.js +1 -1
- package/lib/form/Form/index.esm.js +1 -1
- package/lib/form/Input/index.esm.js +1 -1
- package/lib/form/InputCurrency/index.esm.js +1 -1
- package/lib/form/InputDate/index.esm.js +1 -1
- package/lib/form/InputMask/index.esm.js +1 -1
- package/lib/form/InputRange/index.esm.js +1 -1
- package/lib/form/Radio/index.esm.js +1 -1
- package/lib/form/Switch/index.esm.js +1 -1
- package/lib/form/TextArea/index.esm.js +1 -1
- package/lib/form/UploadCard/index.esm.js +1 -1
- package/lib/form/index.esm.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/layouts/DefaultLayout/index.esm.js +1 -1
- package/lib/layouts/SideBarLayout/index.esm.js +1 -1
- package/lib/layouts/index.esm.js +1 -1
- package/lib/scenario/RectComponent/index.esm.js +1 -1
- package/lib/scenario/index.esm.js +1 -1
- package/lib/skeleton/ComposedSkeleton/index.esm.js +1 -1
- package/lib/skeleton/TextPreset/index.esm.js +1 -1
- package/lib/skeleton/index.esm.js +1 -1
- package/lib/themes/ThemeProvider/index.esm.js +1 -1
- package/lib/themes/index.esm.js +1 -1
- package/package.json +2 -2
- package/lib/chunks/chunk-4CULNDXB.esm.js +0 -1
- package/lib/chunks/chunk-M42E74U7.esm.js +0 -7
- package/lib/chunks/chunk-WWSSKMIE.esm.js +0 -11
package/lib/themes/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,d as I,e as J}from"../chunks/chunk-
|
|
1
|
+
import{c as H,d as I,e as J}from"../chunks/chunk-C6KU5XH3.esm.js";import{a as B}from"../chunks/chunk-T6ZB656A.esm.js";import{a as C}from"../chunks/chunk-4KIBOLH7.esm.js";import{a as D,b as E}from"../chunks/chunk-TG5BCBO4.esm.js";import{a as F,b as G}from"../chunks/chunk-OFRYNRTE.esm.js";import{a as o}from"../chunks/chunk-3DUB5C4Z.esm.js";import{a as p,b as q,c as r}from"../chunks/chunk-KT6QQ3UJ.esm.js";import{a as s}from"../chunks/chunk-ZOKGGTX5.esm.js";import{a as t,b as u}from"../chunks/chunk-IT4J7I6H.esm.js";import{a as y,b as z}from"../chunks/chunk-RU6QRCR7.esm.js";import{a as v,b as w,c as x}from"../chunks/chunk-JOKVE3IX.esm.js";import"../chunks/chunk-CWRWYU7D.esm.js";import{a as A}from"../chunks/chunk-3EOSES4S.esm.js";import{a as n}from"../chunks/chunk-NQBO2D7L.esm.js";import"../chunks/chunk-FPQPDMPB.esm.js";import"../chunks/chunk-TDVKGVGD.esm.js";import"../chunks/chunk-NXXXQ33B.esm.js";import"../chunks/chunk-LVYAA5GC.esm.js";import"../chunks/chunk-M2P5NIFZ.esm.js";import"../chunks/chunk-PDTS2SFX.esm.js";import"../chunks/chunk-2ROOI4B2.esm.js";import"../chunks/chunk-NSZRKCOX.esm.js";import"../chunks/chunk-KQQ7V7VG.esm.js";import"../chunks/chunk-NDIYF5SX.esm.js";import"../chunks/chunk-3V3ZEGHO.esm.js";import"../chunks/chunk-A3OJEVGQ.esm.js";import"../chunks/chunk-KR2X2UQG.esm.js";import"../chunks/chunk-BE2JDTVA.esm.js";import"../chunks/chunk-UI6CJPP3.esm.js";import"../chunks/chunk-2FQC32AA.esm.js";import"../chunks/chunk-7UIH7PNC.esm.js";import"../chunks/chunk-GK6CPN6F.esm.js";import"../chunks/chunk-SPHHNZVP.esm.js";import"../chunks/chunk-3QSPHURU.esm.js";import"../chunks/chunk-IWMEDT6U.esm.js";import"../chunks/chunk-EDU7LFTY.esm.js";import"../chunks/chunk-7H5K33YA.esm.js";import"../chunks/chunk-MYLMS6E4.esm.js";import"../chunks/chunk-2UZJN6MC.esm.js";import"../chunks/chunk-M5DJ7NU2.esm.js";import"../chunks/chunk-3F7XUWM6.esm.js";import"../chunks/chunk-5OKRFXLL.esm.js";import"../chunks/chunk-J3MA4NCQ.esm.js";import"../chunks/chunk-X2LHYMPI.esm.js";import"../chunks/chunk-WXS2V6GM.esm.js";import"../chunks/chunk-752Z7BQF.esm.js";import"../chunks/chunk-BNB3KNKE.esm.js";import"../chunks/chunk-4MBWRDIJ.esm.js";import"../chunks/chunk-A6Z2M2XU.esm.js";import"../chunks/chunk-U27SLYIV.esm.js";import"../chunks/chunk-JB7G6UGV.esm.js";import"../chunks/chunk-GP7NECT4.esm.js";import"../chunks/chunk-H3I27KWU.esm.js";import{a as l,b as m}from"../chunks/chunk-ZQDA6U5L.esm.js";import{a,b,c,d,e,f,g,h,i,j,k}from"../chunks/chunk-LL6B4Q4R.esm.js";import"../chunks/chunk-7WVLGVVA.esm.js";import"../chunks/chunk-XJ7EBVG3.esm.js";import"../chunks/chunk-G5Z7USXC.esm.js";import"../chunks/chunk-APD22JEO.esm.js";import"../chunks/chunk-GZONWSRB.esm.js";export{J as ApollionProvider,w as DEFAULT_DIMENSION,v as DIMENSION_MULTIPLIERS,B as GlobalStyle,a as HextoRgb,G as SurfaceProvider,n as animation,p as breakpointsValues,r as createBreakpoints,m as createColors,s as createDeepTheme,u as createDeth,z as createFont,A as createFoundation,C as createSemantic,E as createSpacing,H as createTheme,o as defaultInputBorder,q as defaultInputBreakpoints,l as defaultInputColors,y as defaultInputFont,D as defaultInputSpacing,d as getColor,e as getContrastColor,x as getMultiplierForDimension,b as getOppositeColor,F as invertForSurface,t as levelValues,j as mountActionColors,i as mountBaseColors,g as mountGreyscaleColors,k as mountMainColors,h as mountNeutralColors,f as mountSingleColor,c as readableColor,I as useApollionTheme};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apollion-dsi/core",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.1",
|
|
4
4
|
"description": "Apollion Design System — Component Library",
|
|
5
5
|
"homepage": "https://github.com/apollion-ds/apollion",
|
|
6
6
|
"license": "MIT",
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
"zod": "4.4.3"
|
|
329
329
|
},
|
|
330
330
|
"optionalDependencies": {
|
|
331
|
-
"@apollion-dsi/tokens": "4.6.
|
|
331
|
+
"@apollion-dsi/tokens": "4.6.1"
|
|
332
332
|
},
|
|
333
333
|
"devDependencies": {
|
|
334
334
|
"@apollion-dsi/eslint-config": "0.8.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as A}from"./chunk-X2LHYMPI.esm.js";import{a as g,b as x}from"./chunk-WXS2V6GM.esm.js";import{a as u,b as F}from"./chunk-752Z7BQF.esm.js";import{a as K,b as P}from"./chunk-BNB3KNKE.esm.js";import{a as S,b as v}from"./chunk-4MBWRDIJ.esm.js";import{a as n,b as p}from"./chunk-A6Z2M2XU.esm.js";import{a,d as s}from"./chunk-U27SLYIV.esm.js";import{a as l,b as m}from"./chunk-JB7G6UGV.esm.js";import{a as y,b as c}from"./chunk-GP7NECT4.esm.js";import{a as f,b as d}from"./chunk-H3I27KWU.esm.js";import{g as b}from"./chunk-APD22JEO.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import C from"@emotion/is-prop-valid";var e=C;var i=null,h=r(()=>(i===null&&(i=new Set([...y,...n,...S,...a,...l,...f,...u,...g,...K,"variant","active"])),i),"getCustomPropNames"),w=r(o=>!h().has(o)&&e(o),"shouldForwardProp"),E=r((o=>b(o).withConfig({shouldForwardProp:w})),"styled"),t=r(o=>E(o)(c({position:"relative"}),x,v,s,p,F,m,d,P,A),"buildElement"),O={a:t("a"),div:t("div"),span:t("span"),input:t("input"),button:t("button")};export{e as a,E as b,O as c};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{b as i}from"./chunk-4CULNDXB.esm.js";import{a as o}from"./chunk-GZONWSRB.esm.js";var v=o(({size:t,dimensions:r})=>{if(t)return{width:t,height:t};if(r){let{width:e,height:f,ratio:l}=r;if(f)return{width:e,height:f};if(l)return typeof e=="number"?{width:e,height:e/l}:e.endsWith("px")?{width:e,height:`calc(${e} / ${l})`}:{width:e,height:"auto"}}return{width:"1em",height:"1em"}},"getComputedSize"),d=o(t=>`fill: ${t.colors.getColor(t.colors.danger)};`,"getFillProps"),g=i("svg")`
|
|
2
|
-
${t=>({...v(t)})}
|
|
3
|
-
${({error:t,theme:r})=>t&&d(r)}
|
|
4
|
-
`,D=o(t=>`transform: ${t};`,"getTransformProps"),m=i("g")`
|
|
5
|
-
fill: ${({fill:t,theme:r})=>t||r.colors.getColor(r.colors.main)};
|
|
6
|
-
${({transform:t})=>t&&D(t)}
|
|
7
|
-
`,u=i("path")``;import a from"react";var s=o(({transform:t,fill:r,paths:e,fillAll:f,error:l,viewBox:h,title:p,...S})=>{let c=o(()=>e&&e.map(y=>{let n=y;return f&&delete n.fill,a.createElement(u,{...n,key:n.d,fill:n.fill})}),"RenderPaths");return a.createElement(g,{viewBox:h,error:l,...S},p&&a.createElement("title",null,p),a.createElement(m,{transform:t,fill:r},c()))},"SvgComponent");s.displayName="Svg";export{g as a,m as b,u as c,s as d};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{a as Lo}from"./chunk-4KIBOLH7.esm.js";import{a as To,b as Eo}from"./chunk-TG5BCBO4.esm.js";import{a as Ao}from"./chunk-OFRYNRTE.esm.js";import{a as ho}from"./chunk-3DUB5C4Z.esm.js";import{b as yo,c as So}from"./chunk-KT6QQ3UJ.esm.js";import{a as No}from"./chunk-ZOKGGTX5.esm.js";import{b as vo}from"./chunk-IT4J7I6H.esm.js";import{a as Po,b as bo}from"./chunk-RU6QRCR7.esm.js";import{b as ko}from"./chunk-JOKVE3IX.esm.js";import{a as wo}from"./chunk-3EOSES4S.esm.js";import{a as Io}from"./chunk-NQBO2D7L.esm.js";import{a as Co}from"./chunk-TDVKGVGD.esm.js";import{c as Ro}from"./chunk-NQHACZA2.esm.js";import{d as Bo}from"./chunk-M42E74U7.esm.js";import{a as Mo,b as _o}from"./chunk-I3GVQWLB.esm.js";import{a as xo}from"./chunk-UI6CJPP3.esm.js";import{e as $}from"./chunk-7UIH7PNC.esm.js";import{b as Fo}from"./chunk-GK6CPN6F.esm.js";import{a as Do}from"./chunk-IWMEDT6U.esm.js";import{a as uo,d as Y}from"./chunk-JSUB6SAI.esm.js";import{a as go}from"./chunk-EET35TCO.esm.js";import{a as B}from"./chunk-BT6SPTZZ.esm.js";import{a as A,c as w,d as F}from"./chunk-Y36YHL7V.esm.js";import{a as ao,b as po}from"./chunk-4CULNDXB.esm.js";import{a as no,b as io}from"./chunk-ZQDA6U5L.esm.js";import{d as N}from"./chunk-LL6B4Q4R.esm.js";import{a as oo,c as eo,k as to,l as ro}from"./chunk-XJ7EBVG3.esm.js";import{b as V,c as S}from"./chunk-G5Z7USXC.esm.js";import{b as mo,c as co,d as so,e as lo,f as fo,g as u}from"./chunk-APD22JEO.esm.js";import{a as r}from"./chunk-GZONWSRB.esm.js";import f from"react";import Wo from"deepmerge";var z=Wo;function O(o={}){let{colors:e,breakpoints:t,spacing:n,border:a,font:i,dimension:m}=z({colors:no,spacing:To,font:Po,border:ho,breakpoints:yo,dimension:ko},o),c=io(e),s=Eo(n,m),p=bo(i,m),C=Lo({colors:c,spacing:s});return{font:p,border:a,animation:Io,colors:c,breakpoints:So(t),spacing:s,depth:vo(c),deep:No(c),semantic:C,foundation:wo(C)}}r(O,"createTheme");import l,{useEffect as Ie,useState as he}from"react";import{createPortal as ye}from"react-dom";var L=u(w).withConfig({displayName:"Iconstyle__IconStyle",componentId:"sc-l15crp-0"})(({theme:o,size:e})=>({fontSize:e?o.spacing(e):"inherit",display:"inline-block",lineHeight:0,"& svg":{stroke:"currentColor",fill:"currentColor",strokeWidth:0,"& g":{fill:"currentColor"}}}));import P,{forwardRef as q,useEffect as pe,useState as de}from"react";function Vo(o,e){if(typeof window!="undefined")try{window.fetch(o).then(t=>t.text()).then(t=>to(t,"svg")).then(ro).then(e)}catch(t){oo.warn(`[ICON] Failed to load icon from: ${o}`)}}r(Vo,"getIconFromUrl");var ee=r(({cover:o,height:e,width:t})=>o&&{width:t!=null?t:"100%",height:e!=null?e:"100%",objectFit:"cover"},"imageCover"),Yo=r(o=>o?eo(o):"fit-content","getSizeValue"),$o=po("img")`
|
|
2
|
-
display: block;
|
|
3
|
-
width: ${({full:o,width:e})=>o?"100%":Yo(e)};
|
|
4
|
-
height: ${({height:o})=>Yo(o)};
|
|
5
|
-
${ee};
|
|
6
|
-
|
|
7
|
-
&[src=''] {
|
|
8
|
-
visibility: hidden;
|
|
9
|
-
position: absolute;
|
|
10
|
-
}
|
|
11
|
-
`;import I,{forwardRef as ce,useState as se}from"react";var zo=u.rect.withConfig({displayName:"RectComponentstyle__RectStyle",componentId:"sc-ofzrwt-0"})(["stroke:",";fill:",";"],({theme:o})=>N(o.colors.neutral[20]),({theme:o})=>N(o.colors.neutral[5]));import te from"react";function v(o){return te.createElement(zo,{...o})}r(v,"RectComponent");v.displayName="Rect";import re from"react";import Oo,{BulletList as G,Code as H,Facebook as j,List as U}from"react-content-loader";var Q=Oo;function k({children:o,...e}){let{colors:t}=fo();return re.createElement(Q,{...e,viewBox:`0 0 ${e.width} ${e.height}`,backgroundColor:N(e.backgroundColor||t.neutral[10]),foregroundColor:N(e.foregroundColor||t.neutral[30])},o)}r(k,"ComposedSkeletonComponent");k.displayName="Skeleton";var ne=U,ie=G,ae=H,me=j;import Go from"react";function K({width:o,height:e=13}){return Go.createElement(k,{width:o,height:e},Go.createElement(v,{x:0,y:0,width:o,height:e}))}r(K,"TextPresetComponent");K.displayName="TextPreset";var M=ce(({src:o,...e},t)=>I.createElement($o,{src:o,ref:t,...e})),le=r(({width:o=60,height:e=60})=>I.createElement(k,{height:e,width:o},I.createElement(v,{width:o,height:e})),"ImageDefaultContentLoader");function fe(o){return new Promise((e,t)=>{let n=new Image;n.onload=e,n.onerror=t,n.src=o})}r(fe,"loadImage");var Ho=r(({src:o,fallback:e,threshold:t,...n})=>{let[a,i]=se(),[m]=xo({threshold:t},()=>{fe(o).then(()=>i(o)).catch(()=>console.warn(`[Failed]: error on loading image: ${o}`))}),c=typeof a=="undefined";return I.createElement(I.Fragment,null,c?e||I.createElement(le,{...n}):null,I.createElement(M,{src:a||"",ref:m,...n}))},"ImageLazy");Ho.displayName="ImageLazy";var _=r((o,e)=>P.cloneElement(o,e),"createIcon"),ue=q(({icon:o,name:e,iconProps:t,svgProps:n,children:a,...i},m)=>{let c=r(()=>{let s=null;return a?s=_(a,n):e?s=_(Co[e],n):o?s=_(o,n):t&&(s=Bo(n)),s},"getIcon");return P.createElement(L,{...i,ref:m},c())}),ge=q(({title:o,src:e,svgProps:t,...n},a)=>{let[i,m]=de(()=>P.createElement(M,{height:"1em",width:"1em",alt:o}));return pe(()=>{Vo(e,c=>{m(_(c,t))})},[e]),P.createElement(L,{...n,ref:a},i)}),R=q(({title:o,...e},t)=>{let n={...e.iconProps||{},title:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",height:"1em",width:"1em"};return e.src?P.createElement(ge,{...e,svgProps:n,ref:t}):P.createElement(ue,{...e,svgProps:n,ref:t})});R.displayName="Icon";var Ce=co(["0%{width:0;}100%{width:100%;}"]),J=u(B).withConfig({displayName:"Notificationstyle__NotificationProgress",componentId:"sc-6lckl1-0"})(["--time:15;width:0;height:0.25rem;background-color:var(--baseColor);animation:"," calc(var(--time,15) * 1s) normal forwards;"],Ce),jo=u(B).withConfig({displayName:"Notificationstyle__ProgressContainer",componentId:"sc-6lckl1-1"})(["position:absolute;top:0.25rem;left:0.5rem;right:0.5rem;"]);function xe({variant:o,theme:e}){let t=e.colors[o];return mo(["--baseColor:",";--lightColor:",";--darkColor:",";--activeColor:",";--actionColor:",";position:relative;background-color:var(--lightColor);border-color:var(--baseColor);","{color:var(--darkColor);}& ","{width:intrinsic;color:var(--darkColor);&:hover{background:var(--activeColor);}&:active ","{color:var(--actionColor);}}&:hover ","{animation-play-state:paused;}"],t.base,t.light,t.dark,t.active,t.action,uo,Mo,L,J)}r(xe,"getWrapperStyle");var X=u(F).withConfig({displayName:"Notificationstyle__WrapperNotificationStyle",componentId:"sc-6lckl1-2"})(xe);X.displayName="div";var Uo=u(B).withConfig({displayName:"Notificationstyle__NotificationIconStyle",componentId:"sc-6lckl1-3"})(["color:var(--darkColor);svg{width:2rem;height:2rem;}"]);var Qo=r(({type:o="block",variant:e="primary",visible:t=!0,closable:n=!0,autoClose:a=null,message:i=null,action:m=null,icon:c=null,link:s,onDismiss:p,...C})=>{let{isMobile:h}=$(),d=r(()=>{let y=m;return typeof m=="function"&&(y=m({close:p})),y?l.cloneElement(y,{color:e,alignSelf:"center",justifySelf:"center"}):null},"renderActionButton"),T=r(()=>typeof i=="function"?i({close:p}):typeof i=="string"?l.createElement(Y,{text:i,variant:"p",fontSize:"xs"}):i,"renderMessage");return t?l.createElement(X,{p:"medium",pr:9,round:h?0:"xs",borderWidth:h?"none":"thin",borderStyle:"solid",variant:e,"data-testid":`notification-${o}`,...C},a&&l.createElement(jo,null,l.createElement(J,{round:"micro",style:{"--time":a},onAnimationEnd:p})),l.createElement(go,{contentGap:"medium",opener:c&&l.createElement(Uo,{pt:"xs",alignSelf:"start"},c),closer:d()},C.title&&l.createElement(Y,{text:C.title,variant:"h3",fontSize:"small",fontWeight:"stronger",type:"mobile"}),T(),s&&l.createElement(Ro,{...s,target:"_blank"})),n&&l.createElement(_o,{p:"xs",borderWidth:"none",icon:l.createElement(R,{size:"small",name:"times"}),variant:"linked",onClick:p,alignSelf:"start",position:"absolute",right:"0.5rem",top:"0.5rem"})):null},"BaseNotification"),Se=r(o=>{let{isMobile:e}=$(),[t,n]=he(!1);Ie(()=>{n(!0)},[]);let a=o.pagePosition==="top"?{top:0}:{bottom:0};if(!t||!S)return null;let i=o.visible!==!1;return ye(l.createElement(A,null,i?l.createElement(Qo,{...o,initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-100%",opacity:0},style:{...a,zIndex:1e3,margin:e?0:"1rem",position:"fixed",right:0,left:0}}):null),S)},"PageNotification"),D=r(o=>o.type==="page"?l.createElement(Se,{...o}):l.createElement(Qo,{...o}),"NotificationComponent");D.displayName="Notification";import g,{createContext as Ne,useContext as ve,useEffect as ke,useReducer as Pe,useState as be}from"react";import{createPortal as we}from"react-dom";var Ko=Ne({});function Le(o,{type:e,payload:t}){switch(e){case"ADD":return[t,...o];case"REMOVE":return o.filter(n=>n.id!==t.id);default:return o}}r(Le,"NotificationReducer");var qo=r(o=>{let[e,t]=Pe(Le,[]),n=r(i=>{t({type:"REMOVE",payload:{id:i}})},"removeNotification"),a=r(i=>{if(t({type:"ADD",payload:{id:Do(),...i}}),e.length>=3){let[m]=e.slice(-1);setTimeout(()=>n(m.id),0)}},"showNotification");return g.createElement(Ko.Provider,{value:{notifications:e,removeNotification:n,showNotification:a}},g.createElement(g.Fragment,null,o.children,g.createElement(Ee,null)))},"NotificationsProvider");function Te(){let o=ve(Ko);if(o===void 0)throw new Error("cant use useNotification hook outside of <NotificationsProvider />");return o}r(Te,"useNotification");var Ee=r(()=>{let{notifications:o,removeNotification:e}=Te(),[t,n]=be(!1);return ke(()=>{n(!0)},[]),!t||!S?null:we(g.createElement(w,{style:{position:"fixed",bottom:"1rem",right:"1rem"}},g.createElement(A,null,o.map(({id:a,...i})=>g.createElement(F,{key:a,initial:{x:"100%",opacity:0},animate:{x:0,opacity:1},exit:{scale:0,opacity:0,height:0},style:{minWidth:300,maxWidth:"30vw",zIndex:100}},g.createElement(w,{style:{margin:"0.5rem"}},g.createElement(D,{...i,visible:!0,closable:!0,onDismiss:()=>e(a)})))))),S)},"NotificationGroup");function Ae(o,e){return typeof e=="string"?ao(o):!0}r(Ae,"shouldForwardProp");var Jo="(prefers-color-scheme: dark)";function Fe(){var o,e;return!!((e=(o=V)==null?void 0:o.matchMedia)!=null&&e.call(o,Jo).matches)}r(Fe,"prefersDarkScheme");var Xo=f.createContext(null);function Be(){let o=f.useContext(Xo);if(o===null)throw new Error("useApollionTheme deve ser usado dentro de um <ApollionProvider>.");return o}r(Be,"useApollionTheme");var Me=r(({children:o,theme:e,lightTheme:t,darkTheme:n,useSystemPreference:a=!1,themeMode:i,onThemeModeChange:m,surface:c="positive",dimension:s})=>{let p=i!==void 0,[C,h]=f.useState(()=>a&&Fe()?"dark":"light"),d=p?i:C;f.useEffect(()=>{var E,Z;if(p||!a)return;let x=(Z=(E=V)==null?void 0:E.matchMedia)==null?void 0:Z.call(E,Jo);if(!x)return;h(x.matches?"dark":"light");let b=r(oe=>{h(oe.matches?"dark":"light")},"handleChange");return x.addEventListener("change",b),()=>x.removeEventListener("change",b)},[p,a]);let T=f.useCallback(x=>{let b=x!=null?x:d==="dark"?"light":"dark";p||h(b),m==null||m(b)},[d,p,m]),y=f.useMemo(()=>t&&n?d==="dark"?n:t:t||n||(e!=null?e:O(s!==void 0?{dimension:s}:void 0)),[t,n,e,s,d]),W=f.useMemo(()=>Ao(y,c,d),[y,c,d]),Zo=f.useMemo(()=>({theme:W,themeMode:d,toggleTheme:T}),[W,d,T]);return f.createElement(so,{shouldForwardProp:Ae},f.createElement(Xo.Provider,{value:Zo},f.createElement(lo,{theme:W},f.createElement(Fo,null,f.createElement(qo,null,o)))))},"ApollionProvider");export{L as a,$o as b,O as c,Be as d,Me as e,zo as f,v as g,k as h,ne as i,ie as j,ae as k,me as l,K as m,M as n,Ho as o,R as p,J as q,jo as r,X as s,Uo as t,D as u,qo as v,Te as w,Ee as x};
|