dibk-design 0.4.41 → 0.4.44

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.
Files changed (100) hide show
  1. package/LICENSE +674 -674
  2. package/README.md +3 -3
  3. package/dist/components/Accordion.md +15 -15
  4. package/dist/components/Accordion.module.scss +205 -181
  5. package/dist/components/Button.md +75 -75
  6. package/dist/components/Button.module.scss +232 -216
  7. package/dist/components/CheckBoxIcon.js +109 -103
  8. package/dist/components/CheckBoxIcon.md +38 -38
  9. package/dist/components/CheckBoxIcon.module.scss +62 -62
  10. package/dist/components/CheckBoxInput.js +104 -101
  11. package/dist/components/CheckBoxInput.md +58 -51
  12. package/dist/components/CheckBoxInput.module.scss +24 -24
  13. package/dist/components/CheckBoxListItem.md +82 -82
  14. package/dist/components/CheckBoxListItem.module.scss +71 -71
  15. package/dist/components/ContentBox.md +46 -46
  16. package/dist/components/ContentBox.module.scss +116 -116
  17. package/dist/components/Dialog.md +5 -5
  18. package/dist/components/Dialog.module.scss +78 -71
  19. package/dist/components/DragAndDropFileInput.md +13 -13
  20. package/dist/components/DragAndDropFileInput.module.scss +45 -45
  21. package/dist/components/Footer.md +7 -7
  22. package/dist/components/Footer.module.scss +11 -11
  23. package/dist/components/Header.md +11 -11
  24. package/dist/components/Header.module.scss +64 -51
  25. package/dist/components/InputField.md +41 -41
  26. package/dist/components/InputField.module.scss +95 -83
  27. package/dist/components/Label.md +9 -9
  28. package/dist/components/Label.module.scss +16 -16
  29. package/dist/components/List.md +10 -10
  30. package/dist/components/List.module.scss +18 -18
  31. package/dist/components/LoadingAnimation.md +5 -5
  32. package/dist/components/LoadingAnimation.module.scss +26 -26
  33. package/dist/components/NavigationBar.md +42 -42
  34. package/dist/components/NavigationBar.module.scss +176 -176
  35. package/dist/components/NavigationBarListItem.md +15 -15
  36. package/dist/components/Paper.md +9 -9
  37. package/dist/components/Paper.module.scss +18 -17
  38. package/dist/components/RadioButtonIcon.md +41 -41
  39. package/dist/components/RadioButtonIcon.module.scss +44 -44
  40. package/dist/components/RadioButtonInput.md +30 -30
  41. package/dist/components/RadioButtonInput.module.scss +26 -26
  42. package/dist/components/RadioButtonListItem.md +70 -70
  43. package/dist/components/RadioButtonListItem.module.scss +71 -71
  44. package/dist/components/Select.md +28 -28
  45. package/dist/components/Select.module.scss +100 -101
  46. package/dist/components/Textarea.md +27 -27
  47. package/dist/components/Textarea.module.scss +72 -64
  48. package/dist/components/Theme.md +12 -12
  49. package/dist/components/Theme.module.scss +76 -76
  50. package/dist/components/WizardNavigation/Step.module.scss +75 -75
  51. package/dist/components/WizardNavigation.md +84 -84
  52. package/dist/components/WizardNavigation.module.scss +3 -3
  53. package/dist/fonts/Altis-Light.svg +326 -326
  54. package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
  55. package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
  56. package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
  57. package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
  58. package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
  59. package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
  60. package/dist/images/dibk-logo-mobile.svg +91 -91
  61. package/dist/images/dibk-logo.svg +991 -991
  62. package/dist/images/spinner.svg +56 -56
  63. package/dist/style/abstracts/_all.scss +1 -1
  64. package/dist/style/abstracts/mixins/_all.scss +12 -12
  65. package/dist/style/abstracts/mixins/_animation.scss +6 -6
  66. package/dist/style/abstracts/mixins/_appearance.scss +5 -5
  67. package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
  68. package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
  69. package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
  70. package/dist/style/abstracts/mixins/_calc.scss +5 -5
  71. package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
  72. package/dist/style/abstracts/mixins/_opacity.scss +5 -5
  73. package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
  74. package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
  75. package/dist/style/abstracts/mixins/_transform.scss +6 -6
  76. package/dist/style/abstracts/mixins/_transition.scss +34 -34
  77. package/dist/style/abstracts/variables/_all.scss +2 -2
  78. package/dist/style/abstracts/variables/_colors.scss +29 -29
  79. package/dist/style/abstracts/variables/_typography.scss +1 -1
  80. package/dist/style/abstracts/variables/_viewports.scss +14 -11
  81. package/dist/style/base/_all.scss +1 -1
  82. package/dist/style/base/_reset.scss +15 -15
  83. package/dist/style/base/_typography.scss +6 -6
  84. package/dist/style/base/fonts.css +95 -95
  85. package/dist/style/global.scss +3 -3
  86. package/dist/style/layout/_containers.scss +9 -9
  87. package/package.json +43 -42
  88. package/dist/fonts_old/Altis-Light.eot +0 -0
  89. package/dist/fonts_old/Altis-Light.svg +0 -326
  90. package/dist/fonts_old/Altis-Light.ttf +0 -0
  91. package/dist/fonts_old/Altis-Light.woff +0 -0
  92. package/dist/fonts_old/Altis.eot +0 -0
  93. package/dist/fonts_old/Altis.svg +0 -327
  94. package/dist/fonts_old/Altis.ttf +0 -0
  95. package/dist/fonts_old/OpenSans-300.woff2 +0 -0
  96. package/dist/fonts_old/OpenSans-400.ttf +0 -0
  97. package/dist/fonts_old/OpenSans-400.woff +0 -0
  98. package/dist/fonts_old/OpenSans-400.woff2 +0 -0
  99. package/dist/fonts_old/OpenSans-400ekte.woff +0 -0
  100. package/dist/fonts_old/OpenSans-700.woff2 +0 -0
