smoothly 1.85.0 → 1.87.0

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 (184) hide show
  1. package/dist/cjs/smoothly-app_103.cjs.entry.js +15 -14
  2. package/dist/cjs/smoothly-app_103.cjs.entry.js.map +1 -1
  3. package/dist/collection/components/form/demo/style.css +1 -1
  4. package/dist/collection/components/form/style.css +1 -1
  5. package/dist/collection/components/input/InputStateHandler.js +3 -1
  6. package/dist/collection/components/input/InputStateHandler.js.map +1 -1
  7. package/dist/collection/components/input/demo/standard/style.css +5 -2
  8. package/dist/collection/components/input/demo/style.css +5 -4
  9. package/dist/collection/components/input/demo/user-input/style.css +8 -0
  10. package/dist/collection/components/input/index.js +3 -4
  11. package/dist/collection/components/input/index.js.map +1 -1
  12. package/dist/collection/components/theme/colors/style.css +2 -2
  13. package/dist/collection/components/theme/demo/index.js +1 -1
  14. package/dist/collection/components/theme/demo/index.js.map +1 -1
  15. package/dist/collection/components/theme/demo/style.css +5 -4
  16. package/dist/collection/components/theme/guide/style.css +3 -0
  17. package/dist/components/{p-cc23413a.js → p-0094b06f.js} +3 -3
  18. package/dist/components/{p-cc23413a.js.map → p-0094b06f.js.map} +1 -1
  19. package/dist/components/{p-13dc6bcc.js → p-00e370c3.js} +3 -3
  20. package/dist/components/{p-13dc6bcc.js.map → p-00e370c3.js.map} +1 -1
  21. package/dist/components/{p-7adb3297.js → p-0239e2c0.js} +12 -12
  22. package/dist/components/{p-7adb3297.js.map → p-0239e2c0.js.map} +1 -1
  23. package/dist/components/{p-771ae53d.js → p-03da765f.js} +6 -6
  24. package/dist/components/{p-771ae53d.js.map → p-03da765f.js.map} +1 -1
  25. package/dist/components/{p-62de3dcd.js → p-05a79a87.js} +4 -4
  26. package/dist/components/{p-62de3dcd.js.map → p-05a79a87.js.map} +1 -1
  27. package/dist/components/{p-f34a7d9b.js → p-05aa3e73.js} +6 -6
  28. package/dist/components/{p-f34a7d9b.js.map → p-05aa3e73.js.map} +1 -1
  29. package/dist/components/{p-b94dcd2a.js → p-06a75cf4.js} +2 -2
  30. package/dist/components/{p-b94dcd2a.js.map → p-06a75cf4.js.map} +1 -1
  31. package/dist/components/{p-14d1c2af.js → p-0aa4e6b4.js} +8 -8
  32. package/dist/components/{p-14d1c2af.js.map → p-0aa4e6b4.js.map} +1 -1
  33. package/dist/components/{p-be478a63.js → p-0ce9fb73.js} +2 -2
  34. package/dist/components/{p-be478a63.js.map → p-0ce9fb73.js.map} +1 -1
  35. package/dist/components/{p-699f7948.js → p-0d257ab1.js} +8 -8
  36. package/dist/components/{p-699f7948.js.map → p-0d257ab1.js.map} +1 -1
  37. package/dist/components/{p-55a6fa56.js → p-0d90bb34.js} +2 -2
  38. package/dist/components/{p-55a6fa56.js.map → p-0d90bb34.js.map} +1 -1
  39. package/dist/components/{p-f879f787.js → p-1fbab324.js} +2 -2
  40. package/dist/components/{p-f879f787.js.map → p-1fbab324.js.map} +1 -1
  41. package/dist/components/{p-4691f468.js → p-2e0cfd96.js} +2 -2
  42. package/dist/components/p-2e0cfd96.js.map +1 -0
  43. package/dist/components/{p-b5576b97.js → p-3512fe6a.js} +7 -7
  44. package/dist/components/{p-b5576b97.js.map → p-3512fe6a.js.map} +1 -1
  45. package/dist/components/{p-2264849b.js → p-35b35841.js} +2 -2
  46. package/dist/components/{p-2264849b.js.map → p-35b35841.js.map} +1 -1
  47. package/dist/components/{p-5466fc5a.js → p-39293296.js} +8 -8
  48. package/dist/components/{p-5466fc5a.js.map → p-39293296.js.map} +1 -1
  49. package/dist/components/{p-c05ccf49.js → p-46e831e6.js} +5 -5
  50. package/dist/components/{p-c05ccf49.js.map → p-46e831e6.js.map} +1 -1
  51. package/dist/components/{p-e65b0eed.js → p-4bc33cfc.js} +3 -3
  52. package/dist/components/{p-e65b0eed.js.map → p-4bc33cfc.js.map} +1 -1
  53. package/dist/components/{p-b08d3a1a.js → p-4db65fe1.js} +2 -2
  54. package/dist/components/{p-b08d3a1a.js.map → p-4db65fe1.js.map} +1 -1
  55. package/dist/components/{p-69434b7c.js → p-54fd65eb.js} +24 -24
  56. package/dist/components/p-54fd65eb.js.map +1 -0
  57. package/dist/components/{p-1fb69aad.js → p-60cafcb4.js} +2 -2
  58. package/dist/components/{p-1fb69aad.js.map → p-60cafcb4.js.map} +1 -1
  59. package/dist/components/{p-743b0eef.js → p-67d85dad.js} +9 -9
  60. package/dist/components/{p-743b0eef.js.map → p-67d85dad.js.map} +1 -1
  61. package/dist/components/{p-6931110f.js → p-6c516f0e.js} +8 -8
  62. package/dist/components/{p-6931110f.js.map → p-6c516f0e.js.map} +1 -1
  63. package/dist/components/{p-9ee69e77.js → p-6e5122ec.js} +14 -14
  64. package/dist/components/p-6e5122ec.js.map +1 -0
  65. package/dist/components/{p-7cdfe2dd.js → p-75a2f47c.js} +6 -6
  66. package/dist/components/{p-7cdfe2dd.js.map → p-75a2f47c.js.map} +1 -1
  67. package/dist/components/{p-7ea236af.js → p-79b2dc4c.js} +18 -18
  68. package/dist/components/p-79b2dc4c.js.map +1 -0
  69. package/dist/components/{p-45c9fc1a.js → p-7e4a80fe.js} +2 -2
  70. package/dist/components/{p-45c9fc1a.js.map → p-7e4a80fe.js.map} +1 -1
  71. package/dist/components/{p-b03fcd54.js → p-7efc9876.js} +2 -2
  72. package/dist/components/{p-b03fcd54.js.map → p-7efc9876.js.map} +1 -1
  73. package/dist/components/{p-b2c868e8.js → p-817a3ceb.js} +18 -18
  74. package/dist/components/{p-b2c868e8.js.map → p-817a3ceb.js.map} +1 -1
  75. package/dist/components/{p-e2d35d41.js → p-86737203.js} +2 -2
  76. package/dist/components/{p-e2d35d41.js.map → p-86737203.js.map} +1 -1
  77. package/dist/components/{p-535eaaf3.js → p-8f39a458.js} +2 -2
  78. package/dist/components/{p-535eaaf3.js.map → p-8f39a458.js.map} +1 -1
  79. package/dist/components/{p-374e6d7d.js → p-92fa4a71.js} +4 -4
  80. package/dist/components/{p-374e6d7d.js.map → p-92fa4a71.js.map} +1 -1
  81. package/dist/components/{p-e99ba606.js → p-97116010.js} +8 -7
  82. package/dist/components/p-97116010.js.map +1 -0
  83. package/dist/components/{p-62e7775c.js → p-a028f8c4.js} +6 -6
  84. package/dist/components/{p-62e7775c.js.map → p-a028f8c4.js.map} +1 -1
  85. package/dist/components/{p-54ce65bd.js → p-a0bb98e2.js} +2 -2
  86. package/dist/components/p-a0bb98e2.js.map +1 -0
  87. package/dist/components/{p-a439bc1f.js → p-a637efc4.js} +9 -9
  88. package/dist/components/{p-a439bc1f.js.map → p-a637efc4.js.map} +1 -1
  89. package/dist/components/{p-78ac7ac4.js → p-b014fcaa.js} +3 -3
  90. package/dist/components/{p-78ac7ac4.js.map → p-b014fcaa.js.map} +1 -1
  91. package/dist/components/{p-dae6a25e.js → p-c8264085.js} +5 -5
  92. package/dist/components/{p-dae6a25e.js.map → p-c8264085.js.map} +1 -1
  93. package/dist/components/{p-69b4fec7.js → p-d7a498d5.js} +6 -6
  94. package/dist/components/{p-69b4fec7.js.map → p-d7a498d5.js.map} +1 -1
  95. package/dist/components/{p-d54fd730.js → p-e15c41d8.js} +4 -4
  96. package/dist/components/{p-d54fd730.js.map → p-e15c41d8.js.map} +1 -1
  97. package/dist/components/{p-95681e81.js → p-e17d9197.js} +30 -30
  98. package/dist/components/p-e17d9197.js.map +1 -0
  99. package/dist/components/{p-d7769b81.js → p-e39b1669.js} +3 -3
  100. package/dist/components/{p-d7769b81.js.map → p-e39b1669.js.map} +1 -1
  101. package/dist/components/{p-91e4d0b3.js → p-e3e35266.js} +8 -8
  102. package/dist/components/{p-91e4d0b3.js.map → p-e3e35266.js.map} +1 -1
  103. package/dist/components/{p-a33b0d20.js → p-e8b4925e.js} +4 -4
  104. package/dist/components/{p-a33b0d20.js.map → p-e8b4925e.js.map} +1 -1
  105. package/dist/components/{p-ee2e6e07.js → p-eb425cfd.js} +2 -2
  106. package/dist/components/{p-ee2e6e07.js.map → p-eb425cfd.js.map} +1 -1
  107. package/dist/components/{p-e7ee1dd7.js → p-ec9e0ac7.js} +9 -9
  108. package/dist/components/{p-e7ee1dd7.js.map → p-ec9e0ac7.js.map} +1 -1
  109. package/dist/components/{p-5a23489c.js → p-f1ab93b7.js} +2 -2
  110. package/dist/components/{p-5a23489c.js.map → p-f1ab93b7.js.map} +1 -1
  111. package/dist/components/{p-cfa6e6a8.js → p-f1f48dd3.js} +2 -2
  112. package/dist/components/{p-cfa6e6a8.js.map → p-f1f48dd3.js.map} +1 -1
  113. package/dist/components/{p-300c69b1.js → p-fa06d62b.js} +4 -4
  114. package/dist/components/{p-300c69b1.js.map → p-fa06d62b.js.map} +1 -1
  115. package/dist/components/{p-375d6df8.js → p-fd055140.js} +4 -4
  116. package/dist/components/{p-375d6df8.js.map → p-fd055140.js.map} +1 -1
  117. package/dist/components/smoothly-app-demo.js +50 -50
  118. package/dist/components/smoothly-button-demo-standard.js +1 -1
  119. package/dist/components/smoothly-button-demo.js +1 -1
  120. package/dist/components/smoothly-calendar.js +1 -1
  121. package/dist/components/smoothly-filter-field.js +1 -1
  122. package/dist/components/smoothly-filter-input.js +1 -1
  123. package/dist/components/smoothly-filter-select.js +1 -1
  124. package/dist/components/smoothly-filter.js +1 -1
  125. package/dist/components/smoothly-form-demo-all.js +1 -1
  126. package/dist/components/smoothly-form-demo-card.js +1 -1
  127. package/dist/components/smoothly-form-demo-controlled.js +1 -1
  128. package/dist/components/smoothly-form-demo-date-range.js +1 -1
  129. package/dist/components/smoothly-form-demo-date.js +1 -1
  130. package/dist/components/smoothly-form-demo-login.js +1 -1
  131. package/dist/components/smoothly-form-demo-pet.js +1 -1
  132. package/dist/components/smoothly-form-demo-prices.js +1 -1
  133. package/dist/components/smoothly-form-demo-schedule.js +1 -1
  134. package/dist/components/smoothly-form-demo-transparent.js +1 -1
  135. package/dist/components/smoothly-form-demo-typed.js +1 -1
  136. package/dist/components/smoothly-form-demo.js +1 -1
  137. package/dist/components/smoothly-form.js +1 -1
  138. package/dist/components/smoothly-icon-demo.js +1 -1
  139. package/dist/components/smoothly-input-checkbox-demo.js +15 -15
  140. package/dist/components/smoothly-input-checkbox.js +1 -1
  141. package/dist/components/smoothly-input-clear.js +1 -1
  142. package/dist/components/smoothly-input-color-demo.js +1 -1
  143. package/dist/components/smoothly-input-color.js +1 -1
  144. package/dist/components/smoothly-input-date-demo.js +1 -1
  145. package/dist/components/smoothly-input-date-range.js +1 -1
  146. package/dist/components/smoothly-input-date-time.js +1 -1
  147. package/dist/components/smoothly-input-date.js +1 -1
  148. package/dist/components/smoothly-input-demo-standard.js +1 -1
  149. package/dist/components/smoothly-input-demo-user-input.js +1 -1
  150. package/dist/components/smoothly-input-demo.js +1 -1
  151. package/dist/components/smoothly-input-file.js +1 -1
  152. package/dist/components/smoothly-input-month.js +1 -1
  153. package/dist/components/smoothly-input-price-demo.js +1 -1
  154. package/dist/components/smoothly-input-radio-item.js +1 -1
  155. package/dist/components/smoothly-input-radio.js +1 -1
  156. package/dist/components/smoothly-input-range-demo.js +1 -1
  157. package/dist/components/smoothly-input-range.js +1 -1
  158. package/dist/components/smoothly-input-reset.js +1 -1
  159. package/dist/components/smoothly-input-select.js +1 -1
  160. package/dist/components/smoothly-input.js +1 -1
  161. package/dist/components/smoothly-tab.js +1 -1
  162. package/dist/components/smoothly-table-demo-filtered.js +1 -1
  163. package/dist/components/smoothly-table-demo.js +1 -1
  164. package/dist/components/smoothly-tabs-demo.js +1 -1
  165. package/dist/components/smoothly-theme-colors.js +1 -1
  166. package/dist/components/smoothly-theme-demo.js +1 -1
  167. package/dist/components/smoothly-theme-guide.js +1 -1
  168. package/dist/components/smoothly-theme-picker.js +1 -1
  169. package/dist/esm/smoothly-app_103.entry.js +15 -14
  170. package/dist/esm/smoothly-app_103.entry.js.map +1 -1
  171. package/dist/smoothly/p-a8c45b72.entry.js +2 -0
  172. package/dist/smoothly/p-a8c45b72.entry.js.map +1 -0
  173. package/dist/smoothly/smoothly.esm.js +1 -1
  174. package/dist/types/components/input/InputStateHandler.d.ts +1 -1
  175. package/package.json +1 -1
  176. package/dist/components/p-4691f468.js.map +0 -1
  177. package/dist/components/p-54ce65bd.js.map +0 -1
  178. package/dist/components/p-69434b7c.js.map +0 -1
  179. package/dist/components/p-7ea236af.js.map +0 -1
  180. package/dist/components/p-95681e81.js.map +0 -1
  181. package/dist/components/p-9ee69e77.js.map +0 -1
  182. package/dist/components/p-e99ba606.js.map +0 -1
  183. package/dist/smoothly/p-9ac7adb0.entry.js +0 -2
  184. package/dist/smoothly/p-9ac7adb0.entry.js.map +0 -1
