@symbo.ls/create 2.11.449 → 2.11.451

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.
@@ -604,9 +604,10 @@ var require_object = __commonJS({
604
604
  diff: () => diff,
605
605
  diffArrays: () => diffArrays,
606
606
  diffObjects: () => diffObjects,
607
- exec: () => exec6,
607
+ exec: () => exec7,
608
608
  flattenRecursive: () => flattenRecursive,
609
609
  hasOwnProperty: () => hasOwnProperty,
610
+ isCyclic: () => isCyclic,
610
611
  isEmpty: () => isEmpty,
611
612
  isEmptyObject: () => isEmptyObject,
612
613
  isEqualDeep: () => isEqualDeep2,
@@ -630,7 +631,7 @@ var require_object = __commonJS({
630
631
  var import_string = require_string();
631
632
  var import_node = require_node();
632
633
  var ENV3 = "development";
633
- var exec6 = (param, element, state, context) => {
634
+ var exec7 = (param, element, state, context) => {
634
635
  if ((0, import_types.isFunction)(param)) {
635
636
  return param.call(
636
637
  element,
@@ -643,7 +644,7 @@ var require_object = __commonJS({
643
644
  };
644
645
  var map = (obj, extention, element) => {
645
646
  for (const e in extention) {
646
- obj[e] = exec6(extention[e], element);
647
+ obj[e] = exec7(extention[e], element);
647
648
  }
648
649
  };
649
650
  var merge6 = (element, obj, excludeFrom = []) => {
@@ -1212,6 +1213,25 @@ var require_object = __commonJS({
1212
1213
  }
1213
1214
  }
1214
1215
  };
1216
+ var isCyclic = (obj) => {
1217
+ const seenObjects = [];
1218
+ function detect(obj2) {
1219
+ if (obj2 && typeof obj2 === "object") {
1220
+ if (seenObjects.indexOf(obj2) !== -1) {
1221
+ return true;
1222
+ }
1223
+ seenObjects.push(obj2);
1224
+ for (const key in obj2) {
1225
+ if (Object.hasOwnProperty.call(obj2, key) && detect(obj2[key])) {
1226
+ console.log(obj2, "cycle at " + key);
1227
+ return true;
1228
+ }
1229
+ }
1230
+ }
1231
+ return false;
1232
+ }
1233
+ return detect(obj);
1234
+ };
1215
1235
  }
1216
1236
  });
1217
1237
 
@@ -2457,9 +2477,10 @@ var require_cjs2 = __commonJS({
2457
2477
  diff: () => diff,
2458
2478
  diffArrays: () => diffArrays,
2459
2479
  diffObjects: () => diffObjects,
2460
- exec: () => exec6,
2480
+ exec: () => exec7,
2461
2481
  flattenRecursive: () => flattenRecursive,
2462
2482
  hasOwnProperty: () => hasOwnProperty,
2483
+ isCyclic: () => isCyclic,
2463
2484
  isEmpty: () => isEmpty,
2464
2485
  isEmptyObject: () => isEmptyObject,
2465
2486
  isEqualDeep: () => isEqualDeep2,
@@ -2483,7 +2504,7 @@ var require_cjs2 = __commonJS({
2483
2504
  var import_string = require_string3();
2484
2505
  var import_node = require_node4();
2485
2506
  var ENV22 = "development";
2486
- var exec6 = (param, element, state, context) => {
2507
+ var exec7 = (param, element, state, context) => {
2487
2508
  if ((0, import_types.isFunction)(param)) {
2488
2509
  return param.call(
2489
2510
  element,
@@ -2496,7 +2517,7 @@ var require_cjs2 = __commonJS({
2496
2517
  };
2497
2518
  var map = (obj, extention, element) => {
2498
2519
  for (const e in extention) {
2499
- obj[e] = exec6(extention[e], element);
2520
+ obj[e] = exec7(extention[e], element);
2500
2521
  }
2501
2522
  };
2502
2523
  var merge52 = (element, obj, excludeFrom = []) => {
@@ -2585,20 +2606,28 @@ var require_cjs2 = __commonJS({
2585
2606
  }
2586
2607
  return clone2;
2587
2608
  };
2588
- var deepCloneWithExtend3 = (obj, excludeFrom = ["node"], options = {}) => {
2609
+ var deepCloneWithExtend3 = (obj, excludeFrom = ["node"], options = {}, visited = /* @__PURE__ */ new WeakSet()) => {
2610
+ if ((0, import_types.isObjectLike)(obj)) {
2611
+ if (visited.has(obj)) {
2612
+ return obj;
2613
+ }
2614
+ visited.add(obj);
2615
+ }
2589
2616
  const o = options.window ? (0, import_types.isArray)(obj) ? new options.window.Array([]) : new options.window.Object({}) : (0, import_types.isArray)(obj) ? [] : {};
2590
2617
  for (const prop in obj) {
2591
2618
  if (!Object.prototype.hasOwnProperty.call(obj, prop))
2592
2619
  continue;
2593
2620
  const objProp = obj[prop];
2594
- if (excludeFrom.includes(prop) || prop.startsWith("__") || options.cleanUndefined && (0, import_types.isUndefined)(objProp) || options.cleanNull && (0, import_types.isNull)(objProp))
2621
+ if (excludeFrom.includes(prop) || prop.startsWith("__") || options.cleanUndefined && (0, import_types.isUndefined)(objProp) || options.cleanNull && (0, import_types.isNull)(objProp)) {
2595
2622
  continue;
2623
+ }
2596
2624
  if ((0, import_types.isObjectLike)(objProp)) {
2597
- o[prop] = deepCloneWithExtend3(objProp, excludeFrom, options);
2625
+ o[prop] = deepCloneWithExtend3(objProp, excludeFrom, options, visited);
2598
2626
  } else if ((0, import_types.isFunction)(objProp) && options.window) {
2599
2627
  o[prop] = (options.window || import_globals3.window).eval("(" + objProp.toString() + ")");
2600
- } else
2628
+ } else {
2601
2629
  o[prop] = objProp;
2630
+ }
2602
2631
  }
2603
2632
  return o;
2604
2633
  };
@@ -3057,6 +3086,25 @@ var require_cjs2 = __commonJS({
3057
3086
  }
3058
3087
  }
3059
3088
  };
3089
+ var isCyclic = (obj) => {
3090
+ const seenObjects = [];
3091
+ function detect(obj2) {
3092
+ if (obj2 && typeof obj2 === "object") {
3093
+ if (seenObjects.indexOf(obj2) !== -1) {
3094
+ return true;
3095
+ }
3096
+ seenObjects.push(obj2);
3097
+ for (const key in obj2) {
3098
+ if (Object.hasOwnProperty.call(obj2, key) && detect(obj2[key])) {
3099
+ console.log(obj2, "cycle at " + key);
3100
+ return true;
3101
+ }
3102
+ }
3103
+ }
3104
+ return false;
3105
+ }
3106
+ return detect(obj);
3107
+ };
3060
3108
  }
3061
3109
  });
3062
3110
  var require_function3 = __commonJS2({
@@ -4254,7 +4302,7 @@ var require_cjs2 = __commonJS({
4254
4302
  diff: () => diff,
4255
4303
  diffArrays: () => diffArrays,
4256
4304
  diffObjects: () => diffObjects,
4257
- exec: () => exec6,
4305
+ exec: () => exec7,
4258
4306
  flattenRecursive: () => flattenRecursive,
4259
4307
  hasOwnProperty: () => hasOwnProperty,
4260
4308
  isEmpty: () => isEmpty,
@@ -4280,7 +4328,7 @@ var require_cjs2 = __commonJS({
4280
4328
  var import_string = require_string22();
4281
4329
  var import_node = require_node22();
4282
4330
  var ENV22 = "development";
4283
- var exec6 = (param, element, state, context) => {
4331
+ var exec7 = (param, element, state, context) => {
4284
4332
  if ((0, import_types.isFunction)(param)) {
4285
4333
  return param.call(
4286
4334
  element,
@@ -4293,7 +4341,7 @@ var require_cjs2 = __commonJS({
4293
4341
  };
4294
4342
  var map = (obj, extention, element) => {
4295
4343
  for (const e in extention) {
4296
- obj[e] = exec6(extention[e], element);
4344
+ obj[e] = exec7(extention[e], element);
4297
4345
  }
4298
4346
  };
4299
4347
  var merge52 = (element, obj, excludeFrom = []) => {
@@ -8269,7 +8317,7 @@ var require_cjs3 = __commonJS({
8269
8317
  diff: () => diff,
8270
8318
  diffArrays: () => diffArrays,
8271
8319
  diffObjects: () => diffObjects,
8272
- exec: () => exec6,
8320
+ exec: () => exec7,
8273
8321
  flattenRecursive: () => flattenRecursive,
8274
8322
  hasOwnProperty: () => hasOwnProperty,
8275
8323
  isEmpty: () => isEmpty,
@@ -8295,7 +8343,7 @@ var require_cjs3 = __commonJS({
8295
8343
  var import_string = require_string3();
8296
8344
  var import_node = require_node4();
8297
8345
  var ENV3 = "development";
8298
- var exec6 = (param, element, state, context) => {
8346
+ var exec7 = (param, element, state, context) => {
8299
8347
  if ((0, import_types.isFunction)(param)) {
8300
8348
  return param.call(
8301
8349
  element,
@@ -8308,7 +8356,7 @@ var require_cjs3 = __commonJS({
8308
8356
  };
8309
8357
  var map = (obj, extention, element) => {
8310
8358
  for (const e in extention) {
8311
- obj[e] = exec6(extention[e], element);
8359
+ obj[e] = exec7(extention[e], element);
8312
8360
  }
8313
8361
  };
8314
8362
  var merge6 = (element, obj, excludeFrom = []) => {
@@ -12944,8 +12992,8 @@ var require_methods2 = __commonJS({
12944
12992
  if (v === param)
12945
12993
  return childElem;
12946
12994
  else if ((0, import_utils32.isFunction)(param)) {
12947
- const exec6 = param(childElem, childElem.state, childElem.context);
12948
- if (childElem.state && exec6) {
12995
+ const exec7 = param(childElem, childElem.state, childElem.context);
12996
+ if (childElem.state && exec7) {
12949
12997
  return childElem;
12950
12998
  }
12951
12999
  }
@@ -12966,8 +13014,8 @@ var require_methods2 = __commonJS({
12966
13014
  if (v === param)
12967
13015
  results.push(childElem);
12968
13016
  else if ((0, import_utils32.isFunction)(param)) {
12969
- const exec6 = param(childElem, childElem.state, childElem.context);
12970
- if (childElem.state && exec6)
13017
+ const exec7 = param(childElem, childElem.state, childElem.context);
13018
+ if (childElem.state && exec7)
12971
13019
  results.push(childElem);
12972
13020
  }
12973
13021
  (_a = childElem == null ? void 0 : childElem.lookdownAll) == null ? void 0 : _a.call(childElem, param, results);
@@ -13181,6 +13229,7 @@ var require_iterate = __commonJS({
13181
13229
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
13182
13230
  var iterate_exports = {};
13183
13231
  __export2(iterate_exports, {
13232
+ throughExecProps: () => throughExecProps,
13184
13233
  throughInitialDefine: () => throughInitialDefine,
13185
13234
  throughInitialExec: () => throughInitialExec,
13186
13235
  throughUpdatedDefine: () => throughUpdatedDefine,
@@ -13226,6 +13275,20 @@ var require_iterate = __commonJS({
13226
13275
  }
13227
13276
  return changes;
13228
13277
  };
13278
+ var throughExecProps = (element) => {
13279
+ const { __ref: ref } = element;
13280
+ const { props: props2 } = element;
13281
+ for (const k in props2) {
13282
+ const isDefine = k.startsWith("is") || k.startsWith("has") || k.startsWith("use");
13283
+ const cachedExecProp = ref.__execProps[k];
13284
+ if ((0, import_utils32.isFunction)(cachedExecProp)) {
13285
+ props2[k] = (0, import_utils32.exec)(cachedExecProp, element);
13286
+ } else if (isDefine && (0, import_utils32.isFunction)(props2[k])) {
13287
+ ref.__execProps[k] = props2[k];
13288
+ props2[k] = (0, import_utils32.exec)(props2[k], element);
13289
+ }
13290
+ }
13291
+ };
13229
13292
  var throughInitialDefine = (element) => {
13230
13293
  const { define, context, __ref: ref } = element;
13231
13294
  let defineObj = {};
@@ -13435,6 +13498,7 @@ var require_node2 = __commonJS({
13435
13498
  if ((0, import_utils32.isFunction)(node3.setAttribute))
13436
13499
  node3.setAttribute("key", element.key);
13437
13500
  }
13501
+ (0, import_iterate.throughExecProps)(element);
13438
13502
  (0, import_iterate.throughInitialDefine)(element);
13439
13503
  (0, import_iterate.throughInitialExec)(element);
13440
13504
  if (element.tag !== "string" && element.tag !== "fragment") {
@@ -13568,16 +13632,13 @@ var require_update2 = __commonJS({
13568
13632
  if (beforeUpdateReturns === false)
13569
13633
  return element;
13570
13634
  }
13571
- const overwriteChanges = (0, import_utils32.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
13572
- const execChanges = (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
13573
- const definedChanges = (0, import_iterate.throughUpdatedDefine)(element);
13635
+ (0, import_utils32.overwriteDeep)(element, params, import_utils210.METHODS_EXL);
13636
+ (0, import_iterate.throughExecProps)(element);
13637
+ (0, import_iterate.throughUpdatedExec)(element, { ignore: UPDATE_DEFAULT_OPTIONS });
13638
+ (0, import_iterate.throughUpdatedDefine)(element);
13574
13639
  if (!options.isForced && !options.preventListeners) {
13575
13640
  (0, import_event.triggerEventOn)("beforeClassAssign", element, options);
13576
13641
  }
13577
- if (options.stackChanges && element.__stackChanges) {
13578
- const stackChanges = (0, import_utils32.merge)(definedChanges, (0, import_utils32.merge)(execChanges, overwriteChanges));
13579
- element.__stackChanges.push(stackChanges);
13580
- }
13581
13642
  if (!ref.__if)
13582
13643
  return false;
13583
13644
  if (!node3) {
@@ -14071,6 +14132,8 @@ var require_create4 = __commonJS({
14071
14132
  ref.__defineCache = {};
14072
14133
  if (!ref.__exec)
14073
14134
  ref.__exec = {};
14135
+ if (!ref.__execProps)
14136
+ ref.__execProps = {};
14074
14137
  if (!ref.__class)
14075
14138
  ref.__class = {};
14076
14139
  if (!ref.__classNames)
@@ -14772,7 +14835,7 @@ var require_object3 = __commonJS({
14772
14835
  diff: () => diff,
14773
14836
  diffArrays: () => diffArrays,
14774
14837
  diffObjects: () => diffObjects,
14775
- exec: () => exec6,
14838
+ exec: () => exec7,
14776
14839
  flattenRecursive: () => flattenRecursive,
14777
14840
  hasOwnProperty: () => hasOwnProperty,
14778
14841
  isEmpty: () => isEmpty,
@@ -14795,7 +14858,7 @@ var require_object3 = __commonJS({
14795
14858
  var import_types = require_types2();
14796
14859
  var import_array = require_array2();
14797
14860
  var import_string = require_string2();
14798
- var exec6 = (param, element, state, context) => {
14861
+ var exec7 = (param, element, state, context) => {
14799
14862
  if ((0, import_types.isFunction)(param)) {
14800
14863
  return param(
14801
14864
  element,
@@ -14807,7 +14870,7 @@ var require_object3 = __commonJS({
14807
14870
  };
14808
14871
  var map = (obj, extention, element) => {
14809
14872
  for (const e in extention) {
14810
- obj[e] = exec6(extention[e], element);
14873
+ obj[e] = exec7(extention[e], element);
14811
14874
  }
14812
14875
  };
14813
14876
  var merge6 = (element, obj, excludeFrom = []) => {
@@ -17656,8 +17719,8 @@ var Img = {
17656
17719
  attr: {
17657
17720
  src: (el) => {
17658
17721
  const { props: props2, context } = el;
17659
- const { exec: exec6, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
17660
- let src = (props2.preSrc || "") + exec6(props2.src, el);
17722
+ const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = context.utils;
17723
+ let src = (props2.preSrc || "") + exec7(props2.src, el);
17661
17724
  if (isString13(src) && src.includes("{{")) {
17662
17725
  src = replaceLiteralsWithObjectFields3(src, el.state);
17663
17726
  }
@@ -17742,8 +17805,8 @@ var getComputedBackgroundColor = ({ props: props2 }) => {
17742
17805
  return (0, import_scratch6.getColor)(props2.shapeDirectionColor) || (0, import_scratch6.getColor)(props2.borderColor) || (0, import_scratch6.getColor)(props2.backgroundColor) || (0, import_scratch6.getColor)(props2.background);
17743
17806
  };
17744
17807
  var inheritTransition = ({ props: props2, deps }) => {
17745
- const exec6 = Timing.class.transition({ props: props2, deps });
17746
- return exec6 && exec6.transition;
17808
+ const exec7 = Timing.class.transition({ props: props2, deps });
17809
+ return exec7 && exec7.transition;
17747
17810
  };
17748
17811
  var SHAPES = {
17749
17812
  rectangle: {},
@@ -18239,14 +18302,14 @@ var applyVariableProps = (key, props2, result, element) => {
18239
18302
  };
18240
18303
  var applyConditionalCaseProps = (key, props2, result, element) => {
18241
18304
  const caseKey = key.slice(1);
18242
- const isPropTrue = element.props[caseKey] || element.state[caseKey] || element[caseKey];
18305
+ const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
18243
18306
  if (!isPropTrue)
18244
18307
  return;
18245
18308
  return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props2, result, element));
18246
18309
  };
18247
18310
  var applyConditionalFalsyProps = (key, props2, result, element) => {
18248
18311
  const caseKey = key.slice(1);
18249
- const isPropTrue = element.props[caseKey] || element.state[caseKey] || element[caseKey];
18312
+ const isPropTrue = element.props[caseKey] === true || element.state[caseKey] || element[caseKey];
18250
18313
  if (!isPropTrue)
18251
18314
  return (0, import_utils7.overwriteDeep)(result, convertPropsToClass(props2, result, element));
18252
18315
  };
@@ -18941,20 +19004,22 @@ var Circle = {
18941
19004
 
18942
19005
  // ../uikit/Icon/index.js
18943
19006
  var import_utils15 = __toESM(require_cjs());
18944
- var getIconName = ({ key, props: props2, context, deps, state }) => {
18945
- let iconName = props2.name || props2.icon || key;
19007
+ var getIconName = (el, s) => {
19008
+ const { key, props: props2, deps } = el;
19009
+ let iconName = (0, import_utils15.exec)(props2.name || props2.icon || key, el);
18946
19010
  if ((0, import_utils15.isString)(iconName) && iconName.includes("{{")) {
18947
- iconName = deps.replaceLiteralsWithObjectFields(iconName, state);
19011
+ iconName = deps.replaceLiteralsWithObjectFields(iconName, s);
18948
19012
  }
18949
19013
  return deps.isString(iconName) ? iconName : key;
18950
19014
  };
18951
19015
  var Icon = {
18952
19016
  extend: "Svg",
18953
19017
  deps: { isString: import_utils15.isString, replaceLiteralsWithObjectFields: import_utils15.replaceLiteralsWithObjectFields },
18954
- props: ({ key, props: props2, parent, context, deps, state }) => {
19018
+ props: (el, s) => {
19019
+ const { props: props2, parent, context, deps, state } = el;
18955
19020
  const { ICONS, SEMANTIC_ICONS, useIconSprite, verbose } = context && context.designSystem;
18956
19021
  const { toCamelCase } = context && context.utils;
18957
- let iconName = getIconName({ key, props: props2, parent, context, deps, state });
19022
+ let iconName = getIconName(el, s);
18958
19023
  const camelCase = toCamelCase(iconName);
18959
19024
  const isArray5 = camelCase.split(/([a-z])([A-Z])/g);
18960
19025
  const semanticIconRootName = isArray5[1] ? isArray5[0] : iconName.split(".")[0].split(" ")[0];
@@ -18982,11 +19047,14 @@ var Icon = {
18982
19047
  };
18983
19048
  }
18984
19049
  let activeIconName;
18985
- if (props2.active) {
18986
- activeIconName = props2[".active"].name || props2[".active"].icon;
19050
+ if (props2.isActive) {
19051
+ activeIconName = props2[".isActive"].name || props2[".isActive"].icon;
18987
19052
  }
18988
- if (parent && parent.props && parent.props.active && parent.props[".active"] && parent.props[".active"].icon) {
18989
- activeIconName = parent.props[".active"].icon.name || parent.props[".active"].icon.icon || parent.props[".active"].icon;
19053
+ if (parent && parent.props && parent.props.isActive && parent.props[".isActive"] && parent.props[".isActive"].icon) {
19054
+ activeIconName = (0, import_utils15.exec)(
19055
+ parent.props[".isActive"].icon.name || parent.props[".isActive"].icon.icon || parent.props[".isActive"].icon,
19056
+ el
19057
+ );
18990
19058
  }
18991
19059
  if ((0, import_utils15.isString)(activeIconName) && activeIconName.includes("{{")) {
18992
19060
  activeIconName = deps.replaceLiteralsWithObjectFields(activeIconName, state);
@@ -19024,10 +19092,9 @@ var IconText = {
19024
19092
  lineHeight: 1
19025
19093
  },
19026
19094
  Icon: {
19027
- props: ({ parent, props: props2 }) => ({ icon: parent.props.icon }),
19095
+ props: ({ parent }) => ({ icon: parent.props.icon }),
19028
19096
  if: ({ parent, props: props2 }) => {
19029
- const doesExist = parent.props.icon || parent.props.Icon || props2.name || props2.icon || props2.sfSymbols || parent.props.sfSymbols;
19030
- return doesExist;
19097
+ return parent.props.icon || parent.props.Icon || props2.name || props2.icon || props2.sfSymbols || parent.props.sfSymbols;
19031
19098
  }
19032
19099
  },
19033
19100
  text: ({ props: props2 }) => props2.text,
@@ -19319,8 +19386,8 @@ var Link = {
19319
19386
  },
19320
19387
  attr: {
19321
19388
  href: (el, s, ctx) => {
19322
- const { isString: isString13, exec: exec6, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = ctx.utils;
19323
- const href = exec6(el.props.href, el) || exec6(exec6(el.props, el).href, el);
19389
+ const { isString: isString13, exec: exec7, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3 } = ctx.utils;
19390
+ const href = exec7(el.props.href, el) || exec7(exec7(el.props, el).href, el);
19324
19391
  if (isString13(href) && href.includes("{{")) {
19325
19392
  return replaceLiteralsWithObjectFields3(href, s);
19326
19393
  }
@@ -19336,8 +19403,8 @@ var RouterLink = {
19336
19403
  click: (event, el, s) => {
19337
19404
  const { props: props2, context: ctx } = el;
19338
19405
  const { href: h, scrollToTop, stopPropagation } = props2;
19339
- const { exec: exec6, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
19340
- let href = exec6(h, el, s);
19406
+ const { exec: exec7, isString: isString13, replaceLiteralsWithObjectFields: replaceLiteralsWithObjectFields3, isDefined: isDefined2 } = ctx.utils;
19407
+ let href = exec7(h, el, s);
19341
19408
  if (isString13(href) && href.includes("{{")) {
19342
19409
  href = replaceLiteralsWithObjectFields3(href, s);
19343
19410
  }
@@ -20775,8 +20842,8 @@ var Pills = {
20775
20842
  boxSize: "Y2",
20776
20843
  round: "A",
20777
20844
  background: "currentColor",
20778
- active: parseInt(key) === parseInt(state.active || parent.props.active),
20779
- "!active": { opacity: 0.35 }
20845
+ isActive: parseInt(key) === parseInt(state.active || parent.props.active),
20846
+ "!isActive": { opacity: 0.35 }
20780
20847
  })
20781
20848
  },
20782
20849
  on: {
@@ -21524,6 +21591,8 @@ var DropdownList = {
21524
21591
  style: { listStyleType: "none" },
21525
21592
  transition: "B defaultBezier",
21526
21593
  transitionProperty: "transform, opacity, visibility",
21594
+ children: ({ props: props2 }) => props2.options || [],
21595
+ childrenAs: "props",
21527
21596
  ".hidden": {
21528
21597
  transform: "translate3d(0,10%,0)",
21529
21598
  opacity: 0,
@@ -21533,8 +21602,8 @@ var DropdownList = {
21533
21602
  childExtend: {
21534
21603
  extend: "Button",
21535
21604
  state: {},
21536
- props: ({ key, state }) => ({
21537
- active: state.active === key,
21605
+ props: {
21606
+ isActive: ({ key, state }) => state.active === key,
21538
21607
  position: "relative",
21539
21608
  round: "0",
21540
21609
  align: "center flex-end",
@@ -21549,7 +21618,7 @@ var DropdownList = {
21549
21618
  }
21550
21619
  },
21551
21620
  Icon: {
21552
- active: state.active === key,
21621
+ isActive: ({ key, state }) => state.active === key,
21553
21622
  name: "checkmark",
21554
21623
  opacity: "0.1",
21555
21624
  ".active": { opacity: "1" }
@@ -21559,9 +21628,8 @@ var DropdownList = {
21559
21628
  "@light": { border: "gray11, solid" },
21560
21629
  borderWidth: "1px 0 0"
21561
21630
  }
21562
- })
21563
- },
21564
- $propsCollection: ({ props: props2 }) => props2.options
21631
+ }
21632
+ }
21565
21633
  };
21566
21634
  var DropdownParent = {
21567
21635
  props: {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.449",
3
+ "version": "2.11.451",
4
4
  "license": "MIT",
5
- "gitHead": "4b7f8173844a92575be87e42a3e93bb71ccf4a19",
5
+ "gitHead": "f3a8fdc4c82ba34580bd324cd1c922f2041506e3",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -34,11 +34,11 @@
34
34
  "@domql/emotion": "^2.5.0",
35
35
  "@domql/report": "^2.5.0",
36
36
  "@domql/router": "^2.5.0",
37
- "@symbo.ls/fetch": "^2.11.446",
38
- "@symbo.ls/init": "^2.11.446",
39
- "@symbo.ls/scratch": "^2.11.446",
40
- "@symbo.ls/sync": "^2.11.448",
41
- "@symbo.ls/uikit": "^2.11.448",
37
+ "@symbo.ls/fetch": "^2.11.450",
38
+ "@symbo.ls/init": "^2.11.450",
39
+ "@symbo.ls/scratch": "^2.11.450",
40
+ "@symbo.ls/sync": "^2.11.451",
41
+ "@symbo.ls/uikit": "^2.11.451",
42
42
  "@symbo.ls/utils": "^2.11.446",
43
43
  "domql": "^2.5.0"
44
44
  },