frontend-toolbox
frontend-toolbox copied to clipboard
Frontend tools which we used in snappmarket v2
โ SnappMarket frontend powerful tools
hooks, helpers, ui components and icons that we used in new version of snappmarket website
demo
You can see demo at : https://ft-box.netlify.com/
get started
npm i @snappmarket/ui
npm i @snappmarket/hooks
npm i @snappmarket/helpers
npm i @snappmarket/icons
npm i @snappmarket/config
// OR
yarn add @snappmarket/ui
yarn add @snappmarket/hooks
yarn add @snappmarket/helpers
yarn add @snappmarket/icons
yarn add @snappmarket/config
โ Hooks Found Here
| Hook Name | Description |
|---|---|
| useDebounce | ๐ Change rapidly, do once |
| useDidUpdateEffect | ๐งต Do not worry about render phase effect calls |
| useFocus | ๐ต Focus on every thing you want |
| useForceUpdate | ๐ฟ force update component |
| useGeoLocation | ๐บ easily deal with navigator location API |
| useRouteChange | ๐น detect when react router dom route changes |
| useTimer | โฑ easily handle timing |
๐ UI Components found here
| Component | Description |
|---|---|
| Accordion | Accordion Ui component |
| Alert | Alert Ui component |
| Breadcrumb | Breadcrumb Ui component |
| Button | Button Ui component |
| Checkbox | CheckBox Ui component |
| ConfirmDialog | ConfirmDialog Ui component |
| Dialog | Dialog Ui component |
| Grid | Grid Ui component |
| GridSystem | GridSystem Ui component |
| Icon | Icon Ui component |
| Image | Image Ui component |
| Input | Input Ui component |
| InputRange | InputRange Ui component |
| Range | Range Ui component |
| Range | Range Ui component |
| Json | Json Ui component |
| Label | Label Ui component |
| LinedText | LinedText Ui component |
| Loading | Loading Ui component |
| Modal | Modal Ui component |
| OptionGroup | OptionGroup Ui component |
| Radio | Radio Ui component |
| Pagination | Pagination Ui component |
| ProgressBar | ProgressBar Ui component |
| Skeleton | Skeleton Ui component |
| Slider | Slider Ui component |
| TabSwitcher | TabSwitcher Ui component |
| TextWrap | TextWrap Ui component |
| Toggle | Toggle Ui component |
| Tooltip | Tooltip Ui component |
๐ Helpers Found Here
| Helper | Methods |
|---|---|
| ArrayHelpers | arrayItemAddProp ,flattenArray ,serializeObject ,stringifyArray ,deepFlatten |
| CookieHelpers | getCookie, setCookie |
| DebugHelpers | delog, ApiError, globalErrorCatcher |
| HttpHelpers | fetchWithTimeOut, universalCall |
| JsonHelpers | recursiveJsonParse |
| MapHelpers | isLocationInIran |
| NumberHelpers | persianNumber, englishNumber, generateKey, cellphoneValidate, cellphoneValidatePattern, currencyPrice |
| ObjectHelpers | removeByKey, flattenObject, makeCookieString, safeObjectPropertyRead, getNextProp |
| OSHelpers | getOSName, getAgent |
| PromiseHelpers | racePromise, makeTimeout, emptyPromise |
| ProxyHelpers | onChangeReflector |
| ReduxHelpers | actionMaker, normalizeActionType, configPersistor |
| StorageHelpers | getLocalStorageData |
| StringHelpers | stringReplace, bulkStringReplace |
| TemplateHelpers | HexToRgb, defineForegroundColor, makeRgba, decideMeasurement, makeShadow |
| WindowHelpers | getPathName, getWindowSize |
๐ Icons found here
All icons has svg file, react component, and an special sprite svg
- ๐ฏ 100% tested react 100+ svg icon components
Contributors โจ
Thanks goes to these wonderful people (emoji key):
Jafar Rezaei ๐ โ ๏ธ ๐ ๐ป ๐ค ๐ง ๐ฆ ๐ |
Reza Erami ๐ โ ๏ธ ๐ ๐ป |
mahsa mesbah โ ๏ธ ๐ ๐ป |
Mostafa Rastegar ๐ค โ ๏ธ ๐ป |
This project follows the all-contributors specification. Contributions of any kind welcome!