@jenesei-software/jenesei-kit-react 1.3.20 → 1.3.22
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/build/{area-DAgP6K9K.cjs → area-BG04bpxi.cjs} +2 -2
- package/build/{area-DAgP6K9K.cjs.map → area-BG04bpxi.cjs.map} +1 -1
- package/build/{area-CD8KKIM0.js → area-D4BoNEmX.js} +2 -2
- package/build/{area-CD8KKIM0.js.map → area-D4BoNEmX.js.map} +1 -1
- package/build/{area-BLgNLu9A.js → area-occQcGnD.js} +2 -2
- package/build/{area-BLgNLu9A.js.map → area-occQcGnD.js.map} +1 -1
- package/build/area-outside.cjs.js +1 -1
- package/build/area-outside.es.js +1 -1
- package/build/{area-Dup_lUb9.cjs → area-pCo19R2g.cjs} +2 -2
- package/build/{area-Dup_lUb9.cjs.map → area-pCo19R2g.cjs.map} +1 -1
- package/build/area-preview.cjs.js +1 -1
- package/build/area-preview.es.js +1 -1
- package/build/area-scroll.cjs.js +1 -1
- package/build/area-scroll.es.js +2 -2
- package/build/area-skeleton.cjs.js +1 -1
- package/build/area-skeleton.d.ts +6 -1
- package/build/area-skeleton.es.js +2 -3
- package/build/area-skeleton.es.js.map +1 -1
- package/build/area-smooth.cjs.js +1 -1
- package/build/area-smooth.es.js +1 -1
- package/build/{area.styles-DWqSyo49.js → area.styles-BSqCfPE4.js} +2 -2
- package/build/{area.styles-DWqSyo49.js.map → area.styles-BSqCfPE4.js.map} +1 -1
- package/build/area.styles-BuceLNra.cjs +27 -0
- package/build/{area.styles-DQBIvHdz.cjs.map → area.styles-BuceLNra.cjs.map} +1 -1
- package/build/build-info.txt +3 -3
- package/build/{component-D9Fz-_ZH.cjs → component-1kuvOkUa.cjs} +2 -2
- package/build/{component-D9Fz-_ZH.cjs.map → component-1kuvOkUa.cjs.map} +1 -1
- package/build/{component-DhCe6E21.js → component-31qgF6V7.js} +2 -2
- package/build/{component-DhCe6E21.js.map → component-31qgF6V7.js.map} +1 -1
- package/build/{component-GKvpOWlO.cjs → component-5Utdcc2G.cjs} +7 -7
- package/build/{component-GKvpOWlO.cjs.map → component-5Utdcc2G.cjs.map} +1 -1
- package/build/component-BF_RC9Ej.cjs +2 -0
- package/build/{component-IlhRGJHX.cjs.map → component-BF_RC9Ej.cjs.map} +1 -1
- package/build/{component-C-yqkm2n.cjs → component-BXCFqCtK.cjs} +2 -2
- package/build/{component-C-yqkm2n.cjs.map → component-BXCFqCtK.cjs.map} +1 -1
- package/build/component-BXhibaBj.cjs +2 -0
- package/build/{component-KwYlKatx.cjs.map → component-BXhibaBj.cjs.map} +1 -1
- package/build/{component-BX7rFpno.js → component-BnJWTOR7.js} +7 -8
- package/build/{component-BX7rFpno.js.map → component-BnJWTOR7.js.map} +1 -1
- package/build/{component-BLW4AlTi.cjs → component-Bv6UuRlj.cjs} +2 -2
- package/build/{component-BLW4AlTi.cjs.map → component-Bv6UuRlj.cjs.map} +1 -1
- package/build/{component-DyEa0lzB.js → component-C0Cy_U1j.js} +3 -3
- package/build/{component-DyEa0lzB.js.map → component-C0Cy_U1j.js.map} +1 -1
- package/build/{component-DF8wYX_U.js → component-C7Nffvkz.js} +3 -3
- package/build/{component-DF8wYX_U.js.map → component-C7Nffvkz.js.map} +1 -1
- package/build/{component-GqA6sCHI.cjs → component-CDa4aHfO.cjs} +2 -2
- package/build/{component-GqA6sCHI.cjs.map → component-CDa4aHfO.cjs.map} +1 -1
- package/build/{component-6hRanOkU.cjs → component-CLqcB5mM.cjs} +2 -2
- package/build/{component-6hRanOkU.cjs.map → component-CLqcB5mM.cjs.map} +1 -1
- package/build/{component-DpVp9dB1.js → component-CUiqQLEQ.js} +2 -2
- package/build/{component-DpVp9dB1.js.map → component-CUiqQLEQ.js.map} +1 -1
- package/build/{component-DXSNBORy.cjs → component-CYmkHAmE.cjs} +2 -2
- package/build/{component-DXSNBORy.cjs.map → component-CYmkHAmE.cjs.map} +1 -1
- package/build/{component-DerXrx9p.js → component-CaJK3Oq8.js} +2 -2
- package/build/{component-DerXrx9p.js.map → component-CaJK3Oq8.js.map} +1 -1
- package/build/{component-8NOxwZJO.cjs → component-Cc8X-Z80.cjs} +2 -2
- package/build/{component-8NOxwZJO.cjs.map → component-Cc8X-Z80.cjs.map} +1 -1
- package/build/{component-CHmCK6Bc.js → component-D4hkx75Z.js} +2 -2
- package/build/{component-CHmCK6Bc.js.map → component-D4hkx75Z.js.map} +1 -1
- package/build/{component-mzzOCXSx.js → component-DEZX8aBs.js} +2 -2
- package/build/{component-mzzOCXSx.js.map → component-DEZX8aBs.js.map} +1 -1
- package/build/{component-BtgXUCiJ.js → component-DHj3MVyO.js} +2 -2
- package/build/{component-BtgXUCiJ.js.map → component-DHj3MVyO.js.map} +1 -1
- package/build/{component-DQrnK2Bj.js → component-DLEbIbn9.js} +3 -3
- package/build/{component-DQrnK2Bj.js.map → component-DLEbIbn9.js.map} +1 -1
- package/build/{component-Cr62wN62.js → component-DwFwB6Zz.js} +2 -2
- package/build/{component-Cr62wN62.js.map → component-DwFwB6Zz.js.map} +1 -1
- package/build/{component-BLa80fGE.cjs → component-GiB9SJbH.cjs} +2 -2
- package/build/{component-BLa80fGE.cjs.map → component-GiB9SJbH.cjs.map} +1 -1
- package/build/{component-Ds6eJznV.cjs → component-JIJwPwrc.cjs} +2 -2
- package/build/{component-Ds6eJznV.cjs.map → component-JIJwPwrc.cjs.map} +1 -1
- package/build/{component-C56biWpi.js → component-JQMDepCj.js} +3 -5
- package/build/{component-C56biWpi.js.map → component-JQMDepCj.js.map} +1 -1
- package/build/{component-DDVjxLvn.js → component-RXfJR8yQ.js} +3 -3
- package/build/{component-DDVjxLvn.js.map → component-RXfJR8yQ.js.map} +1 -1
- package/build/component-accordion.cjs.js +1 -1
- package/build/component-accordion.d.ts +1 -1
- package/build/component-accordion.es.js +6 -6
- package/build/component-button-group.cjs.js +1 -1
- package/build/component-button-group.es.js +3 -3
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.es.js +3 -3
- package/build/component-checkbox-group.cjs.js +1 -1
- package/build/component-checkbox-group.es.js +8 -8
- package/build/component-checkbox.cjs.js +1 -1
- package/build/component-checkbox.es.js +5 -5
- package/build/component-date-picker.cjs.js +1 -1
- package/build/component-date-picker.es.js +13 -13
- package/build/component-icon.cjs.js +1 -1
- package/build/component-icon.d.ts +16 -3
- package/build/component-icon.es.js +6 -5
- package/build/component-image-button.cjs.js +1 -1
- package/build/component-image-button.es.js +1 -1
- package/build/component-image-select.cjs.js +1 -1
- package/build/component-image-select.es.js +8 -8
- package/build/component-image-slider.cjs.js +1 -1
- package/build/component-image-slider.es.js +4 -4
- package/build/component-image.cjs.js +1 -1
- package/build/component-image.es.js +3 -3
- package/build/component-input-otp.cjs.js +1 -1
- package/build/component-input-otp.es.js +5 -5
- package/build/component-input.cjs.js +1 -1
- package/build/component-input.es.js +15 -15
- package/build/{component-DP42Uzl2.cjs → component-jH7YXK4X.cjs} +2 -2
- package/build/{component-DP42Uzl2.cjs.map → component-jH7YXK4X.cjs.map} +1 -1
- package/build/component-map.cjs.js +1 -1
- package/build/component-map.es.js +8 -8
- package/build/component-pagination.cjs.js +1 -1
- package/build/component-pagination.es.js +1 -1
- package/build/component-range.cjs.js +1 -1
- package/build/component-range.es.js +5 -5
- package/build/component-ripple.cjs.js +1 -1
- package/build/component-select.cjs.js +1 -1
- package/build/component-select.d.ts +1 -1
- package/build/component-select.es.js +18 -18
- package/build/component-separator.cjs.js +1 -1
- package/build/component-stack.cjs.js +1 -1
- package/build/component-stack.es.js +1 -1
- package/build/component-textarea.cjs.js +1 -1
- package/build/component-textarea.es.js +5 -5
- package/build/component-toggle.cjs.js +1 -1
- package/build/component-toggle.es.js +4 -4
- package/build/component-tooltip.cjs.js +1 -1
- package/build/component-tooltip.es.js +9 -9
- package/build/component-typography.cjs.js +1 -1
- package/build/component-typography.d.ts +2 -0
- package/build/component-typography.es.js +6 -6
- package/build/{component-DdSHuopV.cjs → component-ySx7l0Xg.cjs} +2 -2
- package/build/{component-DdSHuopV.cjs.map → component-ySx7l0Xg.cjs.map} +1 -1
- package/build/{component.components-DlJ9rcRL.js → component.components-DKDMKKNb.js} +2 -2
- package/build/{component.components-DlJ9rcRL.js.map → component.components-DKDMKKNb.js.map} +1 -1
- package/build/{component.components-B6FC2-ox.cjs → component.components-DzoKT5j9.cjs} +2 -2
- package/build/{component.components-B6FC2-ox.cjs.map → component.components-DzoKT5j9.cjs.map} +1 -1
- package/build/{component.constants-B-ZUZwuJ.js → component.constants-BMz7bhlw.js} +3 -3
- package/build/{component.constants-B-ZUZwuJ.js.map → component.constants-BMz7bhlw.js.map} +1 -1
- package/build/{component.constants-DwSQ9oe4.js → component.constants-Bgm_xB87.js} +6 -7
- package/build/{component.constants-DwSQ9oe4.js.map → component.constants-Bgm_xB87.js.map} +1 -1
- package/build/component.constants-C0oGZ1iR.cjs +2 -0
- package/build/{component.constants-hDTTnj7k.cjs.map → component.constants-C0oGZ1iR.cjs.map} +1 -1
- package/build/{component.constants-DiCmqOri.cjs → component.constants-DZyqQi6L.cjs} +2 -2
- package/build/{component.constants-DiCmqOri.cjs.map → component.constants-DZyqQi6L.cjs.map} +1 -1
- package/build/{component.types-DFRLIpd6.js → component.types-D_tW7ArD.js} +3 -3
- package/build/{component.types-DFRLIpd6.js.map → component.types-D_tW7ArD.js.map} +1 -1
- package/build/{component.types-CYtUJDuN.cjs → component.types-ZmH2V3qe.cjs} +2 -2
- package/build/{component.types-CYtUJDuN.cjs.map → component.types-ZmH2V3qe.cjs.map} +1 -1
- package/build/consts.cjs.js +1 -1
- package/build/consts.es.js +1 -1
- package/build/context-app.cjs.js +1 -1
- package/build/context-app.es.js +17 -17
- package/build/context-dialog.cjs.js +1 -1
- package/build/context-dialog.es.js +2 -2
- package/build/context-sonner.cjs.js +1 -1
- package/build/context-sonner.es.js +18 -18
- package/build/{context.constants-C5Unln0I.js → context.constants-AVloP24q.js} +308 -194
- package/build/context.constants-AVloP24q.js.map +1 -0
- package/build/{context.constants-CaDW-QGJ.js → context.constants-CZykW9B3.js} +3 -3
- package/build/{context.constants-CaDW-QGJ.js.map → context.constants-CZykW9B3.js.map} +1 -1
- package/build/context.constants-wfD246Ww.cjs +1739 -0
- package/build/context.constants-wfD246Ww.cjs.map +1 -0
- package/build/{context.constants-CRxCVRKK.cjs → context.constants-wztrdG5Q.cjs} +2 -2
- package/build/{context.constants-CRxCVRKK.cjs.map → context.constants-wztrdG5Q.cjs.map} +1 -1
- package/build/{context.hooks-CKO6mDS-.js → context.hooks-BsMIDkb3.js} +2 -2
- package/build/{context.hooks-CKO6mDS-.js.map → context.hooks-BsMIDkb3.js.map} +1 -1
- package/build/{context.hooks-B2vWSael.js → context.hooks-CQXyg8Md.js} +2 -2
- package/build/{context.hooks-B2vWSael.js.map → context.hooks-CQXyg8Md.js.map} +1 -1
- package/build/{context.hooks-PU-CST61.cjs → context.hooks-CXSsHfiI.cjs} +2 -2
- package/build/{context.hooks-PU-CST61.cjs.map → context.hooks-CXSsHfiI.cjs.map} +1 -1
- package/build/{context.hooks-Bj9FlQEC.js → context.hooks-D0OtRPb7.js} +2 -2
- package/build/{context.hooks-Bj9FlQEC.js.map → context.hooks-D0OtRPb7.js.map} +1 -1
- package/build/{context.hooks-ByjHt-DO.cjs → context.hooks-DDtUqE34.cjs} +2 -2
- package/build/{context.hooks-ByjHt-DO.cjs.map → context.hooks-DDtUqE34.cjs.map} +1 -1
- package/build/{context.hooks-BfmhHvrX.cjs → context.hooks-L-OO9FIg.cjs} +2 -2
- package/build/{context.hooks-BfmhHvrX.cjs.map → context.hooks-L-OO9FIg.cjs.map} +1 -1
- package/build/index.cjs.js +1 -1
- package/build/index.d.ts +25 -7
- package/build/index.es.js +197 -198
- package/build/index.es.js.map +1 -1
- package/build/{style-RL73t3JD.js → style-BfuEu91g.js} +14 -8
- package/build/style-BfuEu91g.js.map +1 -0
- package/build/{style-Df37KnoJ.cjs → style-Drq-Q1Im.cjs} +12 -8
- package/build/style-Drq-Q1Im.cjs.map +1 -0
- package/build/style-add.cjs.js +1 -1
- package/build/style-add.d.ts +4 -0
- package/build/style-add.es.js +9 -8
- package/build/style-error.cjs.js +1 -1
- package/build/style-error.es.js +4 -4
- package/build/style-theme.cjs.js +1 -1
- package/build/style-theme.es.js +13 -13
- package/build/{use-7TZR9yNq.js → use-B4ELG6B3.js} +6 -6
- package/build/{use-7TZR9yNq.js.map → use-B4ELG6B3.js.map} +1 -1
- package/build/{use-DNJlP5ji.cjs → use-fcNoM5UL.cjs} +3 -3
- package/build/{use-DNJlP5ji.cjs.map → use-fcNoM5UL.cjs.map} +1 -1
- package/package.json +1 -1
- package/build/area-C5QUBcb-.js +0 -26
- package/build/area-C5QUBcb-.js.map +0 -1
- package/build/area-k8GR7Khj.cjs +0 -2
- package/build/area-k8GR7Khj.cjs.map +0 -1
- package/build/area.styles-BJCDsTi3.js +0 -46
- package/build/area.styles-BJCDsTi3.js.map +0 -1
- package/build/area.styles-CtrTLcAj.cjs +0 -40
- package/build/area.styles-CtrTLcAj.cjs.map +0 -1
- package/build/area.styles-DQBIvHdz.cjs +0 -27
- package/build/component-IlhRGJHX.cjs +0 -2
- package/build/component-KwYlKatx.cjs +0 -2
- package/build/component.constants-hDTTnj7k.cjs +0 -2
- package/build/component.styles-CNn9SMc9.cjs +0 -10
- package/build/component.styles-CNn9SMc9.cjs.map +0 -1
- package/build/component.styles-eaocqYbA.js +0 -16
- package/build/component.styles-eaocqYbA.js.map +0 -1
- package/build/context.constants-C5Unln0I.js.map +0 -1
- package/build/context.constants-DSfxf3ST.cjs +0 -1692
- package/build/context.constants-DSfxf3ST.cjs.map +0 -1
- package/build/style-Df37KnoJ.cjs.map +0 -1
- package/build/style-RL73t3JD.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("framer-motion"),i=require("styled-components"),t=require("./style-
|
|
1
|
+
"use strict";const e=require("framer-motion"),i=require("styled-components"),t=require("./style-Drq-Q1Im.cjs"),o=require("./jsx-runtime-BcGej2Kr.cjs"),n=require("./area-pCo19R2g.cjs"),r=require("react");require("uuid");const s=r.createContext(null),a=r.memo(e=>{var i,t,s,a,l,p,c,D;const[m,E]=r.useState(!0);return o.jsxRuntimeExports.jsx(n.Outside,{onOutsideClick:()=>e.remove(),children:o.jsxRuntimeExports.jsx(d,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},onAnimationComplete:()=>E(!1),transition:{type:"spring",duration:x,delay:u},style:{zIndex:-e.index},$isDisabledOutline:null==(t=null==(i=e.props)?void 0:i.propsDialog)?void 0:t.isDisabledOutline,$isOutlineBoxShadow:null==(a=null==(s=e.props)?void 0:s.propsDialog)?void 0:a.isOutlineBoxShadow,$isReadOnly:null==(p=null==(l=e.props)?void 0:l.propsDialog)?void 0:p.isReadOnly,$propsDialog:null==(c=e.props)?void 0:c.propsDialog,children:null==(D=e.content)?void 0:D.call(e,e.props,e.remove,m)},e.id)})}),l=i(e.motion.div)`
|
|
2
2
|
position: fixed;
|
|
3
3
|
flex: 1;
|
|
4
4
|
width: 100%;
|
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.2);
|
|
30
30
|
overflow: hidden;
|
|
31
31
|
`,p=i(e.motion.div)``,x=.3,u=.4,c="max-content",D="max-content",m="12px",E="20px",g="whiteStandard";exports.DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT=x,exports.DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT=u,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND=g,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS=m,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT=c,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH=D,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING=E,exports.DialogContent=p,exports.DialogContext=s,exports.DialogElementWrapper=d,exports.DialogLayout=l,exports.ProviderDialog=i=>{const[t,n]=r.useState([]),d=r.useCallback(e=>{n(i=>{const t=i.find(i=>i.id===e);if(!t)return i;const o=t.index;return i.filter(i=>i.id!==e).map(e=>({...e,index:e.index>o?e.index-1:e.index}))})},[]),p=r.useCallback(e=>{n(i=>i.map(i=>i.id===e.id?{...i,...e}:i))},[]),x=r.useCallback(e=>{const i=e.id;n(t=>{const o=t.findIndex(e=>e.id===i);let n;if(-1!==o)n=[...t],n[o]={...e,id:i,index:t[o].index};else{n=t.map(e=>({...e,index:e.index+1}));const o={...e,id:i,index:0};n.unshift(o)}return n})},[]),c=r.useMemo(()=>t.length,[t.length]),D=r.useMemo(()=>i.zIndex,[i.zIndex]);return o.jsxRuntimeExports.jsxs(s.Provider,{value:{add:x,remove:d,update:p,dialogHistory:t},children:[o.jsxRuntimeExports.jsx(e.AnimatePresence,{children:c&&o.jsxRuntimeExports.jsx(l,{$zIndex:D,initial:{opacity:0},exit:{opacity:0},animate:{opacity:1},transition:{type:"spring",duration:u},children:t.map(e=>{const i=e.index,t=e.content,n=e.id,r=e.props;return o.jsxRuntimeExports.jsx(a,{index:i,content:t,props:r,id:n,remove:()=>d(n)},n)})})}),i.children]})};
|
|
32
|
-
//# sourceMappingURL=context.constants-
|
|
32
|
+
//# sourceMappingURL=context.constants-wztrdG5Q.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.constants-CRxCVRKK.cjs","sources":["../src/contexts/context-dialog/context.tsx","../src/contexts/context-dialog/context.styles.tsx","../src/contexts/context-dialog/context.constants.ts"],"sourcesContent":["import { Outside } from '@local/areas/outside';\n\nimport { AnimatePresence } from 'framer-motion';\nimport { createContext, FC, memo, useCallback, useMemo, useState } from 'react';\n\nimport {\n DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,\n DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,\n DialogContentProps,\n DialogContextProps,\n DialogElementProps,\n DialogElementWrapper,\n DialogLayout,\n ProviderDialogProps,\n} from '.';\n\nexport const DialogContext = createContext<DialogContextProps<object> | null>(null);\n\nexport const ProviderDialog: FC<ProviderDialogProps> = (props) => {\n const [dialogHistory, setDialogHistory] = useState<DialogContentProps<object>[]>([]);\n\n const remove: DialogContextProps<object>['remove'] = useCallback((id) => {\n setDialogHistory((prev) => {\n const itemToRemove = prev.find((item) => item.id === id);\n\n if (!itemToRemove) return prev;\n\n const indexToRemove = itemToRemove.index!;\n\n const updatedHistory = prev\n .filter((item) => item.id !== id)\n .map((item) => ({\n ...item,\n index: item.index! > indexToRemove ? item.index! - 1 : item.index,\n }));\n\n return updatedHistory;\n });\n }, []);\n\n const update: DialogContextProps<object>['update'] = useCallback((dialog) => {\n setDialogHistory((prev) => {\n return prev.map((item) => {\n if (item.id === dialog.id) {\n return { ...item, ...dialog };\n }\n return item;\n });\n });\n }, []);\n\n const add: DialogContextProps<object>['add'] = useCallback((dialog) => {\n const id = dialog.id;\n\n setDialogHistory((prev) => {\n const existingIndex = prev.findIndex((item) => item.id === id);\n\n let updatedHistory;\n if (existingIndex !== -1) {\n updatedHistory = [...prev];\n updatedHistory[existingIndex] = { ...dialog, id, index: prev[existingIndex].index };\n } else {\n updatedHistory = prev.map((item) => ({\n ...item,\n index: item.index! + 1,\n }));\n const newContent = { ...dialog, id, index: 0 };\n updatedHistory.unshift(newContent);\n }\n\n return updatedHistory;\n });\n }, []);\n\n const dialogHistoryLength = useMemo(() => dialogHistory.length, [dialogHistory.length]);\n const zIndex = useMemo(() => props.zIndex, [props.zIndex]);\n\n return (\n <DialogContext.Provider value={{ add, remove, update, dialogHistory }}>\n <AnimatePresence>\n {dialogHistoryLength && (\n <DialogLayout\n $zIndex={zIndex}\n initial={{\n opacity: 0,\n }}\n exit={{\n opacity: 0,\n }}\n animate={{\n opacity: 1,\n }}\n transition={{ type: 'spring', duration: DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT }}\n >\n {dialogHistory.map((dialog) => {\n const index = dialog.index;\n const content = dialog.content;\n const id = dialog.id;\n const props = dialog.props;\n\n return (\n <MemoizedDialogElement\n index={index}\n content={content}\n props={props}\n key={id}\n id={id}\n remove={() => remove(id)}\n />\n );\n })}\n </DialogLayout>\n )}\n </AnimatePresence>\n\n {props.children}\n </DialogContext.Provider>\n );\n};\n\nconst DialogElement = (props: DialogElementProps) => {\n const [isAnimating, setIsAnimating] = useState(true);\n return (\n <Outside onOutsideClick={() => props.remove()}>\n <DialogElementWrapper\n key={props.id}\n initial={{\n opacity: 0,\n scale: 0.8,\n }}\n animate={{\n opacity: 1,\n scale: 1,\n }}\n onAnimationComplete={() => setIsAnimating(false)}\n transition={{\n type: 'spring',\n duration: DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,\n delay: DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,\n }}\n style={{\n zIndex: -props.index!,\n }}\n $isDisabledOutline={props.props?.propsDialog?.isDisabledOutline}\n $isOutlineBoxShadow={props.props?.propsDialog?.isOutlineBoxShadow}\n $isReadOnly={props.props?.propsDialog?.isReadOnly}\n $propsDialog={props.props?.propsDialog}\n >\n {props.content?.(props.props, props.remove, isAnimating)}\n </DialogElementWrapper>\n </Outside>\n );\n};\nconst MemoizedDialogElement = memo(DialogElement);\n","import { motion } from 'framer-motion';\nimport styled from 'styled-components';\n\nimport { addOutline } from '@local/styles/add';\n\nimport {\n DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING,\n DialogElementWrapperProps,\n DialogLayoutProps,\n} from '.';\n\nexport const DialogLayout = styled(motion.div)<DialogLayoutProps>`\n position: fixed;\n flex: 1;\n width: 100%;\n height: 100%;\n background-color: ${(props) => props.theme.palette.black50};\n z-index: ${(props) => props.$zIndex};\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n`;\n\nexport const DialogElementWrapper = styled(motion.dialog)<DialogElementWrapperProps>`\n ${addOutline};\n max-width: ${(props) => props.$propsDialog?.maxWidth || DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH};\n max-height: ${(props) => props.$propsDialog?.maxHeight || DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT};\n border-radius: ${(props) => props.$propsDialog?.borderRadius || DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS};\n background: ${(props) =>\n props.$propsDialog?.background\n ? props.theme.palette[props.$propsDialog.background]\n : props.theme.palette[DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND]};\n padding: ${(props) => props.$propsDialog?.padding || DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING};\n width: max-content;\n height: max-content;\n border: 0;\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.2);\n overflow: hidden;\n`;\nexport const DialogContent = styled(motion.div)``;\n","import { IThemePaletteKeys } from '@local/theme';\n\nexport const DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT = 0.3;\nexport const DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT = 0.4;\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT: string = 'max-content';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH: string = 'max-content';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS: string = '12px';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING: string = '20px';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND: IThemePaletteKeys = 'whiteStandard';\n"],"names":["DialogContext","createContext","MemoizedDialogElement","memo","props","isAnimating","setIsAnimating","useState","Outside","onOutsideClick","remove","children","jsx","DialogElementWrapper","initial","opacity","scale","animate","onAnimationComplete","transition","type","duration","DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT","delay","DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT","style","zIndex","index","$isDisabledOutline","_b","_a","propsDialog","isDisabledOutline","$isOutlineBoxShadow","_d","_c","isOutlineBoxShadow","$isReadOnly","_f","_e","isReadOnly","$propsDialog","_g","content","id","DialogLayout","styled","motion","div","theme","palette","black50","$zIndex","dialog","addOutline","maxWidth","DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH","maxHeight","DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT","borderRadius","DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS","background","DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND","padding","DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING","DialogContent","dialogHistory","setDialogHistory","useCallback","prev","itemToRemove","find","item","indexToRemove","filter","map","update","add","existingIndex","findIndex","updatedHistory","newContent","unshift","dialogHistoryLength","useMemo","length","jsxs","Provider","value","AnimatePresence","exit"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"context.constants-wztrdG5Q.cjs","sources":["../src/contexts/context-dialog/context.tsx","../src/contexts/context-dialog/context.styles.tsx","../src/contexts/context-dialog/context.constants.ts"],"sourcesContent":["import { Outside } from '@local/areas/outside';\n\nimport { AnimatePresence } from 'framer-motion';\nimport { createContext, FC, memo, useCallback, useMemo, useState } from 'react';\n\nimport {\n DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,\n DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,\n DialogContentProps,\n DialogContextProps,\n DialogElementProps,\n DialogElementWrapper,\n DialogLayout,\n ProviderDialogProps,\n} from '.';\n\nexport const DialogContext = createContext<DialogContextProps<object> | null>(null);\n\nexport const ProviderDialog: FC<ProviderDialogProps> = (props) => {\n const [dialogHistory, setDialogHistory] = useState<DialogContentProps<object>[]>([]);\n\n const remove: DialogContextProps<object>['remove'] = useCallback((id) => {\n setDialogHistory((prev) => {\n const itemToRemove = prev.find((item) => item.id === id);\n\n if (!itemToRemove) return prev;\n\n const indexToRemove = itemToRemove.index!;\n\n const updatedHistory = prev\n .filter((item) => item.id !== id)\n .map((item) => ({\n ...item,\n index: item.index! > indexToRemove ? item.index! - 1 : item.index,\n }));\n\n return updatedHistory;\n });\n }, []);\n\n const update: DialogContextProps<object>['update'] = useCallback((dialog) => {\n setDialogHistory((prev) => {\n return prev.map((item) => {\n if (item.id === dialog.id) {\n return { ...item, ...dialog };\n }\n return item;\n });\n });\n }, []);\n\n const add: DialogContextProps<object>['add'] = useCallback((dialog) => {\n const id = dialog.id;\n\n setDialogHistory((prev) => {\n const existingIndex = prev.findIndex((item) => item.id === id);\n\n let updatedHistory;\n if (existingIndex !== -1) {\n updatedHistory = [...prev];\n updatedHistory[existingIndex] = { ...dialog, id, index: prev[existingIndex].index };\n } else {\n updatedHistory = prev.map((item) => ({\n ...item,\n index: item.index! + 1,\n }));\n const newContent = { ...dialog, id, index: 0 };\n updatedHistory.unshift(newContent);\n }\n\n return updatedHistory;\n });\n }, []);\n\n const dialogHistoryLength = useMemo(() => dialogHistory.length, [dialogHistory.length]);\n const zIndex = useMemo(() => props.zIndex, [props.zIndex]);\n\n return (\n <DialogContext.Provider value={{ add, remove, update, dialogHistory }}>\n <AnimatePresence>\n {dialogHistoryLength && (\n <DialogLayout\n $zIndex={zIndex}\n initial={{\n opacity: 0,\n }}\n exit={{\n opacity: 0,\n }}\n animate={{\n opacity: 1,\n }}\n transition={{ type: 'spring', duration: DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT }}\n >\n {dialogHistory.map((dialog) => {\n const index = dialog.index;\n const content = dialog.content;\n const id = dialog.id;\n const props = dialog.props;\n\n return (\n <MemoizedDialogElement\n index={index}\n content={content}\n props={props}\n key={id}\n id={id}\n remove={() => remove(id)}\n />\n );\n })}\n </DialogLayout>\n )}\n </AnimatePresence>\n\n {props.children}\n </DialogContext.Provider>\n );\n};\n\nconst DialogElement = (props: DialogElementProps) => {\n const [isAnimating, setIsAnimating] = useState(true);\n return (\n <Outside onOutsideClick={() => props.remove()}>\n <DialogElementWrapper\n key={props.id}\n initial={{\n opacity: 0,\n scale: 0.8,\n }}\n animate={{\n opacity: 1,\n scale: 1,\n }}\n onAnimationComplete={() => setIsAnimating(false)}\n transition={{\n type: 'spring',\n duration: DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,\n delay: DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,\n }}\n style={{\n zIndex: -props.index!,\n }}\n $isDisabledOutline={props.props?.propsDialog?.isDisabledOutline}\n $isOutlineBoxShadow={props.props?.propsDialog?.isOutlineBoxShadow}\n $isReadOnly={props.props?.propsDialog?.isReadOnly}\n $propsDialog={props.props?.propsDialog}\n >\n {props.content?.(props.props, props.remove, isAnimating)}\n </DialogElementWrapper>\n </Outside>\n );\n};\nconst MemoizedDialogElement = memo(DialogElement);\n","import { motion } from 'framer-motion';\nimport styled from 'styled-components';\n\nimport { addOutline } from '@local/styles/add';\n\nimport {\n DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH,\n DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING,\n DialogElementWrapperProps,\n DialogLayoutProps,\n} from '.';\n\nexport const DialogLayout = styled(motion.div)<DialogLayoutProps>`\n position: fixed;\n flex: 1;\n width: 100%;\n height: 100%;\n background-color: ${(props) => props.theme.palette.black50};\n z-index: ${(props) => props.$zIndex};\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n`;\n\nexport const DialogElementWrapper = styled(motion.dialog)<DialogElementWrapperProps>`\n ${addOutline};\n max-width: ${(props) => props.$propsDialog?.maxWidth || DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH};\n max-height: ${(props) => props.$propsDialog?.maxHeight || DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT};\n border-radius: ${(props) => props.$propsDialog?.borderRadius || DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS};\n background: ${(props) =>\n props.$propsDialog?.background\n ? props.theme.palette[props.$propsDialog.background]\n : props.theme.palette[DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND]};\n padding: ${(props) => props.$propsDialog?.padding || DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING};\n width: max-content;\n height: max-content;\n border: 0;\n display: flex;\n flex-direction: column;\n gap: 10px;\n align-items: flex-start;\n justify-content: flex-start;\n flex-shrink: 0;\n position: relative;\n box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.2);\n overflow: hidden;\n`;\nexport const DialogContent = styled(motion.div)``;\n","import { IThemePaletteKeys } from '@local/theme';\n\nexport const DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT = 0.3;\nexport const DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT = 0.4;\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT: string = 'max-content';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH: string = 'max-content';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS: string = '12px';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING: string = '20px';\nexport const DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND: IThemePaletteKeys = 'whiteStandard';\n"],"names":["DialogContext","createContext","MemoizedDialogElement","memo","props","isAnimating","setIsAnimating","useState","Outside","onOutsideClick","remove","children","jsx","DialogElementWrapper","initial","opacity","scale","animate","onAnimationComplete","transition","type","duration","DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT","delay","DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT","style","zIndex","index","$isDisabledOutline","_b","_a","propsDialog","isDisabledOutline","$isOutlineBoxShadow","_d","_c","isOutlineBoxShadow","$isReadOnly","_f","_e","isReadOnly","$propsDialog","_g","content","id","DialogLayout","styled","motion","div","theme","palette","black50","$zIndex","dialog","addOutline","maxWidth","DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH","maxHeight","DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT","borderRadius","DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS","background","DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND","padding","DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING","DialogContent","dialogHistory","setDialogHistory","useCallback","prev","itemToRemove","find","item","indexToRemove","filter","map","update","add","existingIndex","findIndex","updatedHistory","newContent","unshift","dialogHistoryLength","useMemo","length","jsxs","Provider","value","AnimatePresence","exit"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { b7 as SonnerContext } from "./context.constants-AVloP24q.js";
|
|
3
3
|
const useSonner = () => {
|
|
4
4
|
const context = useContext(SonnerContext);
|
|
5
5
|
if (!context) {
|
|
@@ -10,4 +10,4 @@ const useSonner = () => {
|
|
|
10
10
|
export {
|
|
11
11
|
useSonner as u
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=context.hooks-
|
|
13
|
+
//# sourceMappingURL=context.hooks-BsMIDkb3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.hooks-
|
|
1
|
+
{"version":3,"file":"context.hooks-BsMIDkb3.js","sources":["../src/contexts/context-sonner/context.hooks.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { SonnerContext, SonnerContextProps } from '.';\n\nexport const useSonner = (): SonnerContextProps => {\n const context = useContext(SonnerContext);\n if (!context) {\n throw new Error('useSonner must be used within an ProviderSonner');\n }\n return context;\n};\n"],"names":[],"mappings":";;AAIO,MAAM,YAAY,MAA0B;AACjD,QAAM,UAAU,WAAW,aAAa;AACxC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,iDAAiD;AAAA,EAAA;AAEnE,SAAO;AACT;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { aU as AppContext } from "./context.constants-AVloP24q.js";
|
|
3
3
|
const useApp = () => {
|
|
4
4
|
const context = useContext(AppContext);
|
|
5
5
|
if (!context) {
|
|
@@ -10,4 +10,4 @@ const useApp = () => {
|
|
|
10
10
|
export {
|
|
11
11
|
useApp as u
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=context.hooks-
|
|
13
|
+
//# sourceMappingURL=context.hooks-CQXyg8Md.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.hooks-
|
|
1
|
+
{"version":3,"file":"context.hooks-CQXyg8Md.js","sources":["../src/contexts/context-app/context.hooks.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { AppContext } from '.';\n\n/**\n * Custom hook to access the AppContext.\n */\nexport const useApp = () => {\n const context = useContext(AppContext);\n if (!context) {\n throw new Error('useApp must be used within an ProviderApp');\n }\n return context;\n};\n"],"names":[],"mappings":";;AAOO,MAAM,SAAS,MAAM;AAC1B,QAAM,UAAU,WAAW,UAAU;AACrC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,2CAA2C;AAAA,EAAA;AAE7D,SAAO;AACT;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),t=require("./context.constants-
|
|
2
|
-
//# sourceMappingURL=context.hooks-
|
|
1
|
+
"use strict";const e=require("react"),t=require("./context.constants-wfD246Ww.cjs");exports.useApp=()=>{const r=e.useContext(t.AppContext);if(!r)throw new Error("useApp must be used within an ProviderApp");return r};
|
|
2
|
+
//# sourceMappingURL=context.hooks-CXSsHfiI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.hooks-
|
|
1
|
+
{"version":3,"file":"context.hooks-CXSsHfiI.cjs","sources":["../src/contexts/context-app/context.hooks.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { AppContext } from '.';\n\n/**\n * Custom hook to access the AppContext.\n */\nexport const useApp = () => {\n const context = useContext(AppContext);\n if (!context) {\n throw new Error('useApp must be used within an ProviderApp');\n }\n return context;\n};\n"],"names":["context","useContext","AppContext","Error"],"mappings":"mGAOsB,KACpB,MAAMA,EAAUC,EAAAA,WAAWC,cAC3B,IAAKF,EACH,MAAM,IAAIG,MAAM,6CAElB,OAAOH"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useState, useCallback, useEffect } from "react";
|
|
2
2
|
import { v4 } from "uuid";
|
|
3
3
|
import { u as useDeepCompareMemoize } from "./use-DT0XgvJT.js";
|
|
4
|
-
import { D as DialogContext } from "./context.constants-
|
|
4
|
+
import { D as DialogContext } from "./context.constants-CZykW9B3.js";
|
|
5
5
|
const useDialogs = () => {
|
|
6
6
|
const context = useContext(DialogContext);
|
|
7
7
|
if (!context) {
|
|
@@ -41,4 +41,4 @@ export {
|
|
|
41
41
|
useDialog as a,
|
|
42
42
|
useDialogs as u
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=context.hooks-
|
|
44
|
+
//# sourceMappingURL=context.hooks-D0OtRPb7.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.hooks-
|
|
1
|
+
{"version":3,"file":"context.hooks-D0OtRPb7.js","sources":["../src/contexts/context-dialog/context.hooks.ts"],"sourcesContent":["import { useCallback, useContext, useEffect, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { useDeepCompareMemoize } from '@local/hooks/use-deep-compare-memoize';\n\nimport { DialogContext, DialogContextItemProps, DialogContextProps, useDialogProps } from '.';\n\nexport const useDialogs = (): DialogContextProps<object> => {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error('useDialogs must be used within an ProviderDialog');\n }\n return context;\n};\n\nexport const useDialog = <T extends object>(props?: useDialogProps<T>): DialogContextItemProps<T> => {\n const { add, remove, update, dialogHistory } = useDialogs();\n const [id, setId] = useState<string | null>(null);\n\n const localAdd: DialogContextItemProps<T>['add'] = useCallback(\n (dialog) => {\n const find = dialogHistory.find((item) => item.id === dialog.id);\n if (!id || !find) {\n const id = dialog.id || uuidv4();\n setId(id);\n add({ ...(dialog as T), props: props, id });\n }\n },\n [add, dialogHistory, id, props],\n );\n const localRemove = useCallback(() => {\n if (id) {\n remove(id);\n setId(null);\n }\n }, [id, remove]);\n\n const propsMemo = useDeepCompareMemoize(props);\n\n useEffect(() => {\n if (id) {\n update({ id, props: propsMemo });\n }\n }, [id, propsMemo, update]);\n\n return { add: localAdd, remove: localRemove, id };\n};\n"],"names":["id","uuidv4"],"mappings":";;;;AAOO,MAAM,aAAa,MAAkC;AAC1D,QAAM,UAAU,WAAW,aAAa;AACxC,MAAI,CAAC,SAAS;AACZ,UAAM,IAAI,MAAM,kDAAkD;AAAA,EAAA;AAEpE,SAAO;AACT;AAEO,MAAM,YAAY,CAAmB,UAAyD;AACnG,QAAM,EAAE,KAAK,QAAQ,QAAQ,cAAA,IAAkB,WAAA;AAC/C,QAAM,CAAC,IAAI,KAAK,IAAI,SAAwB,IAAI;AAEhD,QAAM,WAA6C;AAAA,IACjD,CAAC,WAAW;AACV,YAAM,OAAO,cAAc,KAAK,CAAC,SAAS,KAAK,OAAO,OAAO,EAAE;AAC/D,UAAI,CAAC,MAAM,CAAC,MAAM;AAChB,cAAMA,MAAK,OAAO,MAAMC,GAAA;AACxB,cAAMD,GAAE;AACR,YAAI,EAAE,GAAI,QAAc,OAAc,IAAAA,KAAI;AAAA,MAAA;AAAA,IAC5C;AAAA,IAEF,CAAC,KAAK,eAAe,IAAI,KAAK;AAAA,EAAA;AAEhC,QAAM,cAAc,YAAY,MAAM;AACpC,QAAI,IAAI;AACN,aAAO,EAAE;AACT,YAAM,IAAI;AAAA,IAAA;AAAA,EACZ,GACC,CAAC,IAAI,MAAM,CAAC;AAEf,QAAM,YAAY,sBAAsB,KAAK;AAE7C,YAAU,MAAM;AACd,QAAI,IAAI;AACN,aAAO,EAAE,IAAI,OAAO,UAAA,CAAW;AAAA,IAAA;AAAA,EACjC,GACC,CAAC,IAAI,WAAW,MAAM,CAAC;AAE1B,SAAO,EAAE,KAAK,UAAU,QAAQ,aAAa,GAAA;AAC/C;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),s=require("uuid"),r=require("./use-C1l0O0Qo.cjs"),t=require("./context.constants-
|
|
2
|
-
//# sourceMappingURL=context.hooks-
|
|
1
|
+
"use strict";const e=require("react"),s=require("uuid"),r=require("./use-C1l0O0Qo.cjs"),t=require("./context.constants-wztrdG5Q.cjs"),o=()=>{const s=e.useContext(t.DialogContext);if(!s)throw new Error("useDialogs must be used within an ProviderDialog");return s};exports.useDialog=t=>{const{add:i,remove:u,update:a,dialogHistory:n}=o(),[d,c]=e.useState(null),l=e.useCallback(e=>{const r=n.find(s=>s.id===e.id);if(!d||!r){const r=e.id||s.v4();c(r),i({...e,props:t,id:r})}},[i,n,d,t]),p=e.useCallback(()=>{d&&(u(d),c(null))},[d,u]),g=r.useDeepCompareMemoize(t);return e.useEffect(()=>{d&&a({id:d,props:g})},[d,g,a]),{add:l,remove:p,id:d}},exports.useDialogs=o;
|
|
2
|
+
//# sourceMappingURL=context.hooks-DDtUqE34.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.hooks-
|
|
1
|
+
{"version":3,"file":"context.hooks-DDtUqE34.cjs","sources":["../src/contexts/context-dialog/context.hooks.ts"],"sourcesContent":["import { useCallback, useContext, useEffect, useState } from 'react';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { useDeepCompareMemoize } from '@local/hooks/use-deep-compare-memoize';\n\nimport { DialogContext, DialogContextItemProps, DialogContextProps, useDialogProps } from '.';\n\nexport const useDialogs = (): DialogContextProps<object> => {\n const context = useContext(DialogContext);\n if (!context) {\n throw new Error('useDialogs must be used within an ProviderDialog');\n }\n return context;\n};\n\nexport const useDialog = <T extends object>(props?: useDialogProps<T>): DialogContextItemProps<T> => {\n const { add, remove, update, dialogHistory } = useDialogs();\n const [id, setId] = useState<string | null>(null);\n\n const localAdd: DialogContextItemProps<T>['add'] = useCallback(\n (dialog) => {\n const find = dialogHistory.find((item) => item.id === dialog.id);\n if (!id || !find) {\n const id = dialog.id || uuidv4();\n setId(id);\n add({ ...(dialog as T), props: props, id });\n }\n },\n [add, dialogHistory, id, props],\n );\n const localRemove = useCallback(() => {\n if (id) {\n remove(id);\n setId(null);\n }\n }, [id, remove]);\n\n const propsMemo = useDeepCompareMemoize(props);\n\n useEffect(() => {\n if (id) {\n update({ id, props: propsMemo });\n }\n }, [id, propsMemo, update]);\n\n return { add: localAdd, remove: localRemove, id };\n};\n"],"names":["useDialogs","context","useContext","DialogContext","Error","props","add","remove","update","dialogHistory","id","setId","useState","localAdd","useCallback","dialog","find","item","uuidv4","localRemove","propsMemo","useDeepCompareMemoize","useEffect"],"mappings":"sIAOaA,EAAa,KACxB,MAAMC,EAAUC,EAAAA,WAAWC,iBAC3B,IAAKF,EACH,MAAM,IAAIG,MAAM,oDAElB,OAAOH,qBAGmCI,IAC1C,MAAMC,IAAEA,EAAAC,OAAKA,EAAAC,OAAQA,EAAAC,cAAQA,GAAkBT,KACxCU,EAAIC,GAASC,EAAAA,SAAwB,MAEtCC,EAA6CC,EAAAA,YAChDC,IACC,MAAMC,EAAOP,EAAcO,KAAMC,GAASA,EAAKP,KAAOK,EAAOL,IAC7D,IAAKA,IAAOM,EAAM,CAChB,MAAMN,EAAKK,EAAOL,IAAMQ,OACxBP,EAAMD,GACNJ,EAAI,IAAMS,EAAcV,QAAcK,GAAAA,GAAI,GAG9C,CAACJ,EAAKG,EAAeC,EAAIL,IAErBc,EAAcL,EAAAA,YAAY,KAC1BJ,IACFH,EAAOG,GACPC,EAAM,QAEP,CAACD,EAAIH,IAEFa,EAAYC,EAAAA,sBAAsBhB,GAQxC,OANAiB,EAAAA,UAAU,KACJZ,GACFF,EAAO,CAAEE,KAAIL,MAAOe,KAErB,CAACV,EAAIU,EAAWZ,IAEZ,CAAEF,IAAKO,EAAUN,OAAQY,EAAaT"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const e=require("react"),n=require("./context.constants-
|
|
2
|
-
//# sourceMappingURL=context.hooks-
|
|
1
|
+
"use strict";const e=require("react"),n=require("./context.constants-wfD246Ww.cjs");exports.useSonner=()=>{const r=e.useContext(n.SonnerContext);if(!r)throw new Error("useSonner must be used within an ProviderSonner");return r};
|
|
2
|
+
//# sourceMappingURL=context.hooks-L-OO9FIg.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.hooks-
|
|
1
|
+
{"version":3,"file":"context.hooks-L-OO9FIg.cjs","sources":["../src/contexts/context-sonner/context.hooks.ts"],"sourcesContent":["import { useContext } from 'react';\n\nimport { SonnerContext, SonnerContextProps } from '.';\n\nexport const useSonner = (): SonnerContextProps => {\n const context = useContext(SonnerContext);\n if (!context) {\n throw new Error('useSonner must be used within an ProviderSonner');\n }\n return context;\n};\n"],"names":["context","useContext","SonnerContext","Error"],"mappings":"sGAIyB,KACvB,MAAMA,EAAUC,EAAAA,WAAWC,iBAC3B,IAAKF,EACH,MAAM,IAAIG,MAAM,mDAElB,OAAOH"}
|
package/build/index.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./area-Dup_lUb9.cjs"),t=require("./area.hooks-C_UKZzcb.cjs"),o=require("./context.constants-DSfxf3ST.cjs"),r=require("./area.styles-DQBIvHdz.cjs"),p=require("./area-DAgP6K9K.cjs"),s=require("./area.styles-CtrTLcAj.cjs"),n=require("./area-k8GR7Khj.cjs"),a=require("./component-8NOxwZJO.cjs"),i=require("./component-DdSHuopV.cjs"),x=require("./component-Ds6eJznV.cjs"),c=require("./component-DXSNBORy.cjs"),u=require("./component-D9Fz-_ZH.cjs"),l=require("./component.types-CYtUJDuN.cjs"),S=require("./component-IlhRGJHX.cjs"),d=require("./component.styles-CNn9SMc9.cjs"),T=require("./component-C-yqkm2n.cjs"),E=require("./component-KwYlKatx.cjs"),I=require("./component.constants-hDTTnj7k.cjs"),_=require("./component-DP42Uzl2.cjs"),D=require("./component-BLa80fGE.cjs"),A=require("./component.components-B6FC2-ox.cjs"),L=require("./component.constants-DiCmqOri.cjs"),O=require("./component-BLW4AlTi.cjs"),C=require("./component.styles-Dpg-__rn.cjs"),P=require("./component-6hRanOkU.cjs"),R=require("./component-86oA9dYz.cjs"),m=require("./component.styles-CD6ZzRrk.cjs"),g=require("./component-GKvpOWlO.cjs"),M=require("./component-GqA6sCHI.cjs"),N=require("./component.functions-D9ffjEok.cjs"),h=require("./consts.cjs.js"),y=require("./context.hooks-PU-CST61.cjs"),U=require("./context-_4lcMeym.cjs"),G=require("./context.functions-BoRkDnCa.cjs"),k=require("./context.constants-CRxCVRKK.cjs"),F=require("./context.hooks-ByjHt-DO.cjs"),j=require("./context-Cr9zS5ai.cjs"),W=require("./context.hooks-OTo7Znss.cjs"),B=require("./context-q6vhN54o.cjs"),b=require("./context.functions-Bk5xMi0w.cjs"),q=require("./context.functions-ar41xFVo.cjs"),v=require("./context.hooks-D13tbrva.cjs"),z=require("./context.hooks-BIsapq-0.cjs"),V=require("./context.hooks-BfmhHvrX.cjs"),f=require("./functions.cjs.js"),w=require("./use-IhzeVumv.cjs"),K=require("./use-C1l0O0Qo.cjs"),Y=require("./style-Df37KnoJ.cjs"),H=require("./motion-DgB7M2Hn.cjs"),X=require("./style-fRZ6xrVp.cjs");exports.Outside=e.Outside,exports.useRemovePreviewLoader=t.useRemovePreviewLoader,exports.AccordionDetails=o.AccordionDetails,exports.AccordionStyledIcon=o.AccordionStyledIcon,exports.AccordionSummary=o.AccordionSummary,exports.AccordionSummaryContent=o.AccordionSummaryContent,exports.AccordionWrapper=o.AccordionWrapper,exports.AppContext=o.AppContext,exports.Button=o.Button,exports.ButtonGroupWrapper=o.ButtonGroupWrapper,exports.ButtonList=o.ButtonList,exports.CheckboxChildren=o.CheckboxChildren,exports.CheckboxGenre=o.CheckboxGenre,exports.CheckboxGroupItem=o.CheckboxGroupItem,exports.CheckboxGroupLabel=o.CheckboxGroupLabel,exports.CheckboxGroupSize=o.CheckboxGroupSize,exports.CheckboxGroupSizeConstructor=o.CheckboxGroupSizeConstructor,exports.CheckboxGroupWrapper=o.CheckboxGroupWrapper,exports.CheckboxSize=o.CheckboxSize,exports.CheckboxSizeConstructor=o.CheckboxSizeConstructor,exports.CheckboxWrapper=o.CheckboxWrapper,exports.ContainerDropdownListOption=o.ContainerDropdownListOption,exports.ContainerSelectListOption=o.ContainerSelectListOption,exports.DEFAULT_MAP_CENTER=o.DEFAULT_MAP_CENTER,exports.DEFAULT_MAP_MAX_ZOOM=o.DEFAULT_MAP_MAX_ZOOM,exports.DEFAULT_MAP_MIN_ZOOM=o.DEFAULT_MAP_MIN_ZOOM,exports.DEFAULT_MAP_THEME=o.DEFAULT_MAP_THEME,exports.DEFAULT_MAP_ZOOM=o.DEFAULT_MAP_ZOOM,exports.DEFAULT_PROVIDER_SONNER_BUTTON=o.DEFAULT_PROVIDER_SONNER_BUTTON,exports.DEFAULT_PROVIDER_SONNER_DURATION=o.DEFAULT_PROVIDER_SONNER_DURATION,exports.DEFAULT_PROVIDER_SONNER_GENRE=o.DEFAULT_PROVIDER_SONNER_GENRE,exports.DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM=o.DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM,exports.DEFAULT_PROVIDER_SONNER_SCALE=o.DEFAULT_PROVIDER_SONNER_SCALE,exports.DEFAULT_PROVIDER_SONNER_Y=o.DEFAULT_PROVIDER_SONNER_Y,exports.DEFAULT_PROVIDER_SONNER_Z_INDEX=o.DEFAULT_PROVIDER_SONNER_Z_INDEX,exports.DEFAULT_TOOLTIP_OFFSET_FALLBACK=o.DEFAULT_TOOLTIP_OFFSET_FALLBACK,exports.DEFAULT_TOOLTIP_PLACEMENT_FALLBACK=o.DEFAULT_TOOLTIP_PLACEMENT_FALLBACK,exports.DateDropdownDay=o.DateDropdownDay,exports.DateDropdownDayOfWeek=o.DateDropdownDayOfWeek,exports.DateDropdownDays=o.DateDropdownDays,exports.DateDropdownList=o.DateDropdownList,exports.DateDropdownListParent=o.DateDropdownListParent,exports.DateInput=o.DateInput,exports.DateInputButton=o.DateInputButton,exports.DateInputWrapper=o.DateInputWrapper,exports.DateWrapper=o.DateWrapper,exports.DropdownList=o.DropdownList,exports.DropdownListOption=o.DropdownListOption,exports.DropdownListOptionIcon=o.DropdownListOptionIcon,exports.DropdownListParent=o.DropdownListParent,exports.ErrorMessage=o.ErrorMessage,exports.ErrorMessageComponent=o.ErrorMessageComponent,exports.Icon=o.Icon,exports.ImageSelectListSize=o.ImageSelectListSize,exports.ImageSelectListSizeConstructor=o.ImageSelectListSizeConstructor,exports.ImageSelectListWrapper=o.ImageSelectListWrapper,exports.ImageSelectSize=o.ImageSelectSize,exports.ImageSelectSizeConstructor=o.ImageSelectSizeConstructor,exports.ImageSelectWrapper=o.ImageSelectWrapper,exports.InputOTPSize=o.InputOTPSize,exports.InputOTPSizeConstructor=o.InputOTPSizeConstructor,exports.InputOTPWrapper=o.InputOTPWrapper,exports.InputPostfixChildren=o.InputPostfixChildren,exports.InputPrefixChildren=o.InputPrefixChildren,exports.InputSize=o.InputSize,exports.InputSizeConstructor=o.InputSizeConstructor,exports.JeneseiGlobalStyles=o.JeneseiGlobalStyles,exports.JeneseiPalette=o.JeneseiPalette,exports.KEY_SIZE_DATA=o.KEY_SIZE_DATA,exports.KEY_SIZE_DATA_TOGGLE=o.KEY_SIZE_DATA_TOGGLE,exports.MapWrapper=o.MapWrapper,exports.Preview=o.Preview,exports.ProviderApp=o.ProviderApp,exports.ProviderAppOutlet=o.ProviderAppOutlet,exports.ProviderAppOutletChildren=o.ProviderAppOutletChildren,exports.ProviderAppOutletFooter=o.ProviderAppOutletFooter,exports.ProviderAppOutletHeader=o.ProviderAppOutletHeader,exports.ProviderAppOutletLeftAside=o.ProviderAppOutletLeftAside,exports.ProviderAppOutletNav=o.ProviderAppOutletNav,exports.ProviderAppOutletNotification=o.ProviderAppOutletNotification,exports.ProviderAppOutletRightAside=o.ProviderAppOutletRightAside,exports.ProviderAppWrapper=o.ProviderAppWrapper,exports.ProviderSonner=o.ProviderSonner,exports.RangeThumb=o.RangeThumb,exports.RangeTrack=o.RangeTrack,exports.RangeWrapper=o.RangeWrapper,exports.Select=o.Select,exports.SelectLanguage=o.SelectLanguage,exports.SelectList=o.SelectList,exports.SelectListOption=o.SelectListOption,exports.SelectMapTheme=o.SelectMapTheme,exports.SelectMonth=o.SelectMonth,exports.SelectMonths=o.SelectMonths,exports.SelectTextArea=o.SelectTextArea,exports.SelectWrapper=o.SelectWrapper,exports.SelectYear=o.SelectYear,exports.SliderDot=o.SliderDot,exports.SliderImage=o.SliderImage,exports.SonnerButtonWrapper=o.SonnerButtonWrapper,exports.SonnerContent=o.SonnerContent,exports.SonnerContentDescription=o.SonnerContentDescription,exports.SonnerContentTitle=o.SonnerContentTitle,exports.SonnerContext=o.SonnerContext,exports.SonnerElementWrapper=o.SonnerElementWrapper,exports.SonnerIcon=o.SonnerIcon,exports.SonnerLayout=o.SonnerLayout,exports.StyledButton=o.StyledButton,exports.StyledButtonIconsWrapper=o.StyledButtonIconsWrapper,exports.StyledInput=o.StyledInput,exports.StyledInputCSS=o.StyledInputCSS,exports.StyledInputNumeric=o.StyledInputNumeric,exports.StyledInputPattern=o.StyledInputPattern,exports.StyledInputWrapper=o.StyledInputWrapper,exports.StyledMotionInput=o.StyledMotionInput,exports.StyledSVG=o.StyledSVG,exports.StyledTextArea=o.StyledTextArea,exports.TextArea=o.TextArea,exports.TextAreaWrapper=o.TextAreaWrapper,exports.ThemeBlack=o.ThemeBlack,exports.ThemeLight=o.ThemeLight,exports.ThemeMapBustmarket=o.ThemeMapBustmarket,exports.ThemeMapCheckbox=o.ThemeMapCheckbox,exports.ThemeMapId=o.ThemeMapId,exports.ThemeMapLoading=o.ThemeMapLoading,exports.ThemeMapLogo=o.ThemeMapLogo,exports.ThemeMapRealebail=o.ThemeMapRealebail,exports.Title=o.Title,exports.ToggleCenter=o.ToggleCenter,exports.ToggleWrapper=o.ToggleWrapper,exports.Tooltip=o.Tooltip,exports.TooltipBox=o.TooltipBox,exports.TooltipContainer=o.TooltipContainer,exports.TooltipContent=o.TooltipContent,exports.Typography=o.Typography,exports.TypographyLink=o.TypographyLink,exports.TypographyTooltip=o.TypographyTooltip,exports.addDateDropdownDaySize=o.addDateDropdownDaySize,exports.addDateInputButtonSize=o.addDateInputButtonSize,exports.addDateInputWrapperSize=o.addDateInputWrapperSize,exports.addError=o.addError,exports.addInputIsInputEffect=o.addInputIsInputEffect,exports.addInputPlaceholder=o.addInputPlaceholder,exports.addInputPlaceholderNiceNumber=o.addInputPlaceholderNiceNumber,exports.addSXTypography=o.addSXTypography,exports.addTextArea=o.addTextArea,exports.addTooltipBoxSize=o.addTooltipBoxSize,exports.addTooltipBoxSizeConstructor=o.addTooltipBoxSizeConstructor,exports.getIconComponents=o.getIconComponents,exports.useBgColor=o.useBgColor,exports.useBgImage=o.useBgImage,exports.useDescription=o.useDescription,exports.useInjectSprites=o.useInjectSprites,exports.useLazyInjectSprite=o.useLazyInjectSprite,exports.useStatusBarColor=o.useStatusBarColor,exports.StyledScroll=r.StyledScroll,exports.Scroll=p.Scroll,exports.StyledSkeleton=s.StyledSkeleton,exports.Skeleton=n.Skeleton,exports.Smooth=a.Smooth,exports.Accordion=i.Accordion,exports.ButtonGroup=x.ButtonGroup,exports.Checkbox=c.Checkbox,exports.CheckboxGroup=u.CheckboxGroup,exports.DatePicker=l.DatePicker,exports.DatePickerVariant=l.DatePickerVariant,exports.Image=S.Image,exports.ImageIMG=d.ImageIMG,exports.ImageButton=T.ImageButton,exports.ImageSelect=E.ImageSelect,exports.IMAGES=I.IMAGES,exports.ImageSlider=I.ImageSlider,exports.Input=_.Input,exports.formatPhoneNumber=_.formatPhoneNumber,exports.InputOTP=D.InputOTP,exports.CustomZoomControl=A.CustomZoomControl,exports.MapCluster=A.MapCluster,exports.MapDot=A.MapDot,exports.MarkerCluster=A.MarkerCluster,exports.UpdateMapSettings=A.UpdateMapSettings,exports.createClusterIcon=A.createClusterIcon,exports.customDefaultIcon=A.customDefaultIcon,exports.customTextIcon=A.customTextIcon,exports.DEFAULT_COMPONENT_PAGINATION_GAP=L.DEFAULT_COMPONENT_PAGINATION_GAP,exports.Pagination=L.Pagination,exports.Range=O.Range,exports.DEFAULT_RIPPLE_DURATION=C.DEFAULT_RIPPLE_DURATION,exports.DEFAULT_RIPPLE_ID=C.DEFAULT_RIPPLE_ID,exports.RippleContainer=C.RippleContainer,exports.RippleSpan=C.RippleSpan,exports.addRipple=C.addRipple,exports.addRippleDefault=C.addRippleDefault,exports.Ripple=P.Ripple,exports.Separator=R.Separator,exports.SeparatorWrapper=m.SeparatorWrapper,exports.Stack=g.Stack,exports.StackMotion=g.StackMotion,exports.StyledStack=g.StyledStack,exports.StyledStackMotion=g.StyledStackMotion,exports.Toggle=M.Toggle,exports.getFontSizeStyles=N.getFontSizeStyles,exports.LIBRARY_VERSION=h.LIBRARY_VERSION,exports.LIST_IMAGE_SUPPORTED_FORMAT=h.LIST_IMAGE_SUPPORTED_FORMAT,exports.LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT=h.LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT,exports.LIST_KEY_LANGUAGE=h.LIST_KEY_LANGUAGE,exports.LIST_KEY_SERVICE=h.LIST_KEY_SERVICE,exports.LIST_LANGUAGE=h.LIST_LANGUAGE,exports.LIST_MAP_THEME=h.LIST_MAP_THEME,exports.LIST_SERVICE=h.LIST_SERVICE,exports.LOCALE_INPUT=h.LOCALE_INPUT,exports.LOCALE_MONTHS=h.LOCALE_MONTHS,exports.LOCALE_WEEKS=h.LOCALE_WEEKS,exports.LOREM_IPSUM_TEXT=h.LOREM_IPSUM_TEXT,exports.OBJECT_LANGUAGE=h.OBJECT_LANGUAGE,exports.OBJECT_SERVICE=h.OBJECT_SERVICE,exports.useApp=y.useApp,exports.CookieContext=U.CookieContext,exports.ProviderCookie=U.ProviderCookie,exports.getFromCookie=G.getFromCookie,exports.setToCookie=G.setToCookie,exports.useCookie=G.useCookie,exports.DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT=k.DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,exports.DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT=k.DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND=k.DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS=k.DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT=k.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH=k.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING=k.DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING,exports.DialogContent=k.DialogContent,exports.DialogContext=k.DialogContext,exports.DialogElementWrapper=k.DialogElementWrapper,exports.DialogLayout=k.DialogLayout,exports.ProviderDialog=k.ProviderDialog,exports.useDialog=F.useDialog,exports.useDialogs=F.useDialogs,exports.GeolocationContext=j.GeolocationContext,exports.ProviderGeolocation=j.ProviderGeolocation,exports.useGeolocation=W.useGeolocation,exports.LocalStorageContext=B.LocalStorageContext,exports.ProviderLocalStorage=B.ProviderLocalStorage,exports.getFromLocalStorage=b.getFromLocalStorage,exports.setToLocalStorage=b.setToLocalStorage,exports.useLocalStorage=b.useLocalStorage,exports.urlBase64ToUint8Array=q.urlBase64ToUint8Array,exports.PermissionContext=v.PermissionContext,exports.ProviderPermission=v.ProviderPermission,exports.usePermission=v.usePermission,exports.ProviderScreenWidth=z.ProviderScreenWidth,exports.ScreenWidthContext=z.ScreenWidthContext,exports.useScreenWidth=z.useScreenWidth,exports.useSonner=V.useSonner,exports.getContrastYIQ=f.getContrastYIQ,exports.getScrollbarWidth=f.getScrollbarWidth,exports.transformEnumToOptions=f.transformEnumToOptions,exports.transformObjectToArray=f.transformObjectToArray,exports.transformObjectValuesToKeys=f.transformObjectValuesToKeys,exports.useDebouncedCallback=w.useDebouncedCallback,exports.useDeepCompareMemoize=K.useDeepCompareMemoize,exports.addAlwaysOutline=Y.addAlwaysOutline,exports.addColorTransition=Y.addColorTransition,exports.addDisabled=Y.addDisabled,exports.addFont=Y.addFont,exports.addGridTransition=Y.addGridTransition,exports.addNiceNumber=Y.addNiceNumber,exports.addOutline=Y.addOutline,exports.addOutlineChildren=Y.addOutlineChildren,exports.addRemoveOutline=Y.addRemoveOutline,exports.addRemoveScrollbar=Y.addRemoveScrollbar,exports.addTransition=Y.addTransition,exports.addTransitionWithoutSize=Y.addTransitionWithoutSize,exports.BlurIn=H.BlurIn,exports.GradualSpacing=H.GradualSpacing,exports.TypingEffect=H.TypingEffect,exports.WordsPullUp=H.WordsPullUp,exports.addSX=X.addSX;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./area-pCo19R2g.cjs"),t=require("./area.hooks-C_UKZzcb.cjs"),o=require("./context.constants-wfD246Ww.cjs"),r=require("./area.styles-BuceLNra.cjs"),p=require("./area-BG04bpxi.cjs"),s=require("./component-Cc8X-Z80.cjs"),n=require("./component-ySx7l0Xg.cjs"),a=require("./component-JIJwPwrc.cjs"),i=require("./component-CYmkHAmE.cjs"),x=require("./component-1kuvOkUa.cjs"),c=require("./component.types-ZmH2V3qe.cjs"),u=require("./component-BF_RC9Ej.cjs"),l=require("./component-BXCFqCtK.cjs"),S=require("./component-BXhibaBj.cjs"),d=require("./component.constants-C0oGZ1iR.cjs"),T=require("./component-jH7YXK4X.cjs"),E=require("./component-GiB9SJbH.cjs"),I=require("./component.components-DzoKT5j9.cjs"),_=require("./component.constants-DZyqQi6L.cjs"),D=require("./component-Bv6UuRlj.cjs"),A=require("./component.styles-Dpg-__rn.cjs"),L=require("./component-CLqcB5mM.cjs"),O=require("./component-86oA9dYz.cjs"),C=require("./component.styles-CD6ZzRrk.cjs"),P=require("./component-5Utdcc2G.cjs"),R=require("./component-CDa4aHfO.cjs"),m=require("./component.functions-D9ffjEok.cjs"),g=require("./consts.cjs.js"),M=require("./context.hooks-CXSsHfiI.cjs"),N=require("./context-_4lcMeym.cjs"),h=require("./context.functions-BoRkDnCa.cjs"),y=require("./context.constants-wztrdG5Q.cjs"),U=require("./context.hooks-DDtUqE34.cjs"),G=require("./context-Cr9zS5ai.cjs"),k=require("./context.hooks-OTo7Znss.cjs"),F=require("./context-q6vhN54o.cjs"),W=require("./context.functions-Bk5xMi0w.cjs"),j=require("./context.functions-ar41xFVo.cjs"),B=require("./context.hooks-D13tbrva.cjs"),b=require("./context.hooks-BIsapq-0.cjs"),q=require("./context.hooks-L-OO9FIg.cjs"),v=require("./functions.cjs.js"),z=require("./use-IhzeVumv.cjs"),V=require("./use-C1l0O0Qo.cjs"),f=require("./style-Drq-Q1Im.cjs"),w=require("./motion-DgB7M2Hn.cjs"),K=require("./style-fRZ6xrVp.cjs");exports.Outside=e.Outside,exports.useRemovePreviewLoader=t.useRemovePreviewLoader,exports.AccordionDetails=o.AccordionDetails,exports.AccordionStyledIcon=o.AccordionStyledIcon,exports.AccordionSummary=o.AccordionSummary,exports.AccordionSummaryContent=o.AccordionSummaryContent,exports.AccordionWrapper=o.AccordionWrapper,exports.AppContext=o.AppContext,exports.Button=o.Button,exports.ButtonGroupWrapper=o.ButtonGroupWrapper,exports.ButtonList=o.ButtonList,exports.CheckboxChildren=o.CheckboxChildren,exports.CheckboxGenre=o.CheckboxGenre,exports.CheckboxGroupItem=o.CheckboxGroupItem,exports.CheckboxGroupLabel=o.CheckboxGroupLabel,exports.CheckboxGroupSize=o.CheckboxGroupSize,exports.CheckboxGroupSizeConstructor=o.CheckboxGroupSizeConstructor,exports.CheckboxGroupWrapper=o.CheckboxGroupWrapper,exports.CheckboxSize=o.CheckboxSize,exports.CheckboxSizeConstructor=o.CheckboxSizeConstructor,exports.CheckboxWrapper=o.CheckboxWrapper,exports.ContainerDropdownListOption=o.ContainerDropdownListOption,exports.ContainerSelectListOption=o.ContainerSelectListOption,exports.DEFAULT_MAP_CENTER=o.DEFAULT_MAP_CENTER,exports.DEFAULT_MAP_MAX_ZOOM=o.DEFAULT_MAP_MAX_ZOOM,exports.DEFAULT_MAP_MIN_ZOOM=o.DEFAULT_MAP_MIN_ZOOM,exports.DEFAULT_MAP_THEME=o.DEFAULT_MAP_THEME,exports.DEFAULT_MAP_ZOOM=o.DEFAULT_MAP_ZOOM,exports.DEFAULT_PROVIDER_SONNER_BUTTON=o.DEFAULT_PROVIDER_SONNER_BUTTON,exports.DEFAULT_PROVIDER_SONNER_DURATION=o.DEFAULT_PROVIDER_SONNER_DURATION,exports.DEFAULT_PROVIDER_SONNER_GENRE=o.DEFAULT_PROVIDER_SONNER_GENRE,exports.DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM=o.DEFAULT_PROVIDER_SONNER_MARGIN_BOTTOM,exports.DEFAULT_PROVIDER_SONNER_SCALE=o.DEFAULT_PROVIDER_SONNER_SCALE,exports.DEFAULT_PROVIDER_SONNER_Y=o.DEFAULT_PROVIDER_SONNER_Y,exports.DEFAULT_PROVIDER_SONNER_Z_INDEX=o.DEFAULT_PROVIDER_SONNER_Z_INDEX,exports.DEFAULT_TOOLTIP_OFFSET_FALLBACK=o.DEFAULT_TOOLTIP_OFFSET_FALLBACK,exports.DEFAULT_TOOLTIP_PLACEMENT_FALLBACK=o.DEFAULT_TOOLTIP_PLACEMENT_FALLBACK,exports.DateDropdownDay=o.DateDropdownDay,exports.DateDropdownDayOfWeek=o.DateDropdownDayOfWeek,exports.DateDropdownDays=o.DateDropdownDays,exports.DateDropdownList=o.DateDropdownList,exports.DateDropdownListParent=o.DateDropdownListParent,exports.DateInput=o.DateInput,exports.DateInputButton=o.DateInputButton,exports.DateInputWrapper=o.DateInputWrapper,exports.DateWrapper=o.DateWrapper,exports.DropdownList=o.DropdownList,exports.DropdownListOption=o.DropdownListOption,exports.DropdownListOptionIcon=o.DropdownListOptionIcon,exports.DropdownListParent=o.DropdownListParent,exports.ErrorMessage=o.ErrorMessage,exports.ErrorMessageComponent=o.ErrorMessageComponent,exports.Icon=o.Icon,exports.ImageIMG=o.ImageIMG,exports.ImageSelectListSize=o.ImageSelectListSize,exports.ImageSelectListSizeConstructor=o.ImageSelectListSizeConstructor,exports.ImageSelectListWrapper=o.ImageSelectListWrapper,exports.ImageSelectSize=o.ImageSelectSize,exports.ImageSelectSizeConstructor=o.ImageSelectSizeConstructor,exports.ImageSelectWrapper=o.ImageSelectWrapper,exports.InputOTPSize=o.InputOTPSize,exports.InputOTPSizeConstructor=o.InputOTPSizeConstructor,exports.InputOTPWrapper=o.InputOTPWrapper,exports.InputPostfixChildren=o.InputPostfixChildren,exports.InputPrefixChildren=o.InputPrefixChildren,exports.InputSize=o.InputSize,exports.InputSizeConstructor=o.InputSizeConstructor,exports.JeneseiGlobalStyles=o.JeneseiGlobalStyles,exports.JeneseiPalette=o.JeneseiPalette,exports.KEY_SIZE_DATA=o.KEY_SIZE_DATA,exports.KEY_SIZE_DATA_TOGGLE=o.KEY_SIZE_DATA_TOGGLE,exports.MapWrapper=o.MapWrapper,exports.Preview=o.Preview,exports.ProviderApp=o.ProviderApp,exports.ProviderAppOutlet=o.ProviderAppOutlet,exports.ProviderAppOutletChildren=o.ProviderAppOutletChildren,exports.ProviderAppOutletFooter=o.ProviderAppOutletFooter,exports.ProviderAppOutletHeader=o.ProviderAppOutletHeader,exports.ProviderAppOutletLeftAside=o.ProviderAppOutletLeftAside,exports.ProviderAppOutletNav=o.ProviderAppOutletNav,exports.ProviderAppOutletNotification=o.ProviderAppOutletNotification,exports.ProviderAppOutletRightAside=o.ProviderAppOutletRightAside,exports.ProviderAppWrapper=o.ProviderAppWrapper,exports.ProviderSonner=o.ProviderSonner,exports.RangeThumb=o.RangeThumb,exports.RangeTrack=o.RangeTrack,exports.RangeWrapper=o.RangeWrapper,exports.Select=o.Select,exports.SelectLanguage=o.SelectLanguage,exports.SelectList=o.SelectList,exports.SelectListOption=o.SelectListOption,exports.SelectMapTheme=o.SelectMapTheme,exports.SelectMonth=o.SelectMonth,exports.SelectMonths=o.SelectMonths,exports.SelectTextArea=o.SelectTextArea,exports.SelectWrapper=o.SelectWrapper,exports.SelectYear=o.SelectYear,exports.Skeleton=o.Skeleton,exports.SliderDot=o.SliderDot,exports.SliderImage=o.SliderImage,exports.SonnerButtonWrapper=o.SonnerButtonWrapper,exports.SonnerContent=o.SonnerContent,exports.SonnerContentDescription=o.SonnerContentDescription,exports.SonnerContentTitle=o.SonnerContentTitle,exports.SonnerContext=o.SonnerContext,exports.SonnerElementWrapper=o.SonnerElementWrapper,exports.SonnerIcon=o.SonnerIcon,exports.SonnerLayout=o.SonnerLayout,exports.StyledButton=o.StyledButton,exports.StyledButtonIconsWrapper=o.StyledButtonIconsWrapper,exports.StyledIcon=o.StyledIcon,exports.StyledIconSkeleton=o.StyledIconSkeleton,exports.StyledInput=o.StyledInput,exports.StyledInputCSS=o.StyledInputCSS,exports.StyledInputNumeric=o.StyledInputNumeric,exports.StyledInputPattern=o.StyledInputPattern,exports.StyledInputWrapper=o.StyledInputWrapper,exports.StyledMotionInput=o.StyledMotionInput,exports.StyledSkeleton=o.StyledSkeleton,exports.StyledTextArea=o.StyledTextArea,exports.TextArea=o.TextArea,exports.TextAreaWrapper=o.TextAreaWrapper,exports.ThemeBlack=o.ThemeBlack,exports.ThemeLight=o.ThemeLight,exports.ThemeMapBustmarket=o.ThemeMapBustmarket,exports.ThemeMapCheckbox=o.ThemeMapCheckbox,exports.ThemeMapId=o.ThemeMapId,exports.ThemeMapLoading=o.ThemeMapLoading,exports.ThemeMapLogo=o.ThemeMapLogo,exports.ThemeMapRealebail=o.ThemeMapRealebail,exports.Title=o.Title,exports.ToggleCenter=o.ToggleCenter,exports.ToggleWrapper=o.ToggleWrapper,exports.Tooltip=o.Tooltip,exports.TooltipBox=o.TooltipBox,exports.TooltipContainer=o.TooltipContainer,exports.TooltipContent=o.TooltipContent,exports.Typography=o.Typography,exports.TypographyLink=o.TypographyLink,exports.TypographyTooltip=o.TypographyTooltip,exports.addDateDropdownDaySize=o.addDateDropdownDaySize,exports.addDateInputButtonSize=o.addDateInputButtonSize,exports.addDateInputWrapperSize=o.addDateInputWrapperSize,exports.addError=o.addError,exports.addInputIsInputEffect=o.addInputIsInputEffect,exports.addInputPlaceholder=o.addInputPlaceholder,exports.addInputPlaceholderNiceNumber=o.addInputPlaceholderNiceNumber,exports.addSXTypography=o.addSXTypography,exports.addTextArea=o.addTextArea,exports.addTooltipBoxSize=o.addTooltipBoxSize,exports.addTooltipBoxSizeConstructor=o.addTooltipBoxSizeConstructor,exports.getIconComponents=o.getIconComponents,exports.useBgColor=o.useBgColor,exports.useBgImage=o.useBgImage,exports.useDescription=o.useDescription,exports.useInjectSprites=o.useInjectSprites,exports.useLazyInjectSprite=o.useLazyInjectSprite,exports.useStatusBarColor=o.useStatusBarColor,exports.StyledScroll=r.StyledScroll,exports.Scroll=p.Scroll,exports.Smooth=s.Smooth,exports.Accordion=n.Accordion,exports.ButtonGroup=a.ButtonGroup,exports.Checkbox=i.Checkbox,exports.CheckboxGroup=x.CheckboxGroup,exports.DatePicker=c.DatePicker,exports.DatePickerVariant=c.DatePickerVariant,exports.Image=u.Image,exports.ImageButton=l.ImageButton,exports.ImageSelect=S.ImageSelect,exports.IMAGES=d.IMAGES,exports.ImageSlider=d.ImageSlider,exports.Input=T.Input,exports.formatPhoneNumber=T.formatPhoneNumber,exports.InputOTP=E.InputOTP,exports.CustomZoomControl=I.CustomZoomControl,exports.MapCluster=I.MapCluster,exports.MapDot=I.MapDot,exports.MarkerCluster=I.MarkerCluster,exports.UpdateMapSettings=I.UpdateMapSettings,exports.createClusterIcon=I.createClusterIcon,exports.customDefaultIcon=I.customDefaultIcon,exports.customTextIcon=I.customTextIcon,exports.DEFAULT_COMPONENT_PAGINATION_GAP=_.DEFAULT_COMPONENT_PAGINATION_GAP,exports.Pagination=_.Pagination,exports.Range=D.Range,exports.DEFAULT_RIPPLE_DURATION=A.DEFAULT_RIPPLE_DURATION,exports.DEFAULT_RIPPLE_ID=A.DEFAULT_RIPPLE_ID,exports.RippleContainer=A.RippleContainer,exports.RippleSpan=A.RippleSpan,exports.addRipple=A.addRipple,exports.addRippleDefault=A.addRippleDefault,exports.Ripple=L.Ripple,exports.Separator=O.Separator,exports.SeparatorWrapper=C.SeparatorWrapper,exports.Stack=P.Stack,exports.StackMotion=P.StackMotion,exports.StyledStack=P.StyledStack,exports.StyledStackMotion=P.StyledStackMotion,exports.Toggle=R.Toggle,exports.getFontSizeStyles=m.getFontSizeStyles,exports.LIBRARY_VERSION=g.LIBRARY_VERSION,exports.LIST_IMAGE_SUPPORTED_FORMAT=g.LIST_IMAGE_SUPPORTED_FORMAT,exports.LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT=g.LIST_IMAGE_SUPPORTED_FORMAT_FOR_INPUT,exports.LIST_KEY_LANGUAGE=g.LIST_KEY_LANGUAGE,exports.LIST_KEY_SERVICE=g.LIST_KEY_SERVICE,exports.LIST_LANGUAGE=g.LIST_LANGUAGE,exports.LIST_MAP_THEME=g.LIST_MAP_THEME,exports.LIST_SERVICE=g.LIST_SERVICE,exports.LOCALE_INPUT=g.LOCALE_INPUT,exports.LOCALE_MONTHS=g.LOCALE_MONTHS,exports.LOCALE_WEEKS=g.LOCALE_WEEKS,exports.LOREM_IPSUM_TEXT=g.LOREM_IPSUM_TEXT,exports.OBJECT_LANGUAGE=g.OBJECT_LANGUAGE,exports.OBJECT_SERVICE=g.OBJECT_SERVICE,exports.useApp=M.useApp,exports.CookieContext=N.CookieContext,exports.ProviderCookie=N.ProviderCookie,exports.getFromCookie=h.getFromCookie,exports.setToCookie=h.setToCookie,exports.useCookie=h.useCookie,exports.DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT=y.DEFAULT_PROVIDER_DIALOG_DURATION_ELEMENT,exports.DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT=y.DEFAULT_PROVIDER_DIALOG_DURATION_LAYOUT,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND=y.DEFAULT_PROVIDER_DIALOG_ELEMENT_BACKGROUND,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS=y.DEFAULT_PROVIDER_DIALOG_ELEMENT_BORDER_RADIUS,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT=y.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_HEIGHT,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH=y.DEFAULT_PROVIDER_DIALOG_ELEMENT_MAX_WIDTH,exports.DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING=y.DEFAULT_PROVIDER_DIALOG_ELEMENT_PADDING,exports.DialogContent=y.DialogContent,exports.DialogContext=y.DialogContext,exports.DialogElementWrapper=y.DialogElementWrapper,exports.DialogLayout=y.DialogLayout,exports.ProviderDialog=y.ProviderDialog,exports.useDialog=U.useDialog,exports.useDialogs=U.useDialogs,exports.GeolocationContext=G.GeolocationContext,exports.ProviderGeolocation=G.ProviderGeolocation,exports.useGeolocation=k.useGeolocation,exports.LocalStorageContext=F.LocalStorageContext,exports.ProviderLocalStorage=F.ProviderLocalStorage,exports.getFromLocalStorage=W.getFromLocalStorage,exports.setToLocalStorage=W.setToLocalStorage,exports.useLocalStorage=W.useLocalStorage,exports.urlBase64ToUint8Array=j.urlBase64ToUint8Array,exports.PermissionContext=B.PermissionContext,exports.ProviderPermission=B.ProviderPermission,exports.usePermission=B.usePermission,exports.ProviderScreenWidth=b.ProviderScreenWidth,exports.ScreenWidthContext=b.ScreenWidthContext,exports.useScreenWidth=b.useScreenWidth,exports.useSonner=q.useSonner,exports.getContrastYIQ=v.getContrastYIQ,exports.getScrollbarWidth=v.getScrollbarWidth,exports.transformEnumToOptions=v.transformEnumToOptions,exports.transformObjectToArray=v.transformObjectToArray,exports.transformObjectValuesToKeys=v.transformObjectValuesToKeys,exports.useDebouncedCallback=z.useDebouncedCallback,exports.useDeepCompareMemoize=V.useDeepCompareMemoize,exports.addAlwaysOutline=f.addAlwaysOutline,exports.addColorTransition=f.addColorTransition,exports.addDisabled=f.addDisabled,exports.addFont=f.addFont,exports.addFontSizeTransition=f.addFontSizeTransition,exports.addGridTransition=f.addGridTransition,exports.addNiceNumber=f.addNiceNumber,exports.addOutline=f.addOutline,exports.addOutlineChildren=f.addOutlineChildren,exports.addRemoveOutline=f.addRemoveOutline,exports.addRemoveScrollbar=f.addRemoveScrollbar,exports.addTransition=f.addTransition,exports.addTransitionWithoutSize=f.addTransitionWithoutSize,exports.BlurIn=w.BlurIn,exports.GradualSpacing=w.GradualSpacing,exports.TypingEffect=w.TypingEffect,exports.WordsPullUp=w.WordsPullUp,exports.addSX=K.addSX;
|
|
2
2
|
//# sourceMappingURL=index.cjs.js.map
|
package/build/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import { HTMLInputAutoCompleteAttribute } from 'react';
|
|
|
41
41
|
import { HTMLInputTypeAttribute } from 'react';
|
|
42
42
|
import { HTMLMotionProps } from 'framer-motion';
|
|
43
43
|
import { IconItemProps as IconItemProps_2 } from '../icon';
|
|
44
|
+
import { IconItemProps as IconItemProps_3 } from './component.types';
|
|
44
45
|
import { ILanguageKeys as ILanguageKeys_2 } from './types';
|
|
45
46
|
import { ImageSelectProps as ImageSelectProps_2 } from './component.types';
|
|
46
47
|
import { ImgHTMLAttributes } from 'react';
|
|
@@ -85,6 +86,7 @@ import { RippleProps as RippleProps_2 } from './component.types';
|
|
|
85
86
|
import { RuleSet } from 'styled-components';
|
|
86
87
|
import { SelectProps as SelectProps_2 } from './component.types';
|
|
87
88
|
import { SeparatorProps as SeparatorProps_2 } from './component.types';
|
|
89
|
+
import { SkeletonProps as SkeletonProps_2 } from '../../areas/skeleton';
|
|
88
90
|
import { SonnerContentStandardProps as SonnerContentStandardProps_2 } from './context.types';
|
|
89
91
|
import { StackProps as StackProps_2 } from '../../components/stack';
|
|
90
92
|
import { StackProps as StackProps_3 } from './component.types';
|
|
@@ -115,7 +117,7 @@ export declare interface AccordionProps {
|
|
|
115
117
|
triggerUpdate?: unknown[];
|
|
116
118
|
}
|
|
117
119
|
|
|
118
|
-
export declare const AccordionStyledIcon: IStyledComponentBase<"web", Substitute<IconItemProps_2 & BaseObject, AddDollarSign_2<Pick<AccordionProps_2, "expanded">>>> & string & Omit<(props: IconItemProps_2) => JSX.Element
|
|
120
|
+
export declare const AccordionStyledIcon: IStyledComponentBase<"web", Substitute<IconItemProps_2 & BaseObject, AddDollarSign_2<Pick<AccordionProps_2, "expanded">>>> & string & Omit<(props: IconItemProps_2) => JSX.Element, keyof Component<any, {}, any>>;
|
|
119
121
|
|
|
120
122
|
export declare type AccordionStyledIconProps = AddDollarSign<Pick<AccordionProps, 'expanded'>>;
|
|
121
123
|
|
|
@@ -167,6 +169,10 @@ export declare type addFontProps = {
|
|
|
167
169
|
font?: FontSizeStylesProps;
|
|
168
170
|
};
|
|
169
171
|
|
|
172
|
+
export declare const addFontSizeTransition: RuleSet< {
|
|
173
|
+
$isTransitionFontSize?: boolean;
|
|
174
|
+
}>;
|
|
175
|
+
|
|
170
176
|
export declare const addGridTransition: RuleSet<object>;
|
|
171
177
|
|
|
172
178
|
export declare type addIconProps = {
|
|
@@ -743,7 +749,7 @@ isShowScroll?: boolean;
|
|
|
743
749
|
|
|
744
750
|
export declare const DropdownListOptionIcon: IStyledComponentBase<"web", Substitute<IconItemProps_2 & BaseObject, AddDollarSign_2<Pick<SelectProps_2<ISelectItem_2>, "size" | "genre"> & {
|
|
745
751
|
checked?: boolean;
|
|
746
|
-
}>>> & string & Omit<(props: IconItemProps_2) => JSX.Element
|
|
752
|
+
}>>> & string & Omit<(props: IconItemProps_2) => JSX.Element, keyof Component<any, {}, any>>;
|
|
747
753
|
|
|
748
754
|
export declare type DropdownListOptionIconProps = AddDollarSign<Pick<SelectProps<ISelectItem>, 'genre' | 'size'> & {
|
|
749
755
|
checked?: boolean;
|
|
@@ -837,7 +843,7 @@ export declare interface ICheckboxValue {
|
|
|
837
843
|
value: string | number;
|
|
838
844
|
}
|
|
839
845
|
|
|
840
|
-
export declare const Icon: (props: IconItemProps) => JSX.Element
|
|
846
|
+
export declare const Icon: (props: IconItemProps) => JSX.Element;
|
|
841
847
|
|
|
842
848
|
export declare type IconItemProps = {
|
|
843
849
|
[K in keyof DefaultTheme['icon']['map']]: {
|
|
@@ -1959,8 +1965,11 @@ export declare function setToLocalStorage<T>(key: string, value: T): void;
|
|
|
1959
1965
|
export declare const Skeleton: FC<SkeletonProps>;
|
|
1960
1966
|
|
|
1961
1967
|
declare type SkeletonDefaultProps = {
|
|
1968
|
+
className?: string;
|
|
1962
1969
|
defaultVisible?: boolean;
|
|
1963
1970
|
type?: 'primary' | 'secondary';
|
|
1971
|
+
color?: IThemePaletteKeys;
|
|
1972
|
+
isInheritColor?: boolean;
|
|
1964
1973
|
};
|
|
1965
1974
|
|
|
1966
1975
|
declare interface SkeletonIsShowProps extends SkeletonDefaultProps {
|
|
@@ -2095,12 +2104,18 @@ export declare type StyledDollarButtonIconsWrapperProps = AddDollarSign<Pick<But
|
|
|
2095
2104
|
|
|
2096
2105
|
export declare type StyledDollarButtonProps = AddDollarSign<Pick<ButtonProps, 'genre' | 'isDisabled' | 'isHidden' | 'isWidthAsHeight' | 'isMinWidthAsContent' | 'isRadius' | 'isHiddenBorder' | 'isPlaystationEffect' | 'size' | 'isFullSize' | 'isNotHoverEffect' | 'font'>> & addSXStyleProps & addOutlinePropsDollar & addSXTypographyStyleProps;
|
|
2097
2106
|
|
|
2107
|
+
export declare const StyledIcon: IStyledComponentBase<"web", Substitute<SVGProps<SVGSVGElement>, StyledIconItemProps>> & string;
|
|
2108
|
+
|
|
2098
2109
|
export declare type StyledIconItemProps = AddDollarSign<Pick<IconItemProps, 'size' | 'turn' | 'order'> & {
|
|
2099
2110
|
color?: IThemePaletteKeys;
|
|
2100
2111
|
}> & addSXStyleProps;
|
|
2101
2112
|
|
|
2102
2113
|
export declare type StyledIconProps = AddDollarSign<Pick<CheckboxProps, 'genre' | 'checked'>>;
|
|
2103
2114
|
|
|
2115
|
+
export declare const StyledIconSkeleton: IStyledComponentBase<"web", Substitute<SkeletonProps_2 & BaseObject, AddDollarSign_2<Pick<IconItemProps_3, "size" | "order">>>> & string & Omit<FC<SkeletonProps_2>, keyof Component<any, {}, any>>;
|
|
2116
|
+
|
|
2117
|
+
export declare type StyledIconSkeletonProps = AddDollarSign<Pick<IconItemProps, 'size' | 'order'>>;
|
|
2118
|
+
|
|
2104
2119
|
export declare const StyledInput: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, StyledInputProps>> & string;
|
|
2105
2120
|
|
|
2106
2121
|
export declare type StyledInputChildrenProps = AddDollarSign<Pick<InputProps, 'isDisabled'> & Pick<InputChildrenProps, 'left' | 'right' | 'width'>>;
|
|
@@ -2147,7 +2162,7 @@ export declare type StyledScrollProps = StackProps & AddDollarSign<DefaultScroll
|
|
|
2147
2162
|
|
|
2148
2163
|
export declare const StyledSkeleton: IStyledComponentBase<"web", Substitute<StackProps_2, StyledSkeletonProps>> & string & Omit<FC<StackProps_2>, keyof Component<any, {}, any>>;
|
|
2149
2164
|
|
|
2150
|
-
export declare type StyledSkeletonProps = StackProps & AddDollarSign<Pick<SkeletonIsShowProps & SkeletonTimeProps, 'visible' | 'type'>>;
|
|
2165
|
+
export declare type StyledSkeletonProps = StackProps & AddDollarSign<Pick<SkeletonIsShowProps & SkeletonTimeProps, 'visible' | 'type' | 'color' | 'isInheritColor'>>;
|
|
2151
2166
|
|
|
2152
2167
|
export declare const StyledStack: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AddDollarSign_2<StackProps_3>>> & string;
|
|
2153
2168
|
|
|
@@ -2155,8 +2170,6 @@ export declare const StyledStackMotion: IStyledComponentBase<"web", Substitute<O
|
|
|
2155
2170
|
|
|
2156
2171
|
export declare type StyledStackProps = AddDollarSign<StackProps>;
|
|
2157
2172
|
|
|
2158
|
-
export declare const StyledSVG: IStyledComponentBase<"web", Substitute<SVGProps<SVGSVGElement>, StyledIconItemProps>> & string;
|
|
2159
|
-
|
|
2160
2173
|
export declare const StyledTextArea: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, AddDollarSign_2<Pick<TextAreaProps_3, "size" | "font" | "isDisabled" | "error" | "genre" | "isLoading" | "isBold" | "isResize" | "isInputEffect"> & {
|
|
2161
2174
|
lineHeight: number;
|
|
2162
2175
|
}>>> & string;
|
|
@@ -2282,6 +2295,7 @@ export declare type TypographyAllProps = TypographyDataProps | TypographyVariant
|
|
|
2282
2295
|
export declare type TypographyCSSProps = AddDollarSign<{
|
|
2283
2296
|
sxTypography: TypographySXProps;
|
|
2284
2297
|
sx?: SXProps;
|
|
2298
|
+
isTransitionFontSize?: boolean;
|
|
2285
2299
|
}> & addOutlinePropsDollar;
|
|
2286
2300
|
|
|
2287
2301
|
export declare type TypographyDataProps = TypographyDefaultProps & {
|
|
@@ -2320,6 +2334,7 @@ export declare type TypographyProps = PropsWithChildren & {
|
|
|
2320
2334
|
isParagraph?: boolean;
|
|
2321
2335
|
isAnchor?: boolean;
|
|
2322
2336
|
isSpan?: boolean;
|
|
2337
|
+
isTransitionFontSize?: boolean;
|
|
2323
2338
|
ref?: Ref<HTMLElement | HTMLHeadingElement | HTMLAnchorElement | null>;
|
|
2324
2339
|
sx: TypographySXProps;
|
|
2325
2340
|
sxStandard?: SXProps;
|
|
@@ -2425,7 +2440,10 @@ declare type useImageSliderProps = Pick<ImageSliderProps, 'genre' | 'size'> & Pi
|
|
|
2425
2440
|
|
|
2426
2441
|
export declare function useInjectSprites(urls: string[]): void;
|
|
2427
2442
|
|
|
2428
|
-
export declare function useLazyInjectSprite(url: string):
|
|
2443
|
+
export declare function useLazyInjectSprite(url: string): {
|
|
2444
|
+
loaded: boolean;
|
|
2445
|
+
error: Error | null;
|
|
2446
|
+
};
|
|
2429
2447
|
|
|
2430
2448
|
/**
|
|
2431
2449
|
* Custom hook to access the LocalStorageContext.
|