@@ -8663,7 +8663,7 @@ var Input;
8663
8663
  Input.registerSubAction = registerSubAction;
8664
8664
  })(Input || (Input = {}));
8665
8665
 
8666
- const styleCss$13 = "smoothly-form{display:block;position:relative}smoothly-form>form{position:relative}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:min(100%, var(--smoothly-form-input-min-width, 10rem));flex-basis:40%}smoothly-form[looks=\"line\"]>form>fieldset,smoothly-form[looks=\"border\"]>form>fieldset,smoothly-form[looks=\"transparent\"]>form>fieldset{row-gap:var(--smoothly-form-row-gap, 2rem);column-gap:var(--smoothly-form-column-gap, 2rem)}smoothly-form[looks=\"grid\"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:1.5rem}";
8666
+ const styleCss$13 = "smoothly-form{display:block;position:relative}smoothly-form>form{position:relative}smoothly-form>form>fieldset{display:flex;flex-flow:row wrap;margin-inline-start:unset;margin-inline-end:unset;padding-block-start:unset;padding-inline-start:unset;padding-inline-end:unset;padding-block-end:unset;min-inline-size:unset;border-width:unset;border-style:unset;border-color:unset;border-image:unset}smoothly-form>form>fieldset>*{flex-grow:1;min-width:min(100%, var(--smoothly-form-input-min-width, 14rem));flex-basis:40%}smoothly-form[looks=\"line\"]>form>fieldset,smoothly-form[looks=\"border\"]>form>fieldset,smoothly-form[looks=\"transparent\"]>form>fieldset{row-gap:var(--smoothly-form-row-gap, 2rem);column-gap:var(--smoothly-form-column-gap, 2rem)}smoothly-form[looks=\"grid\"]>form>fieldset{padding:1px;gap:1px}smoothly-form>form>div:not(:empty){display:flex;justify-content:end;gap:1em;margin-top:1.5rem}";
8667
8667
  const SmoothlyFormStyle0 = styleCss$13;
