@symbo.ls/uikit 2.11.92 → 2.11.96

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
@@ -9040,13 +9040,13 @@ var require_cjs10 = __commonJS({
9040
9040
  document: () => document4,
9041
9041
  global: () => global,
9042
9042
  self: () => self,
9043
- window: () => window3
9043
+ window: () => window2
9044
9044
  });
9045
9045
  module22.exports = __toCommonJS22(globals_exports);
9046
9046
  var global = globalThis;
9047
9047
  var self = globalThis;
9048
- var window3 = globalThis;
9049
- var document4 = window3.document;
9048
+ var window2 = globalThis;
9049
+ var document4 = window2.document;
9050
9050
  }
9051
9051
  });
9052
9052
  var require_cjs22 = __commonJS2({
@@ -9334,10 +9334,10 @@ var require_cjs10 = __commonJS({
9334
9334
  isFunction: () => isFunction22,
9335
9335
  isNot: () => isNot4,
9336
9336
  isNull: () => isNull,
9337
- isNumber: () => isNumber,
9337
+ isNumber: () => isNumber2,
9338
9338
  isObject: () => isObject7,
9339
9339
  isObjectLike: () => isObjectLike32,
9340
- isString: () => isString8,
9340
+ isString: () => isString9,
9341
9341
  isUndefined: () => isUndefined,
9342
9342
  isValidHtmlTag: () => isValidHtmlTag
9343
9343
  });
@@ -9350,8 +9350,8 @@ var require_cjs10 = __commonJS({
9350
9350
  return false;
9351
9351
  return typeof arg === "object" && arg.constructor === Object;
9352
9352
  };
9353
- var isString8 = (arg) => typeof arg === "string";
9354
- var isNumber = (arg) => typeof arg === "number";
9353
+ var isString9 = (arg) => typeof arg === "string";
9354
+ var isNumber2 = (arg) => typeof arg === "number";
9355
9355
  var isFunction22 = (arg) => typeof arg === "function";
9356
9356
  var isBoolean = (arg) => arg === true || arg === false;
9357
9357
  var isNull = (arg) => arg === null;
@@ -9362,7 +9362,7 @@ var require_cjs10 = __commonJS({
9362
9362
  return typeof arg === "object";
9363
9363
  };
9364
9364
  var isDefined2 = (arg) => {
9365
- return isObject7(arg) || isObjectLike32(arg) || isString8(arg) || isNumber(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
9365
+ return isObject7(arg) || isObjectLike32(arg) || isString9(arg) || isNumber2(arg) || isFunction22(arg) || isArray62(arg) || isObjectLike32(arg) || isBoolean(arg) || isNull(arg);
9366
9366
  };
9367
9367
  var isUndefined = (arg) => {
9368
9368
  return arg === void 0;
@@ -9371,8 +9371,8 @@ var require_cjs10 = __commonJS({
9371
9371
  boolean: isBoolean,
9372
9372
  array: isArray62,
9373
9373
  object: isObject7,
9374
- string: isString8,
9375
- number: isNumber,
9374
+ string: isString9,
9375
+ number: isNumber2,
9376
9376
  null: isNull,
9377
9377
  function: isFunction22,
9378
9378
  objectLike: isObjectLike32,
@@ -9415,6 +9415,9 @@ var require_cjs10 = __commonJS({
9415
9415
  var array_exports = {};
9416
9416
  __export22(array_exports, {
9417
9417
  arrayContainsOtherArray: () => arrayContainsOtherArray,
9418
+ createNestedObject: () => createNestedObject,
9419
+ cutArrayAfterValue: () => cutArrayAfterValue,
9420
+ cutArrayBeforeValue: () => cutArrayBeforeValue,
9418
9421
  joinArrays: () => joinArrays,
9419
9422
  mergeAndCloneIfArray: () => mergeAndCloneIfArray,
9420
9423
  mergeArray: () => mergeArray,
@@ -9454,6 +9457,71 @@ var require_cjs10 = __commonJS({
9454
9457
  var mergeAndCloneIfArray = (obj) => {
9455
9458
  return (0, import_types.isArray)(obj) ? mergeArray(obj) : (0, import_object.deepClone)(obj);
9456
9459
  };
9460
+ var cutArrayBeforeValue = (arr, value) => {
9461
+ const index = arr.indexOf(value);
9462
+ if (index !== -1) {
9463
+ return arr.slice(0, index);
9464
+ }
9465
+ return arr;
9466
+ };
9467
+ var cutArrayAfterValue = (arr, value) => {
9468
+ const index = arr.indexOf(value);
9469
+ if (index !== -1) {
9470
+ return arr.slice(index + 1);
9471
+ }
9472
+ return arr;
9473
+ };
9474
+ var createNestedObject = (arr, lastValue) => {
9475
+ let nestedObject = {};
9476
+ if (arr.length === 0) {
9477
+ return lastValue;
9478
+ }
9479
+ arr.reduce((obj, value, index) => {
9480
+ if (!obj[value]) {
9481
+ obj[value] = {};
9482
+ }
9483
+ if (index === arr.length - 1 && lastValue) {
9484
+ obj[value] = lastValue;
9485
+ }
9486
+ return obj[value];
9487
+ }, nestedObject);
9488
+ return nestedObject;
9489
+ };
9490
+ }
9491
+ });
9492
+ var require_string2 = __commonJS2({
9493
+ "../../node_modules/@domql/utils/dist/cjs/string.js"(exports2, module22) {
9494
+ "use strict";
9495
+ var __defProp22 = Object.defineProperty;
9496
+ var __getOwnPropDesc22 = Object.getOwnPropertyDescriptor;
9497
+ var __getOwnPropNames22 = Object.getOwnPropertyNames;
9498
+ var __hasOwnProp22 = Object.prototype.hasOwnProperty;
9499
+ var __export22 = (target, all) => {
9500
+ for (var name in all)
9501
+ __defProp22(target, name, { get: all[name], enumerable: true });
9502
+ };
9503
+ var __copyProps22 = (to, from2, except, desc) => {
9504
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
9505
+ for (let key of __getOwnPropNames22(from2))
9506
+ if (!__hasOwnProp22.call(to, key) && key !== except)
9507
+ __defProp22(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc22(from2, key)) || desc.enumerable });
9508
+ }
9509
+ return to;
9510
+ };
9511
+ var __toCommonJS22 = (mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod);
9512
+ var string_exports = {};
9513
+ __export22(string_exports, {
9514
+ stringIncludesAny: () => stringIncludesAny
9515
+ });
9516
+ module22.exports = __toCommonJS22(string_exports);
9517
+ var stringIncludesAny = (str, characters2) => {
9518
+ for (const char2 of characters2) {
9519
+ if (str.includes(char2)) {
9520
+ return true;
9521
+ }
9522
+ }
9523
+ return false;
9524
+ };
9457
9525
  }
9458
9526
  });
9459
9527
  var require_object2 = __commonJS2({
@@ -9495,15 +9563,18 @@ var require_cjs10 = __commonJS({
9495
9563
  merge: () => merge5,
9496
9564
  mergeArrayExclude: () => mergeArrayExclude,
9497
9565
  mergeIfExisted: () => mergeIfExisted,
9566
+ objectToString: () => objectToString,
9498
9567
  overwrite: () => overwrite,
9499
9568
  overwriteDeep: () => overwriteDeep2,
9500
9569
  overwriteShallow: () => overwriteShallow4,
9501
- removeFromObject: () => removeFromObject
9570
+ removeFromObject: () => removeFromObject,
9571
+ stringToObject: () => stringToObject
9502
9572
  });
9503
9573
  module22.exports = __toCommonJS22(object_exports);
9504
9574
  var import_globals3 = require_cjs11();
9505
9575
  var import_types = require_types2();
9506
9576
  var import_array = require_array2();
9577
+ var import_string = require_string2();
9507
9578
  var exec4 = (param, element, state, context) => {
9508
9579
  if ((0, import_types.isFunction)(param)) {
9509
9580
  return param(
@@ -9521,7 +9592,7 @@ var require_cjs10 = __commonJS({
9521
9592
  };
9522
9593
  var merge5 = (element, obj, excludeFrom = []) => {
9523
9594
  for (const e in obj) {
9524
- if (excludeFrom.includes(e) || e.includes("__"))
9595
+ if (excludeFrom.includes(e) || e.startsWith("__"))
9525
9596
  continue;
9526
9597
  const elementProp = element[e];
9527
9598
  const objProp = obj[e];
@@ -9533,7 +9604,7 @@ var require_cjs10 = __commonJS({
9533
9604
  };
9534
9605
  var deepMerge3 = (element, extend, excludeFrom = []) => {
9535
9606
  for (const e in extend) {
9536
- if (excludeFrom.includes(e) || e.includes("__"))
9607
+ if (excludeFrom.includes(e) || e.startsWith("__"))
9537
9608
  continue;
9538
9609
  const elementProp = element[e];
9539
9610
  const extendProp = extend[e];
@@ -9548,7 +9619,7 @@ var require_cjs10 = __commonJS({
9548
9619
  var clone = (obj, excludeFrom = []) => {
9549
9620
  const o = {};
9550
9621
  for (const prop in obj) {
9551
- if (excludeFrom.includes(prop) || prop.includes("__"))
9622
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
9552
9623
  continue;
9553
9624
  o[prop] = obj[prop];
9554
9625
  }
@@ -9560,7 +9631,7 @@ var require_cjs10 = __commonJS({
9560
9631
  }
9561
9632
  const o = {};
9562
9633
  for (const k in obj) {
9563
- if (excludeFrom.includes(k) || k.includes("__"))
9634
+ if (excludeFrom.includes(k) || k.startsWith("__"))
9564
9635
  continue;
9565
9636
  let v = obj[k];
9566
9637
  if (k === "extend" && (0, import_types.isArray)(v)) {
@@ -9581,7 +9652,7 @@ var require_cjs10 = __commonJS({
9581
9652
  var deepClone22 = (obj, excludeFrom = []) => {
9582
9653
  const o = (0, import_types.isArray)(obj) ? [] : {};
9583
9654
  for (const prop in obj) {
9584
- if (excludeFrom.includes(prop) || prop.includes("__"))
9655
+ if (excludeFrom.includes(prop) || prop.startsWith("__"))
9585
9656
  continue;
9586
9657
  let objProp = obj[prop];
9587
9658
  if (prop === "extend" && (0, import_types.isArray)(objProp)) {
@@ -9620,6 +9691,40 @@ var require_cjs10 = __commonJS({
9620
9691
  }
9621
9692
  return stringified;
9622
9693
  };
9694
+ var objectToString = (obj, indent = 0) => {
9695
+ const spaces = " ".repeat(indent);
9696
+ let str = "{\n";
9697
+ for (const [key, value] of Object.entries(obj)) {
9698
+ const keyAllowdChars = (0, import_string.stringIncludesAny)(key, ["-", ":", "@", ".", "!"]);
9699
+ const stringedKey = keyAllowdChars ? `'${key}'` : key;
9700
+ str += `${spaces} ${stringedKey}: `;
9701
+ if ((0, import_types.isArray)(value)) {
9702
+ str += "[\n";
9703
+ for (const element of value) {
9704
+ if ((0, import_types.isObject)(element) && element !== null) {
9705
+ str += `${spaces} ${objectToString(element, indent + 2)},
9706
+ `;
9707
+ } else if ((0, import_types.isString)(element)) {
9708
+ str += `${spaces} '${element}',
9709
+ `;
9710
+ } else {
9711
+ str += `${spaces} ${element},
9712
+ `;
9713
+ }
9714
+ }
9715
+ str += `${spaces} ]`;
9716
+ } else if ((0, import_types.isObject)(value)) {
9717
+ str += objectToString(value, indent + 1);
9718
+ } else if ((0, import_types.isString)(value)) {
9719
+ str += (0, import_string.stringIncludesAny)(value, ["\n", "'"]) ? `\`${value}\`` : `'${value}'`;
9720
+ } else {
9721
+ str += value;
9722
+ }
9723
+ str += ",\n";
9724
+ }
9725
+ str += `${spaces}}`;
9726
+ return str;
9727
+ };
9623
9728
  var detachFunctionsFromObject = (obj, detached = {}) => {
9624
9729
  for (const prop in obj) {
9625
9730
  const objProp = obj[prop];
@@ -9690,6 +9795,16 @@ var require_cjs10 = __commonJS({
9690
9795
  }
9691
9796
  return stringified;
9692
9797
  };
9798
+ var stringToObject = (str) => {
9799
+ let obj;
9800
+ try {
9801
+ obj = import_globals3.window.eval("(" + str + ")");
9802
+ } catch (e) {
9803
+ console.warn(e);
9804
+ }
9805
+ if (obj)
9806
+ return obj;
9807
+ };
9693
9808
  var diffObjects = (original, objToDiff, cache) => {
9694
9809
  for (const e in objToDiff) {
9695
9810
  if (e === "ref")
@@ -9735,7 +9850,7 @@ var require_cjs10 = __commonJS({
9735
9850
  const { ref } = element;
9736
9851
  const changes = {};
9737
9852
  for (const e in params) {
9738
- if (excludeFrom.includes(e) || e.includes("__"))
9853
+ if (excludeFrom.includes(e) || e.startsWith("__"))
9739
9854
  continue;
9740
9855
  const elementProp = element[e];
9741
9856
  const paramsProp = params[e];
@@ -9748,7 +9863,7 @@ var require_cjs10 = __commonJS({
9748
9863
  };
9749
9864
  var overwriteShallow4 = (obj, params, excludeFrom = []) => {
9750
9865
  for (const e in params) {
9751
- if (excludeFrom.includes(e) || e.includes("__"))
9866
+ if (excludeFrom.includes(e) || e.startsWith("__"))
9752
9867
  continue;
9753
9868
  obj[e] = params[e];
9754
9869
  }
@@ -9756,7 +9871,7 @@ var require_cjs10 = __commonJS({
9756
9871
  };
9757
9872
  var overwriteDeep2 = (obj, params, excludeFrom = []) => {
9758
9873
  for (const e in params) {
9759
- if (excludeFrom.includes(e) || e.includes("__"))
9874
+ if (excludeFrom.includes(e) || e.startsWith("__"))
9760
9875
  continue;
9761
9876
  const objProp = obj[e];
9762
9877
  const paramsProp = params[e];
@@ -9931,6 +10046,7 @@ var require_cjs10 = __commonJS({
9931
10046
  __reExport(utils_exports2, require_array2(), module22.exports);
9932
10047
  __reExport(utils_exports2, require_node2(), module22.exports);
9933
10048
  __reExport(utils_exports2, require_log2(), module22.exports);
10049
+ __reExport(utils_exports2, require_string2(), module22.exports);
9934
10050
  }
9935
10051
  });
9936
10052
  var src_exports = {};
@@ -9992,6 +10108,7 @@ var require_cjs10 = __commonJS({
9992
10108
  getFontSizeByKey: () => getFontSizeByKey4,
9993
10109
  getMediaColor: () => getMediaColor7,
9994
10110
  getMediaTheme: () => getMediaTheme4,
10111
+ getRgbTone: () => getRgbTone,
9995
10112
  getSequenceValue: () => getSequenceValue,
9996
10113
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
9997
10114
  getSpacingBasedOnRatio: () => getSpacingBasedOnRatio10,
@@ -10059,6 +10176,7 @@ var require_cjs10 = __commonJS({
10059
10176
  getFontFaceEachString: () => getFontFaceEachString,
10060
10177
  getFontFaceString: () => getFontFaceString,
10061
10178
  getFontFormat: () => getFontFormat,
10179
+ getRgbTone: () => getRgbTone,
10062
10180
  getSequenceValue: () => getSequenceValue,
10063
10181
  getSequenceValuePropertyPair: () => getSequenceValuePropertyPair,
10064
10182
  hexToRgb: () => hexToRgb,
@@ -10080,6 +10198,7 @@ var require_cjs10 = __commonJS({
10080
10198
  setVariables: () => setVariables
10081
10199
  });
10082
10200
  var import_globals = __toESM2(require_cjs11(), 1);
10201
+ var import_utils16 = __toESM2(require_cjs42(), 1);
10083
10202
  var ENV = "development";
10084
10203
  var colorStringToRgbaArray = (color) => {
10085
10204
  if (color === "")
@@ -10132,7 +10251,7 @@ var require_cjs10 = __commonJS({
10132
10251
  return [r, g, b];
10133
10252
  };
10134
10253
  var rgbToHex = (r, g, b) => {
10135
- return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
10254
+ return "#" + (1 << 24 | r << 16 | g << 8 | b).toString(16).slice(1);
10136
10255
  };
10137
10256
  var rgbArrayToHex = ([r, g, b]) => {
10138
10257
  return ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
@@ -10184,7 +10303,7 @@ var require_cjs10 = __commonJS({
10184
10303
  g = 255;
10185
10304
  else if (g < 0)
10186
10305
  g = 0;
10187
- return (g | b << 8 | r << 16).toString(16);
10306
+ return ((g | b << 8 | r << 16) + 16777216).toString(16).slice(1);
10188
10307
  };
10189
10308
  var mixTwoRgba = (colorA, colorB, range = 0.5) => {
10190
10309
  const arr = [];
@@ -10206,6 +10325,24 @@ var require_cjs10 = __commonJS({
10206
10325
  arr[3] = opacity;
10207
10326
  return `rgba(${arr})`;
10208
10327
  };
10328
+ var getRgbTone = (rgb, tone) => {
10329
+ if ((0, import_utils16.isString)(rgb))
10330
+ rgb = rgb.split(", ").map((v) => parseFloat(v));
10331
+ if ((0, import_utils16.isNumber)(tone))
10332
+ tone += "";
10333
+ const toHex = rgbArrayToHex(rgb);
10334
+ const abs2 = tone.slice(0, 1);
10335
+ if (abs2 === "-" || abs2 === "+") {
10336
+ const colorShade = getColorShade(toHex, parseFloat(tone));
10337
+ return hexToRgbArray(colorShade).join(", ");
10338
+ } else {
10339
+ const [r, g, b] = rgb;
10340
+ const hsl = rgbToHSL(r, g, b);
10341
+ const [h, s, l] = hsl;
10342
+ const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
10343
+ return newRgb;
10344
+ }
10345
+ };
10209
10346
  var returnSubThemeOrDefault = (orig, theme) => {
10210
10347
  if (!orig)
10211
10348
  return;
@@ -10254,24 +10391,24 @@ var require_cjs10 = __commonJS({
10254
10391
  const keys = Object.keys(LIBRARY);
10255
10392
  return keys.map((key) => getFontFaceEachString(key, LIBRARY[key].value));
10256
10393
  };
10257
- var import_utils42 = __toESM2(require_cjs42(), 1);
10394
+ var import_utils52 = __toESM2(require_cjs42(), 1);
10395
+ var import_utils32 = __toESM2(require_cjs42());
10258
10396
  var import_utils22 = __toESM2(require_cjs42());
10259
- var import_utils16 = __toESM2(require_cjs42());
10260
10397
  var toCamelCase = (str) => {
10261
10398
  return str.replace(/(?:^\w|[A-Z]|\b\w)/g, function(word, index) {
10262
10399
  return index === 0 ? word.toLowerCase() : word.toUpperCase();
10263
10400
  }).replaceAll(/\s+/g, "");
10264
10401
  };
10265
- var toDashCase = (val) => val.replace(/[A-Z]/g, (match2, offset) => (offset > 0 ? "-" : "") + match2.toLowerCase()).replace(".", "-");
10402
+ var toDashCase = (val) => val.replace(/[^a-zA-Z0-9]/g, " ").trim().toLowerCase().replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
10266
10403
  var arrayzeValue = (val) => {
10267
- if ((0, import_utils22.isString)(val))
10404
+ if ((0, import_utils32.isString)(val))
10268
10405
  return val.split(" ");
10269
- if ((0, import_utils22.isObject)(val))
10406
+ if ((0, import_utils32.isObject)(val))
10270
10407
  return Object.keys(val).map((v) => val[v]);
10271
- if ((0, import_utils22.isArray)(val))
10408
+ if ((0, import_utils32.isArray)(val))
10272
10409
  return val;
10273
10410
  };
10274
- var import_utils32 = __toESM2(require_cjs42(), 1);
10411
+ var import_utils42 = __toESM2(require_cjs42(), 1);
10275
10412
  var defaultConfig_exports = {};
10276
10413
  __export2(defaultConfig_exports, {
10277
10414
  ANIMATION: () => ANIMATION,
@@ -10442,13 +10579,13 @@ var require_cjs10 = __commonJS({
10442
10579
  CSS_VARS,
10443
10580
  ...defaultConfig_exports
10444
10581
  };
10445
- var cachedConfig = (0, import_utils32.deepClone)(CONFIG4);
10582
+ var cachedConfig = (0, import_utils42.deepClone)(CONFIG4);
10446
10583
  var FACTORY = {
10447
10584
  active: "0",
10448
10585
  0: CONFIG4
10449
10586
  };
10450
10587
  var activateConfig = (def) => {
10451
- if ((0, import_utils32.isDefined)(def)) {
10588
+ if ((0, import_utils42.isDefined)(def)) {
10452
10589
  FACTORY.active = def;
10453
10590
  }
10454
10591
  return FACTORY[def || FACTORY.active];
@@ -10457,10 +10594,10 @@ var require_cjs10 = __commonJS({
10457
10594
  return FACTORY[def || FACTORY.active];
10458
10595
  };
10459
10596
  var setActiveConfig = (newConfig) => {
10460
- if (!(0, import_utils32.isObject)(newConfig))
10597
+ if (!(0, import_utils42.isObject)(newConfig))
10461
10598
  return;
10462
10599
  FACTORY.active = "1";
10463
- FACTORY["1"] = (0, import_utils32.deepMerge)(newConfig, (0, import_utils32.deepClone)(cachedConfig));
10600
+ FACTORY["1"] = (0, import_utils42.deepMerge)(newConfig, (0, import_utils42.deepClone)(cachedConfig));
10464
10601
  return newConfig;
10465
10602
  };
10466
10603
  var numToLetterMap = {
@@ -10569,7 +10706,7 @@ var require_cjs10 = __commonJS({
10569
10706
  unit = UNIT2.default,
10570
10707
  useVariable
10571
10708
  } = sequenceProps;
10572
- if ((0, import_utils42.isString)(value) && value.slice(0, 2) === "--")
10709
+ if ((0, import_utils52.isString)(value) && value.slice(0, 2) === "--")
10573
10710
  return `var(${value})`;
10574
10711
  const prefix2 = `--${toDashCase(sequenceProps.type.replace(".", "-"))}-`;
10575
10712
  const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
@@ -10630,11 +10767,11 @@ var require_cjs10 = __commonJS({
10630
10767
  return sequence[findLetter];
10631
10768
  });
10632
10769
  };
10633
- var import_utils62 = __toESM2(require_cjs42(), 1);
10770
+ var import_utils72 = __toESM2(require_cjs42(), 1);
10634
10771
  var setVariables = (result, key) => {
10635
10772
  const CONFIG22 = getActiveConfig4();
10636
10773
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
10637
- if ((0, import_utils62.isObjectLike)(result.value)) {
10774
+ if ((0, import_utils72.isObjectLike)(result.value)) {
10638
10775
  } else {
10639
10776
  CSS_VARS2[result.var] = result.value;
10640
10777
  }
@@ -10668,7 +10805,7 @@ var require_cjs10 = __commonJS({
10668
10805
  }
10669
10806
  }
10670
10807
  };
10671
- var import_utils72 = __toESM2(require_cjs42(), 1);
10808
+ var import_utils82 = __toESM2(require_cjs42(), 1);
10672
10809
  var generateSprite = (icons) => {
10673
10810
  const CONFIG22 = getActiveConfig4();
10674
10811
  let sprite = "";
@@ -10682,7 +10819,7 @@ var require_cjs10 = __commonJS({
10682
10819
  return sprite;
10683
10820
  };
10684
10821
  var parseRootAttributes = (htmlString) => {
10685
- if (!(0, import_utils72.isString)(htmlString)) {
10822
+ if (!(0, import_utils82.isString)(htmlString)) {
10686
10823
  return console.warn(`parseRootAttributes: ${htmlString} is not a string`);
10687
10824
  }
10688
10825
  const match2 = htmlString.match(/<svg\s+(.*?)>/);
@@ -10702,7 +10839,7 @@ var require_cjs10 = __commonJS({
10702
10839
  const urlRegex = /url\(#([^)]*)\)/g;
10703
10840
  const matches = code.match(/id="([^"]*)"/g);
10704
10841
  let replacedCode = code;
10705
- if ((0, import_utils72.isArray)(matches)) {
10842
+ if ((0, import_utils82.isArray)(matches)) {
10706
10843
  matches.forEach(() => {
10707
10844
  const randomKey = Math.floor(Math.random() * 1e5);
10708
10845
  replacedCode = code.replace(idRegex, `id="${key}-${randomKey}"`).replace(urlRegex, `url(#${key}-${randomKey})`);
@@ -10755,10 +10892,10 @@ var require_cjs10 = __commonJS({
10755
10892
  setSVG: () => setSVG,
10756
10893
  setTheme: () => setTheme
10757
10894
  });
10758
- var import_utils82 = __toESM2(require_cjs42(), 1);
10895
+ var import_utils92 = __toESM2(require_cjs42(), 1);
10759
10896
  var getColor4 = (value, key, config) => {
10760
10897
  const CONFIG22 = config || getActiveConfig4();
10761
- if (!(0, import_utils82.isString)(value)) {
10898
+ if (!(0, import_utils92.isString)(value)) {
10762
10899
  if (CONFIG22.verbose)
10763
10900
  console.warn(value, "- type for color is not valid");
10764
10901
  return;
@@ -10767,7 +10904,7 @@ var require_cjs10 = __commonJS({
10767
10904
  return `var(${value})`;
10768
10905
  if (key && value[key])
10769
10906
  value = value[key];
10770
- const [name, alpha, tone] = (0, import_utils82.isArray)(value) ? value : value.split(" ");
10907
+ const [name, alpha, tone] = (0, import_utils92.isArray)(value) ? value : value.split(" ");
10771
10908
  const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
10772
10909
  let val = COLOR2[name] || GRADIENT2[name];
10773
10910
  if (!val) {
@@ -10782,22 +10919,11 @@ var require_cjs10 = __commonJS({
10782
10919
  console.warn(value, " - does not have ", key);
10783
10920
  }
10784
10921
  let rgb = val.rgb;
10785
- if (!rgb)
10922
+ if (!rgb) {
10786
10923
  return CONFIG22.useVariable ? `var(${val.var})` : val.value;
10924
+ }
10787
10925
  if (tone && !val[tone]) {
10788
- const toHex = rgbArrayToHex(rgb.split(", ").map((v) => parseFloat(v)));
10789
- const abs2 = tone.slice(0, 1);
10790
- if (abs2 === "-" || abs2 === "+") {
10791
- rgb = hexToRgbArray(
10792
- getColorShade(toHex, parseFloat(tone))
10793
- ).join(", ");
10794
- } else {
10795
- const [r, g, b] = [...rgb.split(", ").map((v) => parseInt(v))];
10796
- const hsl = rgbToHSL(r, g, b);
10797
- const [h, s, l] = hsl;
10798
- const newRgb = hslToRgb(h, s, parseFloat(tone) / 100 * 255);
10799
- rgb = newRgb;
10800
- }
10926
+ rgb = getRgbTone(rgb, tone);
10801
10927
  val[tone] = { rgb, var: `${val.var}-${tone}` };
10802
10928
  }
10803
10929
  if (val[tone])
@@ -10810,17 +10936,17 @@ var require_cjs10 = __commonJS({
10810
10936
  const CONFIG22 = config || getActiveConfig4();
10811
10937
  if (!globalTheme)
10812
10938
  globalTheme = CONFIG22.globalTheme;
10813
- if (!(0, import_utils82.isString)(value)) {
10939
+ if (!(0, import_utils92.isString)(value)) {
10814
10940
  if (CONFIG22.verbose)
10815
10941
  console.warn(value, "- type for color is not valid");
10816
10942
  return;
10817
10943
  }
10818
10944
  if (value.slice(0, 2) === "--")
10819
10945
  return `var(${value})`;
10820
- const [name] = (0, import_utils82.isArray)(value) ? value : value.split(" ");
10946
+ const [name] = (0, import_utils92.isArray)(value) ? value : value.split(" ");
10821
10947
  const { COLOR: COLOR2, GRADIENT: GRADIENT2 } = CONFIG22;
10822
10948
  const val = COLOR2[name] || GRADIENT2[name];
10823
- const isObj = (0, import_utils82.isObject)(val);
10949
+ const isObj = (0, import_utils92.isObject)(val);
10824
10950
  if (isObj && val.value)
10825
10951
  return getColor4(value, `@${globalTheme}`, config);
10826
10952
  else if (isObj) {
@@ -10843,15 +10969,15 @@ var require_cjs10 = __commonJS({
10843
10969
  };
10844
10970
  var setColor = (val, key, suffix) => {
10845
10971
  const CONFIG22 = getActiveConfig4();
10846
- if ((0, import_utils82.isString)(val) && val.slice(0, 2) === "--")
10972
+ if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
10847
10973
  val = getColor4(val.slice(2));
10848
- if ((0, import_utils82.isArray)(val)) {
10974
+ if ((0, import_utils92.isArray)(val)) {
10849
10975
  return {
10850
10976
  "@light": setColor(val[0], key, "light"),
10851
10977
  "@dark": setColor(val[1], key, "dark")
10852
10978
  };
10853
10979
  }
10854
- if ((0, import_utils82.isObject)(val)) {
10980
+ if ((0, import_utils92.isObject)(val)) {
10855
10981
  const obj = {};
10856
10982
  for (const variant in val)
10857
10983
  obj[variant] = setColor(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
@@ -10874,15 +11000,15 @@ var require_cjs10 = __commonJS({
10874
11000
  };
10875
11001
  var setGradient = (val, key, suffix) => {
10876
11002
  const CONFIG22 = getActiveConfig4();
10877
- if ((0, import_utils82.isString)(val) && val.slice(0, 2) === "--")
11003
+ if ((0, import_utils92.isString)(val) && val.slice(0, 2) === "--")
10878
11004
  val = getColor4(val.slice(2));
10879
- if ((0, import_utils82.isArray)(val)) {
11005
+ if ((0, import_utils92.isArray)(val)) {
10880
11006
  return {
10881
11007
  "@light": setGradient(val[0], key, "light"),
10882
11008
  "@dark": setGradient(val[0], key, "dark")
10883
11009
  };
10884
11010
  }
10885
- if ((0, import_utils82.isObject)(val)) {
11011
+ if ((0, import_utils92.isObject)(val)) {
10886
11012
  const obj = {};
10887
11013
  for (const variant in val)
10888
11014
  obj[variant] = setGradient(val[variant], key, variant.slice(0, 1) === "@" ? variant.slice(1) : variant);
@@ -10897,7 +11023,7 @@ var require_cjs10 = __commonJS({
10897
11023
  value: val.value || val
10898
11024
  };
10899
11025
  };
10900
- var import_utils102 = __toESM2(require_cjs42(), 1);
11026
+ var import_utils112 = __toESM2(require_cjs42(), 1);
10901
11027
  var setThemeValue = (theme) => {
10902
11028
  const value = {};
10903
11029
  const { state, media, helpers, ...rest } = theme;
@@ -10920,7 +11046,7 @@ var require_cjs10 = __commonJS({
10920
11046
  if (CONFIG22.useVariable)
10921
11047
  return getMediaTheme4(value, modifier);
10922
11048
  const { THEME: THEME2 } = CONFIG22;
10923
- if ((0, import_utils102.isString)(value)) {
11049
+ if ((0, import_utils112.isString)(value)) {
10924
11050
  const [theme, subtheme] = value.split(" ");
10925
11051
  const isOurTheme = THEME2[theme];
10926
11052
  if (isOurTheme) {
@@ -10929,7 +11055,7 @@ var require_cjs10 = __commonJS({
10929
11055
  value = [theme, subtheme || modifier];
10930
11056
  }
10931
11057
  }
10932
- if ((0, import_utils102.isObjectLike)(value) && value[1]) {
11058
+ if ((0, import_utils112.isObjectLike)(value) && value[1]) {
10933
11059
  const themeName = value[0];
10934
11060
  const subThemeName = value[1];
10935
11061
  const { helpers, media, state } = THEME2[themeName];
@@ -10939,11 +11065,11 @@ var require_cjs10 = __commonJS({
10939
11065
  return getThemeValue(helpers[subThemeName]);
10940
11066
  if (state && state[subThemeName])
10941
11067
  return getThemeValue(state[subThemeName]);
10942
- } else if ((0, import_utils102.isObject)(value))
11068
+ } else if ((0, import_utils112.isObject)(value))
10943
11069
  return setThemeValue(value);
10944
11070
  };
10945
11071
  var setInverseTheme = (theme, variant, value) => {
10946
- if ((0, import_utils102.isObject)(variant)) {
11072
+ if ((0, import_utils112.isObject)(variant)) {
10947
11073
  theme.variants.inverse.value = setThemeValue(variant);
10948
11074
  } else if (variant === true) {
10949
11075
  const { color, background } = value;
@@ -10958,7 +11084,7 @@ var require_cjs10 = __commonJS({
10958
11084
  var setPseudo = (theme, key, variant, themeValue) => {
10959
11085
  const result = getTheme4(variant);
10960
11086
  themeValue[`&:${key}`] = result;
10961
- if ((0, import_utils102.isObject)(variant) && !variant.value)
11087
+ if ((0, import_utils112.isObject)(variant) && !variant.value)
10962
11088
  variant.value = result;
10963
11089
  };
10964
11090
  var setSelectors = (theme, value) => {
@@ -10976,7 +11102,7 @@ var require_cjs10 = __commonJS({
10976
11102
  var setPrefersScheme = (theme, key, variant, themeValue) => {
10977
11103
  const result = getTheme4(variant);
10978
11104
  themeValue[`@media (prefers-color-scheme: ${key})`] = result;
10979
- if ((0, import_utils102.isObject)(variant) && !variant.value)
11105
+ if ((0, import_utils112.isObject)(variant) && !variant.value)
10980
11106
  variant.value = result;
10981
11107
  };
10982
11108
  var setMedia = (theme, value) => {
@@ -11002,7 +11128,7 @@ var require_cjs10 = __commonJS({
11002
11128
  const keys = Object.keys(helpers);
11003
11129
  keys.map((key) => {
11004
11130
  const helper = helpers[key];
11005
- if ((0, import_utils102.isString)(helper))
11131
+ if ((0, import_utils112.isString)(helper))
11006
11132
  helpers[key] = CONFIG22.THEME[helper];
11007
11133
  else
11008
11134
  getThemeValue(helpers[key]);
@@ -11026,7 +11152,7 @@ var require_cjs10 = __commonJS({
11026
11152
  const CONFIG22 = getActiveConfig4();
11027
11153
  const { CSS_VARS: CSS_VARS2 } = CONFIG22;
11028
11154
  const theme = { value: val };
11029
- if ((0, import_utils102.isObjectLike)(val)) {
11155
+ if ((0, import_utils112.isObjectLike)(val)) {
11030
11156
  for (const param in val) {
11031
11157
  const symb = param.slice(0, 1);
11032
11158
  const value = val[param];
@@ -11054,7 +11180,7 @@ var require_cjs10 = __commonJS({
11054
11180
  };
11055
11181
  }
11056
11182
  }
11057
- if ((0, import_utils102.isString)(val) && val.slice(0, 2) === "--") {
11183
+ if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--") {
11058
11184
  const { THEME: THEME2 } = CONFIG22;
11059
11185
  const value = THEME2[val.slice(2)];
11060
11186
  const getReferenced = getMediaTheme4(value, prefers);
@@ -11067,7 +11193,7 @@ var require_cjs10 = __commonJS({
11067
11193
  const obj = {};
11068
11194
  for (const param in val) {
11069
11195
  const symb = param.slice(0, 1);
11070
- if ((0, import_utils102.isObjectLike)(val[param])) {
11196
+ if ((0, import_utils112.isObjectLike)(val[param])) {
11071
11197
  if (symb === "@") {
11072
11198
  const query = CONFIG22.MEDIA[param.slice(1)];
11073
11199
  const media = `@media screen and ${query}`;
@@ -11087,23 +11213,23 @@ var require_cjs10 = __commonJS({
11087
11213
  return val;
11088
11214
  };
11089
11215
  var findModifier = (val, modifier) => {
11090
- if ((0, import_utils102.isArray)(modifier))
11216
+ if ((0, import_utils112.isArray)(modifier))
11091
11217
  return findModifierFromArray(val, modifier);
11092
- else if ((0, import_utils102.isString)(modifier) && val[modifier])
11218
+ else if ((0, import_utils112.isString)(modifier) && val[modifier])
11093
11219
  return val[modifier];
11094
11220
  else
11095
11221
  return val;
11096
11222
  };
11097
11223
  var getMediaTheme4 = (val, mod) => {
11098
11224
  const CONFIG22 = getActiveConfig4();
11099
- if ((0, import_utils102.isString)(val) && val.slice(0, 2) === "--")
11225
+ if ((0, import_utils112.isString)(val) && val.slice(0, 2) === "--")
11100
11226
  val = getMediaTheme4(val.slice(2));
11101
- if (!val || !(0, import_utils102.isString)(val)) {
11227
+ if (!val || !(0, import_utils112.isString)(val)) {
11102
11228
  if (CONFIG22.verbose)
11103
11229
  console.warn(val, "- theme is not string");
11104
11230
  return;
11105
11231
  }
11106
- const [name, ...modifier] = (0, import_utils102.isArray)(val) ? val : val.split(" ");
11232
+ const [name, ...modifier] = (0, import_utils112.isArray)(val) ? val : val.split(" ");
11107
11233
  let value = CONFIG22.THEME[name];
11108
11234
  if (value && (modifier || mod)) {
11109
11235
  value = findModifier(value, modifier.length ? modifier : mod);
@@ -11111,7 +11237,7 @@ var require_cjs10 = __commonJS({
11111
11237
  const r = recursiveTheme(value);
11112
11238
  return r;
11113
11239
  };
11114
- var import_utils112 = __toESM2(require_cjs42(), 1);
11240
+ var import_utils122 = __toESM2(require_cjs42(), 1);
11115
11241
  var setFont = (val, key) => {
11116
11242
  const CSSvar = `--font-${key}`;
11117
11243
  const fontFace = val[0] ? getFontFaceEach(key, val) : setCustomFontMedia(key, val.url);
@@ -11128,13 +11254,13 @@ var require_cjs10 = __commonJS({
11128
11254
  let { value, type } = val;
11129
11255
  if (val.isDefault)
11130
11256
  FONT_FAMILY2.default = key;
11131
- if ((0, import_utils112.isObject)(value))
11257
+ if ((0, import_utils122.isObject)(value))
11132
11258
  value = arrayzeValue(value);
11133
11259
  const CSSvar = `--font-family-${key}`;
11134
11260
  const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
11135
11261
  return { var: CSSvar, value: str, arr: value, type };
11136
11262
  };
11137
- var import_utils142 = __toESM2(require_cjs42(), 1);
11263
+ var import_utils152 = __toESM2(require_cjs42(), 1);
11138
11264
  var runThroughMedia = (props7) => {
11139
11265
  const CONFIG22 = getActiveConfig4();
11140
11266
  const { TYPOGRAPHY: TYPOGRAPHY2, MEDIA: MEDIA2 } = CONFIG22;
@@ -11142,7 +11268,7 @@ var require_cjs10 = __commonJS({
11142
11268
  const mediaProps = props7[prop];
11143
11269
  if (prop.slice(0, 1) === "@") {
11144
11270
  const { type, base, ratio, range, subSequence, h1Matches, unit } = props7;
11145
- (0, import_utils142.merge)(mediaProps, {
11271
+ (0, import_utils152.merge)(mediaProps, {
11146
11272
  type,
11147
11273
  base,
11148
11274
  ratio,
@@ -11201,13 +11327,13 @@ var require_cjs10 = __commonJS({
11201
11327
  TYPOGRAPHY2
11202
11328
  );
11203
11329
  };
11204
- var import_utils17 = __toESM2(require_cjs42(), 1);
11330
+ var import_utils18 = __toESM2(require_cjs42(), 1);
11205
11331
  var runThroughMedia2 = (sequenceProps) => {
11206
11332
  for (const prop in sequenceProps) {
11207
11333
  const mediaProps = sequenceProps[prop];
11208
11334
  if (prop.slice(0, 1) === "@") {
11209
11335
  const { type, base, ratio, range, subSequence, h1Matches, unit } = sequenceProps;
11210
- (0, import_utils17.merge)(mediaProps, {
11336
+ (0, import_utils18.merge)(mediaProps, {
11211
11337
  type,
11212
11338
  base,
11213
11339
  ratio,
@@ -11246,7 +11372,7 @@ var require_cjs10 = __commonJS({
11246
11372
  const stack = arrayzeValue(value);
11247
11373
  if (!stack)
11248
11374
  return;
11249
- if ((0, import_utils17.isString)(value) && value.includes("calc")) {
11375
+ if ((0, import_utils18.isString)(value) && value.includes("calc")) {
11250
11376
  return { [propertyName]: value };
11251
11377
  }
11252
11378
  if (stack.length > 1) {
@@ -11282,7 +11408,7 @@ var require_cjs10 = __commonJS({
11282
11408
  let sequenceProps = SPACING2[spacingRatio];
11283
11409
  if (!sequenceProps) {
11284
11410
  const { type, base, range, subSequence } = SPACING2;
11285
- sequenceProps = SPACING2[spacingRatio] = (0, import_utils17.merge)({
11411
+ sequenceProps = SPACING2[spacingRatio] = (0, import_utils18.merge)({
11286
11412
  ratio: spacingRatio,
11287
11413
  type: type + "-" + spacingRatio,
11288
11414
  unit,
@@ -11323,11 +11449,11 @@ var require_cjs10 = __commonJS({
11323
11449
  TIMING2
11324
11450
  );
11325
11451
  };
11326
- var import_utils21 = __toESM2(require_cjs42(), 1);
11452
+ var import_utils222 = __toESM2(require_cjs42(), 1);
11327
11453
  var applyDocument = () => {
11328
11454
  const CONFIG22 = getActiveConfig4();
11329
11455
  const { DOCUMENT: DOCUMENT2, FONT_FAMILY: FONT_FAMILY2, THEME: THEME2, TYPOGRAPHY: TYPOGRAPHY2 } = CONFIG22;
11330
- return (0, import_utils21.merge)(DOCUMENT2, {
11456
+ return (0, import_utils222.merge)(DOCUMENT2, {
11331
11457
  theme: THEME2.document,
11332
11458
  fontFamily: getDefaultOrFirstKey(FONT_FAMILY2),
11333
11459
  fontSize: TYPOGRAPHY2.base,
@@ -11407,7 +11533,7 @@ var require_cjs10 = __commonJS({
11407
11533
  }
11408
11534
  }
11409
11535
  };
11410
- var import_utils24 = __toESM2(require_cjs42(), 1);
11536
+ var import_utils25 = __toESM2(require_cjs42(), 1);
11411
11537
  var applyReset = (reset = {}) => {
11412
11538
  const CONFIG22 = getActiveConfig4();
11413
11539
  const { RESET: RESET2, TYPOGRAPHY: TYPOGRAPHY2, DOCUMENT: DOCUMENT2 } = CONFIG22;
@@ -11429,8 +11555,8 @@ var require_cjs10 = __commonJS({
11429
11555
  const { body, ...templates } = TYPOGRAPHY2.templates;
11430
11556
  const globalTheme = CONFIG22.useDocumentTheme ? getMediaTheme4("document", `@${CONFIG22.globalTheme}`) : {};
11431
11557
  if (RESET2.html)
11432
- (0, import_utils24.overwriteDeep)(RESET2.html, globalTheme);
11433
- return (0, import_utils24.deepMerge)((0, import_utils24.merge)(RESET2, reset), {
11558
+ (0, import_utils25.overwriteDeep)(RESET2.html, globalTheme);
11559
+ return (0, import_utils25.deepMerge)((0, import_utils25.merge)(RESET2, reset), {
11434
11560
  html: {
11435
11561
  position: "absolute",
11436
11562
  // overflow: 'hidden',
@@ -11467,7 +11593,7 @@ var require_cjs10 = __commonJS({
11467
11593
  });
11468
11594
  }
11469
11595
  };
11470
- var import_utils25 = __toESM2(require_cjs42(), 1);
11596
+ var import_utils26 = __toESM2(require_cjs42(), 1);
11471
11597
  var isBorderStyle = (str) => [
11472
11598
  "none",
11473
11599
  "hidden",
@@ -11538,7 +11664,7 @@ var require_cjs10 = __commonJS({
11538
11664
  return v;
11539
11665
  }).join(" ");
11540
11666
  };
11541
- var transfromGap4 = (gap) => (0, import_utils25.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey7(v, "gap").gap).join(" ");
11667
+ var transfromGap4 = (gap) => (0, import_utils26.isString)(gap) && gap.split(" ").map((v) => getSpacingByKey7(v, "gap").gap).join(" ");
11542
11668
  var transformTransition = (transition) => {
11543
11669
  const arr = transition.split(" ");
11544
11670
  if (!arr.length)
@@ -11556,7 +11682,7 @@ var require_cjs10 = __commonJS({
11556
11682
  }).join(" ");
11557
11683
  };
11558
11684
  var transformDuration4 = (duration, props7, propertyName) => {
11559
- if (!(0, import_utils25.isString)(duration))
11685
+ if (!(0, import_utils26.isString)(duration))
11560
11686
  return;
11561
11687
  return duration.split(",").map((v) => getTimingByKey4(v).timing || v).join(",");
11562
11688
  };
@@ -11566,9 +11692,9 @@ var require_cjs10 = __commonJS({
11566
11692
  return;
11567
11693
  return arr.map(transformTransition).join(",");
11568
11694
  };
11569
- var import_utils26 = __toESM2(require_cjs42(), 1);
11695
+ var import_utils27 = __toESM2(require_cjs42(), 1);
11570
11696
  var setCases = (val, key) => {
11571
- if ((0, import_utils26.isFunction)(val))
11697
+ if ((0, import_utils27.isFunction)(val))
11572
11698
  return val();
11573
11699
  return val;
11574
11700
  };
@@ -11669,6 +11795,7 @@ __export(domql_exports, {
11669
11795
  AvatarChooser: () => AvatarChooser,
11670
11796
  Block: () => Block,
11671
11797
  Box: () => Box,
11798
+ Br: () => Br,
11672
11799
  Button: () => Button,
11673
11800
  ButtonSet: () => ButtonSet,
11674
11801
  Caption: () => Caption,
@@ -11707,6 +11834,7 @@ __export(domql_exports, {
11707
11834
  H6: () => H6,
11708
11835
  Headline: () => Headline,
11709
11836
  Hoverable: () => Hoverable,
11837
+ Hr: () => Hr,
11710
11838
  Icon: () => Icon2,
11711
11839
  IconText: () => IconText2,
11712
11840
  Iframe: () => Iframe,
@@ -11914,6 +12042,11 @@ var Block = {
11914
12042
  columnCount: ({ props: props7 }) => props7.columnCount && { columns: props7.columnCount }
11915
12043
  }
11916
12044
  };
12045
+ var Hr = {
12046
+ tag: "hr",
12047
+ props: { margin: "C1 0" }
12048
+ };
12049
+ var Br = { tag: "br" };
11917
12050
  var Span = { tag: "span" };
11918
12051
  var List = {
11919
12052
  tag: "ul",
@@ -14604,7 +14737,10 @@ var DatePickerGrid = {
14604
14737
  const isSelected = state.parent.parent.activeMonth === parseInt(key);
14605
14738
  if (isSelected) {
14606
14739
  window.requestAnimationFrame(() => {
14607
- el.node.scrollIntoView();
14740
+ el.parent.parent.node.scrollTo({
14741
+ left: el.node.offsetLeft,
14742
+ behavior: "smooth"
14743
+ });
14608
14744
  });
14609
14745
  }
14610
14746
  }
@@ -14755,11 +14891,12 @@ var DatePickerMonthsSlider = {
14755
14891
  const { activeMonth, activeYear } = s;
14756
14892
  if (activeMonth > 0)
14757
14893
  s.update({ activeMonth: activeMonth - 1 });
14758
- else
14894
+ else {
14759
14895
  s.update({
14760
14896
  activeYear: activeYear - 1,
14761
14897
  activeMonth: 11
14762
14898
  });
14899
+ }
14763
14900
  }
14764
14901
  }
14765
14902
  },
@@ -14785,7 +14922,10 @@ var DatePickerMonthsSlider = {
14785
14922
  const { isSelected } = props7;
14786
14923
  if (isSelected) {
14787
14924
  window.requestAnimationFrame(() => {
14788
- el.parent.parent.node.scrollLeft = el.node.offsetLeft;
14925
+ el.parent.parent.node.scrollTo({
14926
+ left: el.node.offsetLeft,
14927
+ behavior: "smooth"
14928
+ });
14789
14929
  });
14790
14930
  }
14791
14931
  }
@@ -14823,11 +14963,12 @@ var DatePickerMonthsSlider = {
14823
14963
  const { activeMonth, activeYear } = s;
14824
14964
  if (activeMonth < 11)
14825
14965
  s.update({ activeMonth: activeMonth + 1 });
14826
- else
14966
+ else {
14827
14967
  s.update({
14828
14968
  activeYear: activeYear + 1,
14829
14969
  activeMonth: 0
14830
14970
  });
14971
+ }
14831
14972
  }
14832
14973
  }
14833
14974
  }
@@ -14932,6 +15073,8 @@ var DatePicker = {
14932
15073
  activeDay: 14
14933
15074
  },
14934
15075
  props: {
15076
+ width: "fit-content",
15077
+ margin: "0",
14935
15078
  maxHeight: "G+B2"
14936
15079
  },
14937
15080
  DatePickerYears: {