@symbo.ls/uikit 2.11.269 → 2.11.270

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/index.cjs.js CHANGED
@@ -208,7 +208,7 @@ var require_types = __commonJS({
208
208
  isArray: () => isArray3,
209
209
  isBoolean: () => isBoolean,
210
210
  isDate: () => isDate,
211
- isDefined: () => isDefined2,
211
+ isDefined: () => isDefined3,
212
212
  isFunction: () => isFunction3,
213
213
  isNot: () => isNot2,
214
214
  isNull: () => isNull,
@@ -237,7 +237,7 @@ var require_types = __commonJS({
237
237
  return false;
238
238
  return typeof arg === "object";
239
239
  };
240
- var isDefined2 = (arg) => {
240
+ var isDefined3 = (arg) => {
241
241
  return isObject4(arg) || isObjectLike2(arg) || isString7(arg) || isNumber(arg) || isFunction3(arg) || isArray3(arg) || isObjectLike2(arg) || isBoolean(arg) || isDate(arg) || isNull(arg);
242
242
  };
243
243
  var isUndefined4 = (arg) => {
@@ -255,7 +255,7 @@ var require_types = __commonJS({
255
255
  objectLike: isObjectLike2,
256
256
  node: import_node.isNode,
257
257
  htmlElement: import_node.isHtmlElement,
258
- defined: isDefined2
258
+ defined: isDefined3
259
259
  };
260
260
  var is = (arg) => {
261
261
  return (...args) => {
@@ -1570,7 +1570,7 @@ var require_cjs2 = __commonJS({
1570
1570
  isArray: () => isArray9,
1571
1571
  isBoolean: () => isBoolean,
1572
1572
  isDate: () => isDate,
1573
- isDefined: () => isDefined2,
1573
+ isDefined: () => isDefined22,
1574
1574
  isFunction: () => isFunction22,
1575
1575
  isNot: () => isNot2,
1576
1576
  isNull: () => isNull2,
@@ -1599,7 +1599,7 @@ var require_cjs2 = __commonJS({
1599
1599
  return false;
1600
1600
  return typeof arg === "object";
1601
1601
  };
1602
- var isDefined2 = (arg) => {
1602
+ var isDefined22 = (arg) => {
1603
1603
  return isObject8(arg) || isObjectLike3(arg) || isString10(arg) || isNumber3(arg) || isFunction22(arg) || isArray9(arg) || isObjectLike3(arg) || isBoolean(arg) || isDate(arg) || isNull2(arg);
1604
1604
  };
1605
1605
  var isUndefined22 = (arg) => {
@@ -1617,7 +1617,7 @@ var require_cjs2 = __commonJS({
1617
1617
  objectLike: isObjectLike3,
1618
1618
  node: import_node.isNode,
1619
1619
  htmlElement: import_node.isHtmlElement,
1620
- defined: isDefined2
1620
+ defined: isDefined22
1621
1621
  };
1622
1622
  var is = (arg) => {
1623
1623
  return (...args) => {
@@ -2852,7 +2852,7 @@ var require_cjs2 = __commonJS({
2852
2852
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
2853
2853
  };
2854
2854
  var import_globals = __toESM2(require_cjs7(), 1);
2855
- var import_utils16 = __toESM2(require_cjs22(), 1);
2855
+ var import_utils17 = __toESM2(require_cjs22(), 1);
2856
2856
  var ENV = "development";
2857
2857
  var colorStringToRgbaArray = (color) => {
2858
2858
  if (color === "")
@@ -2980,11 +2980,11 @@ var require_cjs2 = __commonJS({
2980
2980
  return `rgba(${arr})`;
2981
2981
  };
2982
2982
  var getRgbTone = (rgb, tone) => {
2983
- if ((0, import_utils16.isString)(rgb) && rgb.includes("rgb"))
2983
+ if ((0, import_utils17.isString)(rgb) && rgb.includes("rgb"))
2984
2984
  rgb = colorStringToRgbaArray(rgb).join(", ");
2985
- if ((0, import_utils16.isString)(rgb))
2985
+ if ((0, import_utils17.isString)(rgb))
2986
2986
  rgb = rgb.split(",").map((v) => parseFloat(v.trim()));
2987
- if ((0, import_utils16.isNumber)(tone))
2987
+ if ((0, import_utils17.isNumber)(tone))
2988
2988
  tone += "";
2989
2989
  const toHex = rgbArrayToHex(rgb);
2990
2990
  const abs2 = tone.slice(0, 1);
@@ -4742,12 +4742,12 @@ var require_on = __commonJS({
4742
4742
  triggerEventOnUpdate: () => triggerEventOnUpdate
4743
4743
  });
4744
4744
  module2.exports = __toCommonJS2(on_exports);
4745
- var import_utils16 = require_cjs();
4745
+ var import_utils17 = require_cjs();
4746
4746
  var applyEvent = (param, element, state, context, options) => {
4747
4747
  return param(element, state || element.state, context || element.context, options);
4748
4748
  };
4749
4749
  var triggerEventOn = (param, element, options) => {
4750
- if (element.on && (0, import_utils16.isFunction)(element.on[param])) {
4750
+ if (element.on && (0, import_utils17.isFunction)(element.on[param])) {
4751
4751
  const { state, context } = element;
4752
4752
  return applyEvent(element.on[param], element, state, context, options);
4753
4753
  }
@@ -4756,7 +4756,7 @@ var require_on = __commonJS({
4756
4756
  return param(updatedObj, element, state || element.state, context || element.context, options);
4757
4757
  };
4758
4758
  var triggerEventOnUpdate = (param, updatedObj, element, options) => {
4759
- if (element.on && (0, import_utils16.isFunction)(element.on[param])) {
4759
+ if (element.on && (0, import_utils17.isFunction)(element.on[param])) {
4760
4760
  const { state, context } = element;
4761
4761
  return applyEventUpdate(element.on[param], updatedObj, element, state, context, options);
4762
4762
  }
@@ -4767,7 +4767,7 @@ var require_on = __commonJS({
4767
4767
  if (param === "init" || param === "beforeClassAssign" || param === "render" || param === "renderRouter" || param === "attachNode" || param === "stateInit" || param === "stateCreated" || param === "initStateUpdated" || param === "stateUpdated" || param === "initUpdate" || param === "update")
4768
4768
  continue;
4769
4769
  const appliedFunction = element.on[param];
4770
- if ((0, import_utils16.isFunction)(appliedFunction)) {
4770
+ if ((0, import_utils17.isFunction)(appliedFunction)) {
4771
4771
  node2.addEventListener(param, (event) => {
4772
4772
  const { state, context } = element;
4773
4773
  appliedFunction(event, element, state, context, options);
@@ -4902,10 +4902,10 @@ var require_can = __commonJS({
4902
4902
  });
4903
4903
  module2.exports = __toCommonJS2(can_exports);
4904
4904
  var import_report = require_cjs3();
4905
- var import_utils16 = require_cjs();
4905
+ var import_utils17 = require_cjs();
4906
4906
  var canRender = (element) => {
4907
4907
  const tag = element.tag || "div";
4908
- return (0, import_utils16.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
4908
+ return (0, import_utils17.isValidHtmlTag)(tag) || (0, import_report.report)("HTMLInvalidTag");
4909
4909
  };
4910
4910
  }
4911
4911
  });
@@ -4971,11 +4971,11 @@ var require_methods = __commonJS({
4971
4971
  toggle: () => toggle
4972
4972
  });
4973
4973
  module2.exports = __toCommonJS2(methods_exports);
4974
- var import_utils16 = require_cjs();
4974
+ var import_utils17 = require_cjs();
4975
4975
  var import_ignore = require_ignore();
4976
4976
  var parse2 = function() {
4977
4977
  const state = this;
4978
- if ((0, import_utils16.isObject)(state)) {
4978
+ if ((0, import_utils17.isObject)(state)) {
4979
4979
  const obj = {};
4980
4980
  for (const param in state) {
4981
4981
  if (!import_ignore.IGNORE_STATE_PARAMS.includes(param)) {
@@ -4983,7 +4983,7 @@ var require_methods = __commonJS({
4983
4983
  }
4984
4984
  }
4985
4985
  return obj;
4986
- } else if ((0, import_utils16.isArray)(state)) {
4986
+ } else if ((0, import_utils17.isArray)(state)) {
4987
4987
  return state.filter((item) => !import_ignore.IGNORE_STATE_PARAMS.includes(item));
4988
4988
  }
4989
4989
  };
@@ -5003,7 +5003,7 @@ var require_methods = __commonJS({
5003
5003
  const state = this;
5004
5004
  const element = state.__element;
5005
5005
  const stateKey = element.__ref.__state;
5006
- if ((0, import_utils16.isString)(stateKey)) {
5006
+ if ((0, import_utils17.isString)(stateKey)) {
5007
5007
  element.parent.state.remove(stateKey, { isHoisted: true, ...options });
5008
5008
  return element.state;
5009
5009
  }
@@ -5016,7 +5016,7 @@ var require_methods = __commonJS({
5016
5016
  for (const key in state.__children) {
5017
5017
  const child = state.__children[key];
5018
5018
  if (child.state) {
5019
- if ((0, import_utils16.isArray)(child.state)) {
5019
+ if ((0, import_utils17.isArray)(child.state)) {
5020
5020
  Object.defineProperty(child.state, "parent", {
5021
5021
  value: state.parent,
5022
5022
  enumerable: false,
@@ -5050,10 +5050,10 @@ var require_methods = __commonJS({
5050
5050
  };
5051
5051
  var add = function(value, options = {}) {
5052
5052
  const state = this;
5053
- if ((0, import_utils16.isArray)(state)) {
5053
+ if ((0, import_utils17.isArray)(state)) {
5054
5054
  state.push(value);
5055
5055
  state.update(state.parse(), { overwrite: "replace", ...options });
5056
- } else if ((0, import_utils16.isObject)(state)) {
5056
+ } else if ((0, import_utils17.isObject)(state)) {
5057
5057
  const key = Object.keys(state).length;
5058
5058
  state.update({ [key]: value }, options);
5059
5059
  }
@@ -5064,25 +5064,25 @@ var require_methods = __commonJS({
5064
5064
  };
5065
5065
  var remove = function(key, options = {}) {
5066
5066
  const state = this;
5067
- if ((0, import_utils16.isArray)(state))
5068
- (0, import_utils16.removeFromArray)(state, key);
5069
- if ((0, import_utils16.isObject)(state))
5070
- (0, import_utils16.removeFromObject)(state, key);
5067
+ if ((0, import_utils17.isArray)(state))
5068
+ (0, import_utils17.removeFromArray)(state, key);
5069
+ if ((0, import_utils17.isObject)(state))
5070
+ (0, import_utils17.removeFromObject)(state, key);
5071
5071
  return state.set(state.parse(), { replace: true, ...options });
5072
5072
  };
5073
5073
  var set3 = function(val, options = {}) {
5074
5074
  const state = this;
5075
- const value = (0, import_utils16.deepCloneWithExtnd)(val);
5075
+ const value = (0, import_utils17.deepCloneWithExtnd)(val);
5076
5076
  return state.clean({ preventStateUpdate: true, ...options }).update(value, { replace: true, ...options });
5077
5077
  };
5078
5078
  var reset = function(options = {}) {
5079
5079
  const state = this;
5080
- const value = (0, import_utils16.deepCloneWithExtnd)(state.parse());
5080
+ const value = (0, import_utils17.deepCloneWithExtnd)(state.parse());
5081
5081
  return state.set(value, { replace: true, ...options });
5082
5082
  };
5083
5083
  var apply = function(func, options = {}) {
5084
5084
  const state = this;
5085
- if ((0, import_utils16.isFunction)(func)) {
5085
+ if ((0, import_utils17.isFunction)(func)) {
5086
5086
  func(state);
5087
5087
  return state.update(state.parse(), { replace: true, ...options });
5088
5088
  }
@@ -5122,7 +5122,7 @@ var require_inherit = __commonJS({
5122
5122
  isState: () => isState2
5123
5123
  });
5124
5124
  module2.exports = __toCommonJS2(inherit_exports);
5125
- var import_utils16 = require_cjs();
5125
+ var import_utils17 = require_cjs();
5126
5126
  var import_ignore = require_ignore();
5127
5127
  var getParentStateInKey = (stateKey, parentState) => {
5128
5128
  if (!stateKey.includes("../"))
@@ -5174,11 +5174,11 @@ var require_inherit = __commonJS({
5174
5174
  var createInheritedState = (element, parent) => {
5175
5175
  const ref = element.__ref;
5176
5176
  const inheritedState = findInheritedState(element, parent);
5177
- if ((0, import_utils16.isUndefined)(inheritedState))
5177
+ if ((0, import_utils17.isUndefined)(inheritedState))
5178
5178
  return element.state;
5179
- if ((0, import_utils16.is)(inheritedState)("object", "array")) {
5180
- return (0, import_utils16.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
5181
- } else if ((0, import_utils16.is)(inheritedState)("string", "number", "boolean")) {
5179
+ if ((0, import_utils17.is)(inheritedState)("object", "array")) {
5180
+ return (0, import_utils17.deepCloneWithExtnd)(inheritedState, import_ignore.IGNORE_STATE_PARAMS);
5181
+ } else if ((0, import_utils17.is)(inheritedState)("string", "number", "boolean")) {
5182
5182
  ref.__stateType = typeof inheritedState;
5183
5183
  return { value: inheritedState };
5184
5184
  }
@@ -5187,12 +5187,12 @@ var require_inherit = __commonJS({
5187
5187
  var checkIfInherits = (element) => {
5188
5188
  const ref = element.__ref;
5189
5189
  const stateKey = ref.__state;
5190
- if (stateKey && (0, import_utils16.is)(stateKey)("number", "string", "boolean"))
5190
+ if (stateKey && (0, import_utils17.is)(stateKey)("number", "string", "boolean"))
5191
5191
  return true;
5192
5192
  return false;
5193
5193
  };
5194
5194
  var isState2 = function(state) {
5195
- if (!(0, import_utils16.isObjectLike)(state))
5195
+ if (!(0, import_utils17.isObjectLike)(state))
5196
5196
  return false;
5197
5197
  return state.update && state.parse && state.clean && state.create && state.parent && state.destroy && state.rootUpdate && state.parentUpdate && state.toggle && state.add && state.apply && state.__element && state.__children;
5198
5198
  };
@@ -5241,7 +5241,7 @@ var require_updateState = __commonJS({
5241
5241
  var import_report = require_cjs3();
5242
5242
  var import_event = require_cjs4();
5243
5243
  var import_ignore = require_ignore();
5244
- var import_utils16 = require_cjs();
5244
+ var import_utils17 = require_cjs();
5245
5245
  var import_inherit = require_inherit();
5246
5246
  var STATE_UPDATE_OPTIONS = {
5247
5247
  overwrite: true,
@@ -5254,7 +5254,7 @@ var require_updateState = __commonJS({
5254
5254
  const state = this;
5255
5255
  const element = state.__element;
5256
5256
  if (!options.updateByState)
5257
- (0, import_utils16.merge)(options, STATE_UPDATE_OPTIONS);
5257
+ (0, import_utils17.merge)(options, STATE_UPDATE_OPTIONS);
5258
5258
  if (!state.__element)
5259
5259
  (0, import_report.report)("ElementOnStateIsNotDefined");
5260
5260
  if (options.preventInheritAtCurrentState === true) {
@@ -5284,10 +5284,10 @@ var require_updateState = __commonJS({
5284
5284
  const shallow = overwrite === "shallow";
5285
5285
  const merge22 = overwrite === "merge";
5286
5286
  if (merge22) {
5287
- (0, import_utils16.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
5287
+ (0, import_utils17.deepMerge)(state, obj, import_ignore.IGNORE_STATE_PARAMS);
5288
5288
  return;
5289
5289
  }
5290
- const overwriteFunc = shallow ? import_utils16.overwriteShallow : import_utils16.overwriteDeep;
5290
+ const overwriteFunc = shallow ? import_utils17.overwriteShallow : import_utils17.overwriteDeep;
5291
5291
  overwriteFunc(state, obj, import_ignore.IGNORE_STATE_PARAMS);
5292
5292
  };
5293
5293
  var hoistStateUpdate = (state, obj, options) => {
@@ -5309,7 +5309,7 @@ var require_updateState = __commonJS({
5309
5309
  const changesValue = (0, import_inherit.createChangesByKey)(stateKey, passedValue);
5310
5310
  const targetParent = findGrandParentState || parent.state;
5311
5311
  if (options.replace)
5312
- (0, import_utils16.overwriteDeep)(targetParent, changesValue || value);
5312
+ (0, import_utils17.overwriteDeep)(targetParent, changesValue || value);
5313
5313
  targetParent.update(changesValue, {
5314
5314
  execStateFunction: false,
5315
5315
  isHoisted: true,
@@ -5378,7 +5378,7 @@ var require_create = __commonJS({
5378
5378
  });
5379
5379
  module2.exports = __toCommonJS2(create_exports);
5380
5380
  var import_event = require_cjs4();
5381
- var import_utils16 = require_cjs();
5381
+ var import_utils17 = require_cjs();
5382
5382
  var import_ignore = require_ignore();
5383
5383
  var import_methods = require_methods();
5384
5384
  var import_updateState = require_updateState();
@@ -5392,13 +5392,13 @@ var require_create = __commonJS({
5392
5392
  if (objectizeState === false)
5393
5393
  return parent.state || {};
5394
5394
  else
5395
- element.state = (0, import_utils16.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
5395
+ element.state = (0, import_utils17.deepCloneWithExtnd)(objectizeState, import_ignore.IGNORE_STATE_PARAMS);
5396
5396
  const whatInitReturns = (0, import_event.triggerEventOn)("stateInit", element, options);
5397
5397
  if (whatInitReturns === false)
5398
5398
  return element.state;
5399
5399
  if ((0, import_inherit.checkIfInherits)(element)) {
5400
5400
  const inheritedState = (0, import_inherit.createInheritedState)(element, parent);
5401
- element.state = (0, import_utils16.isUndefined)(inheritedState) ? {} : inheritedState;
5401
+ element.state = (0, import_utils17.isUndefined)(inheritedState) ? {} : inheritedState;
5402
5402
  }
5403
5403
  const dependentState = applyDependentState(element, element.state);
5404
5404
  if (dependentState)
@@ -5411,17 +5411,17 @@ var require_create = __commonJS({
5411
5411
  const { __ref: ref } = state;
5412
5412
  if (!ref)
5413
5413
  return;
5414
- const dependentState = (0, import_utils16.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
5414
+ const dependentState = (0, import_utils17.deepCloneWithExtnd)(ref, import_ignore.IGNORE_STATE_PARAMS);
5415
5415
  const newDepends = { [element.key]: dependentState };
5416
- ref.__depends = (0, import_utils16.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
5416
+ ref.__depends = (0, import_utils17.isObject)(ref.__depends) ? { ...ref.__depends, ...newDepends } : newDepends;
5417
5417
  return dependentState;
5418
5418
  };
5419
5419
  var checkForTypes = (element) => {
5420
5420
  const { state, __ref: ref } = element;
5421
- if ((0, import_utils16.isFunction)(state)) {
5421
+ if ((0, import_utils17.isFunction)(state)) {
5422
5422
  ref.__state = state;
5423
- return (0, import_utils16.exec)(state, element);
5424
- } else if ((0, import_utils16.is)(state)("string", "number")) {
5423
+ return (0, import_utils17.exec)(state, element);
5424
+ } else if ((0, import_utils17.is)(state)("string", "number")) {
5425
5425
  ref.__state = state;
5426
5426
  return {};
5427
5427
  } else if (state === true) {
@@ -5469,7 +5469,7 @@ var require_create = __commonJS({
5469
5469
  __children: {},
5470
5470
  __root: ref.__root ? ref.__root.state : state
5471
5471
  };
5472
- if ((0, import_utils16.isArray)(state)) {
5472
+ if ((0, import_utils17.isArray)(state)) {
5473
5473
  addProtoToArray(state, proto);
5474
5474
  } else {
5475
5475
  Object.setPrototypeOf(state, proto);
@@ -5539,8 +5539,8 @@ var require_cjs6 = __commonJS({
5539
5539
  router: () => router
5540
5540
  });
5541
5541
  module2.exports = __toCommonJS2(router_exports);
5542
- var import_utils16 = require_cjs();
5543
- var getActiveRoute = (level = 0, route = import_utils16.window.location.pathname) => {
5542
+ var import_utils17 = require_cjs();
5543
+ var getActiveRoute = (level = 0, route = import_utils17.window.location.pathname) => {
5544
5544
  const routeArray = route.split("/");
5545
5545
  const activeRoute = routeArray[level + 1];
5546
5546
  if (activeRoute)
@@ -5554,7 +5554,7 @@ var require_cjs6 = __commonJS({
5554
5554
  initialRender: false,
5555
5555
  scrollToTop: true,
5556
5556
  scrollToNode: false,
5557
- scrollNode: import_utils16.document && import_utils16.document.documentElement,
5557
+ scrollNode: import_utils17.document && import_utils17.document.documentElement,
5558
5558
  scrollBody: false,
5559
5559
  useFragment: false,
5560
5560
  updateState: true,
@@ -5570,13 +5570,13 @@ var require_cjs6 = __commonJS({
5570
5570
  const route = getActiveRoute(options.level, pathname);
5571
5571
  const content = element.routes[route || "/"] || element.routes["/*"];
5572
5572
  const scrollNode = options.scrollToNode ? rootNode : options.scrollNode;
5573
- const hashChanged = hash2 && hash2 !== import_utils16.window.location.hash.slice(1);
5573
+ const hashChanged = hash2 && hash2 !== import_utils17.window.location.hash.slice(1);
5574
5574
  const pathChanged = pathname !== lastPathname;
5575
5575
  lastPathname = pathname;
5576
5576
  if (!content)
5577
5577
  return;
5578
5578
  if (options.pushState) {
5579
- import_utils16.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
5579
+ import_utils17.window.history.pushState(state, null, pathname + (hash2 ? `#${hash2}` : ""));
5580
5580
  }
5581
5581
  if (pathChanged || !hashChanged) {
5582
5582
  if (options.updateState) {
@@ -5605,7 +5605,7 @@ var require_cjs6 = __commonJS({
5605
5605
  });
5606
5606
  }
5607
5607
  if (hash2) {
5608
- const activeNode = import_utils16.document.getElementById(hash2);
5608
+ const activeNode = import_utils17.document.getElementById(hash2);
5609
5609
  if (activeNode) {
5610
5610
  const top = activeNode.getBoundingClientRect().top + rootNode.scrollTop - options.scrollToOffset || 0;
5611
5611
  scrollNode.scrollTo({
@@ -8461,6 +8461,12 @@ var Svg = {
8461
8461
  return useSVGSymbol(SVGKey);
8462
8462
  SVGKey = SVG[symbolId] = Math.random();
8463
8463
  if (props4.src) {
8464
+ deps.init({
8465
+ svg: { [SVGKey]: props4.src }
8466
+ }, {
8467
+ document: context.document,
8468
+ emotion: context.emotion
8469
+ });
8464
8470
  }
8465
8471
  return useSVGSymbol(SVGKey);
8466
8472
  }
@@ -8856,36 +8862,35 @@ var SuccessIndicator = {
8856
8862
  var Hgroup = {
8857
8863
  extend: Flex,
8858
8864
  tag: "hgroup",
8859
- props: { flow: "column", gap: "Y" },
8860
- Title: {
8861
- extend: Flex,
8862
- props: {
8865
+ props: {
8866
+ flow: "column",
8867
+ gap: "Y",
8868
+ Title: {
8863
8869
  fontWeight: "700",
8864
8870
  alignItems: "center"
8865
- }
8866
- },
8867
- Paragraph: {
8868
- extend: Flex,
8869
- props: {
8871
+ },
8872
+ Paragraph: {
8870
8873
  margin: "0",
8871
8874
  color: "caption",
8872
8875
  "> p": { margin: "0" }
8873
8876
  }
8877
+ },
8878
+ Title: {
8879
+ extend: Flex,
8880
+ if: ({ parent }) => parent.props.title,
8881
+ props: ({ scope, parent }) => ({
8882
+ text: parent.props.title,
8883
+ lineHeight: "1em"
8884
+ })
8885
+ },
8886
+ Paragraph: {
8887
+ extend: Flex,
8888
+ if: ({ parent }) => parent.props.paragraph,
8889
+ props: ({ scope, parent }) => ({
8890
+ text: parent.props.paragraph,
8891
+ margin: "0"
8892
+ })
8874
8893
  }
8875
- // Title: {
8876
- // extend: Flex,
8877
- // props: ({ scope, parent }) => ({
8878
- // text: parent.props.title,
8879
- // lineHeight: '1em'
8880
- // })
8881
- // },
8882
- // Paragraph: {
8883
- // extend: Flex,
8884
- // props: ({ scope, parent }) => ({
8885
- // text: parent.props.paragraph,
8886
- // margin: '0'
8887
- // })
8888
- // }
8889
8894
  };
8890
8895
  var HgroupRows = {
8891
8896
  extend: Hgroup,
@@ -9702,6 +9707,7 @@ var UnitValueWithTitle = {
9702
9707
 
9703
9708
  // Link/index.js
9704
9709
  var import_router = __toESM(require_cjs6());
9710
+ var import_utils12 = __toESM(require_cjs());
9705
9711
  var Link = {
9706
9712
  extend: Focusable,
9707
9713
  tag: "a",
@@ -9727,17 +9733,19 @@ var RouterLink = {
9727
9733
  on: {
9728
9734
  click: (event, el) => {
9729
9735
  const { props: props4, context: ctx } = el;
9730
- const { href } = props4;
9736
+ const { href, scrollToTop } = props4;
9731
9737
  if (!href)
9732
9738
  return;
9733
9739
  const { utils, snippets, routerOptions } = ctx;
9734
9740
  const root = el.__ref.__root;
9735
9741
  const linkIsExternal = href.includes("http://") || href.includes("https://") || href.includes("mailto:") || href.includes("tel:");
9736
- const options = props4.routerOptions || routerOptions || {
9737
- scrollToOptions: { behaviour: "instant" }
9738
- };
9739
9742
  if (href && !linkIsExternal) {
9740
- (snippets.router || utils.router || import_router.router)(href, root, {}, options);
9743
+ (snippets.router || utils.router || import_router.router)(href, root, {}, {
9744
+ scrollToOptions: { behaviour: "instant" },
9745
+ scrollToTop: (0, import_utils12.isDefined)(scrollToTop) ? scrollToTop : true,
9746
+ ...routerOptions,
9747
+ ...props4.routerOptions
9748
+ });
9741
9749
  event.preventDefault();
9742
9750
  }
9743
9751
  }
@@ -9796,11 +9804,11 @@ var DoubleHr = {
9796
9804
  };
9797
9805
 
9798
9806
  // Input/Input.js
9799
- var import_utils12 = __toESM(require_cjs());
9807
+ var import_utils13 = __toESM(require_cjs());
9800
9808
  var Input = {
9801
9809
  extend: ["Focusable"],
9802
9810
  tag: "input",
9803
- deps: { isString: import_utils12.isString, replaceLiteralsWithObjectFields: import_utils12.replaceLiteralsWithObjectFields },
9811
+ deps: { isString: import_utils13.isString, replaceLiteralsWithObjectFields: import_utils13.replaceLiteralsWithObjectFields },
9804
9812
  props: {
9805
9813
  border: "none",
9806
9814
  type: "input",
@@ -10323,7 +10331,7 @@ var ProgressCircleWithSideUnitValue = {
10323
10331
  };
10324
10332
 
10325
10333
  // Range/index.js
10326
- var import_utils13 = __toESM(require_cjs());
10334
+ var import_utils14 = __toESM(require_cjs());
10327
10335
  var import_scratch11 = __toESM(require_cjs2());
10328
10336
  var props = {
10329
10337
  appearance: "none",
@@ -10391,7 +10399,7 @@ var Range = {
10391
10399
  };
10392
10400
  var returnPropertyValue = (el, property, def) => {
10393
10401
  const val = el.props && el.props[property];
10394
- const r = (0, import_utils13.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
10402
+ const r = (0, import_utils14.isFunction)(val) ? val(el, el.state) : val !== void 0 ? val : def !== void 0 ? def : 50;
10395
10403
  return r + "";
10396
10404
  };
10397
10405
  var RangeWithButtons = {
@@ -10401,7 +10409,7 @@ var RangeWithButtons = {
10401
10409
  on: {
10402
10410
  click: (ev, el, s) => {
10403
10411
  const parentProps = el.parent.props;
10404
- if ((0, import_utils13.isFunction)(parentProps.onDecrease)) {
10412
+ if ((0, import_utils14.isFunction)(parentProps.onDecrease)) {
10405
10413
  parentProps.onDecrease(ev, el.parent, s);
10406
10414
  } else {
10407
10415
  const value = parseFloat(s.value);
@@ -10433,7 +10441,7 @@ var RangeWithButtons = {
10433
10441
  on: {
10434
10442
  input: (ev, el, s) => {
10435
10443
  const parentProps = el.parent.props;
10436
- if ((0, import_utils13.isFunction)(parentProps.onInput)) {
10444
+ if ((0, import_utils14.isFunction)(parentProps.onInput)) {
10437
10445
  parentProps.onInput(ev, el, s);
10438
10446
  } else {
10439
10447
  s.update({ value: parseFloat(el.node.value) });
@@ -10441,7 +10449,7 @@ var RangeWithButtons = {
10441
10449
  },
10442
10450
  change: (ev, el, s) => {
10443
10451
  const parentProps = el.parent.props;
10444
- if ((0, import_utils13.isFunction)(parentProps.onChange)) {
10452
+ if ((0, import_utils14.isFunction)(parentProps.onChange)) {
10445
10453
  parentProps.onChange(ev, el, s);
10446
10454
  } else {
10447
10455
  s.update({ value: parseFloat(el.node.value) });
@@ -10455,7 +10463,7 @@ var RangeWithButtons = {
10455
10463
  on: {
10456
10464
  click: (ev, el, s) => {
10457
10465
  const parentProps = el.parent.props;
10458
- if ((0, import_utils13.isFunction)(parentProps.onIncrease)) {
10466
+ if ((0, import_utils14.isFunction)(parentProps.onIncrease)) {
10459
10467
  parentProps.onIncrease(ev, el.parent, s);
10460
10468
  } else {
10461
10469
  const value = parseFloat(s.value);
@@ -10491,7 +10499,7 @@ var style_default = {
10491
10499
 
10492
10500
  // Slider/index.js
10493
10501
  var import_scratch12 = __toESM(require_cjs2());
10494
- var import_utils14 = __toESM(require_cjs());
10502
+ var import_utils15 = __toESM(require_cjs());
10495
10503
  var RangeSlider = {
10496
10504
  style: style_default,
10497
10505
  props: {
@@ -10502,7 +10510,7 @@ var RangeSlider = {
10502
10510
  };
10503
10511
  var listenProp = (el, prop, def) => {
10504
10512
  const val = el && el.props && el.props[prop];
10505
- const r = ((0, import_utils14.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
10513
+ const r = ((0, import_utils15.isFunction)(val) ? val() : val) || (def !== void 0 ? def : 50);
10506
10514
  return r;
10507
10515
  };
10508
10516
  var Slider = {
@@ -10513,10 +10521,10 @@ var Slider = {
10513
10521
  },
10514
10522
  on: {
10515
10523
  click: (ev, el, s) => {
10516
- el.props && (0, import_utils14.isFunction)(el.props.click) && el.props.click(ev, el, s);
10524
+ el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
10517
10525
  const input = el.parent.input;
10518
10526
  const props4 = input.props;
10519
- const value = (0, import_utils14.isFunction)(props4.value) ? props4.value() : props4.value;
10527
+ const value = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
10520
10528
  input.node.value = value;
10521
10529
  }
10522
10530
  }
@@ -10539,8 +10547,8 @@ var Slider = {
10539
10547
  step: (el, s) => listenProp(el, "step", 1)
10540
10548
  },
10541
10549
  on: {
10542
- input: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.input) && el.props.input(ev, el, s),
10543
- change: (ev, el, s) => el.props && (0, import_utils14.isFunction)(el.props.change) && el.props.change(ev, el, s)
10550
+ input: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.input) && el.props.input(ev, el, s),
10551
+ change: (ev, el, s) => el.props && (0, import_utils15.isFunction)(el.props.change) && el.props.change(ev, el, s)
10544
10552
  }
10545
10553
  },
10546
10554
  button1: {
@@ -10550,10 +10558,10 @@ var Slider = {
10550
10558
  },
10551
10559
  on: {
10552
10560
  click: (ev, el, s) => {
10553
- el.props && (0, import_utils14.isFunction)(el.props.click) && el.props.click(ev, el, s);
10561
+ el.props && (0, import_utils15.isFunction)(el.props.click) && el.props.click(ev, el, s);
10554
10562
  const input = el.parent.input;
10555
10563
  const props4 = input.props;
10556
- const value = (0, import_utils14.isFunction)(props4.value) ? props4.value() : props4.value;
10564
+ const value = (0, import_utils15.isFunction)(props4.value) ? props4.value() : props4.value;
10557
10565
  input.node.value = value;
10558
10566
  }
10559
10567
  }
@@ -10769,7 +10777,7 @@ var NotificationIndicator = {
10769
10777
  };
10770
10778
 
10771
10779
  // Tooltip/index.js
10772
- var import_utils15 = __toESM(require_cjs());
10780
+ var import_utils16 = __toESM(require_cjs());
10773
10781
  var Tooltip = {
10774
10782
  extend: Flex,
10775
10783
  props: {
@@ -10788,7 +10796,7 @@ var Tooltip = {
10788
10796
  },
10789
10797
  attr: { tooltip: true },
10790
10798
  Title: {
10791
- if: ({ parent, props: props4 }) => (0, import_utils15.isDefined)(parent.props.title) || props4.text,
10799
+ if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.title) || props4.text,
10792
10800
  props: ({ parent }) => ({
10793
10801
  width: "fit-content",
10794
10802
  fontWeight: 500,
@@ -10797,7 +10805,7 @@ var Tooltip = {
10797
10805
  })
10798
10806
  },
10799
10807
  P: {
10800
- if: ({ parent, props: props4 }) => (0, import_utils15.isDefined)(parent.props.description) || props4.text,
10808
+ if: ({ parent, props: props4 }) => (0, import_utils16.isDefined)(parent.props.description) || props4.text,
10801
10809
  props: ({ parent }) => ({
10802
10810
  width: "fit-content",
10803
10811
  fontSize: "Z2",