8668
8668
 
8669
8669
  const SmoothlyForm = class {
@@ -8838,7 +8838,7 @@ const SmoothlyForm = class {
8838
8838
  };
8839
8839
  SmoothlyForm.style = SmoothlyFormStyle0;
8840
8840
 
8841
- const styleCss$12 = ".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:100%}";
8841
+ const styleCss$12 = ".sc-smoothly-form-demo-h{display:flex;margin-top:2em;margin-bottom:10em}.sc-smoothly-form-demo-h>div.sc-smoothly-form-demo{margin:auto;width:1200px;max-width:calc(100% - 0.5rem)}";
8842
8842
  const SmoothlyFormDemoStyle0 = styleCss$12;
8843
8843
 
8844
8844
  const SmoothlyFormDemo = class {
@@ -9423,13 +9423,15 @@ class InputStateHandler {
9423
9423
  toString(value) {
9424
9424
  return this.formatter.toString(value);
9425
9425
  }
9426
- initialState(value) {
9426
+ initialState(value, inputElement) {
9427
9427
  const stringValue = this.toString(value) || "";
9428
9428
  const start = stringValue.length;
9429
9429
  const state = this.createFormattedState({
9430
9430
  value: stringValue,
9431
9431
  selection: { start, end: start, direction: "none" },
9432
9432
  });
9433
+ if (inputElement)
9434
+ inputElement.value = state.value;
9433
9435
  return state;
9434
9436
  }
9435
9437
  setValue(inputElement, formattedState, value) {
@@ -9578,8 +9580,7 @@ const SmoothlyInput = class {
9578
9580
  this.stateHandler = InputStateHandler.create(this.type, getLocale());
9579
9581
  break;
9580
9582
  }
9581
- this.state = this.stateHandler.initialState((_a = this.value) !== null && _a !== void 0 ? _a : (_b = this.state) === null || _b === void 0 ? void 0 : _b.value);
9582
- this.inputElement && (this.state = this.stateHandler.setValue(this.inputElement, this.state, this.value));
9583
+ this.state = this.stateHandler.initialState((_a = this.value) !== null && _a !== void 0 ? _a : (_b = this.state) === null || _b === void 0 ? void 0 : _b.value, this.inputElement);
9583
9584
  }
9584
9585
  stateChange() {
9585
9586
  const value = this.stateHandler.getValue(this.state);
@@ -9626,7 +9627,7 @@ const SmoothlyInput = class {
9626
9627
  }
9627
9628
  render() {
9628
9629
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
9629
- return (index.h(index.Host, { key: '1504c02e41ccb51d4a77b460eef9312dc89cc6e2', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '3c04573eb3f0d4d4557aeadd7bf5fb46999c49bd', name: "start" }), index.h("div", { key: 'd7470f23286de6eedce69cbf40cf6bcd45a84d4d', class: "smoothly-input-container" }, index.h("div", { key: 'b0b1b0d3ff66bb3e07cfad1835365b2ee91d77bd', class: "guide" }, index.h("div", { key: '2ae60ed4f2fc95717d02ee53e24a621cb4b6d9d4', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: '959c18357072e8bfeadc5678055804d1157e93b7', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: 'be47e5c74932b40e4a72b81ceedb766c407df9ee', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: async (event) => {
9630
+ return (index.h(index.Host, { key: 'ca37908f1857547c5ba7a20c512838c22e1c00c7', class: { "has-value": ((_a = this.state) === null || _a === void 0 ? void 0 : _a.value) != undefined && ((_b = this.state) === null || _b === void 0 ? void 0 : _b.value) != "" }, onclick: () => { var _a; return (_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus(); } }, index.h("slot", { key: '8471966b187be0553c20aa74e94e3c524135aaba', name: "start" }), index.h("div", { key: '1aaa00ac29eea6aff4274a5ed182c9e88ecee91e', class: "smoothly-input-container" }, index.h("div", { key: '87e8dff38036d15be674c37b2aaa1b144bedd68d', class: "guide" }, index.h("div", { key: '265330f23f44613d4e82424403743aa47e1fa40f', class: "value" }, (_c = this.state) === null || _c === void 0 ? void 0 : _c.value), index.h("div", { key: 'b75d05e13da01ec15891e7710c7edf4d6f3eafed', class: "remainder" }, (_d = this.state) === null || _d === void 0 ? void 0 : _d.remainder)), index.h("input", { key: '0efb5ac9aa0f1ba043bc66e27b7367b22a05866e', ref: (el) => (this.inputElement = el), color: this.color, name: this.name, type: (_e = this.state) === null || _e === void 0 ? void 0 : _e.type, inputmode: (_f = this.state) === null || _f === void 0 ? void 0 : _f.inputmode, placeholder: this.placeholder, required: this.required, autocomplete: (_g = this.autocomplete) !== null && _g !== void 0 ? _g : (_h = this.state) === null || _h === void 0 ? void 0 : _h.autocomplete, disabled: this.disabled, readOnly: this.readonly, pattern: ((_j = this.state) === null || _j === void 0 ? void 0 : _j.pattern) && ((_k = this.state) === null || _k === void 0 ? void 0 : _k.pattern.source), onKeyDown: async (event) => {
9630
9631
  this.state = this.stateHandler.onKeyDown(event, this.state);
9631
9632
  if (!this.readonly && !this.disabled)
9632
9633
  this.smoothlyKeydown.emit(Key.create(this.name, event));
@@ -9641,7 +9642,7 @@ const SmoothlyInput = class {
9641
9642
  this.smoothlyUserInput.emit({ name: this.name, value: this.stateHandler.getValue(this.state) });
9642
9643
  }
9643
9644
  }
9644
- } }), index.h("label", { key: '425aaa1a834f34a84281baa70be849bf33cef154', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: '6f2e73b7ae197590656f28dcab0d704a00b5c3cd' }))), this.copyable && this.value && (index.h("span", { key: '4eec70effb0c227efc7873415b6727e89b875d33', class: "copyable" }, index.h("small", { key: '00ec0857d066d900f080038cd70cfc8b6c8c32ab' }, this.copied ? "Copied!" : "Copy"), index.h("smoothly-icon", { key: '440f0bb891b39792018950d9d50135b4f611aaf0', name: "copy-outline", size: "small", onClick: () => this.copyText(this.value), onMouseLeave: () => (this.copied = false) }))), index.h("smoothly-icon", { key: 'f59e0124afd354729822fb95809fd14d8919ef34', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", tooltip: this.errorMessage }), index.h("slot", { key: 'f07452e2793d65cad5b8b2a935ceea318182115e', name: "end" })));
9645
+ } }), index.h("label", { key: '9544ecc7dabdd5a7500e6cdc436a8ea811ed1dfc', class: "label float-on-focus", htmlFor: this.name }, index.h("slot", { key: 'a9ac68c9ce32a78ac549ac6ca0e5e0af61b4df27' }))), this.copyable && this.value && (index.h("span", { key: '472fed6ffedddb52f3f62050d3a1efcabb66db6f', class: "copyable" }, index.h("small", { key: '0b31de55c8fdee49662493eedecd145265efed26' }, this.copied ? "Copied!" : "Copy"), index.h("smoothly-icon", { key: '1897225b26a2644967de560d09b9a69ae05c4e22', name: "copy-outline", size: "small", onClick: () => this.copyText(this.value), onMouseLeave: () => (this.copied = false) }))), index.h("smoothly-icon", { key: '0b39d127f197daf02a4da12adcbfa590bb0ab7ba', class: "smoothly-invalid", name: "alert-circle", color: "danger", fill: "clear", size: "small", tooltip: this.errorMessage }), index.h("slot", { key: '35f89df18ba1d68b987eaf7a8da3714582a2201c', name: "end" })));
9645
9646
  }
9646
9647
  get element() { return index.getElement(this); }
9647
9648
  static get watchers() { return {
@@ -10448,7 +10449,7 @@ const SmoothlyInputDateTime = class {
10448
10449
  };
10449
10450
  SmoothlyInputDateTime.style = SmoothlyInputDateTimeStyle0;
10450
10451
 
10451
- const styleCss$O = ".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}.sc-smoothly-input-demo-h .select-div-row.sc-smoothly-input-demo{display:flex}.sc-smoothly-input-demo-h .select-div-row.sc-smoothly-input-demo smoothly-input.sc-smoothly-input-demo{flex:1}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{margin:auto;width:50%}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;justify-content:space-between;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>smoothly-color.sc-smoothly-input-demo>*.sc-smoothly-input-demo,.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-basis:49%}";
10452
+ const styleCss$O = ".sc-smoothly-input-demo-h{display:flex;flex-direction:column;margin-top:2em;margin-bottom:10rem}.sc-smoothly-input-demo-h .select-div-row.sc-smoothly-input-demo{display:flex}.sc-smoothly-input-demo-h .select-div-row.sc-smoothly-input-demo smoothly-input.sc-smoothly-input-demo{flex:1}smoothly-input-demo-standard.sc-smoothly-input-demo{margin-bottom:2rem}div.inputs.sc-smoothly-input-demo{max-width:min(calc(100% - 2rem), 56rem);margin:auto}div.inputs.sc-smoothly-input-demo>h2.sc-smoothly-input-demo:not(:first-child){padding-top:3em;margin-top:3em;border-top:1px solid black}.checkbox-group.sc-smoothly-input-demo{display:flex;gap:1.5em;align-items:center;background-color:rgb(var(--smoothly-input-background))}.select-div.sc-smoothly-input-demo{display:flex;gap:1em;flex-wrap:wrap}.select-div.sc-smoothly-input-demo>*.sc-smoothly-input-demo{flex-grow:1;min-width:min(100%, var(--smoothly-form-input-min-width, 18rem));flex-basis:40%}";
10452
10453
  const SmoothlyInputDemoStyle0 = styleCss$O;
10453
10454
 
10454
10455
  const SmoothlyInputDemo = class {
@@ -10472,7 +10473,7 @@ const SmoothlyInputDemo = class {
10472
10473
  };
10473
10474
  SmoothlyInputDemo.style = SmoothlyInputDemoStyle0;
10474
10475
 
10475
- const styleCss$N = ".sc-smoothly-input-demo-standard-h{width:50%;margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}.sc-smoothly-input-demo-standard-h smoothly-input-range[name=borderRadius].sc-smoothly-input-demo-standard{flex-basis:100%}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:2fr 1fr;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:\"hello\"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:\"\";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}";
10476
+ const styleCss$N = ".sc-smoothly-input-demo-standard-h{max-width:min(calc(100% - 0.5rem), 48rem);margin:auto}.sc-smoothly-input-demo-standard-h h2.sc-smoothly-input-demo-standard,.sc-smoothly-input-demo-standard-h p.sc-smoothly-input-demo-standard{margin:.5rem 0}.sc-smoothly-input-demo-standard-h>.description.sc-smoothly-input-demo-standard{--smoothly-form-input-min-width:18rem}.sc-smoothly-input-demo-standard-h smoothly-input-range[name=borderRadius].sc-smoothly-input-demo-standard{flex-basis:100%}div.input-wrapper.sc-smoothly-input-demo-standard{display:grid;margin-top:1rem;grid-template-columns:1fr 9rem;gap:1rem;position:relative;justify-content:space-around}div.input-wrapper.sc-smoothly-input-demo-standard>[name].sc-smoothly-input-demo-standard{grid-column:1 / 2}div.input-wrapper.sc-smoothly-input-demo-standard>.width.sc-smoothly-input-demo-standard{width:100%;text-align:center;border-bottom:1px dashed black}div.input-wrapper.sc-smoothly-input-demo-standard>.height.sc-smoothly-input-demo-standard{align-content:center;grid-column:2 / 3;border-left:1px dashed black;padding-left:1rem;content:\"hello\"}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard{width:0.5rem;grid-column:1 / 2;white-space:nowrap;overflow:visible;position:relative;cursor:default}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard::before{content:\"\";position:absolute;width:100%;top:1.5rem;bottom:-1rem;border:1px dashed black;z-index:2}div.input-wrapper.sc-smoothly-input-demo-standard>.left-padding.sc-smoothly-input-demo-standard:hover::before{bottom:-100vh}";
10476
10477
  const SmoothlyInputDemoStandardStyle0 = styleCss$N;
10477
10478
 
10478
10479
  const SmoothlyInputDemoStandard = class {
@@ -10501,7 +10502,7 @@ const SmoothlyInputDemoStandard = class {
10501
10502
  };
10502
10503
  SmoothlyInputDemoStandard.style = SmoothlyInputDemoStandardStyle0;
10503
10504
 
10504
- const styleCss$M = ".sc-smoothly-input-demo-user-input-h{max-width:min(100%, 56rem);margin-inline:auto;display:grid;grid-template-columns:12rem 1fr;gap:1rem}.sc-smoothly-input-demo-user-input-h>div.sc-smoothly-input-demo-user-input{grid-column:1 / -1}";
10505
+ const styleCss$M = ".sc-smoothly-input-demo-user-input-h{max-width:min(100%, 56rem);margin-inline:auto;display:grid;grid-template-columns:12rem 1fr;gap:1rem}.sc-smoothly-input-demo-user-input-h>div.sc-smoothly-input-demo-user-input{grid-column:1 / -1}@media (max-width: 48rem){.sc-smoothly-input-demo-user-input-h{grid-template-columns:1fr}}";
10505
10506
  const SmoothlyInputDemoUserInputStyle0 = styleCss$M;
10506
10507
 
10507
10508
  const SmoothlyInputDemoUserInput = class {
@@ -13444,7 +13445,7 @@ const SmoothlyThemeColorVariant = class {
13444
13445
  };
13445
13446
  SmoothlyThemeColorVariant.style = SmoothlyThemeColorVariantStyle0;
13446
13447
 
13447
- const styleCss$6 = ".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1em;column-gap:1em;width:fit-content}";
13448
+ const styleCss$6 = ".sc-smoothly-theme-colors-h{display:grid;grid-template-columns:repeat(3, 1fr);row-gap:1rem;column-gap:0.5rem;width:fit-content}";
13448
13449
  const SmoothlyThemeColorsStyle0 = styleCss$6;
13449
13450
 
13450
13451
  const SmoothlyThemeColors$1 = class {
@@ -13468,7 +13469,7 @@ const SmoothlyThemeColors$1 = class {
13468
13469
  };
13469
13470
  SmoothlyThemeColors$1.style = SmoothlyThemeColorsStyle0;
13470
13471
 
13471
- const styleCss$5 = ".sc-smoothly-theme-demo-h{display:flex;width:50%;margin:auto;flex-direction:column;gap:2em;margin-top:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>span.sc-smoothly-theme-demo{display:flex;flex-direction:row;gap:10em}";
13472
+ const styleCss$5 = ".sc-smoothly-theme-demo-h{max-width:min(calc(100% - 2rem), 56rem);margin:auto;display:flex;flex-direction:column;gap:2em;margin-top:2em}.sc-smoothly-theme-demo-h>smoothly-theme-picker.sc-smoothly-theme-demo{width:20em}.sc-smoothly-theme-demo-h>div.sc-smoothly-theme-demo{display:flex;flex-direction:row;justify-content:space-between;gap:1rem}";
13472
13473
  const SmoothlyThemeDemoStyle0 = styleCss$5;
13473
13474
 
13474
13475
  const SmoothlyThemeDemo = class {
@@ -13476,12 +13477,12 @@ const SmoothlyThemeDemo = class {
13476
13477
  index.registerInstance(this, hostRef);
13477
13478
  }
13478
13479
  render() {
13479
- return (index.h(index.Host, { key: 'f3a9bce2ea9ea921ddc0cdd0af59f278be0808fa' }, index.h("h2", { key: '0cde0c59c478d9793c78277783ddca18a2c46dd6' }, "Theme"), index.h("smoothly-theme-picker", { key: 'cb06e7228d22bfc7fa5231b38ccb5bd281026751' }, index.h("smoothly-item", { key: '37a46c34ec4767c282487d34c0178ac96d4f0a27', selected: true, value: "assets/style/smoothly.css" }, "Smoothly"), index.h("smoothly-item", { key: '961b69baea8b3760c095834bd8604d93ae1e3c74', value: "https://app.issuefab.com/assets/style/index.css" }, "Issuefab"), index.h("smoothly-item", { key: '23989e21f124308a39da7e657726916184e5ab72', value: "https://app.proquse.com/assets/style/index.css" }, "Proquse"), index.h("smoothly-item", { key: '93ffa3949d02f68f7a7dfa5f79b351a8eb8b7f56', value: "https://app.weekmeter.com/assets/style/index.css" }, "Weekmeter"), index.h("smoothly-item", { key: '98bc1c21a725ae552e75e7133b32406c15c21c5b', value: "https://dash.pax2pay.app/p2pdash.css" }, "Pax2Pay Dashboard"), index.h("smoothly-item", { key: '73481eca7b2759efa8ed022eda4d9ff4388e8068', value: "https://ui.pax2pay.app/assets/style/pax2pay.css" }, "Pax2Pay Portal"), index.h("smoothly-item", { key: '9402ca492b8d2f7671bd6134f4bc89d0ea2da416', value: "https://theme.payfunc.com/intergiro/index.css" }, "Intergiro Monitor"), index.h("smoothly-item", { key: '6e1e73a3d57216f482d5dc2d8054374c0501b33d', value: "https://theme.payfunc.com/light/index.css" }, "Payfunc Light"), index.h("smoothly-item", { key: '71d27357073891f1bb129289464955dc85458e96', value: "https://theme.payfunc.com/dark/index.css" }, "Payfunc Dark")), index.h("span", { key: 'abf005c54cf96f66cedbe5a407b6bcb6c9362c34' }, index.h("smoothly-theme-colors", { key: '9efd5049331fcf93907122e74a3ab0c82bc67aa2' }), index.h("smoothly-theme-guide", { key: '60e3b296b89f628e3e0f180c450f7186e5295286' })), index.h("smoothly-button", { key: '0bbc0d57c16f3171172f4cc5a1b5f6d2ebc9d9c6', type: "link", link: "/redirect" }, "To redirect"), index.h("smoothly-button", { key: '5f52fb18a8c0ceb9b8fc280e04adbb838a8a41b2', type: "link", link: "/redirect" }, "To /redirect"), index.h("smoothly-button", { key: 'faf14655d01668c8cebec6968bb4d0b67c2bc4f1', type: "link", link: new URL("/redirect", window.location.origin).href }, "To new URL(\"redirect\")"), index.h("smoothly-button", { key: '763387d9b3f7960b6dc0a69031296a23ef793f77', type: "link", link: "redirect/nested" }, "To redirect nested")));
13480
+ return (index.h(index.Host, { key: 'f3a9bce2ea9ea921ddc0cdd0af59f278be0808fa' }, index.h("h2", { key: '0cde0c59c478d9793c78277783ddca18a2c46dd6' }, "Theme"), index.h("smoothly-theme-picker", { key: 'cb06e7228d22bfc7fa5231b38ccb5bd281026751' }, index.h("smoothly-item", { key: '37a46c34ec4767c282487d34c0178ac96d4f0a27', selected: true, value: "assets/style/smoothly.css" }, "Smoothly"), index.h("smoothly-item", { key: '961b69baea8b3760c095834bd8604d93ae1e3c74', value: "https://app.issuefab.com/assets/style/index.css" }, "Issuefab"), index.h("smoothly-item", { key: '23989e21f124308a39da7e657726916184e5ab72', value: "https://app.proquse.com/assets/style/index.css" }, "Proquse"), index.h("smoothly-item", { key: '93ffa3949d02f68f7a7dfa5f79b351a8eb8b7f56', value: "https://app.weekmeter.com/assets/style/index.css" }, "Weekmeter"), index.h("smoothly-item", { key: '98bc1c21a725ae552e75e7133b32406c15c21c5b', value: "https://dash.pax2pay.app/p2pdash.css" }, "Pax2Pay Dashboard"), index.h("smoothly-item", { key: '73481eca7b2759efa8ed022eda4d9ff4388e8068', value: "https://ui.pax2pay.app/assets/style/pax2pay.css" }, "Pax2Pay Portal"), index.h("smoothly-item", { key: '9402ca492b8d2f7671bd6134f4bc89d0ea2da416', value: "https://theme.payfunc.com/intergiro/index.css" }, "Intergiro Monitor"), index.h("smoothly-item", { key: '6e1e73a3d57216f482d5dc2d8054374c0501b33d', value: "https://theme.payfunc.com/light/index.css" }, "Payfunc Light"), index.h("smoothly-item", { key: '71d27357073891f1bb129289464955dc85458e96', value: "https://theme.payfunc.com/dark/index.css" }, "Payfunc Dark")), index.h("div", { key: '15d5aab8433956d0a159c42cd702607c6df2cda7' }, index.h("smoothly-theme-colors", { key: '77b4c95e2e8761a9703601c3a890342a791559a3' }), index.h("smoothly-theme-guide", { key: 'ff190b0fba8f600ad5774743b287088e519cb28f' })), index.h("smoothly-button", { key: 'd75520d40a986fe09897fd50e0244d039ceca933', type: "link", link: "/redirect" }, "To redirect"), index.h("smoothly-button", { key: '6db6194c220c2906ee8a5f3d5ed9b9e97d7ff9ec', type: "link", link: "/redirect" }, "To /redirect"), index.h("smoothly-button", { key: 'a0f9cba373c1a31ee5997a64f07dfa84e82f273e', type: "link", link: new URL("/redirect", window.location.origin).href }, "To new URL(\"redirect\")"), index.h("smoothly-button", { key: '26987f874341cebb9742beeff94e830ab569dd2c', type: "link", link: "redirect/nested" }, "To redirect nested")));
13480
13481
  }
13481
13482
  };
13482
13483
  SmoothlyThemeDemo.style = SmoothlyThemeDemoStyle0;
13483
13484
 
13484
- const styleCss$4 = "";
13485
+ const styleCss$4 = ".sc-smoothly-theme-guide-h{max-width:50ch}";
13485
13486
  const SmoothlyThemeGuideStyle0 = styleCss$4;
13486
13487
 
13487
13488
  const SmoothlyThemeColors = class {