@esri/calcite-components 1.0.0-next.341 → 1.0.0-next.345

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/calcite/assets/calcite-icon/explore16.json +1 -0
  2. package/dist/calcite/assets/calcite-icon/explore24.json +1 -0
  3. package/dist/calcite/assets/calcite-icon/explore32.json +1 -0
  4. package/dist/calcite/assets/calcite-icon/partlyCloudy16.json +1 -0
  5. package/dist/calcite/assets/calcite-icon/partlyCloudy24.json +1 -0
  6. package/dist/calcite/assets/calcite-icon/partlyCloudy32.json +1 -0
  7. package/dist/calcite/assets/calcite-icon/screenshotMode16.json +1 -0
  8. package/dist/calcite/assets/calcite-icon/screenshotMode24.json +1 -0
  9. package/dist/calcite/assets/calcite-icon/screenshotMode32.json +1 -0
  10. package/dist/calcite/calcite.esm.js +1 -1
  11. package/dist/calcite/p-0b2ac5d7.system.entry.js +5 -0
  12. package/dist/calcite/{p-4e9d072a.system.js → p-11b9e4bb.system.js} +1 -1
  13. package/dist/calcite/{p-1cbe69ff.system.entry.js → p-11f99edf.system.entry.js} +1 -1
  14. package/dist/calcite/p-12a2f2d9.entry.js +5 -0
  15. package/dist/calcite/p-18c4af8f.system.js +5 -0
  16. package/dist/calcite/p-18d9a261.system.js +1 -1
  17. package/dist/calcite/p-197226fa.entry.js +5 -0
  18. package/dist/calcite/{p-456fc41f.system.entry.js → p-224a5f8d.system.entry.js} +1 -1
  19. package/dist/calcite/p-35aa821f.entry.js +5 -0
  20. package/dist/calcite/{p-8554d028.system.entry.js → p-41cd5de3.system.entry.js} +1 -1
  21. package/dist/calcite/{p-6662658a.system.entry.js → p-496a04e4.system.entry.js} +1 -1
  22. package/dist/calcite/{p-cc247988.entry.js → p-520f90ae.entry.js} +1 -1
  23. package/dist/calcite/{p-ee5aabd7.entry.js → p-527dfb9d.entry.js} +1 -1
  24. package/dist/calcite/{p-d3bd900e.js → p-52966b4c.js} +1 -1
  25. package/dist/calcite/{p-c4b4312c.entry.js → p-531ddede.entry.js} +1 -1
  26. package/dist/calcite/{p-fbcf0cdb.system.entry.js → p-61c25508.system.entry.js} +1 -1
  27. package/dist/calcite/p-6436b89b.system.entry.js +5 -0
  28. package/dist/calcite/p-68c5432f.entry.js +5 -0
  29. package/dist/calcite/{p-8376e39b.entry.js → p-82d19468.entry.js} +1 -1
  30. package/dist/calcite/{p-4f7ebefc.system.js → p-834ec82a.system.js} +1 -1
  31. package/dist/calcite/{p-e7f7b0f8.js → p-8396a2d2.js} +1 -1
  32. package/dist/calcite/{p-14744d7b.system.entry.js → p-8dc9c530.system.entry.js} +1 -1
  33. package/dist/calcite/p-91300144.js +5 -0
  34. package/dist/calcite/{p-5c6f2de9.system.entry.js → p-afd8eb90.system.entry.js} +1 -1
  35. package/dist/calcite/{p-e7577455.entry.js → p-b28560f2.entry.js} +1 -1
  36. package/dist/calcite/p-e33346fd.system.entry.js +5 -0
  37. package/dist/calcite/p-ea59c57b.entry.js +5 -0
  38. package/dist/cjs/calcite-avatar.cjs.entry.js +1 -1
  39. package/dist/cjs/calcite-checkbox.cjs.entry.js +1 -1
  40. package/dist/cjs/calcite-date-picker_4.cjs.entry.js +3 -3
  41. package/dist/cjs/calcite-input-date-picker.cjs.entry.js +3 -3
  42. package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +1 -1
  43. package/dist/cjs/calcite-input.cjs.entry.js +10 -9
  44. package/dist/cjs/calcite-radio-button.cjs.entry.js +17 -6
  45. package/dist/cjs/calcite-radio-group_2.cjs.entry.js +0 -45
  46. package/dist/cjs/calcite-tile-select_2.cjs.entry.js +37 -2
  47. package/dist/cjs/calcite-tile.cjs.entry.js +1 -1
  48. package/dist/cjs/{locale-33c458dc.js → locale-ccfa66f6.js} +1 -1
  49. package/dist/cjs/{number-73f7b474.js → number-f57fd111.js} +13 -6
  50. package/dist/cjs/{resources-16974e48.js → resources-d3c42dc4.js} +1 -1
  51. package/dist/collection/components/calcite-avatar/calcite-avatar.css +1 -3
  52. package/dist/collection/components/calcite-checkbox/calcite-checkbox.js +1 -1
  53. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore16.json +1 -0
  54. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore24.json +1 -0
  55. package/dist/collection/components/calcite-icon/assets/calcite-icon/explore32.json +1 -0
  56. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy16.json +1 -0
  57. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy24.json +1 -0
  58. package/dist/collection/components/calcite-icon/assets/calcite-icon/partlyCloudy32.json +1 -0
  59. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode16.json +1 -0
  60. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode24.json +1 -0
  61. package/dist/collection/components/calcite-icon/assets/calcite-icon/screenshotMode32.json +1 -0
  62. package/dist/collection/components/calcite-input/calcite-input.js +8 -7
  63. package/dist/collection/components/calcite-radio-button/calcite-radio-button.css +4 -4
  64. package/dist/collection/components/calcite-radio-button/calcite-radio-button.js +16 -5
  65. package/dist/collection/components/calcite-radio-group-item/calcite-radio-group-item.js +0 -45
  66. package/dist/collection/components/calcite-tile/calcite-tile.css +37 -49
  67. package/dist/collection/components/calcite-tile-select/calcite-tile-select.css +50 -70
  68. package/dist/collection/components/calcite-tile-select/calcite-tile-select.js +21 -2
  69. package/dist/collection/components/calcite-tile-select/resources.js +20 -0
  70. package/dist/collection/utils/number.js +13 -6
  71. package/dist/components/calcite-avatar.js +1 -1
  72. package/dist/components/calcite-checkbox2.js +1 -1
  73. package/dist/components/calcite-input2.js +8 -7
  74. package/dist/components/calcite-radio-button.js +17 -6
  75. package/dist/components/calcite-radio-group-item.js +0 -45
  76. package/dist/components/calcite-tile-select.js +37 -2
  77. package/dist/components/calcite-tile2.js +1 -1
  78. package/dist/components/number.js +13 -6
  79. package/dist/custom-elements/index.js +333 -323
  80. package/dist/esm/calcite-avatar.entry.js +1 -1
  81. package/dist/esm/calcite-checkbox.entry.js +1 -1
  82. package/dist/esm/calcite-date-picker_4.entry.js +3 -3
  83. package/dist/esm/calcite-input-date-picker.entry.js +3 -3
  84. package/dist/esm/calcite-input-time-picker_2.entry.js +1 -1
  85. package/dist/esm/calcite-input.entry.js +10 -9
  86. package/dist/esm/calcite-radio-button.entry.js +17 -6
  87. package/dist/esm/calcite-radio-group_2.entry.js +0 -45
  88. package/dist/esm/calcite-tile-select_2.entry.js +37 -2
  89. package/dist/esm/calcite-tile.entry.js +1 -1
  90. package/dist/esm/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
  91. package/dist/esm/{number-06e8500e.js → number-eb92427e.js} +13 -6
  92. package/dist/esm/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
  93. package/dist/esm-es5/calcite-avatar.entry.js +1 -1
  94. package/dist/esm-es5/calcite-checkbox.entry.js +1 -1
  95. package/dist/esm-es5/calcite-date-picker_4.entry.js +1 -1
  96. package/dist/esm-es5/calcite-input-date-picker.entry.js +1 -1
  97. package/dist/esm-es5/calcite-input-time-picker_2.entry.js +1 -1
  98. package/dist/esm-es5/calcite-input.entry.js +1 -1
  99. package/dist/esm-es5/calcite-radio-button.entry.js +1 -1
  100. package/dist/esm-es5/calcite-radio-group_2.entry.js +1 -1
  101. package/dist/esm-es5/calcite-tile-select_2.entry.js +2 -2
  102. package/dist/esm-es5/calcite-tile.entry.js +1 -1
  103. package/dist/esm-es5/{locale-4c38cf6d.js → locale-86b789f9.js} +1 -1
  104. package/dist/esm-es5/number-eb92427e.js +5 -0
  105. package/dist/esm-es5/{resources-b4eee1d4.js → resources-421133b2.js} +1 -1
  106. package/dist/extras/docs-json.json +1 -1
  107. package/dist/types/components/calcite-radio-button/calcite-radio-button.d.ts +1 -0
  108. package/dist/types/components/calcite-radio-group-item/calcite-radio-group-item.d.ts +0 -6
  109. package/dist/types/components/calcite-tile-select/resources.d.ts +16 -0
  110. package/hydrate/index.js +333 -323
  111. package/package.json +10 -10
  112. package/dist/calcite/p-04417e11.system.entry.js +0 -5
  113. package/dist/calcite/p-66146f19.entry.js +0 -5
  114. package/dist/calcite/p-6ba77bae.entry.js +0 -5
  115. package/dist/calcite/p-83744979.system.js +0 -5
  116. package/dist/calcite/p-cc2166e7.system.entry.js +0 -5
  117. package/dist/calcite/p-d00824e4.system.entry.js +0 -5
  118. package/dist/calcite/p-d506cebd.entry.js +0 -5
  119. package/dist/calcite/p-d75a285d.entry.js +0 -5
  120. package/dist/calcite/p-e81cda9d.entry.js +0 -5
  121. package/dist/calcite/p-f595d924.js +0 -5
  122. package/dist/esm-es5/number-06e8500e.js +0 -5
