@misk/prettier
Advanced tools
Changelog
0.1.18-6
12 Sept 2019 15:18:00 GMT
Changelog
0.1.18-5
12 Sept 2019 14:57:00 GMT
ResponsiveAppContainer
that extends ResponsiveContainer
with styling to keep it below the NavbarenvironmentToColor
theme configuration easier with lookup table now as a parameter to create the functionChangelog
0.1.18-3
11 Sept 2019 20:17:00 GMT
defaultTheme
if you only want to change one of the theme valuesChangelog
0.1.18-2
10 Sept 2019 20:59:00 GMT
menuIcon?: IconName | JSX.Element | string
: Set the icon that shows when the menu is closed. It can be a BlueprintJS IconName, a React JSX.Element, or a string URL to an image.menuOpenIcon?: IconName | JSX.Element | string
: Set the icon that shows when the menu is open. It can be a BlueprintJS IconName, a React JSX.Element, or a string URL to an image.menuButtonAsLink?: boolean
: Show the menuIcon and onClick go to the homeUrl
instead of opening the menu.menuShowButton?: boolean
: Hide the MenuButton entirely.@testing-library/dom
library for easier tests that check for certain rendered elements or textChangelog
0.1.18-1
22 Aug 2019 22:18:00 GMT
Changelog
0.1.18-0
22 Aug 2019 19:54:00 GMT
simpleSelect
in favor of two new functions: simpleSelectorGet
and simpleSelectorPick
get
and pick
simpleSelect
calls to either of the two new functions soon as simpleSelect
will be removed in a future release@misk/simpleredux
documentationAllows for single-key cached selection from Redux state
Most directly equivalent to deprecated simpleSelect
// OLD
const field1 = simpleSelect(props.simpleForm, "Dino::Field1", "data")
const tagsField = simpleSelect(props.simpleForm, "Dino::Tags", "data", simpleType.array)
// NEW
const field1 = simpleSelectorGet(props.simpleForm, ["Dino::Field1", "data"])
const tagsField = simpleSelectorGet(props.simpleForm, ["Dino::Tags", "data"], [])
Allows for multi-key cached selection from Redux state
// OLD
const fields = [
"Name",
"Price",
"Itemized Receipt",
"CheckAlice",
"CheckBob",
"CheckEve",
"CheckMallory",
"CheckTrent",
"Meal",
"Tags"
].map((f: string) => `Dino::${f}`)
const fieldsData = fields
.map((key: string) => {
const value = simpleSelect(props.simpleForm, key, "data")
return { [key]: value }
})
.reduce((prev, current) => ({...prev, ...current}), {})
// New
const fields = [
"Name",
"Price",
"Itemized Receipt",
"CheckAlice",
"CheckBob",
"CheckEve",
"CheckMallory",
"CheckTrent",
"Meal",
"Tags"
].map((f: string) => `Dino::${f}.data`)
const fieldsData = simpleSelectorPick(props.simpleForm, fields)
Changelog
0.1.17-4
15 Aug 2019 14:00:00 GMT
alias
for src/
and tests/
importsmoduleNameMapper
in jest
for src/
and tests/
imports