smoothly 1.0.0-alpha.49 → 1.0.0-alpha.50

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.
@@ -27999,9 +27999,9 @@ const SmoothlyInputDemo = class {
27999
27999
  index.h("h4", null, "Smoothly checkboxes"),
28000
28000
  index.h("smoothly-form", null, index.h("div", null, index.h("smoothly-checkbox", null, "Check me", index.h("div", { slot: "expansion" }, "Some context")), index.h("smoothly-checkbox", null, "Label"), index.h("smoothly-checkbox", { disabled: true }))),
28001
28001
  index.h("h4", null, "Smoothly Radio Buttons"),
28002
- index.h("smoothly-form", null, index.h("smoothly-radio-button", { deselectable: true, decoration: "button" }, index.h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" } }, "Option 1", index.h("div", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, "Option 2", index.h("div", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, "Option 3", index.h("div", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))),
28002
+ index.h("smoothly-form", { onSmoothlyFormSubmit: e => console.log(e.detail) }, index.h("smoothly-radio-button", { name: "radioButtonDemo", deselectable: true, decoration: "button" }, index.h("smoothly-radio-button-item", { value: "test" }, "Option 1", index.h("div", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" } }, "Option 2", index.h("div", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" } }, "Option 3", index.h("div", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))),
28003
28003
  index.h("h4", null, "Radio List without button 1"),
28004
- index.h("smoothly-form", null, index.h("smoothly-radio-button", null, index.h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true, color: "light" }, index.h("span", null, "Option 1"), index.h("span", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, color: "light" }, index.h("span", null, "Option 2"), index.h("span", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" }, color: "light" }, index.h("span", null, "Option 3"), index.h("span", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))),
28004
+ index.h("smoothly-form", null, index.h("smoothly-radio-button", { name: "RadioListWithoutButton" }, index.h("smoothly-radio-button-item", { value: { some: "content", yes: "sir" }, selected: true, color: "light" }, index.h("span", null, "Option 1"), index.h("span", { slot: "expansion" }, "Some description.")), index.h("smoothly-radio-button-item", { value: { some: "thing", yes: "miss" }, color: "light" }, index.h("span", null, "Option 2"), index.h("span", { slot: "expansion" }, "Some other description.")), index.h("smoothly-radio-button-item", { value: { some: "one", yes: "kid" }, color: "light" }, index.h("span", null, "Option 3"), index.h("span", { slot: "expansion" }, "Some third description."))), index.h("smoothly-submit", { slot: "submit", color: "success", fill: "solid", size: "icon" }, index.h("smoothly-icon", { name: "checkmark-circle" }))),
28005
28005
  index.h("h4", null, "Radio List without button 2"),
28006
28006
  index.h("smoothly-form", null, index.h("smoothly-radio", { name: "option", value: "1", style: { width: "100%" } }, "option 1"), index.h("smoothly-radio", { name: "option", value: "2", checked: true, style: { width: "100%" } }, "option 2"), index.h("smoothly-radio", { name: "option", value: "3", style: { width: "100%" } }, "option 3")),
28007
28007
  index.h("h4", null, "Smoothly Accordion"),
@@ -28609,7 +28609,8 @@ const styleCss$k = ".sc-smoothly-radio-button-h{display:block}";
28609
28609
  const SmoothlyRadioButton = class {
28610
28610
  constructor(hostRef) {
28611
28611
  index.registerInstance(this, hostRef);
28612
- this.radioButtonSelected = index.createEvent(this, "radioButtonSelected", 7);
28612
+ this.smoothlyInput = index.createEvent(this, "smoothlyInput", 7);
28613
+ this.smoothlyChange = index.createEvent(this, "smoothlyChange", 7);
28613
28614
  this.name = undefined;
28614
28615
  this.value = undefined;
28615
28616
  this.deselectable = undefined;
@@ -28620,9 +28621,11 @@ const SmoothlyRadioButton = class {
28620
28621
  if (this.deselectable || ((_a = this.active) === null || _a === void 0 ? void 0 : _a.value) != event.detail.value) {
28621
28622
  (_b = this.active) === null || _b === void 0 ? void 0 : _b.select(false);
28622
28623
  this.active = event.detail;
28623
- this.radioButtonSelected.emit({
28624
- name: this.name,
28625
- value: (this.value = this.active.selected ? this.active.value : undefined),
28624
+ this.smoothlyInput.emit({
28625
+ [this.name]: (this.value = this.active.selected ? this.active.value : undefined),
28626
+ });
28627
+ this.smoothlyChange.emit({
28628
+ [this.name]: (this.value = this.active.selected ? this.active.value : undefined),
28626
28629
  });
28627
28630
  this.active.select(this.active.selected);
28628
28631
  }