1.0.0 • Published 1 year ago

@img-arena/ui-core v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

IMGArena-UI

Package for common React elements used across multiple front-end teams at IMGArena

How to use

To install a package simply run:

npm i @img-arena/ui-core
// or
yarn add @img-arena/ui-core

For the components to work correctly it is crutial that the part of the app using them is wrapped in provider. (example for index.tsx in CRA). Also for the styles to work correctly import them at the root level (for CRA it's index.tsx file)

/* ... other imports */
import '@img-arena/ui-core/index.css';
import { ThemeProvider } from '@imgarena/ui-core';

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
  <React.StrictMode>
    <ThemeProvider>
      <App />
    </ThemeProvider>
  </React.StrictMode>
);

Preview

to preview components use the same workflow as for local development, or storybook:

npm run storybook

Local development

To get started you have to run those two commands in separate terminals, but before that you have to install all dependencies.

To install dependencies run:

npm install npm-link-shared -g // skip this step if you have this already installed (to be deprecated)
npm run prestart

Building a package and watching for changes:

npm run build:watch

Starting a preview development server:

npm run dev:example
acceptsacornacorn-import-assertionsacorn-jsxacorn-nodeacorn-walkaddressagent-baseaggregate-errorajvajv-formatsajv-keywordsansi-alignansi-html-communityansi-regexansi-stylesanymatchapp-root-diraprobaare-we-there-yetargargparsearia-queryarray-flattenarray-unionasapassertast-typesasyncasync-limiterasynckitavailable-typed-arraysbabel-corebabel-plugin-add-react-displaynamebabel-plugin-istanbulbabel-plugin-named-exports-orderbabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3babel-plugin-polyfill-regeneratorbabel-plugin-react-docgenbalanced-matchbase16base64-jsbatchbetter-opnbig-integerbig.jsbinary-extensionsblbody-parserbonjour-serviceboolbaseboxenbplist-parserbrace-expansionbracesbrowser-assertbrowserify-zlibbrowserslistbserbufferbuffer-crc32buffer-frombuiltin-modulesbytesc8call-bindcallsitescamel-casecamelcasecamelcase-csscaniuse-apicaniuse-litecase-sensitive-paths-webpack-pluginchalkchokidarchownrchrome-trace-eventci-infoclean-cssclean-stackcli-boxescli-table3cliuiclone-deepcolorcolor-convertcolor-namecolor-name-listcolor-parsecolor-rgbacolor-spacecolor-stringcolor-stringifycolor-supportcolordcolorettecombined-streamcommandercommon-path-prefixcommondircompressiblecompressionconcat-mapconcat-streamconcat-with-sourcemapsconnect-history-api-fallbackconsole-control-stringscontent-dispositioncontent-typeconvert-source-mapcookiecookie-signaturecore-jscore-js-compatcore-js-purecore-util-iscosmiconfigcreltcross-fetchcross-spawncrypto-random-stringcss-color-namescss-declaration-sortercss-loadercss-selectcss-treecss-whatcssesccssnanocssnano-preset-defaultcssnano-utilscssocsstypedebugdedentdeep-equaldeep-isdeepmergedefault-browser-iddefault-gatewaydefine-lazy-propdefine-propertiesdefineddefudeldelayed-streamdelegatesdepddequaldestroydetect-indentdetect-nodedetect-package-managerdetect-portdetectivedidyoumeandir-globdlvdns-equaldns-packetdoctrinedom-accessibility-apidom-converterdom-serializerdom-walkdomelementtypedomhandlerdomutilsdot-casedotenvdotenv-expandduplexifyee-firstejselectron-to-chromiumemoji-regexemojis-listencodeurlend-of-streamendentenhanced-resolveentitiesenvinfoerror-exerror-stack-parseres-get-iteratores-module-lexeres6-object-assignesbuildesbuild-plugin-aliasesbuild-registerescaladeescape-htmlescape-string-regexpescodegeneslint-rule-composereslint-scopeeslint-visitor-keysespreeesprimaesqueryesrecurseestraverseestree-to-babelestree-walkeresutilsetageventemitter3eventsexecaexpressextendextract-zipfast-deep-equalfast-difffast-globfast-json-parsefast-json-stable-stringifyfast-levenshteinfastqfaye-websocketfb-watchmanfbemitterfbjsfbjs-css-varsfd-slicerfetch-retryfile-entry-cachefile-system-cachefilelistfill-rangefinalhandlerfind-cache-dirfind-upflatflat-cacheflattedflow-parserfollow-redirectsfor-eachforeground-childfork-ts-checker-webpack-pluginform-dataforwardedfraction.jsfreshfs-constantsfs-extrafs-minipassfs-monkeyfs.realpathfseventsfunction-bindfunctions-have-namesgaugegeneric-namesgensyncget-caller-fileget-intrinsicget-npm-tarball-urlget-package-typeget-portget-streamgigetgithub-sluggerglobglob-parentglob-promiseglob-to-regexpglobalglobalsglobbygopdgraceful-fsgrapheme-splittergunzip-maybehandle-thinghandlebarshashas-bigintshas-flaghas-property-descriptorshas-symbolshas-tostringtaghas-unicodehehex-color-regexhosted-git-infohpack.jshsl-regexhsla-regexhtml-entitieshtml-escaperhtml-minifier-terserhtml-tagshtml-webpack-pluginhtmlparser2http-deceiverhttp-errorshttp-parser-jshttp-proxyhttp-proxy-middlewarehttps-proxy-agenthuman-signalsiconv-liteicss-replace-symbolsicss-utilsieee754ignoreimport-cwdimport-freshimport-fromimurmurhashindent-stringinflightinheritsinternal-slotinterpretipipaddr.jsis-absolute-urlis-argumentsis-array-bufferis-arrayishis-bigintis-binary-pathis-boolean-objectis-builtin-moduleis-callableis-color-stopis-core-moduleis-date-objectis-deflateis-dockeris-extglobis-fullwidth-code-pointis-functionis-generator-functionis-globis-gzipis-mapis-moduleis-nanis-numberis-number-objectis-path-cwdis-path-insideis-plain-objis-plain-objectis-referenceis-regexis-setis-shared-array-bufferis-streamis-stringis-symbolis-typed-arrayis-weakmapis-weaksetis-wslisarrayisexeisobjectisomorphic-unfetchistanbul-lib-coverageistanbul-lib-instrumentistanbul-lib-reportistanbul-reportsjakejest-haste-mapjest-mockjest-regex-utiljest-utiljest-workerjs-sdsljs-tokensjs-yamljscodeshiftjsescjson-parse-even-better-errorsjson-schema-traversejson-stable-stringify-without-jsonifyjson5jsonfilekind-ofkleurklonalaunch-editorlazy-universal-dotenvlevenlevnlilconfiglines-and-columnsloader-runnerloader-utilslocate-pathlodashlodash-eslodash.camelcaselodash.currylodash.debouncelodash.flowlodash.memoizelodash.mergelodash.uniqloose-envifylower-caselru-cachelz-stringmagic-stringmake-dirmakeerrormap-or-similarmarkdown-to-jsxmaterial-colorsmdast-util-definitionsmdast-util-to-stringmdn-datamedia-typermemfsmemoizerificmerge-descriptorsmerge-streammerge2methodsmicromatchmimemime-dbmime-typesmimic-fnmin-documentmin-indentminimalistic-assertminimatchminimistminipassminizlibmkdirpmkdirp-classicmrimsmulticast-dnsnanoidnatural-comparenatural-compare-litenearest-colornegotiatorneo-asyncno-casenode-abort-controllernode-dirnode-fetchnode-fetch-nativenode-forgenode-int64node-releasesnormalize-package-datanormalize-pathnormalize-rangenormalize-urlnpm-run-pathnpmlognth-checkobject-assignobject-hashobject-inspectobject-isobject-keysobject.assignobjectorarrayobufon-finishedon-headersonceonetimeopenoptionatorp-finallyp-limitp-locatep-mapp-queuep-retryp-timeoutp-trypakoparam-caseparent-moduleparse-jsonparseurlpascal-casepath-browserifypath-existspath-is-absolutepath-keypath-parsepath-to-regexppath-typepathepeek-streampendpicocolorspicomatchpifypiratespkg-dirpolishedpostcss-calcpostcss-colorminpostcss-convert-valuespostcss-discard-commentspostcss-discard-duplicatespostcss-discard-emptypostcss-discard-overriddenpostcss-importpostcss-jspostcss-load-configpostcss-loaderpostcss-merge-longhandpostcss-merge-rulespostcss-minify-font-valuespostcss-minify-gradientspostcss-minify-paramspostcss-minify-selectorspostcss-modulespostcss-modules-extract-importspostcss-modules-local-by-defaultpostcss-modules-scopepostcss-modules-valuespostcss-nestedpostcss-normalize-charsetpostcss-normalize-display-valuespostcss-normalize-positionspostcss-normalize-repeat-stylepostcss-normalize-stringpostcss-normalize-timing-functionspostcss-normalize-unicodepostcss-normalize-urlpostcss-normalize-whitespacepostcss-ordered-valuespostcss-reduce-initialpostcss-reduce-transformspostcss-selector-parserpostcss-svgopostcss-unique-selectorspostcss-value-parserprelude-lsprettier-linter-helperspretty-errorpretty-formatpretty-hrtimeprocessprocess-nextick-argsprogresspromisepromise.seriespromptsproxy-addrproxy-from-envpumppumpifypunycodepuppeteer-corepure-colorqsqueue-microtaskquick-lruramdarandombytesrange-parserraw-bodyreact-base16-stylingreact-colorreact-colorfulreact-docgenreact-docgen-typescriptreact-element-to-jsx-stringreact-inspectorreact-isreact-lifecycles-compatreact-refreshreactcssread-cacheread-pkgread-pkg-upreadable-streamreaddirprecastrechoirregenerateregenerate-unicode-propertiesregenerator-runtimeregenerator-transformregexp.prototype.flagsregexpu-coreregjsparserrelateurlremark-external-linksremark-slugrenderkidrequire-directoryrequire-from-stringrequireindexrequires-portresolveresolve-fromretryreusifyrgb-hexrgb-regexrgba-regexrimrafrollup-pluginutilsrun-parallelsafe-buffersafe-identifiersafer-bufferschedulerschema-utilsselect-hoseselfsignedsemversendserialize-javascriptserve-faviconserve-indexserve-staticset-blockingsetimmediatesetprototypeofshallow-cloneshebang-commandshebang-regexshell-quoteshelljsside-channelsignal-exitsimple-swizzlesimple-update-notifiersisteransislashsockjssource-mapsource-map-jssource-map-supportspace-separated-tokensspdx-correctspdx-exceptionsspdx-expression-parsespdx-license-idsspdyspdy-transportsprintf-jsstablestackframestatusesstop-iteration-iteratorstore2stream-shiftstring-hashstring-widthstring_decoderstrip-ansistrip-final-newlinestrip-indentstrip-json-commentsstyle-injectstyle-loaderstyle-modstylehackssupports-colorsupports-preserve-symlinks-flagsvgosynchronous-promisetapabletartar-fstar-streamtelejsontemptemp-dirtempyterserterser-webpack-plugintest-excludetext-tablethrough2thunkytinycolor2tmplto-fast-propertiesto-regex-rangetoidentifiertr46ts-dedenttsutilstype-checktype-festtype-istypedarrayua-parser-jsuglify-jsunfetchunicode-canonical-property-names-ecmascriptunicode-match-property-ecmascriptunicode-match-property-value-ecmascriptunicode-property-aliases-ecmascriptunique-stringunist-util-isunist-util-visitunist-util-visit-parentsuniversalifyunpipeunpluginuntildifyupdate-browserslist-dburi-jsuse-resize-observerutilutil-deprecateutilautils-mergeuuiduuid-browserv8-to-istanbulvalidate-npm-package-licensevaryw3c-keynamewalkerwatchpackwbufwebidl-conversionswebpackwebpack-dev-middlewarewebpack-dev-serverwebpack-hot-middlewarewebpack-sourceswebpack-virtual-moduleswebsocket-driverwebsocket-extensionswhatwg-urlwhichwhich-boxed-primitivewhich-collectionwhich-typed-arraywide-alignwidest-lineword-wrapwordwrapwrap-ansiwrappywrite-file-atomicwsxtendy18nyallistyamlyargsyargs-parseryauzlyocto-queue
1.0.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago