Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
pronto-common-components
Advanced tools
Common components for composing complex user interfaces quickly
Common components for composing complex user interfaces quickly
Prompts the user before performing the onClick action, timing out after some time if not confirmed.
{ConfirmButton} = require 'common-components'
MyComponent = React.createClass
doAction: ->
alert 'this was done'
render: ->
<ConfirmButton onClick=@doAction confirm_text="O really?">Click me</ConfirmButton>
{Dropdown} = require 'common-components'
# Define a custom component for each option
ItemOption = ({option}) ->
<div className='roll-with-option'>
Roll with {@props.display}
</div>
# Define a custom empty component (shown when nothing is selected)
empty = ->
<div>Select somebody to roll with</div>
# Define option values
options = [
'Lil Wayne',
'Travis Scott',
'Young Thug'
]
CustomDropdown = React.createClass
choseOption: (option) ->
console.log "Chose option", option
render: ->
<Dropdown
options=options
onChoose=@choseOption
selected=null
empty=empty
>
<ItemOption>
</Dropdown>
{Overlay} = require 'common-components'
ComponentInOverlay = React.createClass
closeOverlay: ->
console.log "Close the overlay"
render: ->
<Overlay onClickBackdrop=@closeOverlay >
<div className='component'>
Hello World
</div>
</Overlay>
{ReloadableList} = require 'common-components'
# Define an item view
ItemView = ({item}) ->
<div className='item'>{item.name}</div>
# Define a function to fetch items
findAlbums = -> fetch$ 'get', '/albums.json'
# Render the list
<ReloadableList loadItems=findAlbums><ItemView /></ReloadableList>
{SearchInput} = require 'common-components'
# Define a function the input will use to search
doSearch = (q) -> Dispatcher.searchItems q
MySearchInput = React.createClass
render: ->
<SearchInput doSearch=doSearch className='my-search-input' />
Build a slug out of a string.
Build an md5 hash from an object. Useful for keys.
Map a function over the keys of an object.
Returns a random string. Accepts an optional length argument, default 8.
Capitalize the first letter of a string.
FAQs
Common components for composing complex user interfaces quickly
The npm package pronto-common-components receives a total of 0 weekly downloads. As such, pronto-common-components popularity was classified as not popular.
We found that pronto-common-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.