-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.0.0-alpha.8'
- Loading branch information
Showing
33 changed files
with
484 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/docs/components/atoms/Action/stories/multiple-events/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Base, createApp } from '@studiometa/js-toolkit'; | ||
import { Action, Transition } from '@studiometa/ui'; | ||
|
||
class App extends Base { | ||
static config = { | ||
name: 'App', | ||
components: { | ||
Action, | ||
Transition, | ||
}, | ||
}; | ||
} | ||
|
||
export default createApp(App, document.body); |
8 changes: 8 additions & 0 deletions
8
packages/docs/components/atoms/Action/stories/multiple-events/app.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<button | ||
data-component="Action" | ||
data-option-on:click.stop="target.$el.textContent = 'Clicked'" | ||
data-option-on:mouseenter="target.$el.textContent = 'Hovered'" | ||
data-option-on:mouseleave="target.$el.textContent = 'Hover and click me'" | ||
class="px-4 py-2 rounded bg-blue-400 dark:bg-blue-600"> | ||
Hover and click me | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/docs/components/atoms/DataBind/stories/compute-example.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/docs/components/atoms/DataBind/stories/effect-example.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
<div class="flex flex-col gap-4"> | ||
<input | ||
data-component="DataModel" | ||
data-option-name="counter" | ||
data-option-group="counter" | ||
type="range" | ||
value="50" | ||
min="0" | ||
max="100" | ||
step="1" /> | ||
<p | ||
data-component="DataEffect" | ||
data-option-name="counter" | ||
data-option-group="counter" | ||
data-option-effect="target.classList.toggle('text-red-500', value > 50)"> | ||
Count: | ||
<span data-component="DataBind" data-option-name="counter">50</span> | ||
<span data-component="DataBind" data-option-group="counter">50</span> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<div class="flex items-center gap-4"> | ||
<select data-component="DataModel" data-option-name="select" class="p-2 bg-transparent ring-2 rounded"> | ||
<select data-component="DataModel" data-option-group="select" class="p-2 bg-transparent ring-2 rounded"> | ||
<option>-</option> | ||
<option value="foo">Foo</option> | ||
<option value="bar">Bar</option> | ||
</select> | ||
<p data-component="DataBind" data-option-name="select"></p> | ||
<p data-component="DataBind" data-option-group="select"></p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Base } from '@studiometa/js-toolkit'; | ||
|
||
export class Foo extends Base { | ||
static config = { | ||
name: 'Foo', | ||
}; | ||
} | ||
|
||
export class Bar extends Base { | ||
static config = { | ||
name: 'Bar', | ||
}; | ||
} | ||
|
||
export class Baz extends Base { | ||
static config = { | ||
name: 'Baz', | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.