This file contains hidden or 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
Button* | |
unlocked* | |
default* | |
mouseEnter -> hovered | |
hovered | |
mouseLeave -> default | |
mouseDown -> pressed |
This file contains hidden or 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
switch | |
off* | |
turn_on -> on | |
on | |
turn_off -> off |
This file contains hidden or 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
form | |
empty | |
textEnter -> ready | |
emptySubmit -> warn | |
success | |
textEnter -> ready | |
emptySubmit -> warn | |
warn | |
textEnter -> ready | |
ready |
This file contains hidden or 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
tape_recorder | |
playing | |
playing_default* | |
pause -> play_paused | |
stop -> stopped | |
fast_rewind -> play_rewinding | |
fast_forward -> play_forwarding | |
play_paused | |
stop -> stopped | |
resume -> playing |
This file contains hidden or 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
Search Machine | |
Empty | |
focusInput -> InputFocused | |
searchByLocation -> LoadingResults | |
NoLocation* | |
getLocation -> HasLocation | |
HasLocation | |
loseLocation -> NoLocation | |
InputFocused | |
changeInput -> Loading |
This file contains hidden or 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
Search Machine Preloaded | |
Empty | |
focusInput -> InputFocused | |
searchByLocation -> LoadingResults | |
NoLocation* | |
getLocation -> HasLocation | |
HasLocation | |
loseLocation -> NoLocation | |
InputFocused | |
changeInput -> Loading |
This file contains hidden or 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
const path = require("path"); | |
module.exports = (storybookBaseConfig, configType, defaultConfig) => { | |
defaultConfig.module.rules.push({ | |
test: /\.(ts|tsx)$/, | |
loaders: [ | |
require.resolve("awesome-typescript-loader") | |
], | |
enforce: "pre" | |
}); |
This file contains hidden or 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
<script src="./build/app.js"></script> |
This file contains hidden or 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
import React from "react"; | |
const debounce = (func, delay) => { | |
let inDebounce; | |
return function() { | |
const context = this; | |
const args = arguments; | |
clearTimeout(inDebounce); | |
inDebounce = setTimeout(() => func.apply(context, args), delay); | |
}; |
This file contains hidden or 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
static propertyControls: PropertyControls = { | |
align: { | |
type: ControlType.SegmentedEnum, | |
options: ["left", "center", "right", "justify"], | |
optionTitles: ["L", "C", "R", "J"], | |
title: "Align" | |
} | |
} |