@limetech/lime-elements 36.3.0-next.24 → 36.3.0-next.26

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.
Files changed (44) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
  3. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +85 -101
  4. package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
  5. package/dist/cjs/limel-input-field.cjs.entry.js +2 -2
  6. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-spinner.cjs.entry.js +1 -1
  8. package/dist/collection/components/banner/banner.css +1 -2
  9. package/dist/collection/components/button/button.css +20 -40
  10. package/dist/collection/components/button-group/button-group.css +21 -42
  11. package/dist/collection/components/checkbox/checkbox.css +22 -45
  12. package/dist/collection/components/chip-set/chip-set.css +209 -405
  13. package/dist/collection/components/code-editor/code-editor.css +4 -4
  14. package/dist/collection/components/color-picker/color-picker-palette.css +9 -9
  15. package/dist/collection/components/dialog/dialog.css +13 -27
  16. package/dist/collection/components/icon-button/icon-button.css +6 -12
  17. package/dist/collection/components/info-tile/info-tile.css +3 -9
  18. package/dist/collection/components/input-field/input-field.css +188 -363
  19. package/dist/collection/components/input-field/input-field.js +1 -1
  20. package/dist/collection/components/linear-progress/linear-progress.css +7 -14
  21. package/dist/collection/components/list/list.css +373 -747
  22. package/dist/collection/components/menu-list/menu-list.css +373 -748
  23. package/dist/collection/components/menu-surface/menu-surface.css +13 -26
  24. package/dist/collection/components/select/select.css +165 -322
  25. package/dist/collection/components/slider/slider.css +30 -58
  26. package/dist/collection/components/snackbar/snackbar.css +17 -34
  27. package/dist/collection/components/spinner/spinner.css +4 -0
  28. package/dist/collection/components/switch/switch.css +21 -49
  29. package/dist/collection/components/tab-bar/tab-bar.css +7 -14
  30. package/dist/esm/limel-chip-set.entry.js +1 -1
  31. package/dist/esm/limel-flatpickr-adapter.entry.js +85 -101
  32. package/dist/esm/limel-info-tile.entry.js +1 -1
  33. package/dist/esm/limel-input-field.entry.js +2 -2
  34. package/dist/esm/limel-select.entry.js +1 -1
  35. package/dist/esm/limel-spinner.entry.js +1 -1
  36. package/dist/lime-elements/lime-elements.esm.js +1 -1
  37. package/dist/lime-elements/{p-a8d38277.entry.js → p-10e259de.entry.js} +1 -1
  38. package/dist/lime-elements/{p-079921e9.entry.js → p-2c9843fe.entry.js} +1 -1
  39. package/dist/lime-elements/{p-e479f165.entry.js → p-404aca86.entry.js} +1 -1
  40. package/dist/lime-elements/{p-c234a991.entry.js → p-878b61cd.entry.js} +1 -1
  41. package/dist/lime-elements/{p-ff340a70.entry.js → p-88e60f06.entry.js} +1 -1
  42. package/dist/lime-elements/p-f7875f4a.entry.js +1 -0
  43. package/package.json +12 -8
  44. package/dist/lime-elements/p-15c3ec8e.entry.js +0 -1
@@ -6602,7 +6602,6 @@ function isArrayLike(obj) {
6602
6602
  }
