@symbo.ls/atoms 2.11.339 → 2.11.345

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/Collection.js CHANGED
@@ -7,9 +7,9 @@ export const Collection = {
7
7
  define: {
8
8
  $collection: (param, el, state) => {
9
9
  const { __ref: ref } = el
10
- const children = isArray(el.props?.children)
10
+ const hasChildren = isArray(el.props?.children)
11
11
 
12
- if (children) param = children
12
+ if (hasChildren) param = el.props?.children
13
13
  else if (!param) return
14
14
 
15
15
  if (isString(param)) {
package/Media.js CHANGED
@@ -157,7 +157,7 @@ const beforeClassAssign = (element, s) => {
157
157
  for (const key in props) {
158
158
  const setter = keySetters[key.slice(0, 1)]
159
159
  if (globalTheme) {
160
- if (key === 'theme') {
160
+ if (key === 'theme' && !props.themeModifier) {
161
161
  props.update({
162
162
  themeModifier: globalTheme
163
163
  }, {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "2.11.339",
3
+ "version": "2.11.345",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c38a8986f006a25427c7808c3f965ec2ed0150b8",
6
+ "gitHead": "16dfb3da91effacbd9aa6c6f7e0a6d222c54e83d",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",