@plitzi/sdk-style 0.37.9 → 0.38.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/CHANGELOG.md +618 -0
- package/dist/BuilderStyleContextProvider.mjs +3 -3
- package/dist/StyleAdvanceEditor.mjs +25 -24
- package/dist/StyleHelper.mjs +19 -24
- package/dist/StyleReducer.d.ts +4 -4
- package/dist/StyleReducer.mjs +44 -48
- package/dist/components/Selector/Selector.mjs +3 -3
- package/dist/components/StyleInspector/categories/Background/components/BackgroundLayer/BackgroundLayer.mjs +39 -38
- package/dist/components/StyleInspector/categories/Others/Others.mjs +65 -74
- package/dist/components/StyleInspector/categories/Others/OthersScrollSnap.d.ts +16 -0
- package/dist/components/StyleInspector/categories/Others/OthersScrollSnap.mjs +93 -0
- package/dist/components/StyleInspector/categories/Typography/Typography.mjs +30 -30
- package/dist/components/StyleInspector/categories/Typography/TypographyFont.mjs +8 -8
- package/dist/helpers/calculateInheriting.mjs +33 -33
- package/dist/helpers/processSelectorVariables.mjs +14 -15
- package/package.json +12 -8
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
import { StyleVariableCategory as e } from "@plitzi/sdk-shared/types";
|
|
1
|
+
import { StyleVariableCategory as e, isStyleVariableCategory as t } from "@plitzi/sdk-shared/types";
|
|
2
2
|
//#region src/helpers/processSelectorVariables.ts
|
|
3
|
-
var
|
|
4
|
-
let { variables:
|
|
5
|
-
if (!
|
|
6
|
-
let
|
|
3
|
+
var n = (n) => {
|
|
4
|
+
let { variables: r } = n;
|
|
5
|
+
if (!r || !Object.keys(r).length) return;
|
|
6
|
+
let i = {
|
|
7
7
|
default: [],
|
|
8
8
|
light: [],
|
|
9
9
|
dark: []
|
|
10
10
|
};
|
|
11
|
-
return Object.
|
|
12
|
-
|
|
13
|
-
if (i) switch (t) {
|
|
11
|
+
return Object.entries(r).forEach(([n, r]) => {
|
|
12
|
+
switch (t(n) ? n : e.CUSTOM) {
|
|
14
13
|
case e.COLOR:
|
|
15
|
-
Object.keys(
|
|
16
|
-
let t =
|
|
17
|
-
|
|
14
|
+
Object.keys(r).forEach((e) => {
|
|
15
|
+
let t = r[e];
|
|
16
|
+
i.default.push(`--${e}:${t.default};`), t.light && i.light.push(`--${e}:${t.light};`), t.dark && i.dark.push(`--${e}:${t.dark};`);
|
|
18
17
|
});
|
|
19
18
|
break;
|
|
20
19
|
case e.SPACING:
|
|
21
20
|
case e.SHADOW:
|
|
22
21
|
case e.CUSTOM:
|
|
23
|
-
default: Object.keys(
|
|
24
|
-
|
|
22
|
+
default: Object.keys(r).forEach((e) => {
|
|
23
|
+
i.default.push(`--${e}:${r[e]};`);
|
|
25
24
|
});
|
|
26
25
|
}
|
|
27
|
-
}),
|
|
26
|
+
}), i;
|
|
28
27
|
};
|
|
29
28
|
//#endregion
|
|
30
|
-
export {
|
|
29
|
+
export { n as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-style",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.1",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -526,6 +526,10 @@
|
|
|
526
526
|
"types": "./dist/components/StyleInspector/categories/Others/OthersOutline.d.ts",
|
|
527
527
|
"import": "./dist/components/StyleInspector/categories/Others/OthersOutline.mjs"
|
|
528
528
|
},
|
|
529
|
+
"./components/StyleInspector/categories/Others/OthersScrollSnap": {
|
|
530
|
+
"types": "./dist/components/StyleInspector/categories/Others/OthersScrollSnap.d.ts",
|
|
531
|
+
"import": "./dist/components/StyleInspector/categories/Others/OthersScrollSnap.mjs"
|
|
532
|
+
},
|
|
529
533
|
"./components/StyleInspector/categories/Others/OthersScrollbar": {
|
|
530
534
|
"types": "./dist/components/StyleInspector/categories/Others/OthersScrollbar.d.ts",
|
|
531
535
|
"import": "./dist/components/StyleInspector/categories/Others/OthersScrollbar.mjs"
|
|
@@ -936,19 +940,19 @@
|
|
|
936
940
|
"build:prod": "vite build && node ../sdk-shared/scripts/generate-exports.mjs"
|
|
937
941
|
},
|
|
938
942
|
"dependencies": {
|
|
939
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
940
|
-
"@plitzi/sdk-plugins": "0.
|
|
941
|
-
"@plitzi/sdk-shared": "0.
|
|
942
|
-
"@plitzi/sdk-variables": "0.
|
|
943
|
+
"@plitzi/plitzi-ui": "^1.6.29",
|
|
944
|
+
"@plitzi/sdk-plugins": "0.38.1",
|
|
945
|
+
"@plitzi/sdk-shared": "0.38.1",
|
|
946
|
+
"@plitzi/sdk-variables": "0.38.1",
|
|
943
947
|
"clsx": "^2.1.1",
|
|
944
|
-
"immer": "^11.1.
|
|
948
|
+
"immer": "^11.1.21",
|
|
945
949
|
"prop-types": "^15.8.1",
|
|
946
950
|
"zod": "^4.6.5"
|
|
947
951
|
},
|
|
948
952
|
"devDependencies": {
|
|
949
953
|
"eslint": "^9.39.5",
|
|
950
954
|
"typescript": "^6.0.3",
|
|
951
|
-
"vite": "^8.3.
|
|
952
|
-
"vitest": "^5.0.
|
|
955
|
+
"vite": "^8.3.2",
|
|
956
|
+
"vitest": "^5.0.3"
|
|
953
957
|
}
|
|
954
958
|
}
|