6603
6603
  function forEach(value, fn) {
6604
6604
  if (!value) return
6605
-
6606
6605
  for (const key of keys(value)) {
6607
6606
  fn(value[key], key);
6608
6607
  }
@@ -6611,6 +6610,16 @@ function isRef(maybeRef) {
6611
6610
  return isObject(maybeRef) && "current" in maybeRef
6612
6611
  }
6613
6612
 
6613
+ /**
6614
+ * Copyright (c) Facebook, Inc. and its affiliates.
6615
+ *
6616
+ * This source code is licensed under the MIT license found on
6617
+ * https://github.com/facebook/react/blob/b87aabdfe1b7461e7331abb3601d9e6bb27544bc/LICENSE
6618
+ */
6619
+
6620
+ /**
6621
+ * CSS properties which accept numbers but are not in units of "px".
6622
+ */
6614
6623
  const isUnitlessNumber = {
6615
6624
  animationIterationCount: 0,
6616
6625
  borderImageOutset: 0,
@@ -6646,6 +6655,7 @@ const isUnitlessNumber = {
6646
6655
  widows: 0,
6647
6656
  zIndex: 0,
6648
6657
  zoom: 0,
6658
+ // SVG-related properties
6649
6659
  fillOpacity: 0,
6650
6660
  floodOpacity: 0,
6651
6661
  stopOpacity: 0,
@@ -6656,20 +6666,31 @@ const isUnitlessNumber = {
6656
6666
  strokeWidth: 0,
6657
6667
  };
6658
6668
 
6669
+ /**
6670
+ * @param prefix vendor-specific prefix, eg: Webkit
6671
+ * @param key style name, eg: transitionDuration
6672
+ * @return style name prefixed with `prefix`, properly camelCased, eg:
6673
+ * WebkitTransitionDuration
6674
+ */
6659
6675
  function prefixKey(prefix, key) {
6660
6676
  return prefix + key.charAt(0).toUpperCase() + key.substring(1)
6661
6677
  }
6662
6678
 
6679
+ /**
6680
+ * Support style names that may come passed in prefixed by adding permutations
6681
+ * of vendor prefixes.
6682
+ */
6663
6683
  const prefixes = ["Webkit", "ms", "Moz", "O"];
6684
+ // Using Object.keys here, or else the vanilla for-in loop makes IE8 go into an
6685
+ // infinite loop, because it iterates over the newly added props too.
6664
6686
  keys(isUnitlessNumber).forEach(prop => {
6665
6687
  prefixes.forEach(prefix => {
6666
- isUnitlessNumber[prefixKey(prefix, prop)] = 0;
6688
+ isUnitlessNumber[prefixKey(prefix, prop)] = 0; // isUnitlessNumber[prop]
6667
6689
  });
6668
6690
  });
6669
6691
 
6670
6692
  const jsxDomType = Symbol.for("jsx-dom:type");
6671
6693
  var JsxDomType
6672
-
6673
6694
  ;(function (JsxDomType) {
6674
6695
  JsxDomType["ShadowRoot"] = "ShadowRoot";
6675
6696
  })(JsxDomType || (JsxDomType = {}));
@@ -6681,13 +6702,22 @@ const SVGNamespace = "http://www.w3.org/2000/svg";
6681
6702
  const XLinkNamespace = "http://www.w3.org/1999/xlink";
6682
6703
  const XMLNamespace = "http://www.w3.org/XML/1998/namespace";
6683
6704
 
6705
+ // https://facebook.github.io/react/docs/jsx-in-depth.html#booleans-null-and-undefined-are-ignored
6706
+ // Emulate JSX Expression logic to ignore certain type of children or className.
6684
6707
  function isVisibleChild(value) {
6685
6708
  return !isBoolean(value) && value != null
6686
6709
  }
6710
+ const DomTokenList = typeof DOMTokenList !== "undefined" ? DOMTokenList : function () {};
6687
6711
 
6712
+ /**
6713
+ * Convert a `value` to a className string.
6714
+ * `value` can be a string, an array or a `Dictionary<boolean>`.
6715
+ */
6688
6716
  function className(value) {
6689
6717
  if (Array.isArray(value)) {
6690
6718
  return value.map(className).filter(Boolean).join(" ")
6719
+ } else if (value instanceof DomTokenList) {
6720
+ return "" + value
6691
6721
  } else if (isObject(value)) {
6692
6722
  return keys(value)
6693
6723
  .filter(k => value[k])
@@ -6756,34 +6786,25 @@ const svg = {
6756
6786
  };
6757
6787
  const nonPresentationSVGAttributes =
6758
6788
  /^(a(ll|t|u)|base[FP]|c(al|lipPathU|on)|di|ed|ex|filter[RU]|g(lyphR|r)|ke|l(en|im)|ma(rker[HUW]|s)|n|pat|pr|point[^e]|re[^n]|s[puy]|st[^or]|ta|textL|vi|xC|y|z)/;
6759
- class Component {
6760
- constructor(props) {
6761
- this.props = props;
6762
- }
6763
-
6764
- render() {
6765
- return null
6766
- }
6767
- }
6768
- Object.defineProperties(Component.prototype, {
6769
- isReactComponent: {
6770
- value: true,
6771
- },
6772
- });
6773
-
6774
6789
  function initComponentClass(Class, attr, children) {
6775
- attr = { ...attr, children };
6790
+ attr = {
6791
+ ...attr,
6792
+ children,
6793
+ };
6776
6794
  const instance = new Class(attr);
6777
6795
  return instance.render()
6778
6796
  }
6779
6797
 
6780
- function jsx(tag, { children, ...attr }) {
6798
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
6799
+ function jsx(tag, _ref) {
6800
+ let { children, ...attr } = _ref;
6781
6801
  if (!attr.namespaceURI && svg[tag] === 0) {
6782
- attr = { ...attr, namespaceURI: SVGNamespace };
6802
+ attr = {
6803
+ ...attr,
6804
+ namespaceURI: SVGNamespace,
6805
+ };
6783
6806
  }
6784
-
6785
6807
  let node;
6786
-
6787
6808
  if (isString(tag)) {
6788
6809
  node = attr.namespaceURI
6789
6810
  ? document.createElementNS(attr.namespaceURI, tag)
@@ -6791,6 +6812,7 @@ function jsx(tag, { children, ...attr }) {
6791
6812
  attributes(attr, node);
6792
6813
  appendChild(children, node);
6793
6814
 
6815
+ // Select `option` elements in `select`
6794
6816
  if (node instanceof window.HTMLSelectElement && attr.value != null) {
6795
6817
  if (attr.multiple === true && Array.isArray(attr.value)) {
6796
6818
  const values = attr.value.map(value => String(value));
@@ -6801,37 +6823,49 @@ function jsx(tag, { children, ...attr }) {
6801
6823
  node.value = attr.value;
6802
6824
  }
6803
6825
  }
6804
-
6805
6826
  attachRef(attr.ref, node);
6806
6827
  } else if (isFunction(tag)) {
6828
+ // Custom elements.
6807
6829
  if (isObject(tag.defaultProps)) {
6808
- attr = { ...tag.defaultProps, ...attr };
6830
+ attr = {
6831
+ ...tag.defaultProps,
6832
+ ...attr,
6833
+ };
6809
6834
  }
6810
-
6811
6835
  node = isComponentClass(tag)
6812
6836
  ? initComponentClass(tag, attr, children)
6813
- : tag({ ...attr, children });
6837
+ : tag({
6838
+ ...attr,
6839
+ children,
6840
+ });
6814
6841
  } else {
6815
6842
  throw new TypeError(`Invalid JSX element type: ${tag}`)
6816
6843
  }
6817
-
6818
6844
  return node
6819
6845
  }
6820
- function createElement(tag, attr, ...children) {
6846
+ function createElement(tag, attr) {
6847
+ for (
6848
+ var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2;
6849
+ _key < _len;
6850
+ _key++
6851
+ ) {
6852
+ children[_key - 2] = arguments[_key];
6853
+ }
6821
6854
  if (isString(attr) || Array.isArray(attr)) {
6822
6855
  children.unshift(attr);
6823
6856
  attr = {};
6824
6857
  }
6825
-
6826
6858
  attr = attr || {};
6827
-
6828
6859
  if (attr.children != null && !children.length) {
6829
6860
  ({ children, ...attr } = attr);
6830
6861
  }
6831
-
6832
- return jsx(tag, { ...attr, children })
6862
+ return jsx(
6863
+ tag,
6864
+ {
6865
+ ...attr,
6866
+ children,
6867
+ })
6833
6868
  }
6834
-
6835
6869
  function attachRef(ref, node) {
6836
6870
  if (isRef(ref)) {
6837
6871
  ref.current = node;
@@ -6839,7 +6873,6 @@ function attachRef(ref, node) {
6839
6873
  ref(node);
6840
6874
  }
6841
6875
  }
6842
-
6843
6876
  function appendChild(child, node) {
6844
6877
  if (isArrayLike(child)) {
6845
6878
  appendChildren(child, node);
@@ -6855,15 +6888,12 @@ function appendChild(child, node) {
6855
6888
  attachRef(child.ref, shadowRoot);
6856
6889
  }
6857
6890
  }
6858
-
6859
6891
  function appendChildren(children, node) {
6860
6892
  for (const child of [...children]) {
6861
6893
  appendChild(child, node);
6862
6894
  }
6863
-
6864
6895
  return node
6865
6896
  }
6866
-
6867
6897
  function appendChildToNode(child, node) {
6868
6898
  if (node instanceof window.HTMLTemplateElement) {
6869
6899
  node.content.appendChild(child);
@@ -6871,11 +6901,9 @@ function appendChildToNode(child, node) {
6871
6901
  node.appendChild(child);
6872
6902
  }
6873
6903
  }
6874
-
6875
6904
  function normalizeAttribute(s, separator) {
6876
6905
  return s.replace(/[A-Z]/g, match => separator + match.toLowerCase())
6877
6906
  }
6878
-
6879
6907
  function style(node, value) {
6880
6908
  if (value == null || value === false);
6881
6909
  else if (Array.isArray(value)) {
@@ -6892,7 +6920,6 @@ function style(node, value) {
6892
6920
  });
6893
6921
  }
6894
6922
  }
6895
-
6896
6923
  function attribute(key, value, node) {
6897
6924
  switch (key) {
6898
6925
  case "xlinkActuate":
@@ -6904,23 +6931,19 @@ function attribute(key, value, node) {
6904
6931
  case "xlinkType":
6905
6932
  attrNS(node, XLinkNamespace, normalizeAttribute(key, ":"), value);
6906
6933
  return
6907
-
6908
6934
  case "xmlnsXlink":
6909
6935
  attr(node, normalizeAttribute(key, ":"), value);
6910
6936
  return
6911
-
6912
6937
  case "xmlBase":
6913
6938
  case "xmlLang":
6914
6939
  case "xmlSpace":
6915
6940
  attrNS(node, XMLNamespace, normalizeAttribute(key, ":"), value);
6916
6941
  return
6917
6942
  }
6918
-
6919
6943
  switch (key) {
6920
6944
  case "htmlFor":
6921
6945
  attr(node, "for", value);
6922
6946
  return
6923
-
6924
6947
  case "dataset":
6925
6948
  forEach(value, (dataValue, dataKey) => {
6926
6949
  if (dataValue != null) {
@@ -6928,37 +6951,32 @@ function attribute(key, value, node) {
6928
6951
  }
6929
6952
  });
6930
6953
  return
6931
-
6932
6954
  case "innerHTML":
6933
6955
  case "innerText":
6934
6956
  case "textContent":
6935
6957
  if (isVisibleChild(value)) {
6936
6958
  node[key] = value;
6937
6959
  }
6938
-
6939
6960
  return
6940
-
6941
6961
  case "dangerouslySetInnerHTML":
6942
6962
  if (isObject(value)) {
6943
6963
  node.innerHTML = value["__html"];
6944
6964
  }
6945
-
6946
6965
  return
6947
-
6948
6966
  case "value":
6949
6967
  if (value == null || node instanceof window.HTMLSelectElement) {
6968
+ // skip nullish values
6969
+ // for `<select>` apply value after appending `<option>` elements
6950
6970
  return
6951
6971
  } else if (node instanceof window.HTMLTextAreaElement) {
6952
6972
  node.value = value;
6953
6973
  return
6954
6974
  }
6955
-
6975
+ // use attribute for other elements
6956
6976
  break
6957
-
6958
6977
  case "spellCheck":
6959
6978
  node.spellcheck = value;
6960
6979
  return
6961
-
6962
6980
  case "class":
6963
6981
  case "className":
6964
6982
  if (isFunction(value)) {
@@ -6966,45 +6984,49 @@ function attribute(key, value, node) {
6966
6984
  } else {
6967
6985
  attr(node, "class", className(value));
6968
6986
  }
6969
-
6970
6987
  return
6971
-
6972
6988
  case "ref":
6973
6989
  case "namespaceURI":
6974
6990
  return
6975
-
6976
6991
  case "style":
6977
6992
  style(node, value);
6978
6993
  return
6979
-
6980
6994
  case "on":
6981
6995
  case "onCapture":
6982
6996
  forEach(value, (eventHandler, eventName) => {
6983
6997
  node.addEventListener(eventName, eventHandler, key === "onCapture");
6984
6998
  });
6985
6999
  return
7000
+ // fallthrough
6986
7001
  }
6987
7002
 
6988
7003
  if (isFunction(value)) {
6989
7004
  if (key[0] === "o" && key[1] === "n") {
6990
7005
  const attribute = key.toLowerCase();
6991
7006
  const useCapture = attribute.endsWith("capture");
6992
-
6993
7007
  if (!useCapture && node[attribute] === null) {
7008
+ // use property when possible PR #17
6994
7009
  node[attribute] = value;
6995
7010
  } else if (useCapture) {
6996
7011
  node.addEventListener(attribute.substring(2, attribute.length - 7), value, true);
6997
7012
  } else {
6998
7013
  let eventName;
6999
-
7000
7014
  if (attribute in window) {
7001
- let standardEventName = attribute.substring(2);
7015
+ // standard event
7016
+ // the JSX attribute could have been "onMouseOver" and the
7017
+ // member name "onmouseover" is on the window's prototype
7018
+ // so let's add the listener "mouseover", which is all lowercased
7019
+ const standardEventName = attribute.substring(2);
7002
7020
  eventName = standardEventName;
7003
7021
  } else {
7004
- let cutomEventName = attribute[2] + key.slice(3);
7005
- eventName = cutomEventName;
7022
+ // custom event
7023
+ // the JSX attribute could have been "onMyCustomEvent"
7024
+ // so let's trim off the "on" prefix and lowercase the first character
7025
+ // and add the listener "myCustomEvent"
7026
+ // except for the first character, we keep the event name case
7027
+ const customEventName = attribute[2] + key.slice(3);
7028
+ eventName = customEventName;
7006
7029
  }
7007
-
7008
7030
  node.addEventListener(eventName, value);
7009
7031
  }
7010
7032
  }
@@ -7020,57 +7042,19 @@ function attribute(key, value, node) {
7020
7042
  }
7021
7043
  }
7022
7044
  }
7023
-
7024
7045
  function attr(node, key, value) {
7025
7046
  node.setAttribute(key, value);
7026
7047
  }
7027
-
7028
7048
  function attrNS(node, namespace, key, value) {
7029
7049
  node.setAttributeNS(namespace, key, value);
7030
7050
  }
7031
-
7032
7051
  function attributes(attr, node) {
7033
7052
  for (const key of keys(attr)) {
7034
7053
  attribute(key, attr[key], node);
7035
7054
  }
7036
-
7037
7055
  return node
7038
7056
  }
7039
7057
 
7040
- const cache = new Map();
7041
-
7042
- const createStyledComponent =
7043
- name =>
7044
- (list, ...interpolations) =>
7045
- ({ style, ...props }) => {
7046
- const lastIndex = list.length - 1;
7047
- const css =
7048
- list.slice(0, lastIndex).reduce((p, s, i) => p + s + interpolations[i](props), "") +
7049
- list[lastIndex];
7050
- return createElement(name, {
7051
- style: [css, style],
7052
- ...props,
7053
- })
7054
- };
7055
-
7056
- const baseStyled = customComponent => createStyledComponent(customComponent);
7057
-
7058
- new Proxy(baseStyled, {
7059
- get(_, name) {
7060
- return setIfAbsent(cache, name, () => createStyledComponent(name))
7061
- },
7062
- });
7063
-
7064
- function setIfAbsent(map, key, getValue) {
7065
- if (map.has(key)) {
7066
- return map.get(key)
7067
- } else {
7068
- const value = getValue(key);
7069
- map.set(key, value);
7070
- return value
7071
- }
7072
- }
7073
-
7074
7058
  const NBROFMONTHS$1 = 12;
7075
7059
  class MonthPicker extends Picker {
7076
7060
  constructor(dateFormat = 'MM/YYYY', language, change, translations) {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-287e25e0.js');
6
6
 
7
- const infoTileCss = "/*\n * This file is imported into every component!\n *\n * Nothing in this file may output any CSS\n * without being explicitly called by outside code.\n */\n/**\n* @prop --info-tile-border-radius: defines the radius of corners of the info-tile. Defaults to `1rem`\n* @prop --info-tile-icon-color: defines the fill color of the info-tile icon. Defaults to `--contrast-1000`\n* @prop --info-tile-text-color: defines the color of the info-tile label. Defaults to `--contrast-1100`\n* @prop --info-tile-background-color: defines the backgrounds color of the info-tile icon. Defaults to `--contrast-100`\n* @prop --info-tile-badge-text-color: Text color of the notification badge. Defaults to `--color-white`\n* @prop --info-tile-badge-background-color: Background color of the notification badge. Defaults to `--color-red-default`\n* @prop --info-tile-progress-fill-color: Determines the color of the progressed section. Defaults to `--lime-primary-color`.\n* @prop --info-tile-progress-background-color: Determines the background color of the central section of the progress bar. Defaults to `--info-tile-background-color`.\n* @prop --info-tile-progress-suffix-color: Determines the color of the progress prefix. Defaults to `--contrast-1000`.\n * @prop --info-tile-progress-text-color: Determines the color of the progress value. Defaults to `--info-tile-text-color`.\n * @prop --info-tile-progress-prefix-color: Determines the color of the progress suffix. Defaults to `--contrast-1000`.\n*/\n:host(limel-info-tile) {\n --badge-text-color: var(\n --info-tile-badge-text-color,\n rgb(var(--color-white))\n );\n --badge-background-color: var(\n --info-tile-badge-background-color,\n rgb(var(--color-red-default))\n );\n --circular-progress-text-color: var(\n --info-tile-progress-text-color,\n var(--info-tile-text-color)\n );\n --circular-progress-suffix-color: var(--info-tile-progress-suffix-color);\n --circular-progress-prefix-color: var(--info-tile-progress-prefix-color);\n --circular-progress-track-color: rgb(var(--contrast-800), 0.3);\n --circular-progress-fill-color: var(--info-tile-progress-fill-color);\n --circular-progress-background-color: var(\n --info-tile-progress-background-color,\n var(--info-tile-background-color)\n );\n --label-min-size: 0.75rem;\n --label-preferred-size: 6cqw;\n --label-max-size: 1rem;\n --value-min-size: 1rem;\n --value-preferred-size: 20cqw;\n --value-max-size: 4rem;\n --suffix-prefix-min-size: 0.75rem;\n --suffix-prefix-preferred-size: 8cqw;\n --suffix-prefix-max-size: 1.5rem;\n --icon-min-size: 2rem;\n --icon-preferred-size: 60cqh;\n --icon-max-size: calc(100cqw - 0.5rem);\n isolation: isolate;\n container-type: size;\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n}\n:host(limel-info-tile) * {\n box-sizing: border-box;\n}\n\n:host(limel-info-tile[disabled]) a {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\na {\n all: unset;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n padding: 0.25rem 1rem 0.5rem 1rem;\n border-radius: var(--info-tile-border-radius, 1rem);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n}\na.is-clickable {\n transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;\n color: var(--mdc-theme-on-surface);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n box-shadow: var(--button-shadow-normal);\n cursor: pointer;\n}\na.is-clickable:hover {\n color: var(--mdc-theme-on-surface);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n box-shadow: var(--button-shadow-hovered);\n}\na.is-clickable:active {\n box-shadow: var(--button-shadow-pressed);\n transform: translate3d(0, 0.08rem, 0);\n}\na.is-clickable:focus {\n outline: none;\n}\na.is-clickable:focus-visible {\n outline: none;\n box-shadow: var(--shadow-depth-8-focused);\n}\n\n.icon {\n z-index: 1;\n position: absolute;\n top: 0.5rem;\n right: 0.75rem;\n padding: 0.25rem;\n aspect-ratio: 1/1;\n color: var(--info-tile-icon-color, rgb(var(--contrast-1000)));\n border-radius: 0;\n height: clamp(var(--icon-min-size), var(--icon-preferred-size), var(--icon-max-size));\n}\n@supports not (container-type: size) {\n .icon {\n width: max(10%, 3rem);\n }\n}\n.has-circular-progress .icon {\n top: unset;\n bottom: 0.5rem;\n --icon-min-size: 1.5rem;\n --icon-preferred-size: 20cqh;\n}\n\n.progress {\n position: absolute;\n top: 0.75rem;\n right: 0.75rem;\n --circular-progress-size: min(\n var(--icon-preferred-size),\n var(--icon-max-size)\n );\n}\n@supports not (container-type: size) {\n .progress {\n --circular-progress-size: initial;\n }\n}\n\n.label {\n z-index: 1;\n color: var(--info-tile-text-color, rgb(var(--contrast-1100)));\n line-height: 1.2;\n font-size: clamp(var(--label-min-size), var(--label-preferred-size), var(--label-max-size));\n}\n@supports not (container-type: size) {\n .label {\n font-size: 0.875rem;\n }\n}\n\nlimel-badge {\n position: absolute;\n top: -0.5rem;\n right: -0.5rem;\n}\n\nlimel-linear-progress {\n --lime-primary-color: var(--info-tile-text-color);\n position: absolute;\n inset: auto 0 0 0;\n border-radius: 1rem;\n overflow: hidden;\n}\n\n.value-group {\n position: relative;\n z-index: 1;\n display: flex;\n flex-direction: column;\n color: var(--info-tile-text-color, rgb(var(--contrast-1100)));\n}\n\n.value-and-suffix,\n.label {\n text-shadow: 0 0 0.5rem var(--info-tile-background-color, rgb(var(--contrast-100))), 0 0 0.25rem var(--info-tile-background-color, rgb(var(--contrast-100)));\n}\n\n.value-and-suffix {\n display: flex;\n}\n\n.prefix,\n.suffix {\n font-size: clamp(var(--suffix-prefix-min-size), var(--suffix-prefix-preferred-size), var(--suffix-prefix-max-size));\n opacity: 0.7;\n}\n@supports not (container-type: size) {\n .prefix,\n.suffix {\n font-size: 0.75rem;\n }\n}\n\n.prefix {\n align-self: flex-start;\n line-height: normal;\n transform: translateY(40%);\n}\n\n.value {\n transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.95);\n transform-origin: left;\n transform: translate3d(0, 0, 0) scale(1);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-weight: bold;\n line-height: normal;\n font-size: clamp(var(--value-min-size), var(--value-preferred-size), var(--value-max-size));\n}\n@supports not (container-type: size) {\n .value {\n font-size: 1.5rem;\n }\n}\n:host(limel-info-tile[loading]) .value {\n opacity: 0.3;\n transform: translate3d(0, 0, 0) scale(0.9);\n}\n\n.suffix {\n transform: translateY(10%);\n}\n\n@container (width < 8rem) {\n .progress {\n top: 0.25rem;\n right: 0.25rem;\n }\n\n a {\n padding: 0.375rem;\n gap: 0.125rem;\n }\n}\n@container (width < 18.75rem) {\n .progress {\n top: 0.5rem;\n right: 0.5rem;\n }\n\n .icon {\n top: 0.25rem;\n right: 0.5rem;\n }\n .has-circular-progress .icon {\n right: 0.25rem;\n bottom: 0.25rem;\n }\n}\n@container (width < 40.5rem) {\n .value {\n --value-preferred-size: 13cqw;\n }\n .value.ch-1, .value.ch-2, .value.ch-3, .value.ch-4 {\n --value-preferred-size: 20cqw;\n }\n .value.ch-5 {\n --value-preferred-size: 18cqw;\n }\n .value.ch-6 {\n --value-preferred-size: 17cqw;\n }\n .value.ch-7 {\n --value-preferred-size: 16cqw;\n }\n .value.ch-8 {\n --value-preferred-size: 15cqw;\n }\n .value.ch-9 {\n --value-preferred-size: 14cqw;\n }\n}\n@container (height > 8rem) {\n a {\n padding-top: 0.75rem;\n padding-bottom: 1rem;\n }\n}\n@container (height < 8rem) and (width > 8rem) {\n .value {\n --value-preferred-size: 32cqh !important;\n }\n\n .suffix,\n.prefix {\n --suffix-prefix-preferred-size: 16cqh !important;\n }\n}\n@container (height > 18.75rem) {\n .progress,\n.icon {\n position: relative;\n top: unset;\n right: unset;\n }\n\n a {\n align-items: center;\n justify-content: center;\n }\n\n .label {\n text-align: center;\n }\n\n .has-circular-progress .icon {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n --icon-max-size: 3rem;\n }\n}";
7
+ const infoTileCss = "/*\n * This file is imported into every component!\n *\n * Nothing in this file may output any CSS\n * without being explicitly called by outside code.\n */\n/**\n* @prop --info-tile-border-radius: defines the radius of corners of the info-tile. Defaults to `1rem`\n* @prop --info-tile-icon-color: defines the fill color of the info-tile icon. Defaults to `--contrast-1000`\n* @prop --info-tile-text-color: defines the color of the info-tile label. Defaults to `--contrast-1100`\n* @prop --info-tile-background-color: defines the backgrounds color of the info-tile icon. Defaults to `--contrast-100`\n* @prop --info-tile-badge-text-color: Text color of the notification badge. Defaults to `--color-white`\n* @prop --info-tile-badge-background-color: Background color of the notification badge. Defaults to `--color-red-default`\n* @prop --info-tile-progress-fill-color: Determines the color of the progressed section. Defaults to `--lime-primary-color`.\n* @prop --info-tile-progress-background-color: Determines the background color of the central section of the progress bar. Defaults to `--info-tile-background-color`.\n* @prop --info-tile-progress-suffix-color: Determines the color of the progress prefix. Defaults to `--contrast-1000`.\n * @prop --info-tile-progress-text-color: Determines the color of the progress value. Defaults to `--info-tile-text-color`.\n * @prop --info-tile-progress-prefix-color: Determines the color of the progress suffix. Defaults to `--contrast-1000`.\n*/\n:host(limel-info-tile) {\n --badge-text-color: var(\n --info-tile-badge-text-color,\n rgb(var(--color-white))\n );\n --badge-background-color: var(\n --info-tile-badge-background-color,\n rgb(var(--color-red-default))\n );\n --circular-progress-text-color: var(\n --info-tile-progress-text-color,\n var(--info-tile-text-color)\n );\n --circular-progress-suffix-color: var(--info-tile-progress-suffix-color);\n --circular-progress-prefix-color: var(--info-tile-progress-prefix-color);\n --circular-progress-track-color: rgb(var(--contrast-800), 0.3);\n --circular-progress-fill-color: var(--info-tile-progress-fill-color);\n --circular-progress-background-color: var(\n --info-tile-progress-background-color,\n var(--info-tile-background-color)\n );\n --label-min-size: 0.75rem;\n --label-preferred-size: 6cqw;\n --label-max-size: 1rem;\n --value-min-size: 1rem;\n --value-preferred-size: 20cqw;\n --value-max-size: 4rem;\n --suffix-prefix-min-size: 0.75rem;\n --suffix-prefix-preferred-size: 8cqw;\n --suffix-prefix-max-size: 1.5rem;\n --icon-min-size: 2rem;\n --icon-preferred-size: 60cqh;\n --icon-max-size: calc(100cqw - 0.5rem);\n isolation: isolate;\n container-type: size;\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n}\n:host(limel-info-tile) * {\n box-sizing: border-box;\n}\n\n:host(limel-info-tile[disabled]) a {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\na {\n all: unset;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n padding: 0.25rem 1rem 0.5rem 1rem;\n border-radius: var(--info-tile-border-radius, 1rem);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n}\na.is-clickable {\n transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;\n color: var(--mdc-theme-on-surface);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n box-shadow: var(--button-shadow-normal);\n cursor: pointer;\n}\na.is-clickable:hover {\n color: var(--mdc-theme-on-surface);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n box-shadow: var(--button-shadow-hovered);\n}\na.is-clickable:active {\n box-shadow: var(--button-shadow-pressed);\n transform: translate3d(0, 0.08rem, 0);\n}\na.is-clickable:focus {\n outline: none;\n}\na.is-clickable:focus-visible {\n outline: none;\n box-shadow: var(--shadow-depth-8-focused);\n}\n\n.icon {\n z-index: 1;\n position: absolute;\n top: 0.5rem;\n right: 0.75rem;\n padding: 0.25rem;\n aspect-ratio: 1/1;\n color: var(--info-tile-icon-color, rgb(var(--contrast-1000)));\n border-radius: 0;\n height: clamp(var(--icon-min-size), var(--icon-preferred-size), var(--icon-max-size));\n}\n@supports not (container-type: size) {\n .icon {\n width: max(10%, 3rem);\n }\n}\n.has-circular-progress .icon {\n top: unset;\n bottom: 0.5rem;\n --icon-min-size: 1.5rem;\n --icon-preferred-size: 20cqh;\n}\n\n.progress {\n position: absolute;\n top: 0.75rem;\n right: 0.75rem;\n --circular-progress-size: min(\n var(--icon-preferred-size),\n var(--icon-max-size)\n );\n}\n@supports not (container-type: size) {\n .progress {\n --circular-progress-size: initial;\n }\n}\n\n.label {\n z-index: 1;\n color: var(--info-tile-text-color, rgb(var(--contrast-1100)));\n line-height: 1.2;\n font-size: clamp(var(--label-min-size), var(--label-preferred-size), var(--label-max-size));\n}\n@supports not (container-type: size) {\n .label {\n font-size: 0.875rem;\n }\n}\n\nlimel-badge {\n position: absolute;\n top: -0.5rem;\n right: -0.5rem;\n}\n\nlimel-linear-progress {\n --lime-primary-color: var(--info-tile-text-color);\n position: absolute;\n inset: auto 0 0 0;\n border-radius: 1rem;\n overflow: hidden;\n}\n\n.value-group {\n position: relative;\n z-index: 1;\n display: flex;\n flex-direction: column;\n color: var(--info-tile-text-color, rgb(var(--contrast-1100)));\n}\n\n.value-and-suffix,\n.label {\n text-shadow: 0 0 0.5rem var(--info-tile-background-color, rgb(var(--contrast-100))), 0 0 0.25rem var(--info-tile-background-color, rgb(var(--contrast-100)));\n}\n\n.value-and-suffix {\n display: flex;\n}\n\n.prefix,\n.suffix {\n font-size: clamp(var(--suffix-prefix-min-size), var(--suffix-prefix-preferred-size), var(--suffix-prefix-max-size));\n opacity: 0.7;\n}\n@supports not (container-type: size) {\n .prefix,\n .suffix {\n font-size: 0.75rem;\n }\n}\n\n.prefix {\n align-self: flex-start;\n line-height: normal;\n transform: translateY(40%);\n}\n\n.value {\n transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.95);\n transform-origin: left;\n transform: translate3d(0, 0, 0) scale(1);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-weight: bold;\n line-height: normal;\n font-size: clamp(var(--value-min-size), var(--value-preferred-size), var(--value-max-size));\n}\n@supports not (container-type: size) {\n .value {\n font-size: 1.5rem;\n }\n}\n:host(limel-info-tile[loading]) .value {\n opacity: 0.3;\n transform: translate3d(0, 0, 0) scale(0.9);\n}\n\n.suffix {\n transform: translateY(10%);\n}\n\n@container (width < 8rem) {\n .progress {\n top: 0.25rem;\n right: 0.25rem;\n }\n a {\n padding: 0.375rem;\n gap: 0.125rem;\n }\n}\n@container (width < 18.75rem) {\n .progress {\n top: 0.5rem;\n right: 0.5rem;\n }\n .icon {\n top: 0.25rem;\n right: 0.5rem;\n }\n .has-circular-progress .icon {\n right: 0.25rem;\n bottom: 0.25rem;\n }\n}\n@container (width < 40.5rem) {\n .value {\n --value-preferred-size: 13cqw;\n }\n .value.ch-1, .value.ch-2, .value.ch-3, .value.ch-4 {\n --value-preferred-size: 20cqw;\n }\n .value.ch-5 {\n --value-preferred-size: 18cqw;\n }\n .value.ch-6 {\n --value-preferred-size: 17cqw;\n }\n .value.ch-7 {\n --value-preferred-size: 16cqw;\n }\n .value.ch-8 {\n --value-preferred-size: 15cqw;\n }\n .value.ch-9 {\n --value-preferred-size: 14cqw;\n }\n}\n@container (height > 8rem) {\n a {\n padding-top: 0.75rem;\n padding-bottom: 1rem;\n }\n}\n@container (height < 8rem) and (width > 8rem) {\n .value {\n --value-preferred-size: 32cqh !important;\n }\n .suffix,\n .prefix {\n --suffix-prefix-preferred-size: 16cqh !important;\n }\n}\n@container (height > 18.75rem) {\n .progress,\n .icon {\n position: relative;\n top: unset;\n right: unset;\n }\n a {\n align-items: center;\n justify-content: center;\n }\n .label {\n text-align: center;\n }\n .has-circular-progress .icon {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n --icon-max-size: 3rem;\n }\n}";
8
8
 
9
9
  const InfoTile = class {
10
10
  constructor(hostRef) {