@@ -8,7 +8,24 @@ import { d as defineCustomElement$4 } from './calcite-icon2.js';
8
8
  import { d as defineCustomElement$3 } from './calcite-link2.js';
9
9
  import { d as defineCustomElement$2 } from './calcite-tile2.js';
10
10
 
11
- const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}.root{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host{display:block}:host(:hover) .root{z-index:20;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-1);box-shadow:0 0 0 1px var(--calcite-ui-border-1)}:host([checked]) .root{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}.root.focused{z-index:30}:host(:not([input-enabled]):hover) .root{-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host(:not([input-enabled])) .root.focused{-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host([width=full]) .root{display:-ms-flexbox;display:flex;max-width:none}:host([width=full]) calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host([input-alignment=start][width=full]) calcite-tile{-ms-flex-order:1;order:1;-webkit-margin-start:0.75rem;margin-inline-start:0.75rem}:host(:not([input-enabled])) ::slotted(calcite-checkbox),:host(:not([input-enabled])) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([heading]:not([icon]):not([description])) .root{-ms-flex-align:center;align-items:center}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) .root,:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) .root{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-checkbox),:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) ::slotted(calcite-radio-button),:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-checkbox),:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) ::slotted(calcite-radio-button){-ms-flex-order:0;order:0}:host([width=auto][input-enabled][input-alignment=start][icon][heading][description]) calcite-tile,:host([width=auto][input-enabled][input-alignment=start]:not([icon])[heading]:not([description])) calcite-tile{-ms-flex-order:1;order:1}:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=start][icon][heading]:not([description])) ::slotted(calcite-radio-button){position:absolute;top:0.75rem;inset-inline-start:0.75rem}:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][icon][heading]) ::slotted(calcite-radio-button){position:absolute;top:0.75rem;inset-inline-end:0.75rem}:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) .root{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-checkbox),:host([input-enabled][input-alignment=end][heading]:not([icon]):not([description])) ::slotted(calcite-radio-button){justify-self:flex-end}:host([hidden]){display:none}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
11
+ const CSS = {
12
+ checked: "checked",
13
+ description: "description",
14
+ descriptionOnly: "description-only",
15
+ disabled: "disabled",
16
+ heading: "heading",
17
+ headingOnly: "heading-only",
18
+ icon: "icon",
19
+ iconOnly: "icon-only",
20
+ inputAlignmentEnd: "input-alignment-end",
21
+ inputAlignmentStart: "input-alignment-start",
22
+ inputEnabled: "input-enabled",
23
+ largeVisual: "large-visual",
24
+ widthAuto: "width-auto",
25
+ widthFull: "width-full"
26
+ };
27
+
28
+ const calciteTileSelectCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{display:block}:host .container{background-color:var(--calcite-ui-foreground-1);-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2);-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:inline-block;height:100%;max-width:300px;padding:0.75rem;position:relative;-webkit-transition:150ms ease-in-out;transition:150ms ease-in-out;vertical-align:top;z-index:10}:host .container.checked{z-index:30;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host .container.heading-only{-ms-flex-align:center;align-items:center}:host .container:not(.input-enabled) ::slotted(calcite-checkbox),:host .container:not(.input-enabled) ::slotted(calcite-radio-button){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host .container.focused:not(.disabled){z-index:30}:host .container.focused:not(.disabled):not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand), inset 0 0 0 2px var(--calcite-ui-foreground-1), inset 0 0 0 5px var(--calcite-ui-brand)}:host .container.input-enabled.input-alignment-start.width-auto.heading-only,:host .container.input-enabled.input-alignment-start.width-auto.icon-only,:host .container.input-enabled.input-alignment-start.width-auto.description-only,:host .container.input-enabled.input-alignment-start.width-auto.heading.description,:host .container.input-enabled.input-alignment-start.width-auto.icon.description,:host .container.input-enabled.input-alignment-start.width-auto.heading.icon.description{display:inline-grid;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-start.heading-only,:host .container.input-enabled.input-alignment-start.icon-only,:host .container.input-enabled.input-alignment-start.description-only,:host .container.input-enabled.input-alignment-start.heading.description,:host .container.input-enabled.input-alignment-start.icon.description,:host .container.input-enabled.input-alignment-start.heading.icon.description{gap:0.75rem}:host .container.input-enabled.input-alignment-start calcite-tile{-ms-flex-order:1;order:1}:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-start.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-start:0.75rem}:host .container.input-enabled.input-alignment-end.width-auto.heading-only,:host .container.input-enabled.input-alignment-end.width-auto.icon-only{display:inline-grid;grid-gap:0.75rem;grid-template-columns:-webkit-max-content 1fr;grid-template-columns:max-content 1fr}:host .container.input-enabled.input-alignment-end.heading-only,:host .container.input-enabled.input-alignment-end.icon-only{gap:0.75rem}:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.description-only ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.icon.description ::slotted(calcite-radio-button),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.heading.icon.description ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-checkbox),:host .container.input-enabled.input-alignment-end.large-visual ::slotted(calcite-radio-button){position:absolute;inset-block-start:0.75rem;inset-inline-end:0.75rem}:host .container.width-full{display:-ms-flexbox;display:flex;max-width:none}:host .container.width-full calcite-tile{-ms-flex:1 1 auto;flex:1 1 auto}:host(:hover) .container{z-index:20}:host(:hover) .container:not(.input-enabled){-webkit-box-shadow:0 0 0 1px var(--calcite-ui-brand);box-shadow:0 0 0 1px var(--calcite-ui-brand)}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}";
12
29
 
