@roadtrip/components 3.27.0 → 3.29.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 (61) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/road-badge_14.cjs.entry.js +44 -13
  3. package/dist/cjs/road-badge_14.cjs.entry.js.map +1 -1
  4. package/dist/cjs/road-phone-number-input.cjs.entry.js +1 -1
  5. package/dist/cjs/road-phone-number-input.cjs.entry.js.map +1 -1
  6. package/dist/cjs/road-tab-button.cjs.entry.js +6 -4
  7. package/dist/cjs/road-tab-button.cjs.entry.js.map +1 -1
  8. package/dist/cjs/road-toggle.cjs.entry.js +3 -2
  9. package/dist/cjs/road-toggle.cjs.entry.js.map +1 -1
  10. package/dist/cjs/roadtrip.cjs.js +1 -1
  11. package/dist/collection/components/button/button.css +42 -2
  12. package/dist/collection/components/button/button.stories.js +13 -1
  13. package/dist/collection/components/drawer/drawer.css +8 -0
  14. package/dist/collection/components/input/input.js +13 -2
  15. package/dist/collection/components/input/input.js.map +1 -1
  16. package/dist/collection/components/input-group/input-group.css +67 -12
  17. package/dist/collection/components/input-group/input-group.js +55 -8
  18. package/dist/collection/components/input-group/input-group.js.map +1 -1
  19. package/dist/collection/components/input-group/input-group.stories.js +25 -15
  20. package/dist/collection/components/phone-number-input/phone-number-input.js +1 -1
  21. package/dist/collection/components/phone-number-input/phone-number-input.js.map +1 -1
  22. package/dist/collection/components/tab-button/tab-button.css +19 -2
  23. package/dist/collection/components/tab-button/tab-button.js +23 -3
  24. package/dist/collection/components/tab-button/tab-button.js.map +1 -1
  25. package/dist/collection/components/toggle/toggle.css +4 -0
  26. package/dist/collection/components/toggle/toggle.js +2 -1
  27. package/dist/collection/components/toggle/toggle.js.map +1 -1
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/esm/road-badge_14.entry.js +44 -13
  30. package/dist/esm/road-badge_14.entry.js.map +1 -1
  31. package/dist/esm/road-phone-number-input.entry.js +1 -1
  32. package/dist/esm/road-phone-number-input.entry.js.map +1 -1
  33. package/dist/esm/road-tab-button.entry.js +6 -4
  34. package/dist/esm/road-tab-button.entry.js.map +1 -1
  35. package/dist/esm/road-toggle.entry.js +3 -2
  36. package/dist/esm/road-toggle.entry.js.map +1 -1
  37. package/dist/esm/roadtrip.js +1 -1
  38. package/dist/html.html-data.json +10 -1
  39. package/dist/roadtrip/p-1115f970.entry.js +2 -0
  40. package/dist/roadtrip/p-1115f970.entry.js.map +1 -0
  41. package/dist/roadtrip/p-2e7d3440.entry.js +2 -0
  42. package/dist/roadtrip/p-2e7d3440.entry.js.map +1 -0
  43. package/dist/roadtrip/p-37563bb6.entry.js +2 -0
  44. package/dist/roadtrip/p-37563bb6.entry.js.map +1 -0
  45. package/dist/roadtrip/{p-026e28b6.entry.js → p-8ac960ce.entry.js} +2 -2
  46. package/dist/roadtrip/{p-026e28b6.entry.js.map → p-8ac960ce.entry.js.map} +1 -1
  47. package/dist/roadtrip/roadtrip.css +1 -1
  48. package/dist/roadtrip/roadtrip.esm.js +1 -1
  49. package/dist/roadtrip/roadtrip.esm.js.map +1 -1
  50. package/dist/types/components/input/input.d.ts +1 -0
  51. package/dist/types/components/input-group/input-group.d.ts +7 -1
  52. package/dist/types/components/tab-button/tab-button.d.ts +4 -0
  53. package/dist/types/components.d.ts +16 -0
  54. package/hydrate/index.js +58 -21
  55. package/package.json +1 -1
  56. package/dist/roadtrip/p-0dbf612d.entry.js +0 -2
  57. package/dist/roadtrip/p-0dbf612d.entry.js.map +0 -1
  58. package/dist/roadtrip/p-430e6759.entry.js +0 -2
  59. package/dist/roadtrip/p-430e6759.entry.js.map +0 -1
  60. package/dist/roadtrip/p-c1dca3cc.entry.js +0 -2
  61. package/dist/roadtrip/p-c1dca3cc.entry.js.map +0 -1
@@ -1387,7 +1387,7 @@ const RoadPhoneNumberInput = class {
1387
1387
  const valueId = selectId + '-value';
1388
1388
  const isInvalidClass = this.errorMessage.length ? 'is-invalid' : '';
1389
1389
  const isErrorClass = this.errorMessage.length ? 'is-error' : '';
1390
- return (h(Host, null, h("road-input-group", null, h("div", { class: `road-phone-input-select ${isErrorClass}`, slot: "prepend" }, h("select", { id: 'phone-number-input', class: `form-select-area has-value ${isInvalidClass}`, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled, onChange: (event) => this.handleSelect(event), "aria-label": this.codeLabel, tabIndex: this.disabled ? -1 : 0 }, this.countryOptions && this.countryOptions.map(option => (h("option", { value: option.value, disabled: option.disabled, selected: option.selected }, option.label)))), h("label", { class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), h("label", { class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), h("road-input", { id: "phone-number", sizes: "xl", label: this.phoneLabel, value: this.phoneValue, onRoadChange: (event) => this.handleInput(event), required: this.required, error: this.errorMessage, onKeyDown: (event) => this.handleKeyDown(event), tabIndex: 0 }))));
1390
+ return (h(Host, null, h("road-input-group", null, h("div", { class: `road-phone-input-select ${isErrorClass}`, slot: "prepend" }, h("select", { id: 'phone-number-input', class: `form-select-area has-value ${isInvalidClass}`, "aria-disabled": this.disabled ? 'true' : null, disabled: this.disabled, onChange: (event) => this.handleSelect(event), "aria-label": this.codeLabel, tabIndex: this.disabled ? -1 : 0 }, this.countryOptions && this.countryOptions.map(option => (h("option", { value: option.value, disabled: option.disabled, selected: option.selected }, option.label)))), h("label", { class: "form-select-area-label", id: labelId, htmlFor: selectId }, this.codeLabel), h("label", { class: "form-select-area-value", id: valueId, htmlFor: selectId }, "+", this.selectedCountryCode)), h("road-input", { type: "tel", id: "phone-number", sizes: "xl", label: this.phoneLabel, value: this.phoneValue, onRoadChange: (event) => this.handleInput(event), required: this.required, error: this.errorMessage, onKeyDown: (event) => this.handleKeyDown(event), tabIndex: 0 }))));
1391
1391
  }
1392
1392
  get el() { return getElement(this); }
1393
1393
  static get watchers() { return {