@primereact/core 11.0.0-alpha.1 → 11.0.0-alpha.10

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/motion/Motion.tsx","../../../primereact/src/base/index.ts","../../src/motion/Motion.context.ts","../../src/motion/useMotion.props.ts","../../src/motion/Motion.props.ts","../../src/motion/useMotion.ts"],"sourcesContent":["'use client';\nimport { Component } from '@primereact/core/component';\nimport { nextFrame } from '@primeuix/motion';\nimport { mergeProps } from '@primeuix/utils';\nimport { withComponent } from 'primereact/base';\nimport * as React from 'react';\nimport { MotionProvider } from './Motion.context';\nimport { defaultMotionProps } from './Motion.props';\nimport { useMotion } from './useMotion';\n\nexport const Motion = withComponent({\n name: 'Motion',\n defaultProps: defaultMotionProps,\n setup(instance) {\n const { props } = instance;\n\n const [rendered, setRendered] = React.useState(() => props.in || !props.mountOnEnter);\n const isInitialMount = React.useRef(true);\n const motion = useMotion(props);\n\n React.useEffect(() => {\n if (props.in && !rendered) {\n setRendered(true);\n }\n }, [props.in]);\n\n React.useLayoutEffect(() => {\n const element = motion?.elementRef?.current;\n\n if (!element || !rendered) {\n isInitialMount.current = false;\n\n return;\n }\n\n let cancelled = false;\n const shouldAppear = isInitialMount.current && props.in && props.appear;\n\n element.style.display = '';\n motion.update?.(element, props);\n\n if (props.in) {\n if (shouldAppear || !isInitialMount.current) {\n motion.enter?.();\n }\n } else {\n motion.leave?.()?.then(() => {\n if (!element || cancelled || props.in) return;\n\n if (props.unmountOnLeave) {\n element.style.display = 'none';\n nextFrame().then(() => {\n if (!cancelled) setRendered(false);\n });\n } else {\n element.style.display = 'none';\n }\n });\n }\n\n isInitialMount.current = false;\n\n return () => {\n cancelled = true;\n motion.cancel?.();\n };\n }, [props.in, rendered, props.unmountOnLeave, props.appear]);\n\n React.useEffect(() => {\n return () => {\n isInitialMount.current = true;\n };\n }, []);\n\n return {\n ...motion,\n rendered\n };\n },\n render(instance) {\n const { id, props, ptmi, rendered } = instance;\n\n const rootProps = mergeProps(\n {\n id\n },\n ptmi('root')\n );\n\n return (\n <MotionProvider value={instance}>\n <Component pIf={rendered} instance={instance} attrs={rootProps} children={props.children} />\n </MotionProvider>\n );\n }\n});\n","import { withComponent as withComponentInCore } from '@primereact/core/component';\nimport { styles as baseStyles } from '@primereact/styles/base';\nimport type { withComponentOptions } from '@primereact/types/core';\nimport type { StylesOptions } from '@primereact/types/styles';\n\nexport const withComponent = <IProps, DProps, Exposes extends Record<PropertyKey, unknown> = Record<PropertyKey, unknown>, Styles = StylesOptions, CData = Record<string, unknown>>({\n name = 'UnknownComponent',\n defaultProps,\n styles = {\n ...baseStyles,\n name: 'global'\n } as Styles,\n components,\n setup,\n render\n}: withComponentOptions<IProps, DProps, Exposes, Styles, CData>) => {\n return withComponentInCore<IProps, DProps, Exposes, Styles, CData>({\n name,\n defaultProps,\n styles,\n components,\n setup,\n render\n });\n};\n","import { createOptionalContext } from '@primereact/core/utils';\nimport type { MotionInstance } from '@primereact/types/shared/motion';\n\nexport const [MotionProvider, useMotionContext] = createOptionalContext<MotionInstance>();\n","import type { useMotionProps } from '@primereact/types/shared/motion';\n\nexport const defaultUseMotionProps: useMotionProps = {\n name: undefined,\n type: undefined,\n safe: false,\n appear: false,\n enter: true,\n leave: true,\n duration: undefined,\n enterFromClassName: undefined,\n enterToClassName: undefined,\n enterActiveClassName: undefined,\n leaveFromClassName: undefined,\n leaveToClassName: undefined,\n leaveActiveClassName: undefined,\n onBeforeEnter: undefined,\n onEnter: undefined,\n onAfterEnter: undefined,\n onEnterCancelled: undefined,\n onBeforeLeave: undefined,\n onLeave: undefined,\n onAfterLeave: undefined,\n onLeaveCancelled: undefined\n};\n","import type { MotionProps } from '@primereact/types/shared/motion';\nimport * as HeadlessMotion from './useMotion.props';\n\nexport const defaultMotionProps: MotionProps = {\n ...HeadlessMotion.defaultUseMotionProps,\n as: 'div',\n in: false,\n mountOnEnter: true,\n unmountOnLeave: true\n};\n","import { withHeadless } from '@primereact/core/headless';\nimport type { useMotionProps } from '@primereact/types/shared/motion';\nimport { createMotion, type MotionInstance, type MotionOptions } from '@primeuix/motion';\nimport * as React from 'react';\nimport { defaultUseMotionProps } from './useMotion.props';\n\nexport const useMotion = withHeadless({\n name: 'useMotion',\n defaultProps: defaultUseMotionProps,\n setup({ props, elementRef }) {\n const motionRef = React.useRef<MotionInstance | null>(null);\n\n // methods\n const enter = React.useCallback(() => motionRef.current?.enter(), [motionRef.current]);\n const leave = React.useCallback(() => motionRef.current?.leave(), [motionRef.current]);\n const cancel = React.useCallback(() => motionRef.current?.cancel(), [motionRef.current]);\n const update = React.useCallback(\n (element: Element, motionProps?: useMotionProps) => {\n const options: MotionOptions = {\n ...motionProps,\n name: motionProps?.name,\n enterClass: {\n from: motionProps?.enterFromClassName,\n to: motionProps?.enterToClassName,\n active: motionProps?.enterActiveClassName\n },\n leaveClass: {\n from: motionProps?.leaveFromClassName,\n to: motionProps?.leaveToClassName,\n active: motionProps?.leaveActiveClassName\n }\n };\n\n if (!motionRef.current) {\n motionRef.current = createMotion(element, options);\n } else {\n motionRef.current?.update(element, options);\n }\n },\n [motionRef.current]\n );\n\n React.useLayoutEffect(() => {\n if (elementRef.current) {\n update(elementRef.current, props);\n }\n }, []);\n\n return {\n motionRef,\n // methods\n enter,\n leave,\n cancel,\n update\n };\n }\n});\n"],"mappings":"0bACA,OAAS,aAAAA,MAAiB,6BAC1B,OAAS,aAAAC,MAAiB,mBAC1B,OAAS,cAAAC,MAAkB,kBCH3B,OAAS,iBAAiBC,MAA2B,6BACrD,OAAS,UAAUC,MAAkB,0BAI9B,IAAMC,EAAgB,CAAuJ,CAChL,KAAAC,EAAO,mBACP,aAAAC,EACA,OAAAC,EAASC,EAAAC,EAAA,GACFC,GADE,CAEL,KAAM,QACV,GACA,WAAAC,EACA,MAAAC,EACA,OAAAC,CACJ,IACWC,EAA4D,CAC/D,KAAAT,EACA,aAAAC,EACA,OAAAC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xBJ,EAAAH,EAAO,SAAP,MAAAG,EAAA,KAAAH,EAAgBO,EAASX,GAErBA,EAAM,IACFa,GAAgB,CAACV,EAAe,YAChCK,EAAAJ,EAAO,QAAP,MAAAI,EAAA,KAAAJ,KAGJM,GAAAD,EAAAL,EAAO,QAAP,YAAAK,EAAA,KAAAL,KAAA,MAAAM,EAAkB,KAAK,IAAM,CACrB,CAACC,GAAWC,GAAaZ,EAAM,KAE/BA,EAAM,gBACNW,EAAQ,MAAM,QAAU,OACxBG,EAAU,EAAE,KAAK,IAAM,CACdF,GAAWV,EAAY,EAAK,CACrC,CAAC,GAEDS,EAAQ,MAAM,QAAU,OAEhC,GAGJR,EAAe,QAAU,GAElB,IAAM,CA9DzB,IAAAG,EA+DgBM,EAAY,IACZN,EAAAF,EAAO,SAAP,MAAAE,EAAA,KAAAF,EACJ,CACJ,EAAG,CAACJ,EAAM,GAAIC,EAAUD,EAAM,eAAgBA,EAAM,MAAM,CAAC,EAErD,YAAU,IACL,IAAM,CACTG,EAAe,QAAU,EAC7B,EACD,CAAC,CAAC,EAEEY,EAAAC,EAAA,GACAZ,GADA,CAEH,SAAAH,CACJ,EACJ,EACA,OAAOF,EAAU,CACb,GAAM,CAAE,GAAAkB,EAAI,MAAAjB,EAAO,KAAAkB,EAAM,SAAAjB,CAAS,EAAIF,EAEhCoB,EAAYC,EACd,CACI,GAAAH,CACJ,EACAC,EAAK,MAAM,CACf,EAEA,OACI,gBAACG,EAAA,CAAe,MAAOtB,GACnB,gBAACuB,EAAA,CAAU,IAAKrB,EAAU,SAAUF,EAAU,MAAOoB,EAAW,SAAUnB,EAAM,SAAU,CAC9F,CAER,CACJ,CAAC","names":["Component","nextFrame","mergeProps","withComponentInCore","baseStyles","withComponent","name","defaultProps","styles","__spreadProps","__spreadValues","baseStyles","components","setup","render","withComponentInCore","React","createOptionalContext","MotionProvider","useMotionContext","defaultUseMotionProps","defaultMotionProps","__spreadProps","__spreadValues","defaultUseMotionProps","withHeadless","createMotion","React","useMotion","withHeadless","defaultUseMotionProps","props","elementRef","motionRef","enter","_a","leave","cancel","update","element","motionProps","options","__spreadProps","__spreadValues","createMotion","Motion","withComponent","defaultMotionProps","instance","props","rendered","setRendered","isInitialMount","motion","useMotion","_a","_b","_c","_d","_e","element","cancelled","shouldAppear","nextFrame","__spreadProps","__spreadValues","id","ptmi","rootProps","mergeProps","MotionProvider","Component"]}
1
+ {"version":3,"sources":["../../src/motion/Motion.tsx","../../src/motion/Motion.context.ts","../../src/motion/useMotion.props.ts","../../src/motion/Motion.props.ts","../../src/motion/useMotion.ts","../../src/motion/Motion.utils.ts"],"sourcesContent":["'use client';\nimport { Component, withComponent } from '@primereact/core/component';\nimport { mergeProps } from '@primeuix/utils';\nimport * as React from 'react';\nimport { MotionProvider } from './Motion.context';\nimport { defaultMotionProps } from './Motion.props';\nimport { useMotion } from './useMotion';\n\nexport const Motion = withComponent({\n name: 'Motion',\n defaultProps: defaultMotionProps,\n setup(instance) {\n const motion = useMotion(instance.inProps);\n\n return motion;\n },\n render(instance) {\n const { id, props, state, ptmi } = instance;\n\n const rootProps = mergeProps(\n {\n id\n },\n ptmi('root')\n );\n\n return (\n <MotionProvider value={instance}>\n <Component pIf={state.rendered} instance={instance} attrs={rootProps} children={props.children} />\n </MotionProvider>\n );\n }\n});\n","'use client';\nimport { createOptionalContext } from '@primereact/core/utils';\nimport type { MotionInstance } from '@primereact/types/shared/motion';\n\nexport const [MotionProvider, useMotionContext] = createOptionalContext<MotionInstance>();\n","import type { useMotionProps } from '@primereact/types/shared/motion';\n\nexport const defaultUseMotionProps: useMotionProps = {\n elementRef: undefined,\n visible: false,\n mountOnEnter: true,\n unmountOnLeave: true,\n name: undefined,\n type: undefined,\n safe: false,\n disabled: false,\n appear: false,\n enter: true,\n leave: true,\n duration: undefined,\n hideStrategy: 'display',\n enterFromClassName: undefined,\n enterToClassName: undefined,\n enterActiveClassName: undefined,\n leaveFromClassName: undefined,\n leaveToClassName: undefined,\n leaveActiveClassName: undefined,\n onBeforeEnter: undefined,\n onEnter: undefined,\n onAfterEnter: undefined,\n onEnterCancelled: undefined,\n onBeforeLeave: undefined,\n onLeave: undefined,\n onAfterLeave: undefined,\n onLeaveCancelled: undefined\n};\n","import type { MotionProps } from '@primereact/types/shared/motion';\nimport * as HeadlessMotion from './useMotion.props';\n\nexport const defaultMotionProps: MotionProps = {\n ...HeadlessMotion.defaultUseMotionProps,\n as: 'div'\n};\n","import { withHeadless } from '@primereact/core/headless';\nimport { useMotionProps } from '@primereact/types/shared/motion';\nimport { createMotion, type MotionInstance, type MotionOptions } from '@primeuix/motion';\nimport { nextFrame } from '@primeuix/utils';\nimport * as React from 'react';\nimport { applyHiddenStyles, resetStyles } from './Motion.utils';\nimport { defaultUseMotionProps } from './useMotion.props';\n\nexport const useMotion = withHeadless({\n name: 'useMotion',\n defaultProps: defaultUseMotionProps,\n setup({ props, elementRef }) {\n const [renderedState, setRenderedState] = React.useState(() => (props.visible && props.mountOnEnter) || !props.mountOnEnter);\n\n const state = {\n rendered: renderedState\n };\n\n // refs\n const motionRef = React.useRef<MotionInstance | undefined>(undefined);\n const isInitialMount = React.useRef(true);\n\n // helpers\n const getElement = React.useCallback(() => (props.elementRef as React.RefObject<HTMLElement>)?.current || elementRef?.current, [props.elementRef, elementRef]);\n\n // methods\n const enter = React.useCallback(() => motionRef.current?.enter(), [motionRef.current]);\n const leave = React.useCallback(() => motionRef.current?.leave(), [motionRef.current]);\n const cancel = React.useCallback(() => motionRef.current?.cancel(), [motionRef.current]);\n const update = React.useCallback((element: Element | null, motionProps: useMotionProps = {}) => {\n if (!element) {\n return;\n }\n\n const options: MotionOptions = {\n ...motionProps,\n appear: true,\n enterClass: {\n from: motionProps.enterFromClassName,\n to: motionProps.enterToClassName,\n active: motionProps.enterActiveClassName\n },\n leaveClass: {\n from: motionProps.leaveFromClassName,\n to: motionProps.leaveToClassName,\n active: motionProps.leaveActiveClassName\n }\n };\n\n if (!motionRef.current) {\n motionRef.current = createMotion(element, options);\n } else {\n motionRef.current?.update(element, options);\n }\n }, []);\n\n // effects\n React.useEffect(() => {\n return () => {\n const element = getElement();\n\n resetStyles(element, props.hideStrategy);\n\n isInitialMount.current = true;\n };\n }, []);\n\n React.useEffect(() => {\n if (props.visible && !renderedState) {\n setRenderedState(true);\n }\n }, [props.visible]);\n\n React.useLayoutEffect(() => {\n const element = getElement();\n\n update?.(element, props);\n }, []);\n\n React.useLayoutEffect(() => {\n const element = getElement();\n\n if (!element || !renderedState) {\n isInitialMount.current = false;\n\n return;\n }\n\n let cancelled = false;\n const shouldAppear = isInitialMount.current && props.visible && props.appear;\n\n resetStyles(element, props.hideStrategy);\n update?.(element, props);\n\n if (props.visible) {\n if (shouldAppear || !isInitialMount.current) {\n enter?.();\n }\n } else {\n leave?.()?.then(() => {\n if (!element || cancelled || props.visible) return;\n\n if (props.unmountOnLeave) {\n applyHiddenStyles(element, props.hideStrategy);\n nextFrame().then(() => {\n if (!cancelled) setRenderedState(false);\n });\n } else {\n applyHiddenStyles(element, props.hideStrategy);\n }\n });\n }\n\n isInitialMount.current = false;\n\n return () => {\n cancelled = true;\n cancel?.();\n };\n }, [props.visible, renderedState, props.unmountOnLeave, props.appear]);\n\n return {\n state,\n // methods\n enter,\n leave,\n cancel,\n update\n };\n }\n});\n","const originalStyles = new WeakMap<HTMLElement, { display?: string; visibility?: string; maxHeight?: string }>();\n\nexport function applyHiddenStyles(element?: HTMLElement, strategy?: 'display' | 'visibility') {\n if (!element) return;\n\n if (!originalStyles.has(element)) {\n originalStyles.set(element, {\n display: element.style.display,\n visibility: element.style.visibility,\n maxHeight: element.style.maxHeight\n });\n }\n\n switch (strategy) {\n case 'display':\n element.style.display = 'none';\n break;\n case 'visibility':\n element.style.visibility = 'hidden';\n element.style.maxHeight = '0';\n break;\n }\n}\n\nexport function resetStyles(element?: HTMLElement, strategy?: 'display' | 'visibility') {\n if (!element) return;\n\n const original = originalStyles.get(element) ?? element.style;\n\n switch (strategy) {\n case 'display':\n element.style.display = original?.display || '';\n break;\n case 'visibility':\n element.style.visibility = original?.visibility || '';\n element.style.maxHeight = original?.maxHeight || '';\n break;\n }\n\n originalStyles.delete(element);\n}\n"],"mappings":"6aACA,OAAS,aAAAA,EAAW,iBAAAC,MAAqB,6BACzC,OAAS,cAAAC,MAAkB,kBAC3B,UAAYC,MAAW,QCFvB,OAAS,yBAAAC,MAA6B,yBAG/B,GAAM,CAACC,EAAgBC,CAAgB,EAAIF,EAAsC,ECFjF,IAAMG,EAAwC,CACjD,WAAY,OACZ,QAAS,GACT,aAAc,GACd,eAAgB,GAChB,KAAM,OACN,KAAM,OACN,KAAM,GACN,SAAU,GACV,OAAQ,GACR,MAAO,GACP,MAAO,GACP,SAAU,OACV,aAAc,UACd,mBAAoB,OACpB,iBAAkB,OAClB,qBAAsB,OACtB,mBAAoB,OACpB,iBAAkB,OAClB,qBAAsB,OACtB,cAAe,OACf,QAAS,OACT,aAAc,OACd,iBAAkB,OAClB,cAAe,OACf,QAAS,OACT,aAAc,OACd,iBAAkB,MACtB,EC3BO,IAAMC,EAAkCC,EAAAC,EAAA,GACzBC,GADyB,CAE3C,GAAI,KACR,GCNA,OAAS,gBAAAC,MAAoB,4BAE7B,OAAS,gBAAAC,MAA6D,mBACtE,OAAS,aAAAC,MAAiB,kBAC1B,UAAYC,MAAW,QCJvB,IAAMC,EAAiB,IAAI,QAEpB,SAASC,EAAkBC,EAAuBC,EAAqC,CAC1F,GAAKD,EAUL,OARKF,EAAe,IAAIE,CAAO,GAC3BF,EAAe,IAAIE,EAAS,CACxB,QAASA,EAAQ,MAAM,QACvB,WAAYA,EAAQ,MAAM,WAC1B,UAAWA,EAAQ,MAAM,SAC7B,CAAC,EAGGC,EAAU,CACd,IAAK,UACDD,EAAQ,MAAM,QAAU,OACxB,MACJ,IAAK,aACDA,EAAQ,MAAM,WAAa,SAC3BA,EAAQ,MAAM,UAAY,IAC1B,KACR,CACJ,CAEO,SAASE,EAAYF,EAAuBC,EAAqC,CAxBxF,IAAA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AAWjB,EAAiB,EAAK,CAC1C,CAAC,GAEDmB,EAAkBT,EAASb,EAAM,YAAY,EAErD,GAGJM,EAAe,QAAU,GAElB,IAAM,CACTc,EAAY,GACZT,GAAA,MAAAA,GACJ,CACJ,EAAG,CAACX,EAAM,QAASE,EAAeF,EAAM,eAAgBA,EAAM,MAAM,CAAC,EAE9D,CACH,MAAAI,EAEA,MAAAK,EACA,MAAAC,EACA,OAAAC,EACA,OAAAC,CACJ,CACJ,CACJ,CAAC,EJ1HM,IAAMY,GAASC,EAAc,CAChC,KAAM,SACN,aAAcC,EACd,MAAMC,EAAU,CAGZ,OAFeC,EAAUD,EAAS,OAAO,CAG7C,EACA,OAAOA,EAAU,CACb,GAAM,CAAE,GAAAE,EAAI,MAAAC,EAAO,MAAAC,EAAO,KAAAC,CAAK,EAAIL,EAE7BM,EAAYC,EACd,CACI,GAAAL,CACJ,EACAG,EAAK,MAAM,CACf,EAEA,OACI,gBAACG,EAAA,CAAe,MAAOR,GACnB,gBAACS,EAAA,CAAU,IAAKL,EAAM,SAAU,SAAUJ,EAAU,MAAOM,EAAW,SAAUH,EAAM,SAAU,CACpG,CAER,CACJ,CAAC","names":["Component","withComponent","mergeProps","React","createOptionalContext","MotionProvider","useMotionContext","defaultUseMotionProps","defaultMotionProps","__spreadProps","__spreadValues","defaultUseMotionProps","withHeadless","createMotion","nextFrame","React","originalStyles","applyHiddenStyles","element","strategy","resetStyles","_a","original","useMotion","withHeadless","defaultUseMotionProps","props","elementRef","renderedState","setRenderedState","state","motionRef","isInitialMount","getElement","_a","enter","leave","cancel","update","element","motionProps","options","__spreadProps","__spreadValues","createMotion","resetStyles","cancelled","shouldAppear","applyHiddenStyles","nextFrame","Motion","withComponent","defaultMotionProps","instance","useMotion","id","props","state","ptmi","rootProps","mergeProps","MotionProvider","Component"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primereact/core",
3
- "version": "11.0.0-alpha.1",
3
+ "version": "11.0.0-alpha.10",
4
4
  "author": "PrimeTek Informatics",
5
5
  "description": "",
6
6
  "homepage": "https://primereact.org/",
@@ -8,7 +8,7 @@
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/primefaces/primereact.git",
11
- "directory": "packages/core"
11
+ "directory": "packages/@primereact/core"
12
12
  },
13
13
  "bugs": {
14
14
  "url": "https://github.com/primefaces/primereact/issues"
@@ -32,10 +32,10 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@primeuix/styled": "^0.7.0-beta.2",
36
- "@primeuix/utils": "^0.6.0-beta.2",
37
- "@primeuix/motion": "^0.0.3",
38
- "@primereact/hooks": "11.0.0-alpha.1"
35
+ "@primeuix/styled": "^0.7.4",
36
+ "@primeuix/utils": "^0.6.4",
37
+ "@primeuix/motion": "^0.0.11",
38
+ "@primereact/hooks": "11.0.0-alpha.10"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=19.0.0"
@@ -1,2 +1,2 @@
1
- import{useProps as a}from"@primereact/hooks";import{resolve as u}from"@primeuix/utils";import*as o from"react";var s={value:void 0,mergeProps:!1,mergeSections:!0};var e=o.createContext(void 0),f=(r={})=>{let{attrs:p}=a(r,s),t=void 0;return o.createElement(e.Provider,{value:t},u(p.children,t))};import*as n from"react";function g(){let r=n.useContext(e);if(r===void 0)throw new Error("Context must be used within a PassThroughProvider");return r}export{e as PassThroughContext,f as PassThroughProvider,s as defaultPTProps,g as usePassThrough};
1
+ var u=Object.getOwnPropertySymbols;var c=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var h=(r,t)=>{var e={};for(var o in r)c.call(r,o)&&t.indexOf(o)<0&&(e[o]=r[o]);if(r!=null&&u)for(var o of u(r))t.indexOf(o)<0&&f.call(r,o)&&(e[o]=r[o]);return e};import{useProps as d}from"@primereact/hooks";import{resolve as g}from"@primeuix/utils";import*as s from"react";var P={value:void 0,mergeProps:!1,mergeSections:!0};var p=s.createContext(void 0),R=(r={})=>{let{props:t,attrs:e}=d(P,r),a=t,{value:o}=a,m=h(a,["value"]),n={value:o,options:m};return s.createElement(p.Provider,{value:n},g(e.children,n))};import*as i from"react";function E(){let r=i.useContext(p);if(r===void 0)throw new Error("Context must be used within a PassThroughProvider");return r}export{p as PassThroughContext,R as PassThroughProvider,P as defaultPTProps,E as usePassThrough};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/passthrough/PassThrough.context.tsx","../../src/passthrough/PassThrough.props.ts","../../src/passthrough/usePassThrough.ts"],"sourcesContent":["import { useProps } from '@primereact/hooks';\nimport type { PassThroughProps } from '@primereact/types/core';\nimport { resolve } from '@primeuix/utils';\nimport * as React from 'react';\nimport { defaultPTProps } from './PassThrough.props';\n\nexport const PassThroughContext = React.createContext<PassThroughProps | undefined>(undefined);\n\nexport const PassThroughProvider = (inProps: React.PropsWithChildren<PassThroughProps> = {}) => {\n const { attrs } = useProps(inProps, defaultPTProps as PassThroughProps);\n const value = undefined;\n\n return <PassThroughContext.Provider value={value}>{resolve(attrs.children, value)}</PassThroughContext.Provider>;\n};\n","import type { PassThroughProps } from '@primereact/types/core';\n\nexport const defaultPTProps: PassThroughProps = {\n value: undefined,\n mergeProps: false,\n mergeSections: true\n};\n","import * as React from 'react';\nimport { PassThroughContext } from './PassThrough.context';\n\nexport function usePassThrough() {\n const context = React.useContext(PassThroughContext);\n\n if (context === undefined) {\n throw new Error('Context must be used within a PassThroughProvider');\n }\n\n return context;\n}\n"],"mappings":"AAAA,OAAS,YAAAA,MAAgB,oBAEzB,OAAS,WAAAC,MAAe,kBACxB,UAAYC,MAAW,QCDhB,IAAMC,EAAmC,CAC5C,MAAO,OACP,WAAY,GACZ,cAAe,EACnB,EDAO,IAAMC,EAA2B,gBAA4C,MAAS,EAEhFC,EAAsB,CAACC,EAAqD,CAAC,IAAM,CAC5F,GAAM,CAAE,MAAAC,CAAM,EAAIC,EAASF,EAASG,CAAkC,EAChEC,EAAQ,OAEd,OAAO,gBAACN,EAAmB,SAAnB,CAA4B,MAAOM,GAAQC,EAAQJ,EAAM,SAAUG,CAAK,CAAE,CACtF,EEbA,UAAYE,MAAW,QAGhB,SAASC,GAAiB,CAC7B,IAAMC,EAAgB,aAAWC,CAAkB,EAEnD,GAAID,IAAY,OACZ,MAAM,IAAI,MAAM,mDAAmD,EAGvE,OAAOA,CACX","names":["useProps","resolve","React","defaultPTProps","PassThroughContext","PassThroughProvider","inProps","attrs","useProps","defaultPTProps","value","resolve","React","usePassThrough","context","PassThroughContext"]}
1
+ {"version":3,"sources":["../../src/passthrough/PassThrough.context.tsx","../../src/passthrough/PassThrough.props.ts","../../src/passthrough/usePassThrough.ts"],"sourcesContent":["'use client';\nimport { useProps } from '@primereact/hooks';\nimport type { PassThroughProps } from '@primereact/types/core';\nimport { resolve } from '@primeuix/utils';\nimport * as React from 'react';\nimport { defaultPTProps } from './PassThrough.props';\n\nexport const PassThroughContext = React.createContext<PassThroughProps | undefined>(undefined);\n\nexport const PassThroughProvider = (inProps: React.PropsWithChildren<PassThroughProps> = {}) => {\n const { props, attrs } = useProps(defaultPTProps as PassThroughProps, inProps);\n const { value, ...rest } = props;\n\n const pt = {\n value,\n options: rest\n };\n\n return <PassThroughContext.Provider value={pt}>{resolve(attrs.children, pt)}</PassThroughContext.Provider>;\n};\n","import type { PassThroughProps } from '@primereact/types/core';\n\nexport const defaultPTProps: PassThroughProps = {\n value: undefined,\n mergeProps: false,\n mergeSections: true\n};\n","import * as React from 'react';\nimport { PassThroughContext } from './PassThrough.context';\n\nexport function usePassThrough() {\n const context = React.useContext(PassThroughContext);\n\n if (context === undefined) {\n throw new Error('Context must be used within a PassThroughProvider');\n }\n\n return context;\n}\n"],"mappings":"mRACA,OAAS,YAAAA,MAAgB,oBAEzB,OAAS,WAAAC,MAAe,kBACxB,UAAYC,MAAW,QCFhB,IAAMC,EAAmC,CAC5C,MAAO,OACP,WAAY,GACZ,cAAe,EACnB,EDCO,IAAMC,EAA2B,gBAA4C,MAAS,EAEhFC,EAAsB,CAACC,EAAqD,CAAC,IAAM,CAC5F,GAAM,CAAE,MAAAC,EAAO,MAAAC,CAAM,EAAIC,EAASC,EAAoCJ,CAAO,EAClDK,EAAAJ,EAAnB,OAAAK,CAXZ,EAW+BD,EAATE,EAAAC,EAASH,EAAT,CAAV,UAEFI,EAAK,CACP,MAAAH,EACA,QAASC,CACb,EAEA,OAAO,gBAACT,EAAmB,SAAnB,CAA4B,MAAOW,GAAKC,EAAQR,EAAM,SAAUO,CAAE,CAAE,CAChF,EEnBA,UAAYE,MAAW,QAGhB,SAASC,GAAiB,CAC7B,IAAMC,EAAgB,aAAWC,CAAkB,EAEnD,GAAID,IAAY,OACZ,MAAM,IAAI,MAAM,mDAAmD,EAGvE,OAAOA,CACX","names":["useProps","resolve","React","defaultPTProps","PassThroughContext","PassThroughProvider","inProps","props","attrs","useProps","defaultPTProps","_a","value","rest","__objRest","pt","resolve","React","usePassThrough","context","PassThroughContext"]}
package/theme/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- var l=Object.defineProperty;var m=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;var f=(e,t,r)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&f(e,r,t[r]);if(m)for(var r of m(t))a.call(t,r)&&f(e,r,t[r]);return e};var d=(e,t)=>{var r={};for(var o in e)h.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&m)for(var o of m(e))t.indexOf(o)<0&&a.call(e,o)&&(r[o]=e[o]);return r};import{useProps as P}from"@primereact/hooks";import{Theme as y}from"@primeuix/styled";import{resolve as v}from"@primeuix/utils";import*as s from"react";var x={preset:void 0,prefix:"p",darkModeSelector:"system",cssLayer:!1,stylesheet:void 0};var p=s.createContext(null),L=(e={})=>{let{props:t}=P(e,x),c=t,{stylesheet:r,preset:o}=c,n=d(c,["stylesheet","preset"]),i=u({preset:o,stylesheet:r},n);return y.setTheme({preset:o,options:n}),s.createElement(p.Provider,{value:i},v(e.children,i))};import*as T from"react";function j(){let e=T.useContext(p);if(e===void 0)throw new Error("Context must be used within a ThemeProvider");return e}export{p as ThemeContext,L as ThemeProvider,x as defaultThemeProps,j as useTheme};
1
+ var T=Object.defineProperty;var m=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var f=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,a=(e,t)=>{for(var r in t||(t={}))h.call(t,r)&&f(e,r,t[r]);if(m)for(var r of m(t))u.call(t,r)&&f(e,r,t[r]);return e};var d=(e,t)=>{var r={};for(var o in e)h.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&m)for(var o of m(e))t.indexOf(o)<0&&u.call(e,o)&&(r[o]=e[o]);return r};import{useProps as P}from"@primereact/hooks";import{Theme as y}from"@primeuix/styled";import{resolve as v}from"@primeuix/utils";import*as s from"react";var l={preset:void 0,prefix:"p",darkModeSelector:"system",cssLayer:!1,stylesheet:void 0};var p=s.createContext(null),L=(e={})=>{let{props:t}=P(l,e),c=t,{stylesheet:r,preset:o}=c,n=d(c,["stylesheet","preset"]),i=a({preset:o,stylesheet:r},n);return y.setTheme({preset:o,options:n}),s.createElement(p.Provider,{value:i},v(e.children,i))};import*as x from"react";function j(){let e=x.useContext(p);if(e===void 0)throw new Error("Context must be used within a ThemeProvider");return e}export{p as ThemeContext,L as ThemeProvider,l as defaultThemeProps,j as useTheme};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/theme/Theme.context.tsx","../../src/theme/Theme.props.ts","../../src/theme/useTheme.ts"],"sourcesContent":["import { useProps } from '@primereact/hooks';\nimport type { ThemeProps } from '@primereact/types/core';\nimport { Theme } from '@primeuix/styled';\nimport { resolve } from '@primeuix/utils';\nimport * as React from 'react';\nimport { defaultThemeProps } from './Theme.props';\n\nexport const ThemeContext = React.createContext<ThemeProps | null>(null);\n\nexport const ThemeProvider = (inProps: ThemeProps = {}) => {\n const { props } = useProps(inProps, defaultThemeProps);\n const { stylesheet, preset, ...rest } = props;\n\n const value = {\n preset,\n stylesheet,\n ...rest\n };\n\n Theme.setTheme({ preset, options: rest });\n\n return <ThemeContext.Provider value={value}>{resolve(inProps.children, value)}</ThemeContext.Provider>;\n};\n","import type { ThemeProps } from '@primereact/types/core';\n\nexport const defaultThemeProps: ThemeProps = {\n preset: undefined,\n prefix: 'p',\n darkModeSelector: 'system',\n cssLayer: false,\n stylesheet: undefined\n};\n","import * as React from 'react';\nimport { ThemeContext } from './Theme.context';\n\nexport function useTheme() {\n const context = React.useContext(ThemeContext);\n\n if (context === undefined) {\n throw new Error('Context must be used within a ThemeProvider');\n }\n\n return context;\n}\n"],"mappings":"2fAAA,OAAS,YAAAA,MAAgB,oBAEzB,OAAS,SAAAC,MAAa,mBACtB,OAAS,WAAAC,MAAe,kBACxB,UAAYC,MAAW,QCFhB,IAAMC,EAAgC,CACzC,OAAQ,OACR,OAAQ,IACR,iBAAkB,SAClB,SAAU,GACV,WAAY,MAChB,EDDO,IAAMC,EAAqB,gBAAiC,IAAI,EAE1DC,EAAgB,CAACC,EAAsB,CAAC,IAAM,CACvD,GAAM,CAAE,MAAAC,CAAM,EAAIC,EAASF,EAASG,CAAiB,EACbC,EAAAH,EAAhC,YAAAI,EAAY,OAAAC,CAXxB,EAW4CF,EAATG,EAAAC,EAASJ,EAAT,CAAvB,aAAY,WAEdK,EAAQC,EAAA,CACV,OAAAJ,EACA,WAAAD,GACGE,GAGP,OAAAI,EAAM,SAAS,CAAE,OAAAL,EAAQ,QAASC,CAAK,CAAC,EAEjC,gBAACT,EAAa,SAAb,CAAsB,MAAOW,GAAQG,EAAQZ,EAAQ,SAAUS,CAAK,CAAE,CAClF,EEtBA,UAAYI,MAAW,QAGhB,SAASC,GAAW,CACvB,IAAMC,EAAgB,aAAWC,CAAY,EAE7C,GAAID,IAAY,OACZ,MAAM,IAAI,MAAM,6CAA6C,EAGjE,OAAOA,CACX","names":["useProps","Theme","resolve","React","defaultThemeProps","ThemeContext","ThemeProvider","inProps","props","useProps","defaultThemeProps","_a","stylesheet","preset","rest","__objRest","value","__spreadValues","Theme","resolve","React","useTheme","context","ThemeContext"]}
1
+ {"version":3,"sources":["../../src/theme/Theme.context.tsx","../../src/theme/Theme.props.ts","../../src/theme/useTheme.ts"],"sourcesContent":["'use client';\nimport { useProps } from '@primereact/hooks';\nimport type { ThemeProps } from '@primereact/types/core';\nimport { Theme } from '@primeuix/styled';\nimport { resolve } from '@primeuix/utils';\nimport * as React from 'react';\nimport { defaultThemeProps } from './Theme.props';\n\nexport const ThemeContext = React.createContext<ThemeProps | null>(null);\n\nexport const ThemeProvider = (inProps: ThemeProps = {}) => {\n const { props } = useProps(defaultThemeProps, inProps);\n const { stylesheet, preset, ...rest } = props;\n\n const value = {\n preset,\n stylesheet,\n ...rest\n };\n\n Theme.setTheme({ preset, options: rest });\n\n return <ThemeContext.Provider value={value}>{resolve(inProps.children, value)}</ThemeContext.Provider>;\n};\n","import type { ThemeProps } from '@primereact/types/core';\n\nexport const defaultThemeProps: ThemeProps = {\n preset: undefined,\n prefix: 'p',\n darkModeSelector: 'system',\n cssLayer: false,\n stylesheet: undefined\n};\n","import * as React from 'react';\nimport { ThemeContext } from './Theme.context';\n\nexport function useTheme() {\n const context = React.useContext(ThemeContext);\n\n if (context === undefined) {\n throw new Error('Context must be used within a ThemeProvider');\n }\n\n return context;\n}\n"],"mappings":"2fACA,OAAS,YAAAA,MAAgB,oBAEzB,OAAS,SAAAC,MAAa,mBACtB,OAAS,WAAAC,MAAe,kBACxB,UAAYC,MAAW,QCHhB,IAAMC,EAAgC,CACzC,OAAQ,OACR,OAAQ,IACR,iBAAkB,SAClB,SAAU,GACV,WAAY,MAChB,EDAO,IAAMC,EAAqB,gBAAiC,IAAI,EAE1DC,EAAgB,CAACC,EAAsB,CAAC,IAAM,CACvD,GAAM,CAAE,MAAAC,CAAM,EAAIC,EAASC,EAAmBH,CAAO,EACbI,EAAAH,EAAhC,YAAAI,EAAY,OAAAC,CAZxB,EAY4CF,EAATG,EAAAC,EAASJ,EAAT,CAAvB,aAAY,WAEdK,EAAQC,EAAA,CACV,OAAAJ,EACA,WAAAD,GACGE,GAGP,OAAAI,EAAM,SAAS,CAAE,OAAAL,EAAQ,QAASC,CAAK,CAAC,EAEjC,gBAACT,EAAa,SAAb,CAAsB,MAAOW,GAAQG,EAAQZ,EAAQ,SAAUS,CAAK,CAAE,CAClF,EEvBA,UAAYI,MAAW,QAGhB,SAASC,GAAW,CACvB,IAAMC,EAAgB,aAAWC,CAAY,EAE7C,GAAID,IAAY,OACZ,MAAM,IAAI,MAAM,6CAA6C,EAGjE,OAAOA,CACX","names":["useProps","Theme","resolve","React","defaultThemeProps","ThemeContext","ThemeProvider","inProps","props","useProps","defaultThemeProps","_a","stylesheet","preset","rest","__objRest","value","__spreadValues","Theme","resolve","React","useTheme","context","ThemeContext"]}