@@ -1,27 +1,27 @@
1
- Input field example:
2
-
3
- ```js
4
- <Textarea id="textInput1" onChange={()=>{console.log('onchange')}} mandatory={true} />
5
- <Textarea id="textInput2" onChange={()=>{console.log('onchange')}} value="Textarea with value" />
6
- <Textarea id="textInput3" onChange={()=>{console.log('onchange')}} defaultValue="Textarea with defaultValue" />
7
- <Textarea id="textInput4" onChange={()=>{console.log('onchange')}} value="Textarea with label and value" label="Textarea with label and value" />
8
- <Textarea id="textInput5" onChange={()=>{console.log('onchange')}} value="Textarea with link in label" label={['Textarea with ', <a key="labelLink" href="#">link</a>, ' in label']} />
9
- <Textarea id="textInput6" onChange={()=>{console.log('onchange')}} value="Textarea with label, value, errors and error message" label="Textarea with label, value, errors and error message" hasErrors={true} errorMessage="Wrong value" />
10
- <Textarea id="textInput7" onChange={()=>{console.log('onchange')}} readOnly value="Read only Textarea with label and value" label="Read only Textarea with label and value" />
11
- <Textarea id="textInput8" onChange={()=>{console.log('onchange')}} disabled value="Disabled Textarea with label and value" label="Disabled Textarea with label and value" />
12
- <Textarea id="textInput9" onChange={()=>{console.log('onchange')}} value="Value for Textarea" label="Textarea with label, value and contentOnly set to true" contentOnly={true} />
13
- <Textarea id="textInput10" onChange={() => {console.log('onChange')}} label="Textarea without value, contentOnly set to true and defaultContent" contentOnly={true} defaultContent="Please insert a value" />
14
- <Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with custom width" width="320px" />
15
- <Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with custom width and vertical resizing" width="450px" resize="vertical" />
16
- <Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with a not auto generated key" elementKey="textareaKeyHere" />
17
- ```
18
-
19
- Themed Input field example:
20
-
21
- ```js
22
- import customTheme from 'data/customTheme';
23
- <React.Fragment>
24
- <Textarea id="themedTextInput4" onChange={()=>{console.log('onchange')}} value="Textarea with link in label" label={['Textarea with ', <a key="labelLink" href="#">link</a>, ' in label']} theme={customTheme} />
25
- <Textarea id="themedTextInput5" onChange={()=>{console.log('onchange')}} value="Textarea with label, value, errors and error message" label="Textarea with label, value, errors and error message" hasErrors={true} errorMessage="Wrong value" theme={customTheme} />
26
- </React.Fragment>
27
- ```
1
+ Input field example:
2
+
3
+ ```js
4
+ <Textarea id="textInput1" onChange={()=>{console.log('onchange')}} mandatory={true} />
5
+ <Textarea id="textInput2" onChange={()=>{console.log('onchange')}} value="Textarea with value" />
6
+ <Textarea id="textInput3" onChange={()=>{console.log('onchange')}} defaultValue="Textarea with defaultValue" />
7
+ <Textarea id="textInput4" onChange={()=>{console.log('onchange')}} value="Textarea with label and value" label="Textarea with label and value" />
8
+ <Textarea id="textInput5" onChange={()=>{console.log('onchange')}} value="Textarea with link in label" label={['Textarea with ', <a key="labelLink" href="#">link</a>, ' in label']} />
9
+ <Textarea id="textInput6" onChange={()=>{console.log('onchange')}} value="Textarea with label, value, errors and error message" label="Textarea with label, value, errors and error message" hasErrors={true} errorMessage="Wrong value" />
10
+ <Textarea id="textInput7" onChange={()=>{console.log('onchange')}} readOnly value="Read only Textarea with label and value" label="Read only Textarea with label and value" />
11
+ <Textarea id="textInput8" onChange={()=>{console.log('onchange')}} disabled value="Disabled Textarea with label and value" label="Disabled Textarea with label and value" />
12
+ <Textarea id="textInput9" onChange={()=>{console.log('onchange')}} value="Value for Textarea" label="Textarea with label, value and contentOnly set to true" contentOnly={true} />
13
+ <Textarea id="textInput10" onChange={() => {console.log('onChange')}} label="Textarea without value, contentOnly set to true and defaultContent" contentOnly={true} defaultContent="Please insert a value" />
14
+ <Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with custom width" width="320px" />
15
+ <Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with custom width and vertical resizing" width="450px" resize="vertical" />
16
+ <Textarea id="textInput11" onChange={()=>{console.log('onchange')}} value="Textarea with a not auto generated key" elementKey="textareaKeyHere" />
17
+ ```
18
+
19
+ Themed Input field example:
20
+
21
+ ```js
22
+ import customTheme from 'data/customTheme';
23
+ <React.Fragment>
24
+ <Textarea id="themedTextInput4" onChange={()=>{console.log('onchange')}} value="Textarea with link in label" label={['Textarea with ', <a key="labelLink" href="#">link</a>, ' in label']} theme={customTheme} />
25
+ <Textarea id="themedTextInput5" onChange={()=>{console.log('onchange')}} value="Textarea with label, value, errors and error message" label="Textarea with label, value, errors and error message" hasErrors={true} errorMessage="Wrong value" theme={customTheme} />
26
+ </React.Fragment>
27
+ ```
@@ -1,64 +1,72 @@
1
- @import "../style/global.scss";
2
-
3
- :local(.textarea) {
4
- > div {
5
- display: block;
6
- }
7
- textarea {
8
- @include appearance(none);
9
- @include transition(border-color 0.15s linear, background 0.15s linear);
10
- @include border-radius(0);
11
- @include box-shadow(none);
12
- height: auto;
13
- width: 100%;
14
- display: block;
15
- padding: 10px;
16
- margin-bottom: 0;
17
- font-weight: 300;
18
- background-color: #fff;
19
- box-shadow: none;
20
- color: rgba(0, 0, 0, 0.75);
21
- font-family: inherit;
22
- font-size: 19px;
23
- box-sizing: border-box;
24
- border: 1px solid #afaba8;
25
-
26
- &:hover {
27
- border-color: $color-dark-blue;
28
- }
29
-
30
- &:focus {
31
- border-color: $color-dark-blue;
32
- outline-color: #54acb8;
33
- }
34
-
35
- &[disabled],
36
- &[readonly] {
37
- background-color: #ddd;
38
- cursor: default;
39
- }
40
-
41
- &:local(.hasErrors) {
42
- border-color: $color-error;
43
- &:focus {
44
- border-color: $color-error;
45
- outline-color: #b8565d;
46
- }
47
- &[disabled],
48
- &[readonly] {
49
- background-color: #ddd;
50
- cursor: default;
51
- border-color: #afaba8;
52
- }
53
- }
54
- }
55
- :local(.errorMessage) {
56
- color: $color-error-text;
57
- font-size: 19px;
58
- font-weight: 400;
59
- line-height: 1.6;
60
- font-family: "Open Sans", sans-serif;
61
- font-style: italic;
62
- overflow-wrap: break-word;
63
- }
64
- }
1
+ @import "../style/global.scss";
2
+
3
+ :local(.textarea) {
4
+ > div {
5
+ display: block;
6
+ }
7
+ textarea {
8
+ @include appearance(none);
9
+ @include transition(border-color 0.15s linear, background 0.15s linear);
10
+ @include border-radius(0);
11
+ @include box-shadow(none);
12
+ height: auto;
13
+ width: 100%;
14
+ display: block;
15
+ padding: 10px;
16
+ margin-bottom: 0;
17
+ font-weight: 300;
18
+ background-color: #fff;
19
+ box-shadow: none;
20
+ color: rgba(0, 0, 0, 0.75);
21
+ font-family: inherit;
22
+ font-size: 16px;
23
+ box-sizing: border-box;
24
+ border: 1px solid #afaba8;
25
+ @media only screen and (min-width: $screen-sm) {
26
+ font-size: 19px;
27
+ }
28
+
29
+ &:hover {
30
+ border-color: $color-dark-blue;
31
+ }
32
+
33
+ &:focus {
34
+ border-color: $color-dark-blue;
35
+ outline-color: #54acb8;
36
+ }
37
+
38
+ &[disabled],
39
+ &[readonly] {
40
+ background-color: #ddd;
41
+ cursor: default;
42
+ }
43
+
44
+ &:local(.hasErrors) {
45
+ border-color: $color-error;
46
+ &:focus {
47
+ border-color: $color-error;
48
+ outline-color: #b8565d;
49
+ }
50
+ &[disabled],
51
+ &[readonly] {
52
+ background-color: #ddd;
53
+ cursor: default;
54
+ border-color: #afaba8;
55
+ }
56
+ }
57
+ }
58
+ :local(.errorMessage) {
59
+ display: block;
60
+ color: $color-error-text;
61
+ font-size: 16px;
62
+ font-weight: 400;
63
+ line-height: 1.2;
64
+ margin: 4px 0;
65
+ font-family: "Open Sans", sans-serif;
66
+ font-style: italic;
67
+ overflow-wrap: break-word;
68
+ @media only screen and (min-width: $screen-sm) {
69
+ font-size: 19px;
70
+ }
71
+ }
72
+ }
@@ -1,12 +1,12 @@
1
- Default theme:
2
- ```js
3
- <Theme />
4
- ```
5
-
6
-
7
-
8
- Custom theme:
9
- ```js
10
- import customTheme from 'data/customTheme';
11
- <Theme theme={customTheme} />
12
- ```
1
+ Default theme:
2
+ ```js
3
+ <Theme />
4
+ ```
5
+
6
+
7
+
8
+ Custom theme:
9
+ ```js
10
+ import customTheme from 'data/customTheme';
11
+ <Theme theme={customTheme} />
12
+ ```
@@ -1,76 +1,76 @@
1
- @import "../style/global.scss";
2
-
3
- * {
4
- color: $color-default-text;
5
- }
6
-
7
- a {
8
- color: $color-link;
9
- }
10
-
11
- img {
12
- max-width: 200px;
13
- max-height: 150px;
14
- }
15
-
16
- :local(.colorPalette) {
17
- display: flex;
18
- flex-wrap: wrap;
19
-
20
- :local(.color) {
21
- width: 20%;
22
- min-width: 120px;
23
- text-align: center;
24
- line-height: 3em;
25
-
26
- &:local(.default) {
27
- background-color: $color-default;
28
- color: #000;
29
- }
30
-
31
- &:local(.primary) {
32
- background-color: $color-primary;
33
- color: #fff;
34
- }
35
-
36
- &:local(.success) {
37
- background-color: $color-success;
38
- color: #fff;
39
- }
40
-
41
- &:local(.warning) {
42
- background-color: $color-warning;
43
- color: #fff;
44
- }
45
-
46
- &:local(.info) {
47
- background-color: $color-info;
48
- color: #000;
49
- }
50
-
51
- &:local(.lightCyan) {
52
- background-color: $color-light-cyan;
53
- color: #000;
54
- }
55
-
56
- &:local(.orange) {
57
- background-color: $color-orange;
58
- color: #fff;
59
- }
60
-
61
- &:local(.lightOrange) {
62
- background-color: $color-light-orange;
63
- color: #000;
64
- }
65
-
66
- &:local(.lime) {
67
- background-color: $color-lime;
68
- color: #fff;
69
- }
70
-
71
- &:local(.lightLime) {
72
- background-color: $color-light-lime;
73
- color: #000;
74
- }
75
- }
76
- }
1
+ @import "../style/global.scss";
2
+
3
+ * {
4
+ color: $color-default-text;
5
+ }
6
+
7
+ a {
8
+ color: $color-link;
9
+ }
10
+
11
+ img {
12
+ max-width: 200px;
13
+ max-height: 150px;
14
+ }
15
+
16
+ :local(.colorPalette) {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+
20
+ :local(.color) {
21
+ width: 20%;
22
+ min-width: 120px;
23
+ text-align: center;
24
+ line-height: 3em;
25
+
26
+ &:local(.default) {
27
+ background-color: $color-default;
28
+ color: #000;
29
+ }
30
+
31
+ &:local(.primary) {
32
+ background-color: $color-primary;
33
+ color: #fff;
34
+ }
35
+
36
+ &:local(.success) {
37
+ background-color: $color-success;
38
+ color: #fff;
39
+ }
40
+
41
+ &:local(.warning) {
42
+ background-color: $color-warning;
43
+ color: #fff;
44
+ }
45
+
46
+ &:local(.info) {
47
+ background-color: $color-info;
48
+ color: #000;
49
+ }
50
+
51
+ &:local(.lightCyan) {
52
+ background-color: $color-light-cyan;
53
+ color: #000;
54
+ }
55
+
56
+ &:local(.orange) {
57
+ background-color: $color-orange;
58
+ color: #fff;
59
+ }
60
+
61
+ &:local(.lightOrange) {
62
+ background-color: $color-light-orange;
63
+ color: #000;
64
+ }
65
+
66
+ &:local(.lime) {
67
+ background-color: $color-lime;
68
+ color: #fff;
69
+ }
70
+
71
+ &:local(.lightLime) {
72
+ background-color: $color-light-lime;
73
+ color: #000;
74
+ }
75
+ }
76
+ }
@@ -1,75 +1,75 @@
1
- @import "../../style/global.scss";
2
-
3
- .wizard-topnav .wizard-topnav-item.finished .wizard-topnav-item-content:before {
4
- background-color: $color-primary;
5
- }
6
-
7
- :local(.wizardTopnavItem) {
8
- flex: 1;
9
- text-decoration: none;
10
- :local(.wizardTopnavItemContent) {
11
- &:before {
12
- display: inline-block;
13
- content: " ";
14
- height: 15px;
15
- background-color: #e2e1e0;
16
- width: 100%;
17
- left: 50%;
18
- position: relative;
19
- margin-bottom: -30px;
20
- }
21
- :local(.stepNumber) {
22
- border-radius: 50%;
23
- width: 35px;
24
- height: 35px;
25
- display: block;
26
- text-align: center;
27
- background-color: #e2e1e0;
28
- color: $color-default-text;
29
- margin: auto;
30
- position: relative;
31
- font-size: 20px;
32
- line-height: 1.75em;
33
- }
34
- :local(.stepName) {
35
- display: block;
36
- text-align: center;
37
- color: $color-default-text;
38
- }
39
- }
40
- &:local(.active) {
41
- :local(.stepNumber) {
42
- background-color: $color-dark-blue;
43
- color: #fff;
44
- }
45
- }
46
- &:local(.finished) {
47
- :local(.wizardTopnavItemContent) {
48
- &:before {
49
- background-color: $color-primary;
50
- }
51
- :local(.stepNumber) {
52
- background-color: $color-primary;
53
- color: #fff;
54
- }
55
- }
56
- }
57
- &:local(.hasErrors) {
58
- :local(.wizardTopnavItemContent) {
59
- &:before {
60
- background-color: $color-warning;
61
- }
62
- :local(.stepNumber) {
63
- background-color: $color-warning;
64
- color: #fff;
65
- }
66
- }
67
- }
68
- &:last-child {
69
- :local(.wizardTopnavItemContent) {
70
- &:before {
71
- width: 0;
72
- }
73
- }
74
- }
75
- }
1
+ @import "../../style/global.scss";
2
+
3
+ .wizard-topnav .wizard-topnav-item.finished .wizard-topnav-item-content:before {
4
+ background-color: $color-primary;
5
+ }
6
+
7
+ :local(.wizardTopnavItem) {
8
+ flex: 1;
9
+ text-decoration: none;
10
+ :local(.wizardTopnavItemContent) {
11
+ &:before {
12
+ display: inline-block;
13
+ content: " ";
14
+ height: 15px;
15
+ background-color: #e2e1e0;
16
+ width: 100%;
17
+ left: 50%;
18
+ position: relative;
19
+ margin-bottom: -30px;
20
+ }
21
+ :local(.stepNumber) {
22
+ border-radius: 50%;
23
+ width: 35px;
24
+ height: 35px;
25
+ display: block;
26
+ text-align: center;
27
+ background-color: #e2e1e0;
28
+ color: $color-default-text;
29
+ margin: auto;
30
+ position: relative;
31
+ font-size: 20px;
32
+ line-height: 1.75em;
33
+ }
34
+ :local(.stepName) {
35
+ display: block;
36
+ text-align: center;
37
+ color: $color-default-text;
38
+ }
39
+ }
40
+ &:local(.active) {
41
+ :local(.stepNumber) {
42
+ background-color: $color-dark-blue;
43
+ color: #fff;
44
+ }
45
+ }
46
+ &:local(.finished) {
47
+ :local(.wizardTopnavItemContent) {
48
+ &:before {
49
+ background-color: $color-primary;
50
+ }
51
+ :local(.stepNumber) {
52
+ background-color: $color-primary;
53
+ color: #fff;
54
+ }
55
+ }
56
+ }
57
+ &:local(.hasErrors) {
58
+ :local(.wizardTopnavItemContent) {
59
+ &:before {
60
+ background-color: $color-warning;
61
+ }
62
+ :local(.stepNumber) {
63
+ background-color: $color-warning;
64
+ color: #fff;
65
+ }
66
+ }
67
+ }
68
+ &:last-child {
69
+ :local(.wizardTopnavItemContent) {
70
+ &:before {
71
+ width: 0;
72
+ }
73
+ }
74
+ }
75
+ }