Skip to content

Commit 3506827

Browse files
committed
refactor: controllable instead of changeHandler
1 parent f142718 commit 3506827

File tree

22 files changed

+25
-25
lines changed

22 files changed

+25
-25
lines changed

packages/evo-marko/src/tags/evo-accordion/accordion.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default {
5050
},
5151
},
5252
open: {
53-
changeHandler: true,
53+
controllable: true,,
5454
control: "number",
5555
description:
5656
"The index or indices of the open items. Pass a number if only one may be open at a time, or an array for multiple",

packages/evo-marko/src/tags/evo-checkbox/checkbox.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
},
3333
checked: {
3434
type: "boolean",
35-
changeHandler: true,
35+
controllable: true,,
3636
control: "boolean",
3737
description: "The native `checked=` value of the `<input>`",
3838
},

packages/evo-marko/src/tags/evo-details/details.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default {
4141
},
4242
open: {
4343
type: "boolean",
44-
changeHandler: true,
44+
controllable: true,,
4545
description: "Whether details is open",
4646
table: { defaultValue: { summary: "false" } },
4747
},

packages/evo-marko/src/tags/evo-file-preview-card-group/file-preview-card-group.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default {
3939
},
4040
},
4141
visibleCardCount: {
42-
changeHandler: true,
42+
controllable: true,,
4343
type: "number",
4444
control: "number",
4545
description:

packages/evo-marko/src/tags/evo-filter-chip/filter-chip.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222

2323
argTypes: {
2424
selected: {
25-
changeHandler: true,
25+
controllable: true,,
2626
type: "boolean",
2727
control: "boolean",
2828
description: "Selected state of the chip",
@@ -48,7 +48,7 @@ export default {
4848
},
4949
},
5050
expanded: {
51-
changeHandler: true,
51+
controllable: true,,
5252
type: "boolean",
5353
control: "boolean",
5454
description:

packages/evo-marko/src/tags/evo-infotip/infotip.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626

2727
argTypes: {
2828
open: {
29-
changeHandler: true,
29+
controllable: true,,
3030
type: "boolean",
3131
control: "boolean",
3232
description: "Whether the infotip is open.",

packages/evo-marko/src/tags/evo-listbox-button/listbox-button.stories.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export default {
2424

2525
argTypes: {
2626
selected: {
27-
changeHandler: true,
27+
controllable: true,,
2828
type: "string",
2929
control: "text",
3030
description:
3131
"The selected item in the list. Checks for equality with `value` in each `@option`",
3232
},
3333
open: {
34-
changeHandler: true,
34+
controllable: true,,
3535
type: "boolean",
3636
control: "boolean",
3737
description: "Allows control over the open state of the listbox",

packages/evo-marko/src/tags/evo-listbox/listbox.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222

2323
argTypes: {
2424
selected: {
25-
changeHandler: true,
25+
controllable: true,,
2626
type: "string",
2727
control: "text",
2828
description:

packages/evo-marko/src/tags/evo-menu-button/menu-button.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232

3333
argTypes: {
3434
open: {
35-
changeHandler: true,
35+
controllable: true,,
3636
type: "boolean",
3737
control: "boolean",
3838
description: "Allows control over the open state of the menu",

packages/evo-marko/src/tags/evo-menu/menu.stories.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default {
3434

3535
argTypes: {
3636
selected: {
37-
changeHandler: true,
37+
controllable: true,,
3838
description:
3939
"If present, indicates the selected item(s) in the menu and automatically updates them on click. Use a single value for single-select, or an array for multi-select. Compares with `value` is present in `@option`, otherwise index.",
4040
table: { type: { summary: "number | string | (number | string)[]" } },

0 commit comments

Comments
 (0)