@mw-kit/mw-ui 0.3.4 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +28 -0
- package/.eslintrc.js +35 -0
- package/.prettierignore +27 -0
- package/.prettierrc.json +10 -0
- package/.storybook/main.js +13 -0
- package/.storybook/preview.js +21 -0
- package/.travis.yml +4 -0
- package/.vscode/settings.json +3 -0
- package/README.md +46 -40
- package/bitbucket-pipelines.yml +69 -0
- package/docker-compose.yml +14 -0
- package/example/README.md +5 -0
- package/example/favicon.ico +0 -0
- package/example/index.html +46 -0
- package/example/manifest.json +15 -0
- package/example/package.json +43 -0
- package/example/public/favicon.ico +0 -0
- package/example/public/index.html +46 -0
- package/example/public/manifest.json +15 -0
- package/example/src/App.tsx +47 -0
- package/example/src/index.tsx +11 -0
- package/example/src/react-app-env.d.ts +1 -0
- package/example/src/setupTests.ts +5 -0
- package/example/tsconfig.json +30 -0
- package/example/yarn.lock +694 -0
- package/exec.sh +11 -0
- package/hooks/pre-push +3 -0
- package/package.json +102 -69
- package/public/favicon.ico +0 -0
- package/public/index.html +43 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/shell/autotag.sh +169 -0
- package/shell/bash.sh +3 -0
- package/shell/install.sh +9 -0
- package/shell/logs.sh +3 -0
- package/shell/npx.sh +3 -0
- package/shell/restart.sh +5 -0
- package/shell/start.sh +7 -0
- package/shell/stop.sh +3 -0
- package/shell/tags.sh +24 -0
- package/shell/yarn.sh +7 -0
- package/src/addons/Portal/index.ts +26 -0
- package/src/addons/Portal/interfaces.ts +5 -0
- package/src/assets/icons/close.svg +1 -0
- package/src/assets/icons/feather/activity.svg +1 -0
- package/src/assets/icons/feather/airplay.svg +1 -0
- package/src/assets/icons/feather/alert-circle.svg +1 -0
- package/src/assets/icons/feather/alert-octagon.svg +1 -0
- package/src/assets/icons/feather/alert-triangle.svg +1 -0
- package/src/assets/icons/feather/align-center.svg +1 -0
- package/src/assets/icons/feather/align-justify.svg +1 -0
- package/src/assets/icons/feather/align-left.svg +1 -0
- package/src/assets/icons/feather/align-right.svg +1 -0
- package/src/assets/icons/feather/anchor.svg +1 -0
- package/src/assets/icons/feather/aperture.svg +1 -0
- package/src/assets/icons/feather/archive.svg +1 -0
- package/src/assets/icons/feather/arrow-down-circle.svg +1 -0
- package/src/assets/icons/feather/arrow-down-left.svg +1 -0
- package/src/assets/icons/feather/arrow-down-right.svg +1 -0
- package/src/assets/icons/feather/arrow-down.svg +1 -0
- package/src/assets/icons/feather/arrow-left-circle.svg +1 -0
- package/src/assets/icons/feather/arrow-left.svg +1 -0
- package/src/assets/icons/feather/arrow-right-circle.svg +1 -0
- package/src/assets/icons/feather/arrow-right.svg +1 -0
- package/src/assets/icons/feather/arrow-up-circle.svg +1 -0
- package/src/assets/icons/feather/arrow-up-left.svg +1 -0
- package/src/assets/icons/feather/arrow-up-right.svg +1 -0
- package/src/assets/icons/feather/arrow-up.svg +1 -0
- package/src/assets/icons/feather/at-sign.svg +1 -0
- package/src/assets/icons/feather/award.svg +1 -0
- package/src/assets/icons/feather/bar-chart-2.svg +1 -0
- package/src/assets/icons/feather/bar-chart.svg +1 -0
- package/src/assets/icons/feather/battery-charging.svg +1 -0
- package/src/assets/icons/feather/battery.svg +1 -0
- package/src/assets/icons/feather/bell-off.svg +1 -0
- package/src/assets/icons/feather/bell.svg +1 -0
- package/src/assets/icons/feather/bluetooth.svg +1 -0
- package/src/assets/icons/feather/bold.svg +1 -0
- package/src/assets/icons/feather/book-open.svg +1 -0
- package/src/assets/icons/feather/book.svg +1 -0
- package/src/assets/icons/feather/bookmark.svg +1 -0
- package/src/assets/icons/feather/box.svg +1 -0
- package/src/assets/icons/feather/briefcase.svg +1 -0
- package/src/assets/icons/feather/calendar.svg +1 -0
- package/src/assets/icons/feather/camera-off.svg +1 -0
- package/src/assets/icons/feather/camera.svg +1 -0
- package/src/assets/icons/feather/cast.svg +1 -0
- package/src/assets/icons/feather/check-circle.svg +1 -0
- package/src/assets/icons/feather/check-square.svg +1 -0
- package/src/assets/icons/feather/check.svg +1 -0
- package/src/assets/icons/feather/chevron-down.svg +1 -0
- package/src/assets/icons/feather/chevron-left.svg +1 -0
- package/src/assets/icons/feather/chevron-right.svg +1 -0
- package/src/assets/icons/feather/chevron-up.svg +1 -0
- package/src/assets/icons/feather/chevrons-down.svg +1 -0
- package/src/assets/icons/feather/chevrons-left.svg +1 -0
- package/src/assets/icons/feather/chevrons-right.svg +1 -0
- package/src/assets/icons/feather/chevrons-up.svg +1 -0
- package/src/assets/icons/feather/chrome.svg +1 -0
- package/src/assets/icons/feather/circle.svg +1 -0
- package/src/assets/icons/feather/clipboard.svg +1 -0
- package/src/assets/icons/feather/clock.svg +1 -0
- package/src/assets/icons/feather/cloud-drizzle.svg +1 -0
- package/src/assets/icons/feather/cloud-lightning.svg +1 -0
- package/src/assets/icons/feather/cloud-off.svg +1 -0
- package/src/assets/icons/feather/cloud-rain.svg +1 -0
- package/src/assets/icons/feather/cloud-snow.svg +1 -0
- package/src/assets/icons/feather/cloud.svg +1 -0
- package/src/assets/icons/feather/code.svg +1 -0
- package/src/assets/icons/feather/codepen.svg +1 -0
- package/src/assets/icons/feather/codesandbox.svg +1 -0
- package/src/assets/icons/feather/coffee.svg +1 -0
- package/src/assets/icons/feather/columns.svg +1 -0
- package/src/assets/icons/feather/command.svg +1 -0
- package/src/assets/icons/feather/compass.svg +1 -0
- package/src/assets/icons/feather/copy.svg +1 -0
- package/src/assets/icons/feather/corner-down-left.svg +1 -0
- package/src/assets/icons/feather/corner-down-right.svg +1 -0
- package/src/assets/icons/feather/corner-left-down.svg +1 -0
- package/src/assets/icons/feather/corner-left-up.svg +1 -0
- package/src/assets/icons/feather/corner-right-down.svg +1 -0
- package/src/assets/icons/feather/corner-right-up.svg +1 -0
- package/src/assets/icons/feather/corner-up-left.svg +1 -0
- package/src/assets/icons/feather/corner-up-right.svg +1 -0
- package/src/assets/icons/feather/cpu.svg +1 -0
- package/src/assets/icons/feather/credit-card.svg +1 -0
- package/src/assets/icons/feather/crop.svg +1 -0
- package/src/assets/icons/feather/crosshair.svg +1 -0
- package/src/assets/icons/feather/database.svg +1 -0
- package/src/assets/icons/feather/delete.svg +1 -0
- package/src/assets/icons/feather/disc.svg +1 -0
- package/src/assets/icons/feather/divide-circle.svg +1 -0
- package/src/assets/icons/feather/divide-square.svg +1 -0
- package/src/assets/icons/feather/divide.svg +1 -0
- package/src/assets/icons/feather/dollar-sign.svg +1 -0
- package/src/assets/icons/feather/download-cloud.svg +1 -0
- package/src/assets/icons/feather/download.svg +1 -0
- package/src/assets/icons/feather/dribbble.svg +1 -0
- package/src/assets/icons/feather/droplet.svg +1 -0
- package/src/assets/icons/feather/edit-2.svg +1 -0
- package/src/assets/icons/feather/edit-3.svg +1 -0
- package/src/assets/icons/feather/edit.svg +1 -0
- package/src/assets/icons/feather/external-link.svg +1 -0
- package/src/assets/icons/feather/eye-off.svg +1 -0
- package/src/assets/icons/feather/eye.svg +1 -0
- package/src/assets/icons/feather/facebook.svg +1 -0
- package/src/assets/icons/feather/fast-forward.svg +1 -0
- package/src/assets/icons/feather/feather.svg +1 -0
- package/src/assets/icons/feather/figma.svg +1 -0
- package/src/assets/icons/feather/file-minus.svg +1 -0
- package/src/assets/icons/feather/file-plus.svg +1 -0
- package/src/assets/icons/feather/file-text.svg +1 -0
- package/src/assets/icons/feather/file.svg +1 -0
- package/src/assets/icons/feather/film.svg +1 -0
- package/src/assets/icons/feather/filter.svg +1 -0
- package/src/assets/icons/feather/flag.svg +1 -0
- package/src/assets/icons/feather/folder-minus.svg +1 -0
- package/src/assets/icons/feather/folder-plus.svg +1 -0
- package/src/assets/icons/feather/folder.svg +1 -0
- package/src/assets/icons/feather/framer.svg +1 -0
- package/src/assets/icons/feather/frown.svg +1 -0
- package/src/assets/icons/feather/gift.svg +1 -0
- package/src/assets/icons/feather/git-branch.svg +1 -0
- package/src/assets/icons/feather/git-commit.svg +1 -0
- package/src/assets/icons/feather/git-merge.svg +1 -0
- package/src/assets/icons/feather/git-pull-request.svg +1 -0
- package/src/assets/icons/feather/github.svg +1 -0
- package/src/assets/icons/feather/gitlab.svg +1 -0
- package/src/assets/icons/feather/globe.svg +1 -0
- package/src/assets/icons/feather/grid.svg +1 -0
- package/src/assets/icons/feather/hard-drive.svg +1 -0
- package/src/assets/icons/feather/hash.svg +1 -0
- package/src/assets/icons/feather/headphones.svg +1 -0
- package/src/assets/icons/feather/heart.svg +1 -0
- package/src/assets/icons/feather/help-circle.svg +1 -0
- package/src/assets/icons/feather/hexagon.svg +1 -0
- package/src/assets/icons/feather/home.svg +1 -0
- package/src/assets/icons/feather/image.svg +1 -0
- package/src/assets/icons/feather/inbox.svg +1 -0
- package/src/assets/icons/feather/index.ts +581 -0
- package/src/assets/icons/feather/info.svg +1 -0
- package/src/assets/icons/feather/instagram.svg +1 -0
- package/src/assets/icons/feather/italic.svg +1 -0
- package/src/assets/icons/feather/key.svg +1 -0
- package/src/assets/icons/feather/layers.svg +1 -0
- package/src/assets/icons/feather/layout.svg +1 -0
- package/src/assets/icons/feather/life-buoy.svg +1 -0
- package/src/assets/icons/feather/link-2.svg +1 -0
- package/src/assets/icons/feather/link.svg +1 -0
- package/src/assets/icons/feather/linkedin.svg +1 -0
- package/src/assets/icons/feather/list.svg +1 -0
- package/src/assets/icons/feather/loader.svg +1 -0
- package/src/assets/icons/feather/lock.svg +1 -0
- package/src/assets/icons/feather/log-in.svg +1 -0
- package/src/assets/icons/feather/log-out.svg +1 -0
- package/src/assets/icons/feather/mail.svg +1 -0
- package/src/assets/icons/feather/map-pin.svg +1 -0
- package/src/assets/icons/feather/map.svg +1 -0
- package/src/assets/icons/feather/maximize-2.svg +1 -0
- package/src/assets/icons/feather/maximize.svg +1 -0
- package/src/assets/icons/feather/meh.svg +1 -0
- package/src/assets/icons/feather/menu.svg +1 -0
- package/src/assets/icons/feather/message-circle.svg +1 -0
- package/src/assets/icons/feather/message-square.svg +1 -0
- package/src/assets/icons/feather/mic-off.svg +1 -0
- package/src/assets/icons/feather/mic.svg +1 -0
- package/src/assets/icons/feather/minimize-2.svg +1 -0
- package/src/assets/icons/feather/minimize.svg +1 -0
- package/src/assets/icons/feather/minus-circle.svg +1 -0
- package/src/assets/icons/feather/minus-square.svg +1 -0
- package/src/assets/icons/feather/minus.svg +1 -0
- package/src/assets/icons/feather/monitor.svg +1 -0
- package/src/assets/icons/feather/moon.svg +1 -0
- package/src/assets/icons/feather/more-horizontal.svg +1 -0
- package/src/assets/icons/feather/more-vertical.svg +1 -0
- package/src/assets/icons/feather/mouse-pointer.svg +1 -0
- package/src/assets/icons/feather/move.svg +1 -0
- package/src/assets/icons/feather/music.svg +1 -0
- package/src/assets/icons/feather/navigation-2.svg +1 -0
- package/src/assets/icons/feather/navigation.svg +1 -0
- package/src/assets/icons/feather/octagon.svg +1 -0
- package/src/assets/icons/feather/package.svg +1 -0
- package/src/assets/icons/feather/paperclip.svg +1 -0
- package/src/assets/icons/feather/pause-circle.svg +1 -0
- package/src/assets/icons/feather/pause.svg +1 -0
- package/src/assets/icons/feather/pen-tool.svg +1 -0
- package/src/assets/icons/feather/percent.svg +1 -0
- package/src/assets/icons/feather/phone-call.svg +1 -0
- package/src/assets/icons/feather/phone-forwarded.svg +1 -0
- package/src/assets/icons/feather/phone-incoming.svg +1 -0
- package/src/assets/icons/feather/phone-missed.svg +1 -0
- package/src/assets/icons/feather/phone-off.svg +1 -0
- package/src/assets/icons/feather/phone-outgoing.svg +1 -0
- package/src/assets/icons/feather/phone.svg +1 -0
- package/src/assets/icons/feather/pie-chart.svg +1 -0
- package/src/assets/icons/feather/play-circle.svg +1 -0
- package/src/assets/icons/feather/play.svg +1 -0
- package/src/assets/icons/feather/plus-circle.svg +1 -0
- package/src/assets/icons/feather/plus-square.svg +1 -0
- package/src/assets/icons/feather/plus.svg +1 -0
- package/src/assets/icons/feather/pocket.svg +1 -0
- package/src/assets/icons/feather/power.svg +1 -0
- package/src/assets/icons/feather/printer.svg +1 -0
- package/src/assets/icons/feather/radio.svg +1 -0
- package/src/assets/icons/feather/refresh-ccw.svg +1 -0
- package/src/assets/icons/feather/refresh-cw.svg +1 -0
- package/src/assets/icons/feather/repeat.svg +1 -0
- package/src/assets/icons/feather/rewind.svg +1 -0
- package/src/assets/icons/feather/rotate-ccw.svg +1 -0
- package/src/assets/icons/feather/rotate-cw.svg +1 -0
- package/src/assets/icons/feather/rss.svg +1 -0
- package/src/assets/icons/feather/save.svg +1 -0
- package/src/assets/icons/feather/scissors.svg +1 -0
- package/src/assets/icons/feather/search.svg +1 -0
- package/src/assets/icons/feather/send.svg +1 -0
- package/src/assets/icons/feather/server.svg +1 -0
- package/src/assets/icons/feather/settings.svg +1 -0
- package/src/assets/icons/feather/share-2.svg +1 -0
- package/src/assets/icons/feather/share.svg +1 -0
- package/src/assets/icons/feather/shield-off.svg +1 -0
- package/src/assets/icons/feather/shield.svg +1 -0
- package/src/assets/icons/feather/shopping-bag.svg +1 -0
- package/src/assets/icons/feather/shopping-cart.svg +1 -0
- package/src/assets/icons/feather/shuffle.svg +1 -0
- package/src/assets/icons/feather/sidebar.svg +1 -0
- package/src/assets/icons/feather/skip-back.svg +1 -0
- package/src/assets/icons/feather/skip-forward.svg +1 -0
- package/src/assets/icons/feather/slack.svg +1 -0
- package/src/assets/icons/feather/slash.svg +1 -0
- package/src/assets/icons/feather/sliders.svg +1 -0
- package/src/assets/icons/feather/smartphone.svg +1 -0
- package/src/assets/icons/feather/smile.svg +1 -0
- package/src/assets/icons/feather/speaker.svg +1 -0
- package/src/assets/icons/feather/square.svg +1 -0
- package/src/assets/icons/feather/star.svg +1 -0
- package/src/assets/icons/feather/stop-circle.svg +1 -0
- package/src/assets/icons/feather/sun.svg +1 -0
- package/src/assets/icons/feather/sunrise.svg +1 -0
- package/src/assets/icons/feather/sunset.svg +1 -0
- package/src/assets/icons/feather/table.svg +1 -0
- package/src/assets/icons/feather/tablet.svg +1 -0
- package/src/assets/icons/feather/tag.svg +1 -0
- package/src/assets/icons/feather/target.svg +1 -0
- package/src/assets/icons/feather/terminal.svg +1 -0
- package/src/assets/icons/feather/thermometer.svg +1 -0
- package/src/assets/icons/feather/thumbs-down.svg +1 -0
- package/src/assets/icons/feather/thumbs-up.svg +1 -0
- package/src/assets/icons/feather/toggle-left.svg +1 -0
- package/src/assets/icons/feather/toggle-right.svg +1 -0
- package/src/assets/icons/feather/tool.svg +1 -0
- package/src/assets/icons/feather/trash-2.svg +1 -0
- package/src/assets/icons/feather/trash.svg +1 -0
- package/src/assets/icons/feather/trello.svg +1 -0
- package/src/assets/icons/feather/trending-down.svg +1 -0
- package/src/assets/icons/feather/trending-up.svg +1 -0
- package/src/assets/icons/feather/triangle.svg +1 -0
- package/src/assets/icons/feather/truck.svg +1 -0
- package/src/assets/icons/feather/tv.svg +1 -0
- package/src/assets/icons/feather/twitch.svg +1 -0
- package/src/assets/icons/feather/twitter.svg +1 -0
- package/src/assets/icons/feather/type.svg +1 -0
- package/src/assets/icons/feather/umbrella.svg +1 -0
- package/src/assets/icons/feather/underline.svg +1 -0
- package/src/assets/icons/feather/unlock.svg +1 -0
- package/src/assets/icons/feather/upload-cloud.svg +1 -0
- package/src/assets/icons/feather/upload.svg +1 -0
- package/src/assets/icons/feather/user-check.svg +1 -0
- package/src/assets/icons/feather/user-minus.svg +1 -0
- package/src/assets/icons/feather/user-plus.svg +1 -0
- package/src/assets/icons/feather/user-x.svg +1 -0
- package/src/assets/icons/feather/user.svg +1 -0
- package/src/assets/icons/feather/users.svg +1 -0
- package/src/assets/icons/feather/video-off.svg +1 -0
- package/src/assets/icons/feather/video.svg +1 -0
- package/src/assets/icons/feather/voicemail.svg +1 -0
- package/src/assets/icons/feather/volume-1.svg +1 -0
- package/src/assets/icons/feather/volume-2.svg +1 -0
- package/src/assets/icons/feather/volume-x.svg +1 -0
- package/src/assets/icons/feather/volume.svg +1 -0
- package/src/assets/icons/feather/watch.svg +1 -0
- package/src/assets/icons/feather/wifi-off.svg +1 -0
- package/src/assets/icons/feather/wifi.svg +1 -0
- package/src/assets/icons/feather/wind.svg +1 -0
- package/src/assets/icons/feather/x-circle.svg +1 -0
- package/src/assets/icons/feather/x-octagon.svg +1 -0
- package/src/assets/icons/feather/x-square.svg +1 -0
- package/src/assets/icons/feather/x.svg +1 -0
- package/src/assets/icons/feather/youtube.svg +1 -0
- package/src/assets/icons/feather/zap-off.svg +1 -0
- package/src/assets/icons/feather/zap.svg +1 -0
- package/src/assets/icons/feather/zoom-in.svg +1 -0
- package/src/assets/icons/feather/zoom-out.svg +1 -0
- package/src/assets/icons/flags/flags.png +0 -0
- package/src/assets/icons/flags/index.ts +120 -0
- package/src/components/AbsoluteContainer/index.tsx +62 -0
- package/src/components/AbsoluteContainer/interfaces.ts +39 -0
- package/src/components/AbsoluteContainer/styles.ts +93 -0
- package/src/components/Button/constants.ts +17 -0
- package/src/components/Button/index.tsx +47 -0
- package/src/components/Button/interfaces.ts +33 -0
- package/src/components/Button/styles.ts +126 -0
- package/src/components/Button/theme.ts +8 -0
- package/src/components/Calendar/index.tsx +375 -0
- package/src/components/Calendar/interfaces.ts +21 -0
- package/src/components/Calendar/styles.ts +161 -0
- package/src/components/CalendarInterval/index.tsx +93 -0
- package/src/components/CalendarInterval/interfaces.ts +17 -0
- package/src/components/CalendarInterval/styles.ts +9 -0
- package/src/components/Card/index.tsx +9 -0
- package/src/components/Card/interfaces.ts +5 -0
- package/src/components/Card/styled.ts +60 -0
- package/src/components/Icon/index.tsx +66 -0
- package/src/components/Icon/interfaces.ts +42 -0
- package/src/components/Icon/styled.ts +64 -0
- package/src/components/Indicator/index.tsx +14 -0
- package/src/components/Indicator/interfaces.ts +6 -0
- package/src/components/Indicator/styles.ts +49 -0
- package/src/components/Input/components/Checkbox/index.tsx +35 -0
- package/src/components/Input/components/Checkbox/interfaces.ts +27 -0
- package/src/components/Input/components/Checkbox/styles.ts +168 -0
- package/src/components/Input/components/Date/functions.ts +1 -0
- package/src/components/Input/components/Date/index.tsx +188 -0
- package/src/components/Input/components/Date/interfaces.ts +10 -0
- package/src/components/Input/components/Date/styles.ts +5 -0
- package/src/components/Input/components/DatePicker/index.tsx +143 -0
- package/src/components/Input/components/DatePicker/interfaces.ts +21 -0
- package/src/components/Input/components/DatePicker/styles.ts +64 -0
- package/src/components/Input/components/Input/functions.ts +35 -0
- package/src/components/Input/components/Input/index.tsx +204 -0
- package/src/components/Input/components/Input/interfaces.ts +46 -0
- package/src/components/Input/components/Input/styles.ts +140 -0
- package/src/components/Input/components/Password/index.tsx +63 -0
- package/src/components/Input/components/Password/interfaces.ts +9 -0
- package/src/components/Input/components/Phone/countries.ts +107 -0
- package/src/components/Input/components/Phone/index.tsx +179 -0
- package/src/components/Input/components/Phone/interfaces.ts +47 -0
- package/src/components/Input/components/Phone/styles.ts +27 -0
- package/src/components/Input/components/RadioButton/index.tsx +28 -0
- package/src/components/Input/components/RadioButton/interfaces.ts +16 -0
- package/src/components/Input/components/RadioButton/styles.ts +96 -0
- package/src/components/Input/components/Range/index.tsx +186 -0
- package/src/components/Input/components/Range/interfaces.ts +37 -0
- package/src/components/Input/components/Range/styles.ts +218 -0
- package/src/components/Input/components/Select/context.ts +8 -0
- package/src/components/Input/components/Select/index.tsx +226 -0
- package/src/components/Input/components/Select/interfaces.ts +49 -0
- package/src/components/Input/components/Select/styles.ts +17 -0
- package/src/components/Input/components/Switch/index.tsx +28 -0
- package/src/components/Input/components/Switch/interfaces.ts +16 -0
- package/src/components/Input/components/Switch/styles.ts +100 -0
- package/src/components/Input/components/Time/index.tsx +152 -0
- package/src/components/Input/components/Time/interfaces.ts +6 -0
- package/src/components/Input/index.tsx +95 -0
- package/src/components/Loader/index.ts +55 -0
- package/src/components/Loader/interfaces.ts +8 -0
- package/src/components/Menu/index.tsx +139 -0
- package/src/components/Menu/interfaces.ts +63 -0
- package/src/components/Menu/styles.ts +79 -0
- package/src/components/Modal/component.tsx +114 -0
- package/src/components/Modal/contants.ts +15 -0
- package/src/components/Modal/index.ts +18 -0
- package/src/components/Modal/interfaces.ts +60 -0
- package/src/components/Modal/styles.ts +91 -0
- package/src/components/Modal/templates/Audit/index.tsx +45 -0
- package/src/components/Modal/templates/Audit/interfaces.ts +17 -0
- package/src/components/Modal/templates/Audit/styles.ts +5 -0
- package/src/components/Modal/templates/ConfirmDelete/index.tsx +47 -0
- package/src/components/Modal/templates/ConfirmDelete/interfaces.ts +16 -0
- package/src/components/Modal/templates/ConfirmDelete/styles.ts +5 -0
- package/src/components/Modal/templates/ConfirmEdit/index.tsx +51 -0
- package/src/components/Modal/templates/ConfirmEdit/interfaces.ts +18 -0
- package/src/components/Modal/templates/ConfirmEdit/styles.ts +5 -0
- package/src/components/Modal/templates/index.ts +3 -0
- package/src/components/Placeholder/components/Template1/index.tsx +27 -0
- package/src/components/Placeholder/components/Template1/styles.ts +68 -0
- package/src/components/Placeholder/components/Template10/index.tsx +29 -0
- package/src/components/Placeholder/components/Template10/styles.ts +79 -0
- package/src/components/Placeholder/components/Template2/index.tsx +25 -0
- package/src/components/Placeholder/components/Template2/styles.ts +43 -0
- package/src/components/Placeholder/components/Template3/index.tsx +18 -0
- package/src/components/Placeholder/components/Template3/styles.ts +15 -0
- package/src/components/Placeholder/components/Template4/index.tsx +20 -0
- package/src/components/Placeholder/components/Template4/styles.ts +50 -0
- package/src/components/Placeholder/components/Template5/index.tsx +40 -0
- package/src/components/Placeholder/components/Template5/styles.ts +64 -0
- package/src/components/Placeholder/components/Template6/index.tsx +33 -0
- package/src/components/Placeholder/components/Template6/styles.ts +63 -0
- package/src/components/Placeholder/components/Template7/index.tsx +23 -0
- package/src/components/Placeholder/components/Template7/styles.ts +73 -0
- package/src/components/Placeholder/components/Template8/index.tsx +30 -0
- package/src/components/Placeholder/components/Template8/styles.ts +66 -0
- package/src/components/Placeholder/components/Template9/index.tsx +20 -0
- package/src/components/Placeholder/components/Template9/styles.ts +74 -0
- package/src/components/Placeholder/index.tsx +56 -0
- package/src/components/Placeholder/interfaces.ts +21 -0
- package/src/components/Placeholder/styles.ts +35 -0
- package/src/components/ProgressBar/index.tsx +16 -0
- package/src/components/ProgressBar/interfaces.ts +4 -0
- package/src/components/ProgressBar/styles.ts +51 -0
- package/src/components/ScrollContainer/index.tsx +99 -0
- package/src/components/ScrollContainer/interfaces.ts +9 -0
- package/src/components/Tabs/index.tsx +55 -0
- package/src/components/Tabs/interfaces.ts +44 -0
- package/src/components/Tabs/styles.ts +65 -0
- package/src/components/TextArea/index.tsx +9 -0
- package/src/components/TextArea/interfaces.ts +10 -0
- package/src/components/TextArea/styles.ts +13 -0
- package/src/components/Toast/index.tsx +20 -0
- package/src/components/Toast/interfaces.ts +7 -0
- package/src/components/Toast/styles.ts +88 -0
- package/src/components/index.ts +17 -0
- package/src/components/theme.ts +7 -0
- package/src/functions/common.ts +3 -0
- package/src/functions/formatters.ts +170 -0
- package/src/functions/validators.ts +93 -0
- package/src/hooks/onClickOut.ts +28 -0
- package/src/index.ts +8 -0
- package/src/interfaces.ts +4 -0
- package/src/stories/components/Input/MwCheckbox/MwCheckBox.stories.tsx +20 -0
- package/src/stories/components/Input/MwCheckbox/argTypes.ts +82 -0
- package/src/stories/components/Input/MwDate/MwDate.stories.tsx +31 -0
- package/src/stories/components/Input/MwDate/argTypes.ts +74 -0
- package/src/stories/components/Input/MwDatePicker/MwDatePicker.stories.tsx +33 -0
- package/src/stories/components/Input/MwDatePicker/argTypes.ts +6 -0
- package/src/stories/components/Input/MwInput/MwInput.stories.tsx +21 -0
- package/src/stories/components/Input/MwInput/argTypes.ts +93 -0
- package/src/stories/components/Input/MwIntlTel/MwIntlTel.stories.tsx +31 -0
- package/src/stories/components/Input/MwIntlTel/argTypes.ts +67 -0
- package/src/stories/components/Input/MwPassword/MwPassword.stories.tsx +20 -0
- package/src/stories/components/Input/MwPassword/argTypes.ts +51 -0
- package/src/stories/components/Input/MwRadioButton/MwSwitch.stories.tsx +22 -0
- package/src/stories/components/Input/MwRadioButton/argtypes.ts +81 -0
- package/src/stories/components/Input/MwRange/MwRange.stories.tsx +33 -0
- package/src/stories/components/Input/MwRange/argTypes.ts +83 -0
- package/src/stories/components/Input/MwSelect/MwSelect.stories.tsx +20 -0
- package/src/stories/components/Input/MwSelect/argTypes.ts +133 -0
- package/src/stories/components/Input/MwSwitch/MwSwitch.stories.tsx +20 -0
- package/src/stories/components/Input/MwSwitch/argTypes.ts +73 -0
- package/src/stories/components/Input/MwTime/MwTime.stories.tsx +20 -0
- package/src/stories/components/Input/MwTime/argTypes.ts +88 -0
- package/src/stories/components/MwButton/MwButton.stories.tsx +19 -0
- package/src/stories/components/MwButton/argTypes.ts +81 -0
- package/src/stories/components/MwCalendar/MwCalendar.stories.tsx +39 -0
- package/src/stories/components/MwCalendar/argTypes.ts +15 -0
- package/src/stories/components/MwCalendarInterval/MwCalendarInterval.stories.tsx +39 -0
- package/src/stories/components/MwCalendarInterval/argTypes.ts +15 -0
- package/src/stories/components/MwCard/MwCard.stories.tsx +19 -0
- package/src/stories/components/MwCard/argTypes.ts +27 -0
- package/src/stories/components/MwIcon/MwIcon.stories.tsx +19 -0
- package/src/stories/components/MwIcon/argTypes.ts +48 -0
- package/src/stories/components/MwIndicator/MwIndicator.stories.tsx +19 -0
- package/src/stories/components/MwIndicator/argTypes.ts +38 -0
- package/src/stories/components/MwLoader/MwLoader.stories.tsx +19 -0
- package/src/stories/components/MwLoader/argTypes.ts +33 -0
- package/src/stories/components/MwModal/MwModal.stories.tsx +81 -0
- package/src/stories/components/MwModal/argTypes.ts +71 -0
- package/src/stories/components/MwPlaceholder/Template1/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template1/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template10/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template10/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template2/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template2/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template3/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template3/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template4/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template4/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template5/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template5/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template6/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template6/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template7/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template7/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template8/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template8/argTypes.ts +22 -0
- package/src/stories/components/MwPlaceholder/Template9/MwTemplate1.stories.tsx +23 -0
- package/src/stories/components/MwPlaceholder/Template9/argTypes.ts +22 -0
- package/src/stories/components/MwProgressBar/MwIndicator.stories.tsx +19 -0
- package/src/stories/components/MwProgressBar/argTypes.ts +22 -0
- package/src/stories/components/MwTabs/MwTabs.stories.tsx +29 -0
- package/src/stories/components/MwTabs/argTypes.ts +78 -0
- package/src/stories/components/MwTextArea/MwTextArea.stories.tsx +19 -0
- package/src/stories/components/MwTextArea/argTypes.ts +29 -0
- package/src/stories/components/MwToast/MwIcon.stories.tsx +19 -0
- package/src/stories/components/MwToast/argTypes.ts +45 -0
- package/src/stories/examples/Introduction.stories.mdx +219 -0
- package/src/stories/examples/assets/code-brackets.svg +1 -0
- package/src/stories/examples/assets/colors.svg +1 -0
- package/src/stories/examples/assets/comments.svg +1 -0
- package/src/stories/examples/assets/direction.svg +1 -0
- package/src/stories/examples/assets/flow.svg +1 -0
- package/src/stories/examples/assets/plugin.svg +1 -0
- package/src/stories/examples/assets/repo.svg +1 -0
- package/src/stories/examples/assets/stackalt.svg +1 -0
- package/src/stories/interfaces.ts +17 -0
- package/src/styled.d.ts +9 -0
- package/src/theme/constants.ts +129 -0
- package/src/theme/globals.tsx +15 -0
- package/src/theme/index.tsx +68 -0
- package/src/theme/interfaces.ts +24 -0
- package/src/theme/useCssVars.ts +49 -0
- package/src/typings.d.ts +20 -0
- package/tsconfig.json +23 -0
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -30
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -11
- package/dist/index.modern.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModalProps } from '../../interfaces'
|
|
2
|
+
|
|
3
|
+
export interface AuditProps
|
|
4
|
+
extends Omit<
|
|
5
|
+
ModalProps,
|
|
6
|
+
| 'size'
|
|
7
|
+
| 'customSize'
|
|
8
|
+
| 'color'
|
|
9
|
+
| 'inverted'
|
|
10
|
+
| 'loading'
|
|
11
|
+
| 'footer'
|
|
12
|
+
| 'footerMessage'
|
|
13
|
+
| 'title'
|
|
14
|
+
> {
|
|
15
|
+
cancelAction: React.MouseEventHandler<HTMLButtonElement>
|
|
16
|
+
confirmAction: React.MouseEventHandler<HTMLButtonElement>
|
|
17
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Modal from '../../component'
|
|
3
|
+
|
|
4
|
+
import { ConfirmDeleteProps } from './interfaces'
|
|
5
|
+
import * as S from './styles'
|
|
6
|
+
|
|
7
|
+
const ConfirmDelete = (props: ConfirmDeleteProps) => {
|
|
8
|
+
const {
|
|
9
|
+
cancelAction,
|
|
10
|
+
confirmAction,
|
|
11
|
+
openState,
|
|
12
|
+
content,
|
|
13
|
+
children,
|
|
14
|
+
title,
|
|
15
|
+
closeOnClickOutside,
|
|
16
|
+
closeOnEsc,
|
|
17
|
+
} = props
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Modal
|
|
21
|
+
title={'Deletar ' + title}
|
|
22
|
+
closeOnClickOutside={closeOnClickOutside}
|
|
23
|
+
closeOnEsc={closeOnEsc}
|
|
24
|
+
openState={openState}
|
|
25
|
+
size='custom'
|
|
26
|
+
customSize={{ width: '500px' }}
|
|
27
|
+
color='greyishBlue'
|
|
28
|
+
inverted
|
|
29
|
+
footer={[
|
|
30
|
+
{
|
|
31
|
+
appearance: 'bordeless',
|
|
32
|
+
content: 'Cancelar',
|
|
33
|
+
onClick: cancelAction,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
color: 'pink',
|
|
37
|
+
content: 'Deletar',
|
|
38
|
+
onClick: confirmAction,
|
|
39
|
+
},
|
|
40
|
+
]}
|
|
41
|
+
>
|
|
42
|
+
<S.Content>{children || content}</S.Content>
|
|
43
|
+
</Modal>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default ConfirmDelete
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ModalProps } from '../../interfaces'
|
|
2
|
+
|
|
3
|
+
export interface ConfirmDeleteProps
|
|
4
|
+
extends Omit<
|
|
5
|
+
ModalProps,
|
|
6
|
+
| 'size'
|
|
7
|
+
| 'customSize'
|
|
8
|
+
| 'color'
|
|
9
|
+
| 'inverted'
|
|
10
|
+
| 'loading'
|
|
11
|
+
| 'footer'
|
|
12
|
+
| 'footerMessage'
|
|
13
|
+
> {
|
|
14
|
+
cancelAction: React.MouseEventHandler<HTMLButtonElement>
|
|
15
|
+
confirmAction: React.MouseEventHandler<HTMLButtonElement>
|
|
16
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Modal from '../../component'
|
|
3
|
+
|
|
4
|
+
import { ConfirmSuccessProps } from './interfaces'
|
|
5
|
+
import * as S from './styles'
|
|
6
|
+
|
|
7
|
+
const ConfirmSuccess = (props: ConfirmSuccessProps) => {
|
|
8
|
+
const {
|
|
9
|
+
homeAction,
|
|
10
|
+
cancelAction,
|
|
11
|
+
confirmAction,
|
|
12
|
+
openState,
|
|
13
|
+
content,
|
|
14
|
+
children,
|
|
15
|
+
closeOnClickOutside,
|
|
16
|
+
closeOnEsc,
|
|
17
|
+
} = props
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<Modal
|
|
21
|
+
title='Confirmação!'
|
|
22
|
+
closeOnClickOutside={closeOnClickOutside}
|
|
23
|
+
closeOnEsc={closeOnEsc}
|
|
24
|
+
openState={openState}
|
|
25
|
+
size='custom'
|
|
26
|
+
customSize={{ width: '630px' }}
|
|
27
|
+
color='greyishBlue'
|
|
28
|
+
inverted
|
|
29
|
+
footer={[
|
|
30
|
+
{
|
|
31
|
+
appearance: 'bordered',
|
|
32
|
+
content: 'Ir para Home',
|
|
33
|
+
onClick: homeAction,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
appearance: 'bordered',
|
|
37
|
+
content: 'Continuar edição',
|
|
38
|
+
onClick: cancelAction,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
content: 'Novo Cadastro',
|
|
42
|
+
onClick: confirmAction,
|
|
43
|
+
},
|
|
44
|
+
]}
|
|
45
|
+
>
|
|
46
|
+
<S.Content>{children || content}</S.Content>
|
|
47
|
+
</Modal>
|
|
48
|
+
)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export default ConfirmSuccess
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ModalProps } from '../../interfaces'
|
|
2
|
+
|
|
3
|
+
export interface ConfirmSuccessProps
|
|
4
|
+
extends Omit<
|
|
5
|
+
ModalProps,
|
|
6
|
+
| 'size'
|
|
7
|
+
| 'customSize'
|
|
8
|
+
| 'color'
|
|
9
|
+
| 'inverted'
|
|
10
|
+
| 'loading'
|
|
11
|
+
| 'footer'
|
|
12
|
+
| 'footerMessage'
|
|
13
|
+
| 'title'
|
|
14
|
+
> {
|
|
15
|
+
homeAction: React.MouseEventHandler<HTMLButtonElement>
|
|
16
|
+
cancelAction: React.MouseEventHandler<HTMLButtonElement>
|
|
17
|
+
confirmAction: React.MouseEventHandler<HTMLButtonElement>
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { PlaceholderProps } from '../../interfaces'
|
|
3
|
+
import * as S from './styles'
|
|
4
|
+
|
|
5
|
+
const Template1 = (props: PlaceholderProps) => {
|
|
6
|
+
if (!props.loading) return <React.Fragment />
|
|
7
|
+
return (
|
|
8
|
+
<S.Container>
|
|
9
|
+
<S.Header>
|
|
10
|
+
<S.HeaderImage />
|
|
11
|
+
<S.HeaderContent>
|
|
12
|
+
<S.HeaderLine size='medium' height='9px' color='#E6E6E6' />
|
|
13
|
+
<S.HeaderLine size='small' height='9px' color='#E6E6E6' />
|
|
14
|
+
</S.HeaderContent>
|
|
15
|
+
</S.Header>
|
|
16
|
+
<S.MainContent>
|
|
17
|
+
<S.MainLine size='medium' height='9px' color='#E6E6E6' />
|
|
18
|
+
<S.MainLine size='small' height='9px' color='#E6E6E6' />
|
|
19
|
+
<S.MainLine size='mini' height='9px' color='#E6E6E6' />
|
|
20
|
+
<S.MainLine size='medium' height='9px' color='#E6E6E6' />
|
|
21
|
+
<S.MainLine size='small' height='9px' color='#E6E6E6' />
|
|
22
|
+
</S.MainContent>
|
|
23
|
+
</S.Container>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default Template1
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
import { HeaderLineProps } from '../../interfaces'
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 300px;
|
|
7
|
+
position: absolute;
|
|
8
|
+
padding: 14px;
|
|
9
|
+
`
|
|
10
|
+
|
|
11
|
+
export const Header = styled.div`
|
|
12
|
+
display: flex;
|
|
13
|
+
`
|
|
14
|
+
|
|
15
|
+
export const HeaderImage = styled.div`
|
|
16
|
+
width: 43px;
|
|
17
|
+
height: 44px;
|
|
18
|
+
background-color: #ebebeb;
|
|
19
|
+
`
|
|
20
|
+
|
|
21
|
+
export const HeaderContent = styled.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
flex: 1;
|
|
26
|
+
`
|
|
27
|
+
|
|
28
|
+
export const MainContent = styled.div`
|
|
29
|
+
margin-top: 8px;
|
|
30
|
+
`
|
|
31
|
+
|
|
32
|
+
export const HeaderLine = styled.div<HeaderLineProps>`
|
|
33
|
+
height: ${(props) => props.height};
|
|
34
|
+
background-color: #ebebeb;
|
|
35
|
+
margin-left: 7px;
|
|
36
|
+
|
|
37
|
+
& + div {
|
|
38
|
+
margin-top: 14px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
${(props) =>
|
|
42
|
+
props.size === 'mini' &&
|
|
43
|
+
css`
|
|
44
|
+
width: 15%;
|
|
45
|
+
`}
|
|
46
|
+
${(props) =>
|
|
47
|
+
props.size === 'small' &&
|
|
48
|
+
css`
|
|
49
|
+
width: 25%;
|
|
50
|
+
`}
|
|
51
|
+
|
|
52
|
+
${(props) =>
|
|
53
|
+
props.size === 'medium' &&
|
|
54
|
+
css`
|
|
55
|
+
width: 45%;
|
|
56
|
+
`}
|
|
57
|
+
|
|
58
|
+
${(props) =>
|
|
59
|
+
props.size === 'large' &&
|
|
60
|
+
css`
|
|
61
|
+
width: 75%;
|
|
62
|
+
`}
|
|
63
|
+
`
|
|
64
|
+
|
|
65
|
+
export const MainLine = styled(HeaderLine)<HeaderLineProps>`
|
|
66
|
+
margin-bottom: 14px;
|
|
67
|
+
margin-left: 0;
|
|
68
|
+
`
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { PlaceholderProps } from '../../interfaces'
|
|
3
|
+
import * as S from './styles'
|
|
4
|
+
|
|
5
|
+
const Template10 = (props: PlaceholderProps) => {
|
|
6
|
+
if (!props.loading) return <React.Fragment />
|
|
7
|
+
return (
|
|
8
|
+
<S.Container>
|
|
9
|
+
<S.Header>
|
|
10
|
+
<S.CustomLine width='89px' height='10px' color='#EBEBEB' size='large' />
|
|
11
|
+
<S.CustomLine width='50px' height='10px' color='#EBEBEB' size='large' />
|
|
12
|
+
</S.Header>
|
|
13
|
+
<S.Main>
|
|
14
|
+
<S.GraphLine width='27px' height='56px' color='#EBEBEB' size='large' />
|
|
15
|
+
<S.GraphLine width='27px' height='73px' color='#EBEBEB' size='large' />
|
|
16
|
+
<S.GraphLine width='27px' height='61px' color='#EBEBEB' size='large' />
|
|
17
|
+
<S.GraphLine width='27px' height='56px' color='#EBEBEB' size='large' />
|
|
18
|
+
<S.GraphLine width='27px' height='73px' color='#EBEBEB' size='large' />
|
|
19
|
+
<S.GraphLine width='27px' height='61px' color='#EBEBEB' size='large' />
|
|
20
|
+
<S.GraphLine width='27px' height='27px' color='#EBEBEB' size='large' />
|
|
21
|
+
<S.GraphLine width='27px' height='90px' color='#EBEBEB' size='large' />
|
|
22
|
+
<S.GraphLine width='27px' height='56px' color='#EBEBEB' size='large' />
|
|
23
|
+
<S.GraphLine width='27px' height='56px' color='#EBEBEB' size='large' />
|
|
24
|
+
</S.Main>
|
|
25
|
+
</S.Container>
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default Template10
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
import { HeaderLineProps } from '../../interfaces'
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
width: 395px;
|
|
5
|
+
height: 245px;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
background: #f5f5f5 0% 0% no-repeat padding-box;
|
|
10
|
+
`
|
|
11
|
+
|
|
12
|
+
export const Header = styled.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
padding: 14px;
|
|
17
|
+
width: 100%;
|
|
18
|
+
`
|
|
19
|
+
|
|
20
|
+
export const HeaderLine = styled.div<HeaderLineProps>`
|
|
21
|
+
height: ${(props) => props.height};
|
|
22
|
+
background-color: #ebebeb;
|
|
23
|
+
margin-left: 7px;
|
|
24
|
+
|
|
25
|
+
& + div {
|
|
26
|
+
margin-top: 7px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
${(props) =>
|
|
30
|
+
props.size === 'mini' &&
|
|
31
|
+
css`
|
|
32
|
+
width: 15%;
|
|
33
|
+
`}
|
|
34
|
+
${(props) =>
|
|
35
|
+
props.size === 'small' &&
|
|
36
|
+
css`
|
|
37
|
+
width: 25%;
|
|
38
|
+
`}
|
|
39
|
+
|
|
40
|
+
${(props) =>
|
|
41
|
+
props.size === 'medium' &&
|
|
42
|
+
css`
|
|
43
|
+
width: 45%;
|
|
44
|
+
`}
|
|
45
|
+
|
|
46
|
+
${(props) =>
|
|
47
|
+
props.size === 'large' &&
|
|
48
|
+
css`
|
|
49
|
+
width: 75%;
|
|
50
|
+
`}
|
|
51
|
+
`
|
|
52
|
+
|
|
53
|
+
export const CustomLine = styled(HeaderLine)`
|
|
54
|
+
width: ${(props) => props.width};
|
|
55
|
+
height: ${(props) => props.height};
|
|
56
|
+
background-color: ${(props) => props.color};
|
|
57
|
+
border: 1px solid #dedede5e;
|
|
58
|
+
`
|
|
59
|
+
|
|
60
|
+
export const GraphLine = styled(CustomLine)`
|
|
61
|
+
margin: 0 7px;
|
|
62
|
+
`
|
|
63
|
+
|
|
64
|
+
export const Main = styled.div`
|
|
65
|
+
flex: 1;
|
|
66
|
+
padding: 0 7px 72px 7px;
|
|
67
|
+
width: 100%;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
align-items: flex-end;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
`
|
|
73
|
+
|
|
74
|
+
export const Circle = styled.div`
|
|
75
|
+
width: 128px;
|
|
76
|
+
height: 128px;
|
|
77
|
+
background-color: #ebebeb;
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
`
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import * as S from './styles'
|
|
3
|
+
|
|
4
|
+
import { PlaceholderProps } from '../../interfaces'
|
|
5
|
+
|
|
6
|
+
const Template2 = (props: PlaceholderProps) => {
|
|
7
|
+
if (!props.loading) return <React.Fragment />
|
|
8
|
+
return (
|
|
9
|
+
<S.Template2Container>
|
|
10
|
+
<S.Header>
|
|
11
|
+
<S.HeaderImage />
|
|
12
|
+
<S.HeaderContent>
|
|
13
|
+
<S.HeaderLine size='mini' height='9px' color='#E6E6E6' />
|
|
14
|
+
<S.HeaderLine size='mini' height='9px' color='#E6E6E6' />
|
|
15
|
+
</S.HeaderContent>
|
|
16
|
+
</S.Header>
|
|
17
|
+
<S.MainContent>
|
|
18
|
+
<S.MainLine size='mini' height='9px' color='#E6E6E6' />
|
|
19
|
+
<S.MainLine size='mini' height='9px' color='#E6E6E6' />
|
|
20
|
+
</S.MainContent>
|
|
21
|
+
</S.Template2Container>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default Template2
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
import { HeaderLineProps } from '../../interfaces'
|
|
3
|
+
import { HeaderLine as HeaderLineStyle } from '../../styles'
|
|
4
|
+
|
|
5
|
+
export const Container = styled.div`
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-height: 100%;
|
|
8
|
+
position: absolute;
|
|
9
|
+
padding: 14px;
|
|
10
|
+
`
|
|
11
|
+
|
|
12
|
+
export const Template2Container = styled(Container)`
|
|
13
|
+
background: #fff;
|
|
14
|
+
border: 2px solid #ebebeb;
|
|
15
|
+
`
|
|
16
|
+
|
|
17
|
+
export const Header = styled.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
`
|
|
20
|
+
|
|
21
|
+
export const HeaderImage = styled.div`
|
|
22
|
+
width: 43px;
|
|
23
|
+
height: 44px;
|
|
24
|
+
background-color: #ebebeb;
|
|
25
|
+
`
|
|
26
|
+
|
|
27
|
+
export const HeaderContent = styled.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
flex: 1;
|
|
32
|
+
`
|
|
33
|
+
|
|
34
|
+
export const MainContent = styled.div`
|
|
35
|
+
margin-top: 8px;
|
|
36
|
+
`
|
|
37
|
+
|
|
38
|
+
export const MainLine = styled(HeaderLineStyle)<HeaderLineProps>`
|
|
39
|
+
margin-bottom: 14px;
|
|
40
|
+
margin-left: 0;
|
|
41
|
+
`
|
|
42
|
+
|
|
43
|
+
export const HeaderLine = styled(HeaderLineStyle)``
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { PlaceholderProps } from '../../interfaces'
|
|
3
|
+
import * as S from './styles'
|
|
4
|
+
|
|
5
|
+
const Template3 = (props: PlaceholderProps) => {
|
|
6
|
+
if (!props.loading) return <React.Fragment />
|
|
7
|
+
return (
|
|
8
|
+
<S.Template3Container>
|
|
9
|
+
<S.Template3Line size='large' height='7px' color='#DADADA' />
|
|
10
|
+
<S.Template3Line size='small' height='7px' color='#DADADA' />
|
|
11
|
+
<S.Template3Line size='medium' height='7px' color='#DADADA' />
|
|
12
|
+
<S.Template3Line size='small' height='7px' color='#DADADA' />
|
|
13
|
+
<S.Template3Line size='mini' height='7px' color='#DADADA' />
|
|
14
|
+
</S.Template3Container>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default Template3
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import styled from 'styled-components'
|
|
2
|
+
import { HeaderLine } from '../../styles'
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-height: 100%;
|
|
7
|
+
position: absolute;
|
|
8
|
+
padding: 14px;
|
|
9
|
+
`
|
|
10
|
+
|
|
11
|
+
export const Template3Container = styled(Container)``
|
|
12
|
+
export const Template3Line = styled(HeaderLine)`
|
|
13
|
+
background-color: #dadada;
|
|
14
|
+
height: ${(props) => props.height};
|
|
15
|
+
`
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { PlaceholderProps } from '../../interfaces'
|
|
3
|
+
import * as S from './styles'
|
|
4
|
+
const Template4 = (props: PlaceholderProps) => {
|
|
5
|
+
if (!props.loading) return <React.Fragment />
|
|
6
|
+
return (
|
|
7
|
+
<S.Template4Container>
|
|
8
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='594px' />
|
|
9
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='572px' />
|
|
10
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='624px' />
|
|
11
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='544px' />
|
|
12
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width=' 607px' />
|
|
13
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='581px' />
|
|
14
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='601px' />
|
|
15
|
+
<S.CustomLine size='large' height='12px' color='#DDDEDF' width='251px' />
|
|
16
|
+
</S.Template4Container>
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default Template4
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
import { HeaderLineProps } from '../../interfaces'
|
|
3
|
+
|
|
4
|
+
export const Container = styled.div`
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-height: 100%;
|
|
7
|
+
position: absolute;
|
|
8
|
+
padding: 14px;
|
|
9
|
+
`
|
|
10
|
+
export const HeaderLine = styled.div<HeaderLineProps>`
|
|
11
|
+
height: ${(props) => props.height};
|
|
12
|
+
background-color: #ebebeb;
|
|
13
|
+
margin-left: 7px;
|
|
14
|
+
|
|
15
|
+
& + div {
|
|
16
|
+
margin-top: 14px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
${(props) =>
|
|
20
|
+
props.size === 'mini' &&
|
|
21
|
+
css`
|
|
22
|
+
width: 15%;
|
|
23
|
+
`}
|
|
24
|
+
${(props) =>
|
|
25
|
+
props.size === 'small' &&
|
|
26
|
+
css`
|
|
27
|
+
width: 25%;
|
|
28
|
+
`}
|
|
29
|
+
|
|
30
|
+
${(props) =>
|
|
31
|
+
props.size === 'medium' &&
|
|
32
|
+
css`
|
|
33
|
+
width: 45%;
|
|
34
|
+
`}
|
|
35
|
+
|
|
36
|
+
${(props) =>
|
|
37
|
+
props.size === 'large' &&
|
|
38
|
+
css`
|
|
39
|
+
width: 75%;
|
|
40
|
+
`}
|
|
41
|
+
`
|
|
42
|
+
export const Template4Container = styled(Container)`
|
|
43
|
+
border: 1px solid #e6e6e7;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
`
|
|
46
|
+
export const CustomLine = styled(HeaderLine)`
|
|
47
|
+
width: ${(props) => props.width};
|
|
48
|
+
height: ${(props) => props.height};
|
|
49
|
+
background-color: ${(props) => props.color};
|
|
50
|
+
`
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { PlaceholderProps } from '../../interfaces'
|
|
3
|
+
import * as S from './styles'
|
|
4
|
+
|
|
5
|
+
const Template5 = (props: PlaceholderProps) => {
|
|
6
|
+
if (!props.loading) return <React.Fragment />
|
|
7
|
+
return (
|
|
8
|
+
<S.Container>
|
|
9
|
+
<S.Circle />
|
|
10
|
+
<S.MainContent>
|
|
11
|
+
<S.CustomLine
|
|
12
|
+
width='406px'
|
|
13
|
+
height='16px'
|
|
14
|
+
color='#DDDEDF'
|
|
15
|
+
size='large'
|
|
16
|
+
/>
|
|
17
|
+
<S.CustomLine
|
|
18
|
+
width='387px'
|
|
19
|
+
height='16px'
|
|
20
|
+
color='#DDDEDF'
|
|
21
|
+
size='large'
|
|
22
|
+
/>
|
|
23
|
+
<S.CustomLine
|
|
24
|
+
width='426px'
|
|
25
|
+
height='16px'
|
|
26
|
+
color='#DDDEDF'
|
|
27
|
+
size='large'
|
|
28
|
+
/>
|
|
29
|
+
<S.CustomLine
|
|
30
|
+
width='189px'
|
|
31
|
+
height='16px'
|
|
32
|
+
color='#DDDEDF'
|
|
33
|
+
size='large'
|
|
34
|
+
/>
|
|
35
|
+
</S.MainContent>
|
|
36
|
+
</S.Container>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default Template5
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
import { HeaderLineProps } from '../../interfaces'
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
position: absolute;
|
|
5
|
+
width: 746px;
|
|
6
|
+
height: 169px;
|
|
7
|
+
border: 1px solid #e6e6e7;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
padding: 14px;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
`
|
|
14
|
+
|
|
15
|
+
export const Circle = styled.div`
|
|
16
|
+
width: 141px;
|
|
17
|
+
height: 141px;
|
|
18
|
+
background-color: #dddedf;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
`
|
|
21
|
+
|
|
22
|
+
export const HeaderLine = styled.div<HeaderLineProps>`
|
|
23
|
+
height: ${(props) => props.height};
|
|
24
|
+
background-color: #ebebeb;
|
|
25
|
+
margin-left: 7px;
|
|
26
|
+
|
|
27
|
+
& + div {
|
|
28
|
+
margin-top: 14px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
${(props) =>
|
|
32
|
+
props.size === 'mini' &&
|
|
33
|
+
css`
|
|
34
|
+
width: 15%;
|
|
35
|
+
`}
|
|
36
|
+
${(props) =>
|
|
37
|
+
props.size === 'small' &&
|
|
38
|
+
css`
|
|
39
|
+
width: 25%;
|
|
40
|
+
`}
|
|
41
|
+
|
|
42
|
+
${(props) =>
|
|
43
|
+
props.size === 'medium' &&
|
|
44
|
+
css`
|
|
45
|
+
width: 45%;
|
|
46
|
+
`}
|
|
47
|
+
|
|
48
|
+
${(props) =>
|
|
49
|
+
props.size === 'large' &&
|
|
50
|
+
css`
|
|
51
|
+
width: 75%;
|
|
52
|
+
`}
|
|
53
|
+
`
|
|
54
|
+
|
|
55
|
+
export const CustomLine = styled(HeaderLine)`
|
|
56
|
+
width: ${(props) => props.width};
|
|
57
|
+
height: ${(props) => props.height};
|
|
58
|
+
background-color: ${(props) => props.color};
|
|
59
|
+
`
|
|
60
|
+
|
|
61
|
+
export const MainContent = styled.div`
|
|
62
|
+
flex: 1;
|
|
63
|
+
margin-left: 35px;
|
|
64
|
+
`
|