@multiplatform.one/theme 10.1.0 → 10.1.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.
@@ -1053,6 +1053,9 @@ const postPassThemeKeys = [
1053
1053
  "warning-soft"
1054
1054
  ];
1055
1055
  const walkThemeTree = import_builder.createThemes;
1056
+ function plateTwins(maps) {
1057
+ return Object.fromEntries(Object.keys(maps.components).map((name) => [name, {}]));
1058
+ }
1056
1059
  function buildThemeTree(maps, added) {
1057
1060
  const stateNames = Object.keys(maps.states);
1058
1061
  const within = (parent, names) => names.some((name) => parent.startsWith(name) || parent.endsWith(name));
@@ -1071,7 +1074,7 @@ function buildThemeTree(maps, added) {
1071
1074
  parent.scheme,
1072
1075
  path,
1073
1076
  name
1074
- ].filter(Boolean).join("_")) ? {} : null]));
1077
+ ].filter(Boolean).join("_")) ? { children: plateTwins(maps) } : null]));
1075
1078
  return {
1076
1079
  light: {
1077
1080
  scheme: "light",
@@ -1721,6 +1721,11 @@ var postPassThemeKeys = [
1721
1721
  "warning-soft"
1722
1722
  ];
1723
1723
  var walkThemeTree = import_builder.createThemes;
1724
+ function plateTwins(maps) {
1725
+ return Object.fromEntries(Object.keys(maps.components).map(function(name) {
1726
+ return [name, {}];
1727
+ }));
1728
+ }
1724
1729
  function buildThemeTree(maps, added) {
1725
1730
  var stateNames = Object.keys(maps.states);
1726
1731
  var within = function within2(parent, names) {
@@ -1785,7 +1790,7 @@ function buildThemeTree(maps, added) {
1785
1790
  parent.scheme,
1786
1791
  path,
1787
1792
  name
1788
- ].filter(Boolean).join("_"))) ? {} : null;
1793
+ ].filter(Boolean).join("_"))) ? { children: plateTwins(maps) } : null;
1789
1794
  }];
1790
1795
  }));
1791
1796
  };
@@ -1721,6 +1721,11 @@ var postPassThemeKeys = [
1721
1721
  "warning-soft"
1722
1722
  ];
1723
1723
  var walkThemeTree = import_builder.createThemes;
1724
+ function plateTwins(maps) {
1725
+ return Object.fromEntries(Object.keys(maps.components).map(function(name) {
1726
+ return [name, {}];
1727
+ }));
1728
+ }
1724
1729
  function buildThemeTree(maps, added) {
1725
1730
  var stateNames = Object.keys(maps.states);
1726
1731
  var within = function within2(parent, names) {
@@ -1785,7 +1790,7 @@ function buildThemeTree(maps, added) {
1785
1790
  parent.scheme,
1786
1791
  path,
1787
1792
  name
1788
- ].filter(Boolean).join("_"))) ? {} : null;
1793
+ ].filter(Boolean).join("_"))) ? { children: plateTwins(maps) } : null;
1789
1794
  }];
1790
1795
  }));
1791
1796
  };