@primereact/core 11.0.0-alpha.8 → 11.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +45 -0
- package/README.md +43 -0
- package/base/index.d.mts +1 -1
- package/base/index.mjs +1 -1
- package/base/index.mjs.map +1 -1
- package/component/index.d.mts +11 -9
- package/component/index.mjs +1 -1
- package/component/index.mjs.map +1 -1
- package/config/index.mjs +1 -1
- package/config/index.mjs.map +1 -1
- package/dnd/index.d.mts +69 -0
- package/dnd/index.mjs +2 -0
- package/dnd/index.mjs.map +1 -0
- package/headless/index.d.mts +1 -1
- package/headless/index.mjs +1 -1
- package/headless/index.mjs.map +1 -1
- package/icon/index.d.mts +3 -3
- package/icon/index.mjs +1 -46
- package/icon/index.mjs.map +1 -1
- package/index.d.mts +3 -0
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/license/index.d.mts +22 -0
- package/license/index.mjs +2 -0
- package/license/index.mjs.map +1 -0
- package/locale/index.mjs +1 -1
- package/locale/index.mjs.map +1 -1
- package/motion/index.d.mts +24 -10
- package/motion/index.mjs +1 -1
- package/motion/index.mjs.map +1 -1
- package/overlay-manager/index.d.mts +84 -0
- package/overlay-manager/index.mjs +2 -0
- package/overlay-manager/index.mjs.map +1 -0
- package/package.json +13 -15
- package/passthrough/index.mjs +1 -1
- package/passthrough/index.mjs.map +1 -1
- package/theme/index.mjs +1 -1
- package/theme/index.mjs.map +1 -1
- package/umd/index.js +7 -212
- package/umd/index.js.map +1 -1
- package/use-style/index.mjs +1 -1
- package/use-style/index.mjs.map +1 -1
- package/utils/index.d.mts +73 -4
- package/utils/index.mjs +1 -1
- package/utils/index.mjs.map +1 -1
- package/LICENSE +0 -21
package/use-style/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ThemeContext as
|
|
1
|
+
import{ThemeContext as m}from"@primereact/core/theme";import{isClient as y,isNotEmpty as f}from"@primeuix/utils";import*as n from"react";function R(){let t=n.useContext(m),i=n.useCallback((o={})=>{let{name:e,css:s,element:r,options:a={}}=o;if(y()&&f(s)){let l=r==null?void 0:r.getRootNode();(!l||l===document)&&(l=document.head);let c=l.querySelector(`style[data-primereact-style-id="${e}"]`)||document.createElement("style");c.isConnected||(a!=null&&a.first?l.prepend(c):l.appendChild(c),c.setAttribute("data-primereact-style-id",e||""));let d=s!=null?s:"";return c.textContent!==d&&(c.textContent=d),c}},[]),p=n.useCallback((o={})=>{var r,a;let{name:e,css:s}=o;if(f(o.css))return e&&!((r=t==null?void 0:t.stylesheet)!=null&&r.has(e))&&!y()&&e!=="layer-order"&&((a=t==null?void 0:t.stylesheet)==null||a.add(e,s)),i(o)},[t,i]),u=n.useCallback(()=>{t!=null&&t.stylesheet&&t.stylesheet.clear()},[t]);return n.useInsertionEffect(()=>{var o,e;(e=(o=t==null?void 0:t.stylesheet)==null?void 0:o.getStyles())==null||e.forEach((s,r)=>{i({name:r,css:s==null?void 0:s.css})})},[t,i]),[p,u]}var E={};export{E as defaultUseStyleProps,R as useStyle};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/use-style/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/use-style/useStyle.ts","../../src/use-style/useStyle.props.ts"],"sourcesContent":["import { ThemeContext } from '@primereact/core/theme';\nimport type { useStyleLoadOptions } from '@primereact/types/core';\nimport { isClient, isNotEmpty } from '@primeuix/utils';\nimport * as React from 'react';\n\nexport function useStyle() {\n const theme = React.useContext(ThemeContext);\n\n const _load = React.useCallback(
|
|
1
|
+
{"version":3,"sources":["../../src/use-style/useStyle.ts","../../src/use-style/useStyle.props.ts"],"sourcesContent":["import { ThemeContext } from '@primereact/core/theme';\nimport type { useStyleLoadOptions } from '@primereact/types/core';\nimport { isClient, isNotEmpty } from '@primeuix/utils';\nimport * as React from 'react';\n\nexport function useStyle() {\n const theme = React.useContext(ThemeContext);\n\n const _load = React.useCallback((loadOptions: useStyleLoadOptions = {}) => {\n const { name, css, element, options = {} } = loadOptions;\n\n if (isClient() && isNotEmpty(css)) {\n let root = element?.getRootNode() as Element | Document | ShadowRoot | null;\n\n if (!root || root === document) root = document.head;\n\n const styleElement = root.querySelector(`style[data-primereact-style-id=\"${name}\"]`) || document.createElement('style');\n\n if (!styleElement.isConnected) {\n // @todo - add attributes and prepend\n if (options?.first) {\n root.prepend(styleElement);\n } else {\n root.appendChild(styleElement);\n }\n\n styleElement.setAttribute('data-primereact-style-id', name || '');\n }\n\n const nextCss = css ?? '';\n\n if (styleElement.textContent !== nextCss) {\n styleElement.textContent = nextCss;\n }\n\n return styleElement;\n }\n }, []);\n\n const load = React.useCallback(\n (loadOptions: useStyleLoadOptions = {}) => {\n const { name, css } = loadOptions;\n\n if (isNotEmpty(loadOptions.css)) {\n // @todo - implement\n if (name && !theme?.stylesheet?.has(name) && !isClient() && name !== 'layer-order') {\n theme?.stylesheet?.add(name, css);\n }\n\n return _load(loadOptions);\n }\n },\n [theme, _load]\n );\n\n const unload = React.useCallback(() => {\n if (theme?.stylesheet) {\n theme.stylesheet.clear();\n }\n }, [theme]);\n\n React.useInsertionEffect(() => {\n theme?.stylesheet?.getStyles()?.forEach((value, key) => {\n _load({ name: key, css: value?.css });\n });\n }, [theme, _load]);\n\n return [load, unload];\n}\n\n// @todo - Remove this\n/*function useCSS(cssMap = {}) {\n const { theme } = usePrimeReact();\n\n if (typeof window === 'undefined') {\n Object.entries(cssMap).forEach(([key, value]) => {\n config?.sheet?.add(key, value.css);\n });\n }\n\n React.useInsertionEffect(() => {\n theme.stylesheet?._styles?.forEach((value, key) => {\n const styleElement = document.head.querySelector(`style[data-primereact-style-id=\"${key}\"]`) || document.createElement('style');\n\n if (!styleElement.isConnected) {\n //setAttributes(styleElement, value.styleOptions);\n value.first ? document.head.prepend(styleElement) : document.head.appendChild(styleElement);\n setAttribute(styleElement, 'data-primereact-style-id', key);\n //styleRef.current.onload = (event: React.ReactEventHandler<HTMLStyleElement>) => onStyleLoaded?.(event, { name: styleNameRef.current });\n //onStyleMounted?.(styleNameRef.current);\n }\n\n styleElement.textContent = value.css;\n });\n });\n //return rule;\n}*/\n","export const defaultUseStyleProps = {};\n"],"mappings":"AAAA,OAAS,gBAAAA,MAAoB,yBAE7B,OAAS,YAAAC,EAAU,cAAAC,MAAkB,kBACrC,UAAYC,MAAW,QAEhB,SAASC,GAAW,CACvB,IAAMC,EAAc,aAAWL,CAAY,EAErCM,EAAc,cAAY,CAACC,EAAmC,CAAC,IAAM,CACvE,GAAM,CAAE,KAAAC,EAAM,IAAAC,EAAK,QAAAC,EAAS,QAAAC,EAAU,CAAC,CAAE,EAAIJ,EAE7C,GAAIN,EAAS,GAAKC,EAAWO,CAAG,EAAG,CAC/B,IAAIG,EAAOF,GAAA,YAAAA,EAAS,eAEhB,CAACE,GAAQA,IAAS,YAAUA,EAAO,SAAS,MAEhD,IAAMC,EAAeD,EAAK,cAAc,mCAAmCJ,CAAI,IAAI,GAAK,SAAS,cAAc,OAAO,EAEjHK,EAAa,cAEVF,GAAA,MAAAA,EAAS,MACTC,EAAK,QAAQC,CAAY,EAEzBD,EAAK,YAAYC,CAAY,EAGjCA,EAAa,aAAa,2BAA4BL,GAAQ,EAAE,GAGpE,IAAMM,EAAUL,GAAA,KAAAA,EAAO,GAEvB,OAAII,EAAa,cAAgBC,IAC7BD,EAAa,YAAcC,GAGxBD,CACX,CACJ,EAAG,CAAC,CAAC,EAECE,EAAa,cACf,CAACR,EAAmC,CAAC,IAAM,CAxCnD,IAAAS,EAAAC,EAyCY,GAAM,CAAE,KAAAT,EAAM,IAAAC,CAAI,EAAIF,EAEtB,GAAIL,EAAWK,EAAY,GAAG,EAE1B,OAAIC,GAAQ,GAACQ,EAAAX,GAAA,YAAAA,EAAO,aAAP,MAAAW,EAAmB,IAAIR,KAAS,CAACP,EAAS,GAAKO,IAAS,iBACjES,EAAAZ,GAAA,YAAAA,EAAO,aAAP,MAAAY,EAAmB,IAAIT,EAAMC,IAG1BH,EAAMC,CAAW,CAEhC,EACA,CAACF,EAAOC,CAAK,CACjB,EAEMY,EAAe,cAAY,IAAM,CAC/Bb,GAAA,MAAAA,EAAO,YACPA,EAAM,WAAW,MAAM,CAE/B,EAAG,CAACA,CAAK,CAAC,EAEV,OAAM,qBAAmB,IAAM,CA7DnC,IAAAW,EAAAC,GA8DQA,GAAAD,EAAAX,GAAA,YAAAA,EAAO,aAAP,YAAAW,EAAmB,cAAnB,MAAAC,EAAgC,QAAQ,CAACE,EAAOC,IAAQ,CACpDd,EAAM,CAAE,KAAMc,EAAK,IAAKD,GAAA,YAAAA,EAAO,GAAI,CAAC,CACxC,EACJ,EAAG,CAACd,EAAOC,CAAK,CAAC,EAEV,CAACS,EAAMG,CAAM,CACxB,CCpEO,IAAMG,EAAuB,CAAC","names":["ThemeContext","isClient","isNotEmpty","React","useStyle","theme","_load","loadOptions","name","css","element","options","root","styleElement","nextCss","load","_a","_b","unload","value","key","defaultUseStyleProps"]}
|
package/utils/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
+
import { ThemeProps } from '@primereact/types/core';
|
|
2
3
|
|
|
3
4
|
declare const combinedRefs: <I = unknown>(innerRef?: React$1.Ref<I>, forwardRef?: React$1.Ref<unknown>) => void;
|
|
4
5
|
|
|
@@ -6,6 +7,7 @@ declare class ConnectedOverlayScrollHandler {
|
|
|
6
7
|
private element;
|
|
7
8
|
private listener;
|
|
8
9
|
private scrollableParents;
|
|
10
|
+
private isBound;
|
|
9
11
|
constructor(element: HTMLElement | null, listener?: () => void);
|
|
10
12
|
bindScrollListener(): void;
|
|
11
13
|
unbindScrollListener(): void;
|
|
@@ -21,15 +23,82 @@ declare function createOptionalContext<T>(defaultValue?: T): readonly [({ value,
|
|
|
21
23
|
children: React$1.ReactNode;
|
|
22
24
|
}) => React$1.JSX.Element, () => T | undefined];
|
|
23
25
|
|
|
26
|
+
declare const isDev: boolean;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Merge multiple React refs (callback refs and ref objects, mixed) into a
|
|
30
|
+
* single callback ref. Each ref is updated whenever React assigns or clears
|
|
31
|
+
* the underlying value.
|
|
32
|
+
*
|
|
33
|
+
* Use this in component wrappers when you need to forward the rendered
|
|
34
|
+
* element / instance both to the local `elementRef` (used for styles, DOM
|
|
35
|
+
* access, composition) and to a ref the caller passed in via props.
|
|
36
|
+
*/
|
|
37
|
+
declare function mergeRefs<T>(...refs: Array<React$1.Ref<T> | undefined>): React$1.RefCallback<T>;
|
|
38
|
+
|
|
39
|
+
interface OverlayClickPayload {
|
|
40
|
+
originalEvent: Event | React.SyntheticEvent;
|
|
41
|
+
target?: Element | null;
|
|
42
|
+
}
|
|
43
|
+
declare const OverlayEventBus: {
|
|
44
|
+
emit: (name: string, payload?: unknown) => void;
|
|
45
|
+
on: (name: string, cb: (payload: unknown) => void) => void;
|
|
46
|
+
off: (name: string, cb: (payload: unknown) => void) => void;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type StylePreloadPhase = 'ssr' | 'client' | 'both';
|
|
50
|
+
type StylePreloadEntry = {
|
|
51
|
+
id: string;
|
|
52
|
+
css: string;
|
|
53
|
+
phase?: StylePreloadPhase;
|
|
54
|
+
priority?: number;
|
|
55
|
+
};
|
|
56
|
+
type NormalizedStylePreloadEntry = {
|
|
57
|
+
id: string;
|
|
58
|
+
css: string;
|
|
59
|
+
phase: StylePreloadPhase;
|
|
60
|
+
priority: number;
|
|
61
|
+
};
|
|
62
|
+
declare const StylePreloadRegistry: {
|
|
63
|
+
_entries: Map<string, NormalizedStylePreloadEntry>;
|
|
64
|
+
register(entry: StylePreloadEntry): void;
|
|
65
|
+
registerMany(entries?: StylePreloadEntry[]): void;
|
|
66
|
+
has(id: string): boolean;
|
|
67
|
+
getAll(): NormalizedStylePreloadEntry[];
|
|
68
|
+
getForSSR(): NormalizedStylePreloadEntry[];
|
|
69
|
+
getForClient(): NormalizedStylePreloadEntry[];
|
|
70
|
+
clear(): void;
|
|
71
|
+
};
|
|
72
|
+
declare const addStylePreloadsToStyleSheet: (stylesheet: ThemeProps["stylesheet"], styles: {
|
|
73
|
+
id: string;
|
|
74
|
+
css: string;
|
|
75
|
+
}[]) => void;
|
|
76
|
+
declare const upsertStylePreloadsToHead: (styles: {
|
|
77
|
+
id: string;
|
|
78
|
+
css: string;
|
|
79
|
+
}[]) => void;
|
|
80
|
+
|
|
24
81
|
declare const StyleRegistry: {
|
|
25
|
-
_loadedStyleNames: Set<
|
|
26
|
-
|
|
82
|
+
_loadedStyleNames: Set<string>;
|
|
83
|
+
_styleRefCount: Map<string, number>;
|
|
84
|
+
getLoadedStyleNames(): Set<string>;
|
|
27
85
|
isStyleNameLoaded(name: string): boolean;
|
|
86
|
+
getStyleRefCount(name: string): number;
|
|
87
|
+
retainStyleName(name: string): boolean;
|
|
88
|
+
releaseStyleName(name: string): boolean;
|
|
28
89
|
setLoadedStyleName(name: string): void;
|
|
29
90
|
deleteLoadedStyleName(name: string): void;
|
|
30
91
|
clearLoadedStyleNames(): void;
|
|
92
|
+
getStats(): {
|
|
93
|
+
totalStyles: number;
|
|
94
|
+
styleRefCounts: {
|
|
95
|
+
name: string;
|
|
96
|
+
refCount: number;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
31
99
|
};
|
|
32
100
|
|
|
33
|
-
declare function isValidElement(obj:
|
|
101
|
+
declare function isValidElement(obj: any): obj is React.ReactElement;
|
|
102
|
+
declare function isElementOfType(obj: any, name: string): boolean;
|
|
34
103
|
|
|
35
|
-
export { ConnectedOverlayScrollHandler, StyleRegistry, combinedRefs, createOptionalContext, createSafeContext, isValidElement };
|
|
104
|
+
export { ConnectedOverlayScrollHandler, type OverlayClickPayload, OverlayEventBus, type StylePreloadEntry, type StylePreloadPhase, StylePreloadRegistry, StyleRegistry, addStylePreloadsToStyleSheet, combinedRefs, createOptionalContext, createSafeContext, isDev, isElementOfType, isValidElement, mergeRefs, upsertStylePreloadsToHead };
|
package/utils/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var P=(e,t)=>{e&&t&&t!==e&&(typeof t=="function"?t(e&&"current"in e?e.current:null):"current"in t&&"current"in e&&t.current!==e.current&&(t.current=e&&"current"in e?e.current:null))};import{getScrollableParents as p}from"@primeuix/utils/dom";var c=class{constructor(t,r=()=>{}){this.scrollableParents=null;this.isBound=!1;this.element=t,this.listener=r}bindScrollListener(){if(this.element){this.isBound&&this.unbindScrollListener(),this.scrollableParents=p(this.element);for(let t=0;t<this.scrollableParents.length;t++){let r=this.scrollableParents[t];r&&this.listener&&r.addEventListener("scroll",this.listener)}this.isBound=!0}}unbindScrollListener(){if(this.scrollableParents&&this.listener)for(let t=0;t<this.scrollableParents.length;t++){let r=this.scrollableParents[t];r&&r.removeEventListener("scroll",this.listener)}this.scrollableParents=null,this.isBound=!1}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null,this.isBound=!1}};import{resolve as m}from"@primeuix/utils";import*as n from"react";function u(e,t){let r=n.createContext(e);return[({value:o,children:a})=>{let y=n.useMemo(()=>m(a,o),[a,o]);return n.createElement(r.Provider,{value:o},y)},()=>{let o=n.useContext(r);return o===void 0?t==null?void 0:t():o}]}function T(e,t){return u(e,()=>{throw new Error(t||"Context must be used within a Provider")})}function _(e){return u(e,()=>e)}var d,b=typeof process!="undefined"&&((d=process.env)==null?void 0:d.NODE_ENV)!=="production";function A(...e){return t=>{for(let r of e)if(r!=null)if(typeof r=="function")r(t);else try{r.current=t}catch(s){}}}import{EventBus as h}from"@primeuix/utils/eventbus";var f=h(),$=f;var S=e=>{var t,r;return{id:e.id,css:e.css,phase:(t=e.phase)!=null?t:"both",priority:(r=e.priority)!=null?r:0}},l=e=>e.sort((t,r)=>{let s=t.priority-r.priority;return s!==0?s:t.id.localeCompare(r.id)}),w={_entries:new Map,register(e){!e.id||!e.css||this._entries.set(e.id,S(e))},registerMany(e=[]){e.forEach(t=>this.register(t))},has(e){return this._entries.has(e)},getAll(){return l([...this._entries.values()])},getForSSR(){return l([...this._entries.values()].filter(e=>e.phase!=="client"))},getForClient(){return l([...this._entries.values()].filter(e=>e.phase!=="ssr"))},clear(){this._entries.clear()}},I=(e,t)=>{t.forEach(r=>{e!=null&&e.has(r.id)||e==null||e.add(r.id,r.css)})},O=e=>{e.forEach(t=>{let r=document.head.querySelector(`style[data-primereact-style-id="${t.id}"]`)||document.createElement("style");r.isConnected||(document.head.appendChild(r),r.setAttribute("data-primereact-style-id",t.id)),r.textContent=t.css})};var D={_loadedStyleNames:new Set,_styleRefCount:new Map,getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(e){var t;return((t=this._styleRefCount.get(e))!=null?t:0)>0},getStyleRefCount(e){var t;return(t=this._styleRefCount.get(e))!=null?t:0},retainStyleName(e){let t=this.getStyleRefCount(e),r=t+1;return this._styleRefCount.set(e,r),this._loadedStyleNames.add(e),t===0},releaseStyleName(e){let t=this.getStyleRefCount(e);return t<=1?(this._styleRefCount.delete(e),this._loadedStyleNames.delete(e),!0):(this._styleRefCount.set(e,t-1),!1)},setLoadedStyleName(e){this.retainStyleName(e)},deleteLoadedStyleName(e){this._styleRefCount.delete(e),this._loadedStyleNames.delete(e)},clearLoadedStyleNames(){this._styleRefCount.clear(),this._loadedStyleNames.clear()},getStats(){return{totalStyles:this._loadedStyleNames.size,styleRefCounts:Array.from(this._styleRefCount.entries()).map(([e,t])=>({name:e,refCount:t}))}}};var g=Symbol.for("react.element"),E=Symbol.for("react.transitional.element");function H(e){return typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===E)}function q(e,t){var s,i;if(typeof e!="object"||e===null)return!1;let r=e.displayName||((s=e.type)==null?void 0:s.displayName)||((i=e.type)==null?void 0:i.name);return r===t||(r==null?void 0:r.includes(`PrimeReact.${t}`))||(r==null?void 0:r.includes(`PrimeReact.UI${t}`))}export{c as ConnectedOverlayScrollHandler,$ as OverlayEventBus,w as StylePreloadRegistry,D as StyleRegistry,I as addStylePreloadsToStyleSheet,P as combinedRefs,_ as createOptionalContext,T as createSafeContext,b as isDev,q as isElementOfType,H as isValidElement,A as mergeRefs,O as upsertStylePreloadsToHead};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/utils/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utils/combinedRefs.ts","../../src/utils/ConnectedOverlayScrollHandler.ts","../../src/utils/createContext.tsx","../../src/utils/styleRegistry.ts","../../src/utils/index.ts"],"sourcesContent":["import * as React from 'react';\n\nexport const combinedRefs = <I = unknown>(innerRef?: React.Ref<I>, forwardRef?: React.Ref<unknown>) => {\n if (innerRef && forwardRef) {\n if (typeof forwardRef === 'function') {\n forwardRef(innerRef && 'current' in innerRef ? innerRef.current : null);\n } else {\n if ('current' in forwardRef) {\n forwardRef.current = innerRef && 'current' in innerRef ? innerRef.current : null;\n }\n }\n }\n};\n","import { getScrollableParents } from '@primeuix/utils/dom';\n\nexport class ConnectedOverlayScrollHandler {\n private element: HTMLElement | null;\n private listener: (() => void) | null;\n private scrollableParents: Element[] | null = null;\n\n constructor(element: HTMLElement | null, listener: () => void = () => {}) {\n this.element = element;\n this.listener = listener;\n }\n\n bindScrollListener() {\n if (!this.element) return;\n\n this.scrollableParents = getScrollableParents(this.element);\n\n for (let i = 0; i < this.scrollableParents.length; i++) {\n const parent = this.scrollableParents[i];\n\n if (parent && this.listener) {\n parent.addEventListener('scroll', this.listener);\n }\n }\n }\n\n unbindScrollListener() {\n if (this.scrollableParents && this.listener) {\n for (let i = 0; i < this.scrollableParents.length; i++) {\n const parent = this.scrollableParents[i];\n\n if (parent) {\n parent.removeEventListener('scroll', this.listener);\n }\n }\n }\n }\n\n destroy() {\n this.unbindScrollListener();\n this.element = null;\n this.listener = null;\n this.scrollableParents = null;\n }\n}\n","import { resolve } from '@primeuix/utils';\nimport * as React from 'react';\n\nfunction createContext<T>(defaultValue?: T, fallback?: () => never | T | undefined) {\n const Context = React.createContext<T | undefined>(defaultValue);\n\n const useContext = () => {\n const context = React.useContext(Context);\n\n if (context === undefined) {\n return fallback?.();\n }\n\n return context;\n };\n\n const Provider = ({ value, children }: { value: T; children: React.ReactNode }) => <Context.Provider value={value}>{resolve(children, value)}</Context.Provider>;\n\n return [Provider, useContext] as const;\n}\n\nexport function createSafeContext<T>(defaultValue?: T, message?: string) {\n return createContext<T>(defaultValue, () => {\n throw new Error(message || 'Context must be used within a Provider');\n });\n}\n\nexport function createOptionalContext<T>(defaultValue?: T) {\n return createContext<T>(defaultValue, () => {\n return defaultValue;\n });\n}\n","export const StyleRegistry = {\n _loadedStyleNames: new Set(),\n getLoadedStyleNames() {\n return this._loadedStyleNames;\n },\n isStyleNameLoaded(name: string) {\n return this._loadedStyleNames.has(name);\n },\n setLoadedStyleName(name: string) {\n this._loadedStyleNames.add(name);\n },\n deleteLoadedStyleName(name: string) {\n this._loadedStyleNames.delete(name);\n },\n clearLoadedStyleNames() {\n this._loadedStyleNames.clear();\n }\n};\n","export * from './combinedRefs';\nexport * from './ConnectedOverlayScrollHandler';\nexport * from './createContext';\nexport * from './styleRegistry';\n\nexport function isValidElement(obj: unknown): obj is React.ReactElement {\n return typeof obj === 'object' && obj !== null && ((obj as React.ExoticComponent).$$typeof === Symbol.for('react.transitional.element') || (obj as React.ExoticComponent).$$typeof === Symbol.for('react.element'));\n}\n"],"mappings":"AAEO,IAAMA,EAAe,CAAcC,EAAyBC,IAAoC,CAC/FD,GAAYC,IACR,OAAOA,GAAe,WACtBA,EAAWD,GAAY,YAAaA,EAAWA,EAAS,QAAU,IAAI,EAElE,YAAaC,IACbA,EAAW,QAAUD,GAAY,YAAaA,EAAWA,EAAS,QAAU,MAI5F,ECZA,OAAS,wBAAAE,MAA4B,sBAE9B,IAAMC,EAAN,KAAoC,CAKvC,YAAYC,EAA6BC,EAAuB,IAAM,CAAC,EAAG,CAF1E,KAAQ,kBA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,OAAO,KAAK,iBAChB,EACA,kBAAkBC,EAAc,CAC5B,OAAO,KAAK,kBAAkB,IAAIA,CAAI,CAC1C,EACA,mBAAmBA,EAAc,CAC7B,KAAK,kBAAkB,IAAIA,CAAI,CACnC,EACA,sBAAsBA,EAAc,CAChC,KAAK,kBAAkB,OAAOA,CAAI,CACtC,EACA,uBAAwB,CACpB,KAAK,kBAAkB,MAAM,CACjC,CACJ,ECZO,SAASC,EAAeC,EAAyC,CACpE,OAAO,OAAOA,GAAQ,UAAYA,IAAQ,OAAUA,EAA8B,WAAa,OAAO,IAAI,4BAA4B,GAAMA,EAA8B,WAAa,OAAO,IAAI,eAAe,EACrN","names":["combinedRefs","innerRef","forwardRef","getScrollableParents","ConnectedOverlayScrollHandler","element","listener","i","parent","resolve","React","createContext","defaultValue","fallback","Context","value","children","context","createSafeContext","message","createOptionalContext","StyleRegistry","name","isValidElement","obj"]}
|
|
1
|
+
{"version":3,"sources":["../../src/utils/combinedRefs.ts","../../src/utils/ConnectedOverlayScrollHandler.ts","../../src/utils/createContext.tsx","../../src/utils/env.ts","../../src/utils/mergeRefs.ts","../../src/utils/overlayEventBus.ts","../../src/utils/stylePreloadRegistry.ts","../../src/utils/styleRegistry.ts","../../src/utils/index.ts"],"sourcesContent":["import * as React from 'react';\n\nexport const combinedRefs = <I = unknown>(innerRef?: React.Ref<I>, forwardRef?: React.Ref<unknown>) => {\n if (innerRef && forwardRef && forwardRef !== innerRef) {\n if (typeof forwardRef === 'function') {\n forwardRef(innerRef && 'current' in innerRef ? innerRef.current : null);\n } else {\n if ('current' in forwardRef && 'current' in innerRef && forwardRef.current !== innerRef.current) {\n forwardRef.current = innerRef && 'current' in innerRef ? innerRef.current : null;\n }\n }\n }\n};\n","import { getScrollableParents } from '@primeuix/utils/dom';\n\nexport class ConnectedOverlayScrollHandler {\n private element: HTMLElement | null;\n private listener: (() => void) | null;\n private scrollableParents: Element[] | null = null;\n private isBound = false;\n\n constructor(element: HTMLElement | null, listener: () => void = () => {}) {\n this.element = element;\n this.listener = listener;\n }\n\n bindScrollListener() {\n if (!this.element) return;\n\n if (this.isBound) {\n this.unbindScrollListener();\n }\n\n this.scrollableParents = getScrollableParents(this.element);\n\n for (let i = 0; i < this.scrollableParents.length; i++) {\n const parent = this.scrollableParents[i];\n\n if (parent && this.listener) {\n parent.addEventListener('scroll', this.listener);\n }\n }\n\n this.isBound = true;\n }\n\n unbindScrollListener() {\n if (this.scrollableParents && this.listener) {\n for (let i = 0; i < this.scrollableParents.length; i++) {\n const parent = this.scrollableParents[i];\n\n if (parent) {\n parent.removeEventListener('scroll', this.listener);\n }\n }\n }\n\n this.scrollableParents = null;\n this.isBound = false;\n }\n\n destroy() {\n this.unbindScrollListener();\n this.element = null;\n this.listener = null;\n this.scrollableParents = null;\n this.isBound = false;\n }\n}\n","'use client';\nimport { resolve } from '@primeuix/utils';\nimport * as React from 'react';\n\nfunction createContext<T>(defaultValue?: T, fallback?: () => never | T | undefined) {\n const Context = React.createContext<T | undefined>(defaultValue);\n\n const useContext = () => {\n const context = React.useContext(Context);\n\n if (context === undefined) {\n return fallback?.();\n }\n\n return context;\n };\n\n const Provider = ({ value, children }: { value: T; children: React.ReactNode }) => {\n const resolvedChildren = React.useMemo(() => resolve(children, value) as React.ReactNode, [children, value]);\n\n return <Context.Provider value={value}>{resolvedChildren}</Context.Provider>;\n };\n\n return [Provider, useContext] as const;\n}\n\nexport function createSafeContext<T>(defaultValue?: T, message?: string) {\n return createContext<T>(defaultValue, () => {\n throw new Error(message || 'Context must be used within a Provider');\n });\n}\n\nexport function createOptionalContext<T>(defaultValue?: T) {\n return createContext<T>(defaultValue, () => {\n return defaultValue;\n });\n}\n","export const isDev = typeof process !== 'undefined' && process.env?.NODE_ENV !== 'production';\n","import * as React from 'react';\n\n/**\n * Merge multiple React refs (callback refs and ref objects, mixed) into a\n * single callback ref. Each ref is updated whenever React assigns or clears\n * the underlying value.\n *\n * Use this in component wrappers when you need to forward the rendered\n * element / instance both to the local `elementRef` (used for styles, DOM\n * access, composition) and to a ref the caller passed in via props.\n */\nexport function mergeRefs<T>(...refs: Array<React.Ref<T> | undefined>): React.RefCallback<T> {\n return (value: T | null) => {\n for (const ref of refs) {\n if (ref == null) continue;\n\n if (typeof ref === 'function') {\n ref(value);\n } else {\n try {\n (ref as { current: T | null }).current = value;\n } catch {\n // Ignore — caller passed a frozen / read-only ref.\n }\n }\n }\n };\n}\n","import { EventBus } from '@primeuix/utils/eventbus';\n\nexport interface OverlayClickPayload {\n originalEvent: Event | React.SyntheticEvent;\n target?: Element | null;\n}\n\nconst bus = EventBus() as { emit: (name: string, payload?: unknown) => void; on: (name: string, cb: (payload: unknown) => void) => void; off: (name: string, cb: (payload: unknown) => void) => void };\n\nexport const OverlayEventBus = bus;\n","import type { ThemeProps } from '@primereact/types/core';\n\nexport type StylePreloadPhase = 'ssr' | 'client' | 'both';\n\nexport type StylePreloadEntry = {\n id: string;\n css: string;\n phase?: StylePreloadPhase;\n priority?: number;\n};\n\ntype NormalizedStylePreloadEntry = {\n id: string;\n css: string;\n phase: StylePreloadPhase;\n priority: number;\n};\n\nconst normalizeEntry = (entry: StylePreloadEntry): NormalizedStylePreloadEntry => ({\n id: entry.id,\n css: entry.css,\n phase: entry.phase ?? 'both',\n priority: entry.priority ?? 0\n});\n\nconst sortEntries = (entries: NormalizedStylePreloadEntry[]) =>\n entries.sort((a, b) => {\n const byPriority = a.priority - b.priority;\n\n return byPriority !== 0 ? byPriority : a.id.localeCompare(b.id);\n });\n\nexport const StylePreloadRegistry = {\n _entries: new Map<string, NormalizedStylePreloadEntry>(),\n register(entry: StylePreloadEntry) {\n if (!entry.id || !entry.css) {\n return;\n }\n\n this._entries.set(entry.id, normalizeEntry(entry));\n },\n registerMany(entries: StylePreloadEntry[] = []) {\n entries.forEach((entry) => this.register(entry));\n },\n has(id: string) {\n return this._entries.has(id);\n },\n getAll() {\n return sortEntries([...this._entries.values()]);\n },\n getForSSR() {\n return sortEntries([...this._entries.values()].filter((entry) => entry.phase !== 'client'));\n },\n getForClient() {\n return sortEntries([...this._entries.values()].filter((entry) => entry.phase !== 'ssr'));\n },\n clear() {\n this._entries.clear();\n }\n};\n\nexport const addStylePreloadsToStyleSheet = (stylesheet: ThemeProps['stylesheet'], styles: { id: string; css: string }[]) => {\n styles.forEach((style) => {\n if (!stylesheet?.has(style.id)) {\n stylesheet?.add(style.id, style.css);\n }\n });\n};\n\nexport const upsertStylePreloadsToHead = (styles: { id: string; css: string }[]) => {\n styles.forEach((style) => {\n const styleElement = document.head.querySelector(`style[data-primereact-style-id=\"${style.id}\"]`) || document.createElement('style');\n\n if (!styleElement.isConnected) {\n document.head.appendChild(styleElement);\n styleElement.setAttribute('data-primereact-style-id', style.id);\n }\n\n styleElement.textContent = style.css;\n });\n};\n","export const StyleRegistry = {\n _loadedStyleNames: new Set<string>(),\n _styleRefCount: new Map<string, number>(),\n getLoadedStyleNames() {\n return this._loadedStyleNames;\n },\n isStyleNameLoaded(name: string) {\n return (this._styleRefCount.get(name) ?? 0) > 0;\n },\n getStyleRefCount(name: string) {\n return this._styleRefCount.get(name) ?? 0;\n },\n retainStyleName(name: string) {\n const current = this.getStyleRefCount(name);\n const next = current + 1;\n\n this._styleRefCount.set(name, next);\n this._loadedStyleNames.add(name);\n\n return current === 0;\n },\n releaseStyleName(name: string) {\n const current = this.getStyleRefCount(name);\n\n if (current <= 1) {\n this._styleRefCount.delete(name);\n this._loadedStyleNames.delete(name);\n\n return true;\n }\n\n this._styleRefCount.set(name, current - 1);\n\n return false;\n },\n setLoadedStyleName(name: string) {\n this.retainStyleName(name);\n },\n deleteLoadedStyleName(name: string) {\n this._styleRefCount.delete(name);\n this._loadedStyleNames.delete(name);\n },\n clearLoadedStyleNames() {\n this._styleRefCount.clear();\n this._loadedStyleNames.clear();\n },\n getStats() {\n return {\n totalStyles: this._loadedStyleNames.size,\n styleRefCounts: Array.from(this._styleRefCount.entries()).map(([name, refCount]) => ({\n name,\n refCount\n }))\n };\n }\n};\n","export * from './combinedRefs';\nexport * from './ConnectedOverlayScrollHandler';\nexport * from './createContext';\nexport * from './env';\nexport * from './mergeRefs';\nexport * from './overlayEventBus';\nexport * from './stylePreloadRegistry';\nexport * from './styleRegistry';\n\nconst REACT_ELEMENT = Symbol.for('react.element');\nconst REACT_TRANSITIONAL_ELEMENT = Symbol.for('react.transitional.element');\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function isValidElement(obj: any): obj is React.ReactElement {\n return typeof obj === 'object' && obj !== null && (obj.$$typeof === REACT_ELEMENT || obj.$$typeof === REACT_TRANSITIONAL_ELEMENT);\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function isElementOfType(obj: any, name: string): boolean {\n if (typeof obj !== 'object' || obj === null) return false;\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const displayName = (obj as any).displayName || (obj.type as any)?.displayName || (obj.type as any)?.name;\n\n return displayName === name || displayName?.includes(`PrimeReact.${name}`) || displayName?.includes(`PrimeReact.UI${name}`);\n}\n"],"mappings":"AAEO,IAAMA,EAAe,CAAcC,EAAyBC,IAAoC,CAC/FD,GAAYC,GAAcA,IAAeD,IACrC,OAAOC,GAAe,WACtBA,EAAWD,GAAY,YAAaA,EAAWA,EAAS,QAAU,IAAI,EAElE,YAAaC,GAAc,YAAaD,GAAYC,EAAW,UAAYD,EAAS,UACpFC,EAAW,QAAUD,GAAY,YAAaA,EAAWA,EAAS,QAAU,MAI5F,ECZA,OAAS,wBAAAE,MAA4B,sBAE9B,IAAMC,EAAN,KAAoC,CAMvC,YAAYC,EAA6BC,EAAuB,IAAM,CAAC,EAAG,CAH1E,KAAQ,kBAAsC,KAC9C,KAAQ,QAAU,GAGd,KAAK,QAAUD,EACf,KAAK,SAAWC,CACpB,CAEA,oBAAqB,CACjB,GAAK,KAAK,QAEV,CAAI,KAAK,SACL,KAAK,qBAAqB,EAG9B,KAAK,kBAAoBH,EAAqB,KAAK,OAAO,EAE1D,QAASI,EAAI,EAAGA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,EAAU,CAAC,EAElC,GACX,EACA,mBAAmBF,EAAc,CAC7B,KAAK,gBAAgBA,CAAI,CAC7B,EACA,sBAAsBA,EAAc,CAChC,KAAK,eAAe,OAAOA,CAAI,EAC/B,KAAK,kBAAkB,OAAOA,CAAI,CACtC,EACA,uBAAwB,CACpB,KAAK,eAAe,MAAM,EAC1B,KAAK,kBAAkB,MAAM,CACjC,EACA,UAAW,CACP,MAAO,CACH,YAAa,KAAK,kBAAkB,KACpC,eAAgB,MAAM,KAAK,KAAK,eAAe,QAAQ,CAAC,EAAE,IAAI,CAAC,CAACA,EAAMI,CAAQ,KAAO,CACjF,KAAAJ,EACA,SAAAI,CACJ,EAAE,CACN,CACJ,CACJ,EC9CA,IAAMC,EAAgB,OAAO,IAAI,eAAe,EAC1CC,EAA6B,OAAO,IAAI,4BAA4B,EAGnE,SAASC,EAAeC,EAAqC,CAChE,OAAO,OAAOA,GAAQ,UAAYA,IAAQ,OAASA,EAAI,WAAaH,GAAiBG,EAAI,WAAaF,EAC1G,CAGO,SAASG,EAAgBD,EAAUE,EAAuB,CAlBjE,IAAAC,EAAAC,EAmBI,GAAI,OAAOJ,GAAQ,UAAYA,IAAQ,KAAM,MAAO,GAGpD,IAAMK,EAAeL,EAAY,eAAgBG,EAAAH,EAAI,OAAJ,YAAAG,EAAkB,gBAAgBC,EAAAJ,EAAI,OAAJ,YAAAI,EAAkB,MAErG,OAAOC,IAAgBH,IAAQG,GAAA,YAAAA,EAAa,SAAS,cAAcH,CAAI,OAAOG,GAAA,YAAAA,EAAa,SAAS,gBAAgBH,CAAI,IAC5H","names":["combinedRefs","innerRef","forwardRef","getScrollableParents","ConnectedOverlayScrollHandler","element","listener","i","parent","resolve","React","createContext","defaultValue","fallback","Context","value","children","resolvedChildren","context","createSafeContext","message","createOptionalContext","_a","isDev","mergeRefs","refs","value","ref","e","EventBus","bus","OverlayEventBus","normalizeEntry","entry","_a","_b","sortEntries","entries","a","b","byPriority","StylePreloadRegistry","id","addStylePreloadsToStyleSheet","stylesheet","styles","style","upsertStylePreloadsToHead","styleElement","StyleRegistry","name","_a","current","next","refCount","REACT_ELEMENT","REACT_TRANSITIONAL_ELEMENT","isValidElement","obj","isElementOfType","name","_a","_b","displayName"]}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 PrimeTek
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|