13
30
  let CalciteTileSelect$1 = class extends HTMLElement {
14
31
  constructor() {
@@ -156,7 +173,25 @@ let CalciteTileSelect$1 = class extends HTMLElement {
156
173
  this.el.insertAdjacentElement("beforeend", this.input);
157
174
  }
158
175
  render() {
159
- return (h("div", { class: { focused: this.focused, root: true } }, h("calcite-tile", { active: this.checked, description: this.description, embed: true, heading: this.heading, icon: this.icon }), h("slot", null)));
176
+ const { checked, description, disabled, focused, heading, icon, inputAlignment, inputEnabled, width } = this;
177
+ return (h("div", { class: {
178
+ checked,
179
+ container: true,
180
+ [CSS.description]: Boolean(description),
181
+ [CSS.descriptionOnly]: Boolean(!heading && !icon && description),
182
+ disabled,
183
+ focused,
184
+ [CSS.heading]: Boolean(heading),
185
+ [CSS.headingOnly]: heading && !icon && !description,
186
+ [CSS.icon]: Boolean(icon),
187
+ [CSS.iconOnly]: !heading && icon && !description,
188
+ [CSS.inputAlignmentEnd]: inputAlignment === "end",
189
+ [CSS.inputAlignmentStart]: inputAlignment === "start",
190
+ [CSS.inputEnabled]: inputEnabled,
191
+ [CSS.largeVisual]: heading && icon && !description,
192
+ [CSS.widthAuto]: width === "auto",
193
+ [CSS.widthFull]: width === "full"
194
+ } }, h("calcite-tile", { active: checked, description: description, embed: true, heading: heading, icon: icon }), h("slot", null)));
160
195
  }
161
196
  get el() { return this; }
162
197
  static get watchers() { return {
@@ -12,7 +12,7 @@ const SLOTS = {
12
12
  contentEnd: "content-end"
13
13
  };
14
14
 
15
- const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([icon][heading]:not([description])) .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host([icon][heading]:not([description])) .large-visual{text-align:center}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}.container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}.content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}.content-container{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}.content-slot-container:first-child{padding-right:0.75rem}.content-slot-container:last-child{padding-left:0.75rem}.heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.large-visual{-ms-flex-align:center;align-items:center;min-height:12rem}.large-visual .icon{-ms-flex-item-align:end;align-self:flex-end}.large-visual .content-container{-ms-flex-item-align:center;align-self:center}.description{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
15
+ const calciteTileCss = "@-webkit-keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-down{0%{opacity:0;-webkit-transform:translate3D(0, -5px, 0);transform:translate3D(0, -5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;-webkit-transform:translate3D(0, 5px, 0);transform:translate3D(0, 5px, 0)}100%{opacity:1;-webkit-transform:translate3D(0, 0, 0);transform:translate3D(0, 0, 0)}}@-webkit-keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}@keyframes in-scale{0%{opacity:0;-webkit-transform:scale3D(0.95, 0.95, 1);transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;-webkit-transform:scale3D(1, 1, 1);transform:scale3D(1, 1, 1)}}:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}.calcite-animate{opacity:0;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:var(--calcite-animation-timing);animation-duration:var(--calcite-animation-timing)}.calcite-animate__in{-webkit-animation-name:in;animation-name:in}.calcite-animate__in-down{-webkit-animation-name:in-down;animation-name:in-down}.calcite-animate__in-up{-webkit-animation-name:in-up;animation-name:in-up}.calcite-animate__in-scale{-webkit-animation-name:in-scale;animation-name:in-scale}:root{--calcite-popper-transition:150ms ease-in-out}:host([hidden]){display:none}:host{-webkit-box-sizing:border-box;box-sizing:border-box;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .container{pointer-events:none;display:grid;grid-template-columns:repeat(1, minmax(0, 1fr));gap:0.5rem}:host .content{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;gap:0.5rem;width:10%}:host .content-container{display:-ms-flexbox;display:flex;width:100%;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-align:stretch;align-items:stretch;padding:0px;color:var(--calcite-ui-text-2);outline-offset:0;outline-color:transparent;-webkit-transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}:host .content-slot-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--calcite-ui-foreground-1)}:host .content-slot-container:first-child{padding-right:0.75rem}:host .content-slot-container:last-child{padding-left:0.75rem}:host .heading{pointer-events:none;overflow-wrap:break-word;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host .large-visual{-ms-flex-align:center;align-items:center;text-align:center;min-height:12rem}:host .large-visual .icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-item-align:end;align-self:flex-end}:host .large-visual .content-container{-ms-flex-item-align:center;align-self:center}:host .description{pointer-events:none;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-ui-text-3);-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}:host(:not([embed])){padding:0.75rem;-webkit-box-shadow:0 0 0 1px var(--calcite-ui-border-2);box-shadow:0 0 0 1px var(--calcite-ui-border-2)}:host(:not([embed])[href]:hover){cursor:pointer;-webkit-box-shadow:0 0 0 2px var(--calcite-ui-brand);box-shadow:0 0 0 2px var(--calcite-ui-brand)}:host(:not([embed])[href]:active){-webkit-box-shadow:0 0 0 3px var(--calcite-ui-brand);box-shadow:0 0 0 3px var(--calcite-ui-brand)}:host([icon][heading]:not([description]):not([embed])){padding:0px}:host([disabled]){opacity:var(--calcite-ui-opacity-disabled);pointer-events:none}:host(:hover) .heading,:host([active]) .heading{color:var(--calcite-ui-text-1)}:host(:hover) .description,:host([active]) .description{color:var(--calcite-ui-text-2)}";
16
16
 
17
17
  let CalciteTile = class extends HTMLElement {
18
18
  constructor() {
@@ -12,7 +12,7 @@ function isValidNumber(numberString) {
12
12
  }
13
13
  function parseNumberString(numberString) {
14
14
  if (!numberString || !stringContainsNumbers(numberString)) {
15
- return null;
15
+ return "";
16
16
  }
17
17
  let containsDecimal = false;
18
18
  const result = numberString
@@ -31,17 +31,24 @@ function parseNumberString(numberString) {
31
31
  return isValidNumber(result) ? Number(result).toString() : null;
32
32
  }
33
33
  function sanitizeDecimalString(decimalString) {
34
- return (decimalString === null || decimalString === void 0 ? void 0 : decimalString.endsWith(".")) ? decimalString.replace(".", "") : decimalString;
34
+ const decimalAtEndOfStringButNotStart = /(?!^\.)\.$/;
35
+ return decimalString.replace(decimalAtEndOfStringButNotStart, "");
35
36
  }
36
37
  function sanitizeNegativeString(negativeString) {
37
- return negativeString.charAt(0) + negativeString.substring(1).replace(/-/g, "");
38
+ const allHyphensExceptTheStart = /(?!^-)-/g;
39
+ return negativeString.replace(allHyphensExceptTheStart, "");
38
40
  }
39
41
  function sanitizeLeadingZeroString(zeroString) {
40
- return zeroString.replace(/^0+$/, "0");
42
+ const allLeadingZerosOptionallyNegative = /^([-0])0+(?=\d)/;
43
+ return zeroString.replace(allLeadingZerosOptionallyNegative, "$1");
41
44
  }
42
45
  function sanitizeNumberString(value) {
43
- return value
44
- ? Number(sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)))).toString()
46
+ const sanitizedValue = sanitizeNegativeString(sanitizeDecimalString(sanitizeLeadingZeroString(value)));
47
+ const isNegativeDecimalOnlyZeros = /^-\b0\b\.?0*$/;
48
+ return isValidNumber(sanitizedValue)
49
+ ? isNegativeDecimalOnlyZeros.test(sanitizedValue)
50
+ ? sanitizedValue
51
+ : Number(sanitizedValue).toString()
45
52
  : value;
46
53
  }
47
54
  function stringContainsNumbers(string) {