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
{ | |
"name": "signup", | |
"type": "form", | |
"fields": [ | |
{ | |
"name": "name", | |
"type": "text_input", | |
"label": "Name" | |
}, | |
{ |
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
{ | |
"name": "signup", | |
"type": "form", | |
"fields": [ | |
{ | |
"name": "name", | |
"type": "text_input", | |
"label": "Name" | |
}, | |
{ |
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
import React, { Component, PureComponent, createContext } from "react"; | |
import flatten from "lodash/flatten"; | |
function flattenPropsTree(arr) { | |
return flatten(arr.map(a => [a.props, ...flattenPropsTree(a.children)])); | |
} | |
function getPropsTree(arr) { | |
return arr.map(a => ({ | |
props: a.props, |
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
import { Utils, Overlay } from '@blueprintjs/core'; | |
import PropTypes from 'prop-types'; | |
import React from 'react'; | |
function handleDocumentClick(e) { | |
const { isOpen, onClose } = this.props; | |
const eventTarget = e.target; | |
const isClickInDescendantOverlay = Array.from(document.querySelectorAll(`[data-overlay-id="${this.overlayId}"]`)) | |
.filter((elem) => elem && elem.contains) |
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
'use strict'; | |
exports.translate = function(load) { | |
var prependText = | |
` | |
var __export = eval('_export'); | |
var hotExport = function(name, exported) { | |
if (!Object.prototype.hasOwnProperty.call(exported, '__source')) { |