@meonode/ui 0.1.31 → 0.1.33
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/dist/core.node.d.ts.map +1 -1
- package/dist/core.node.js +21 -45
- package/dist/json/all.css-properties.json +1311 -0
- package/dist/json/{css-properties.json → standard.css-properties.json} +0 -1
- package/dist/node.helper.d.ts.map +1 -1
- package/dist/node.helper.js +9 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.helper.d.ts","sourceRoot":"","sources":["../src/node.helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"node.helper.d.ts","sourceRoot":"","sources":["../src/node.helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAmBpE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,GAC3B,YAAY,WAAW,KAErB,OAAO,GACP,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,aAAa,GACb,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,MAAM,GACN,SAAS,GACT,SAAS,GACT,MAgBH,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAsFxD;AA+BD;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAU3F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAUjH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAK,EAAE,IAAI,EAAE,MAAM,uBAEzE"}
|
package/dist/node.helper.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}import
|
|
2
|
-
* The list of CSS property names imported from the JSON file.
|
|
3
|
-
* Used for validation and filtering of CSS-related props.
|
|
4
|
-
*/var cssProperties=cssPropertiesJson.properties;/**
|
|
1
|
+
"use strict";function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}import allCSSProps from"./json/all.css-properties.json";import standardCSSProps from"./json/standard.css-properties.json";import{isContextConsumer,isContextProvider,isElement,isForwardRef,isFragment,isLazy,isMemo,isPortal,isProfiler,isReactClassComponent,isStrictMode,isSuspense,isSuspenseList}from"./react-is.helper.js";/**
|
|
5
2
|
* Returns a string describing the type of a given React component or element.
|
|
6
3
|
*
|
|
7
4
|
* Checks for common React types (class, forwardRef, memo, etc.) and returns a string
|
|
@@ -37,8 +34,12 @@
|
|
|
37
34
|
* toCamelCase('--custom-prop') // '--custom-prop'
|
|
38
35
|
* ```
|
|
39
36
|
*/var toCamelCase=function toCamelCase(a){return a.startsWith("--")?a:a.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()});// Preserve CSS variables
|
|
40
|
-
},
|
|
41
|
-
* A set of valid CSS property names in camelCase, used for validation.
|
|
37
|
+
},allCSSPropertySet=new Set(allCSSProps.properties.map(toCamelCase)),standardCSSPropertySet=new Set(standardCSSProps.properties.map(toCamelCase));/**
|
|
38
|
+
* A set of valid CSS property names in camelCase, including CSS custom properties, used for validation.
|
|
39
|
+
* This set contains all CSS properties including non-standard vendor prefixed properties.
|
|
40
|
+
*//**
|
|
41
|
+
* A set of standard CSS property names in camelCase, used for validation.
|
|
42
|
+
* This set contains only standard CSS properties defined in CSS specifications.
|
|
42
43
|
*//**
|
|
43
44
|
* Filters an object to only include valid CSS properties
|
|
44
45
|
* @param props The object containing potential CSS properties
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
* invalid: true
|
|
51
52
|
* }) // { backgroundColor: 'red' }
|
|
52
53
|
* ```
|
|
53
|
-
*/export function getCSSProps(a){var b={};for(var c in a)
|
|
54
|
+
*/export function getCSSProps(a){var b={};for(var c in a)allCSSPropertySet.has(c)&&(b[c]=a[c]);return b}/**
|
|
54
55
|
* Filters component props to include only valid DOM properties and attributes.
|
|
55
56
|
*
|
|
56
57
|
* This function iterates through the provided props and retains only those that
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
* @typeParam T - The type of the component props.
|
|
62
63
|
* @param props The component props to filter.
|
|
63
64
|
* @returns An object containing only valid DOM props.
|
|
64
|
-
*/export function getDOMProps(a){var b={};for(var c in a)
|
|
65
|
+
*/export function getDOMProps(a){var b={};for(var c in a)standardCSSPropertySet.has(c)||(b[c]=a[c]);return b}/**
|
|
65
66
|
* Retrieves a deeply nested value from an object using a dot-separated string path.
|
|
66
67
|
*
|
|
67
68
|
* This function traverses an object based on the provided path, which is a
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meonode/ui",
|
|
3
3
|
"description": "A structured approach to component composition with built-in theming, prop separation, and dynamic children handling.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.33",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/main.js",
|
|
7
7
|
"types": "./dist/main.d.ts",
|