How to use the @blueprintjs/core.Intent.NONE function in @blueprintjs/core

To help you get started, we’ve selected a few @blueprintjs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jauhararifin / ugrade / frontend / src / scenes / ContestDetail / Clarifications / Detail / CreateClarificationEntryForm / CreateClarificationEntryFormView.tsx View on Github external
touched,
}) => (
  <form>
    <textarea value="{values.content}" placeholder="Reply the clarifications here..." fill="{true}" rows="{3}" name="content"> 0 &amp;&amp; touched.content &amp;&amp; errors &amp;&amp; errors.content
          ? Intent.DANGER
          : Intent.NONE
      }
    /&gt;
    &lt;div className='send-reply'&gt;
      &lt;Button
        intent={Intent.PRIMARY}
        minimal={true}
        fill={true}
        icon='circle-arrow-right'
        type='submit'
      /&gt;
    &lt;/div&gt;
  &lt;/form&gt;
)
</textarea></form>
github poooi / poi / views / components / main / parts / admiral-panel.es View on Github external
const getTagIntent = (_, timeRemaining) => {
  switch (true) {
    case timeRemaining > 1800:
      return Intent.NONE
    case timeRemaining > 900:
      return Intent.WARNING
    default:
      return Intent.DANGER
  }
}
github jauhararifin / ugrade / ui / src / toaster.ts View on Github external
export function showToast(message: string): void {
  toaster.show({
    message,
    intent: Intent.NONE,
    timeout: 1500,
  })
}
github jauhararifin / ugrade / ui / src / scenes / Dashboard / Members / InviteMembersForm / InviteMembersFormView.tsx View on Github external
availablePredifined[label] = () =&gt; setFieldValue('permissions', perms)
      }
    }
  }

  return (
    <form>
      
        <div>
          
            
          
</div></form>
github Team-CHAD / DevDecks / app / plugins / node_modules / devdecks-code-editor / Options / ToggleConsole.tsx View on Github external
const ToggleConsole = ({ pluginState, updateCurrentPlugin }: ToggleConsoleProps) =&gt; {
  const webContents = remote.getCurrentWebContents();
  const isDevToolsOpened = webContents.isDevToolsOpened();
  return (
    <li>
      <button> webContents.toggleDevTools() } /&gt;
    </button></li>
  );
}
github poooi / poi / views / components / ship-parts / landbase-button.es View on Github external
.filter(base => !base.allEmpty)
      .map('squardState')
      .max() || 1
  const squardCond =
    baseInfo
      .filter(base => !base.allEmpty)
      .map('squardCond')
      .max() || 1
  const noAction = baseInfo.some(base => !base.allEmpty && base.noAction)

  const airbaseProps = baseInfo.value()

  const sortie = sortieStatus.filter(a => !a.allEmpty).reduce((a, b) => a || b, false)
  const intent = do {
    if (sortie || noAction) {
      Intent.NONE
    } else if (squardCond > 1) {
      Intent.DANGER
    } else if (squardState !== 1 || needSupply) {
      Intent.WARNING
    } else {
      Intent.SUCCESS
    }
  }

  return {
    airbaseProps,
    intent,
  }
})
github jauhararifin / ugrade / desktop / src / scenes / Dashboard / Announcements / CreateAnnouncementForm / CreateAnnouncementFormView.tsx View on Github external
handleBlur,
  touched,
  isSubmitting,
  setFieldValue,
}) =&gt; (
  <form>
    
      <h3>Create Announcement</h3>
      <div>
        
          
        
        
          </div></form>
github doches / lilypond-ui / src / renderer / toolbar.tsx View on Github external
key={opt}
                    text={opt}
                    active={opt === this.props.scale}
                    onClick={() =&gt; this.props.onChangeScale(opt)}
                  /&gt;
                ))}
              
            )}
            position={Position.BOTTOM_LEFT}
            interactionKind={PopoverInteractionKind.CLICK}
          &gt;
            <button>
          
        
      
    );
  }
}</button>
github France-ioi / codecast / frontend / subtitles / editor.js View on Github external
? <div>
                  <textarea value="{subtitlesText}" style="{{width:" rows="{7}">                  &lt;div className='buttons-bar'&gt;
                    &lt;Files  onChange={this._fileChanged} accepts={this._fileAccepts} style={{display: 'inline-block'}}&gt;&lt;Button icon={IconNames.UPLOAD}&gt;{"Load"}&lt;/Button&gt;&lt;/Files&gt;
                    &lt;Button onClick={this._saveSelected} icon={IconNames.DOWNLOAD} text={"Save"}/&gt;
                    &lt;Button onClick={this._reloadSelected} icon={IconNames.CLOUD_DOWNLOAD} disabled={!selected.url} text={"Revert"}/&gt;
                    &lt;Button onClick={this._removeSelected} icon={IconNames.CROSS} text={'Remove'}/&gt;
                  &lt;/div&gt;
                &lt;/div&gt;
              : &lt;NonIdealState visual='arrow-left' title={"No language selected"} description={"Load existing subtitles or add a new language, and click the Edit button."} /&gt;}
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div className='hbox mb' style={{textAlign: 'center', backgroundColor: '#efefef', padding: '10px'}}&gt;
          &lt;div className='fill center'&gt;
            &lt;Button onClick={this._beginEdit} disabled={!selected} icon={IconNames.EDIT} text={"Edit"} style={{marginRight: '10px'}}/&gt;
            &lt;Button onClick={this._save} icon={IconNames.CLOUD_UPLOAD} text={"Save"} disabled={!canSave} intent={unsaved ? Intent.PRIMARY : Intent.NONE}/&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        {!canSave &amp;&amp;
          &lt;Callout intent={Intent.WARNING} title={"Insufficient access rights"}&gt;
            {"The current user is not allowed to modify this Codecast."}
          &lt;/Callout&gt;}
        &lt;div&gt;
          {notify.key === 'pending' &amp;&amp; &lt;Callout icon={&lt;Spinner small/&gt;}&gt;{"Saving, please wait."}&lt;/Callout&gt;}
          {notify.key === 'success' &amp;&amp; &lt;Callout icon='saved' intent={Intent.SUCCESS}&gt;{"Saved."}&lt;/Callout&gt;}
          {notify.key === 'failure' &amp;&amp; &lt;Callout icon='warning-sign' intent={Intent.DANGER}&gt;{"Failed to save: "}{notify.message}&lt;/Callout&gt;}
        &lt;/div&gt;
      &lt;/div&gt;
    );
  }
  _refLoad = (el) =&gt; {</textarea></div>
github France-ioi / codecast / frontend / stepper / controls.js View on Github external
_button (key, onClick, title, icon, text) {
      const {controls} = this.props;
      let intent = Intent.NONE, disabled = false;
      if (key === 'translate') {
        intent = Intent.PRIMARY;
      }
      switch (key) {
        case 'interrupt':
          disabled = !this.props.canInterrupt;
          break;
        case 'restart':
          disabled = !this.props.canRestart;
          break;
        case 'undo':
          disabled = !this.props.canUndo;
          break;
        case 'redo':
          disabled = !this.props.canRedo;
          break;