Commit 6f6dc8e2 authored by Kaarel Teder's avatar Kaarel Teder

added asstes and some config changes

parent 1b198caf
import { configure, addDecorator } from "@storybook/html"; import { configure, addDecorator } from "@storybook/html";
import { withA11y } from "@storybook/addon-a11y"; import { withA11y } from "@storybook/addon-a11y";
import "../node_modules/veera-styles/scss/main-storybook.scss"; import "../node_modules/veera-styles/scss/main-storybook.scss";
import jquery from "jquery"; import jquery from "jquery";
global.$ = jquery; global.$ = jquery;
global.jQuery = jquery; global.jQuery = jquery;
require("bootstrap/dist/js/bootstrap.min.js");
require("../node_modules/bootstrap/dist/js/bootstrap.min.js"); require("../node_modules/bootstrap/dist/js/bootstrap.min.js");
addDecorator(withA11y); addDecorator(withA11y);
// automatically import all files ending in *.stories.js // automatically import all files ending in *.stories.js
......
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M28 16H16V28H12V16H0V12H12V0H16V12H28V16Z" fill="#005AA3"/>
</svg>
<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M5.36605 7.48548L0.264458 2.38388C-0.0881526 2.03126 -0.0881526 1.46108 0.264458 1.11222L1.11222 0.264458C1.46483 -0.0881527 2.03501 -0.0881527 2.38387 0.264458L6 3.8806L9.61613 0.264458C9.96874 -0.0881527 10.5389 -0.0881527 10.8878 0.264458L11.7355 1.11222C12.0882 1.46484 12.0882 2.03502 11.7355 2.38388L6.63395 7.48548C6.28884 7.83809 5.71866 7.83809 5.36605 7.48548Z" fill="#005AA3"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M10.5225 5.79688C10.2859 5.79688 10.0942 5.96461 10.0942 6.17158V13.2535C10.0942 13.4603 10.2859 13.6282 10.5225 13.6282C10.759 13.6282 10.9507 13.4603 10.9507 13.2535V6.17158C10.9507 5.96461 10.759 5.79688 10.5225 5.79688Z" fill="#005AA3"/>
<path d="M5.46925 5.79688C5.23272 5.79688 5.04102 5.96461 5.04102 6.17158V13.2535C5.04102 13.4603 5.23272 13.6282 5.46925 13.6282C5.70579 13.6282 5.89749 13.4603 5.89749 13.2535V6.17158C5.89749 5.96461 5.70579 5.79688 5.46925 5.79688Z" fill="#005AA3"/>
<path d="M1.78608 4.76334V13.9953C1.78608 14.5409 2.01475 15.0534 2.41422 15.4211C2.81184 15.7898 3.3652 15.9991 3.94432 15.9999H12.0467C12.626 15.9991 13.1793 15.7898 13.5768 15.4211C13.9762 15.0534 14.2049 14.5409 14.2049 13.9953V4.76334C14.999 4.57891 15.5135 3.90766 15.4073 3.1947C15.3009 2.48188 14.6069 1.94866 13.7852 1.94851H11.5927V1.48013C11.5952 1.08625 11.4172 0.708036 11.0985 0.429789C10.7799 0.151688 10.3469 -0.00317089 9.8968 4.92331e-05H6.0942C5.64405 -0.00317089 5.21113 0.151688 4.89246 0.429789C4.5738 0.708036 4.39581 1.08625 4.39832 1.48013V1.94851H2.20579C1.38411 1.94866 0.690068 2.48188 0.583678 3.1947C0.477455 3.90766 0.992007 4.57891 1.78608 4.76334ZM12.0467 15.2505H3.94432C3.21214 15.2505 2.64255 14.7002 2.64255 13.9953V4.79627H13.3484V13.9953C13.3484 14.7002 12.7789 15.2505 12.0467 15.2505ZM5.25479 1.48013C5.25195 1.28502 5.3396 1.09723 5.49785 0.959498C5.65593 0.821765 5.87105 0.746092 6.0942 0.749459H9.8968C10.1199 0.746092 10.3351 0.821765 10.4931 0.959498C10.6514 1.09709 10.739 1.28502 10.7362 1.48013V1.94851H5.25479V1.48013ZM2.20579 2.69792H13.7852C14.2109 2.69792 14.556 2.99988 14.556 3.37239C14.556 3.7449 14.2109 4.04686 13.7852 4.04686H2.20579C1.78006 4.04686 1.43496 3.7449 1.43496 3.37239C1.43496 2.99988 1.78006 2.69792 2.20579 2.69792Z" fill="#005AA3"/>
<path d="M7.99562 5.79688C7.75909 5.79688 7.56738 5.96461 7.56738 6.17158V13.2535C7.56738 13.4603 7.75909 13.6282 7.99562 13.6282C8.23215 13.6282 8.42386 13.4603 8.42386 13.2535V6.17158C8.42386 5.96461 8.23215 5.79688 7.99562 5.79688Z" fill="#005AA3"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0)">
<path d="M14.7674 10.051C14.5473 10.051 14.3689 10.2294 14.3689 10.4495V13.9876C14.3681 14.6476 13.8334 15.1824 13.1734 15.183H1.99241C1.33243 15.1824 0.797744 14.6476 0.796966 13.9876V3.6035C0.797744 2.94367 1.33243 2.40883 1.99241 2.40805H5.53051C5.75061 2.40805 5.92899 2.22967 5.92899 2.00957C5.92899 1.78962 5.75061 1.61108 5.53051 1.61108H1.99241C0.892539 1.61233 0.00124526 2.50362 0 3.6035V13.9877C0.00124526 15.0876 0.892539 15.9789 1.99241 15.9801H13.1734C14.2733 15.9789 15.1646 15.0876 15.1659 13.9877V10.4495C15.1659 10.2294 14.9875 10.051 14.7674 10.051Z" fill="#005AA3"/>
<path d="M15.0079 0.585774C14.3076 -0.114529 13.1722 -0.114529 12.4719 0.585774L5.36272 7.69495C5.314 7.74368 5.27882 7.80407 5.26046 7.87038L4.32558 11.2455C4.28713 11.3839 4.3262 11.5321 4.42769 11.6337C4.52933 11.7352 4.67752 11.7743 4.8159 11.736L8.19103 10.8009C8.25734 10.7826 8.31773 10.7474 8.36645 10.6987L15.4755 3.58934C16.1747 2.88857 16.1747 1.75414 15.4755 1.05337L15.0079 0.585774ZM6.23098 7.95397L12.0493 2.1355L13.9258 4.01195L8.10728 9.83042L6.23098 7.95397ZM5.85616 8.70611L7.3553 10.2054L5.28163 10.7799L5.85616 8.70611ZM14.912 3.02586L14.4894 3.44847L12.6128 1.57186L13.0356 1.14925C13.4246 0.760265 14.0553 0.760265 14.4443 1.14925L14.912 1.61685C15.3004 2.0063 15.3004 2.63656 14.912 3.02586Z" fill="#005AA3"/>
</g>
<defs>
<clipPath id="clip0">
<rect width="16" height="16" fill="white"/>
</clipPath>
</defs>
</svg>
<svg width="11" height="16" viewBox="0 0 11 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M4.74749 0.282843C4.9037 0.126633 5.15696 0.126633 5.31317 0.282843L9.77782 4.74749C9.93403 4.9037 9.93403 5.15696 9.77782 5.31317L9.28284 5.80815C9.12663 5.96436 8.87337 5.96436 8.71716 5.80815L5.03033 2.12132L1.3435 5.80815C1.18729 5.96436 0.934027 5.96436 0.777817 5.80815L0.282843 5.31317C0.126633 5.15696 0.126633 4.9037 0.282843 4.74749L4.74749 0.282843Z" fill="#555867"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.31318 14.8688C5.15697 15.025 4.90371 15.025 4.7475 14.8688L0.282852 10.4041C0.126642 10.2479 0.126642 9.99465 0.282852 9.83844L0.777826 9.34347C0.934036 9.18726 1.1873 9.18725 1.34351 9.34346L5.03034 13.0303L8.71717 9.34346C8.87338 9.18725 9.12664 9.18725 9.28285 9.34346L9.77783 9.83844C9.93404 9.99465 9.93404 10.2479 9.77783 10.4041L5.31318 14.8688Z" fill="#555867"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 1.9C9.16 1.9 10.1 2.84 10.1 4C10.1 5.16 9.16 6.1 8 6.1C6.84 6.1 5.9 5.16 5.9 4C5.9 2.84 6.84 1.9 8 1.9ZM8 10.9C10.975 10.9 14.1 12.355 14.1 13V14.1H1.9V13C1.9 12.355 5.025 10.9 8 10.9ZM8 0C5.79 0 4 1.79 4 4C4 6.205 5.79 8 8 8C10.21 8 12 6.205 12 4C12 1.79 10.21 0 8 0ZM8 9C5.335 9 0 10.335 0 13V16H16V13C16 10.335 10.665 9 8 9Z" fill="#6B6E7D"/>
</svg>
This diff is collapsed.
...@@ -13,12 +13,8 @@ ...@@ -13,12 +13,8 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bootstrap": "^4.3.1", "bootstrap": "^4.3.1",
"bootstrap-loader": "^3.0.4",
"bootstrap-sass": "^3.4.1",
"imports-loader": "^0.8.0",
"jquery": "^3.4.1", "jquery": "^3.4.1",
"resolve-url-loader": "^3.1.0", "veera-styles": "git+https://koodivaramu.eesti.ee/veebiraamistik/veera/veera-styles.git#master"
"veera-styles": "git+https://koodivaramu.eesti.ee/veebiraamistik/veera/veera-styles.git#Navigation"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.5.5", "@babel/core": "^7.5.5",
...@@ -32,7 +28,6 @@ ...@@ -32,7 +28,6 @@
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"css-loader": "^3.2.0", "css-loader": "^3.2.0",
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"raw-loader": "^3.1.0",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"storybook-addon-run-script": "^0.1.4", "storybook-addon-run-script": "^0.1.4",
"style-loader": "^1.0.0" "style-loader": "^1.0.0"
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment