Skip to content

Instantly share code, notes, and snippets.

View steveruizok's full-sized avatar
🏠

Steve Ruiz steveruizok

🏠
View GitHub Profile
Button*
unlocked*
default*
mouseEnter -> hovered
hovered
mouseLeave -> default
mouseDown -> pressed
switch
off*
turn_on -> on
on
turn_off -> off
form
empty
textEnter -> ready
emptySubmit -> warn
success
textEnter -> ready
emptySubmit -> warn
warn
textEnter -> ready
ready
tape_recorder
playing
playing_default*
pause -> play_paused
stop -> stopped
fast_rewind -> play_rewinding
fast_forward -> play_forwarding
play_paused
stop -> stopped
resume -> playing
@steveruizok
steveruizok / SketchSystems.spec
Last active July 4, 2018 16:51 — forked from ryanlucas/SketchSystems.spec
Search Machine
Search Machine
Empty
focusInput -> InputFocused
searchByLocation -> LoadingResults
NoLocation*
getLocation -> HasLocation
HasLocation
loseLocation -> NoLocation
InputFocused
changeInput -> Loading
@steveruizok
steveruizok / SketchSystems.spec
Last active June 19, 2023 15:27
Search Machine Preloaded
Search Machine Preloaded
Empty
focusInput -> InputFocused
searchByLocation -> LoadingResults
NoLocation*
getLocation -> HasLocation
HasLocation
loseLocation -> NoLocation
InputFocused
changeInput -> Loading
const path = require("path");
module.exports = (storybookBaseConfig, configType, defaultConfig) => {
defaultConfig.module.rules.push({
test: /\.(ts|tsx)$/,
loaders: [
require.resolve("awesome-typescript-loader")
],
enforce: "pre"
});
<script src="./build/app.js"></script>
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);
};
@steveruizok
steveruizok / example.tsx
Created September 8, 2018 20:55
ControlType-SegmentedEnum
static propertyControls: PropertyControls = {
align: {
type: ControlType.SegmentedEnum,
options: ["left", "center", "right", "justify"],
optionTitles: ["L", "C", "R", "J"],
title: "Align"
}
}