@aarhus-university/au-lib-react-components 11.3.2 → 11.4.0
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/.eslintrc.js +34 -34
- package/.storybook/main.js +20 -20
- package/.storybook/preview.js +17 -17
- package/README.md +19 -19
- package/__tests__/jest/AUButtonComponent.test.tsx +165 -165
- package/__tests__/jest/AUErrorComponent.test.tsx +142 -142
- package/__tests__/jest/AUModalComponent.test.tsx +186 -186
- package/__tests__/jest/AUNotificationComponent.test.tsx +115 -115
- package/__tests__/jest/AUSpinnerComponent.test.tsx +57 -57
- package/__tests__/jest/AUToolbarComponent.test.tsx +46 -46
- package/__tests__/jest/context.test.ts +25 -25
- package/__tests__/jest/helpers.test.ts +15 -15
- package/__tests__/jest/setupTests.ts +2 -2
- package/babel.config.js +8 -8
- package/build/umd/all.css +2 -2
- package/build/umd/all.js +1 -1
- package/build/umd/alphabox.js +1 -1
- package/build/umd/databox.js +1 -1
- package/build/umd/diagramme.js +1 -1
- package/build/umd/flowbox.js +1 -1
- package/build/umd/universe.js +1 -1
- package/build-storybook.log +367 -367
- package/package.json +114 -114
- package/src/components/AUAlertComponent.tsx +70 -70
- package/src/components/AUAutoSuggestComponent.js +158 -158
- package/src/components/AUButtonComponent.tsx +84 -84
- package/src/components/AUCalendarComponent.tsx +493 -493
- package/src/components/AUContentToggleComponent.tsx +47 -47
- package/src/components/AUDatepickerComponent.tsx +121 -121
- package/src/components/AUErrorComponent.tsx +78 -78
- package/src/components/AUMobilePrefixComponent.tsx +15 -15
- package/src/components/AUModalComponent.tsx +68 -68
- package/src/components/AUNotificationComponent.tsx +43 -43
- package/src/components/AUReceiptComponent.tsx +33 -33
- package/src/components/AUSpinnerComponent.tsx +36 -36
- package/src/components/AUStepComponent.tsx +47 -41
- package/src/components/AUSubNavComponent.tsx +48 -48
- package/src/components/AUSubmitButtonContainerComponent.tsx +29 -29
- package/src/components/AUTabbedContentComponent.tsx +145 -145
- package/src/components/AUTableComponent.tsx +24 -24
- package/src/components/AUToastComponent.tsx +104 -104
- package/src/components/AUToolbarComponent.tsx +101 -101
- package/src/components/AUTruncatorComponent.tsx +124 -129
- package/src/components/wrapping/AUEmbedComponent.js +47 -47
- package/src/layout-2016/components/alphabox/AlphaBoxComponent.js +143 -143
- package/src/layout-2016/components/alphabox/AlphaBoxContentComponent.js +136 -136
- package/src/layout-2016/components/common/AUCollapsibleComponent.js +152 -152
- package/src/layout-2016/components/common/AUSpinnerComponent.js +103 -103
- package/src/layout-2016/components/databox/DataBoxAlphabetComponent.js +144 -144
- package/src/layout-2016/components/databox/DataBoxAssociationComponent.js +122 -122
- package/src/layout-2016/components/databox/DataBoxButtonComponent.js +157 -157
- package/src/layout-2016/components/databox/DataBoxComponent.js +297 -297
- package/src/layout-2016/components/databox/DataBoxGroupingComponent.js +64 -64
- package/src/layout-2016/components/databox/DataBoxSearchResultComponent.js +36 -36
- package/src/layout-2016/components/databox/DataBoxStackedAssociationComponent.js +54 -54
- package/src/layout-2016/components/databox/DataBoxSuggestionComponent.js +39 -39
- package/src/layout-2016/components/diagramme/AUDiagrammeComponent.js +309 -309
- package/src/layout-2016/components/flowbox/FlowBoxComponent.js +126 -126
- package/src/layout-2016/components/flowbox/FlowBoxPhoneComponent.js +104 -104
- package/src/layout-2016/components/profile/AUProfileAvatar2016Component.js +103 -103
- package/src/layout-2016/components/universe/StaffTopComponent.js +363 -363
- package/src/layout-2016/components/universe/StudentTopComponent.js +137 -137
- package/src/layout-2016/components/universe/UniverseContainerComponent.js +65 -65
- package/src/layout-2016/lib/all.js +3 -3
- package/src/layout-2016/lib/au-alphabox.js +100 -100
- package/src/layout-2016/lib/au-databox.js +400 -400
- package/src/layout-2016/lib/au-diagramme.js +85 -85
- package/src/layout-2016/lib/au-flowbox.js +93 -93
- package/src/layout-2016/lib/universe.js +9 -9
- package/src/lib/context.tsx +51 -51
- package/src/lib/dates.ts +50 -50
- package/src/lib/helpers.ts +208 -208
- package/src/lib/hooks.ts +75 -75
- package/src/lib/i18n.ts +600 -600
- package/src/lib/portals.tsx +119 -119
- package/src/lib/tracking.ts +69 -69
- package/src/lib/wrapping.ts +21 -21
- package/src/styles/_settings.scss +10 -10
- package/src/styles/alphabox.scss +222 -222
- package/src/styles/app.scss +7 -7
- package/src/styles/autosuggest.scss +57 -57
- package/src/styles/databox.scss +563 -563
- package/src/styles/diagramme.scss +119 -119
- package/src/styles/flowbox.scss +72 -72
- package/src/styles/maps.scss +395 -395
- package/stories/AUButtonComponent.stories.tsx +127 -127
- package/stories/AUContentToggleComponent.stories.tsx +63 -63
- package/stories/AUErrorComponent.stories.tsx +98 -98
- package/stories/AUModalComponent.stories.tsx +83 -83
- package/stories/AUNotificationComponent.stories.tsx +116 -116
- package/stories/AUSpinnerComponent.stories.tsx +41 -41
- package/stories/AUStepComponent.stories.tsx +40 -40
- package/stories/AUToolbarComponent.stories.tsx +326 -326
- package/stories/AUTruncatorComponent.stories.tsx +102 -0
- package/stories/lib/helpers.tsx +128 -128
- package/tsconfig.json +46 -46
- package/webpack.config.js +89 -89
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
$padding-default: 1rem;
|
|
2
|
-
$white: #fefefe;
|
|
3
|
-
$gray-color:#e4e4e4;
|
|
4
|
-
$gray-secondary-color:darken($gray-color, 50%);
|
|
5
|
-
$mitstudie-sf-color: #cfe1e7;
|
|
6
|
-
$mitstudie-obl-color: #f2e4d4;
|
|
7
|
-
$mitstudie-val-color: #d1e1d6;
|
|
8
|
-
$mitstudie-tlv-color: #e9ccda;
|
|
9
|
-
$diagramme-cell-height: 130px;
|
|
10
|
-
.au_edutable_eddi_container {
|
|
11
|
-
.print {
|
|
12
|
-
display: inline-block;
|
|
13
|
-
margin-bottom: 1rem;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.study-diagramme {
|
|
18
|
-
&.list {
|
|
19
|
-
p {
|
|
20
|
-
padding: .6rem 1rem;
|
|
21
|
-
contain: content;
|
|
22
|
-
a {
|
|
23
|
-
text-decoration: none;
|
|
24
|
-
}
|
|
25
|
-
span:last-child {
|
|
26
|
-
float: right;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
padding: $padding-default;
|
|
31
|
-
margin-bottom: 2rem;
|
|
32
|
-
font-family: "AUPassataRegular";
|
|
33
|
-
background-color: $gray-color;
|
|
34
|
-
table {
|
|
35
|
-
table-layout: fixed;
|
|
36
|
-
width: 100%;
|
|
37
|
-
border-collapse: collapse;
|
|
38
|
-
}
|
|
39
|
-
table,
|
|
40
|
-
thead,
|
|
41
|
-
tbody {
|
|
42
|
-
background-color: transparent !important;
|
|
43
|
-
}
|
|
44
|
-
tr {
|
|
45
|
-
background-color: transparent !important;
|
|
46
|
-
}
|
|
47
|
-
th {
|
|
48
|
-
font-family: "AUPassataBold";
|
|
49
|
-
font-weight: normal;
|
|
50
|
-
}
|
|
51
|
-
th,
|
|
52
|
-
td {
|
|
53
|
-
border: 4px solid $white;
|
|
54
|
-
}
|
|
55
|
-
td {
|
|
56
|
-
padding: 0;
|
|
57
|
-
&:hover {
|
|
58
|
-
background-color: $gray-secondary-color;
|
|
59
|
-
&.sf {
|
|
60
|
-
a {
|
|
61
|
-
color: $mitstudie-sf-color;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&.obl {
|
|
65
|
-
a {
|
|
66
|
-
color: $mitstudie-obl-color;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
&.val {
|
|
70
|
-
a {
|
|
71
|
-
color: $mitstudie-val-color;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
&.tlv {
|
|
75
|
-
a {
|
|
76
|
-
color: $mitstudie-tlv-color;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
&.ogr {
|
|
80
|
-
a {
|
|
81
|
-
color: $mitstudie-obl-color;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
a {
|
|
86
|
-
padding: 2rem 1rem;
|
|
87
|
-
display: block;
|
|
88
|
-
text-decoration: none;
|
|
89
|
-
border-bottom: none !important;
|
|
90
|
-
font-size: 12px;
|
|
91
|
-
word-break: break-word;
|
|
92
|
-
hyphens: auto;
|
|
93
|
-
}
|
|
94
|
-
@for $i from 1 through 6 {
|
|
95
|
-
&[rowspan="#{$i}"] a {
|
|
96
|
-
min-height: $i * $diagramme-cell-height;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.sf {
|
|
101
|
-
background-color: $mitstudie-sf-color;
|
|
102
|
-
}
|
|
103
|
-
.obl {
|
|
104
|
-
background-color: $mitstudie-obl-color;
|
|
105
|
-
}
|
|
106
|
-
.val {
|
|
107
|
-
background-color: $mitstudie-val-color;
|
|
108
|
-
}
|
|
109
|
-
.tlv {
|
|
110
|
-
background-color: $mitstudie-tlv-color;
|
|
111
|
-
}
|
|
112
|
-
.ogr {
|
|
113
|
-
background-color: $mitstudie-obl-color;
|
|
114
|
-
}
|
|
115
|
-
&.show-for-small-only {
|
|
116
|
-
@media print {
|
|
117
|
-
display: none;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
1
|
+
$padding-default: 1rem;
|
|
2
|
+
$white: #fefefe;
|
|
3
|
+
$gray-color:#e4e4e4;
|
|
4
|
+
$gray-secondary-color:darken($gray-color, 50%);
|
|
5
|
+
$mitstudie-sf-color: #cfe1e7;
|
|
6
|
+
$mitstudie-obl-color: #f2e4d4;
|
|
7
|
+
$mitstudie-val-color: #d1e1d6;
|
|
8
|
+
$mitstudie-tlv-color: #e9ccda;
|
|
9
|
+
$diagramme-cell-height: 130px;
|
|
10
|
+
.au_edutable_eddi_container {
|
|
11
|
+
.print {
|
|
12
|
+
display: inline-block;
|
|
13
|
+
margin-bottom: 1rem;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.study-diagramme {
|
|
18
|
+
&.list {
|
|
19
|
+
p {
|
|
20
|
+
padding: .6rem 1rem;
|
|
21
|
+
contain: content;
|
|
22
|
+
a {
|
|
23
|
+
text-decoration: none;
|
|
24
|
+
}
|
|
25
|
+
span:last-child {
|
|
26
|
+
float: right;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
padding: $padding-default;
|
|
31
|
+
margin-bottom: 2rem;
|
|
32
|
+
font-family: "AUPassataRegular";
|
|
33
|
+
background-color: $gray-color;
|
|
34
|
+
table {
|
|
35
|
+
table-layout: fixed;
|
|
36
|
+
width: 100%;
|
|
37
|
+
border-collapse: collapse;
|
|
38
|
+
}
|
|
39
|
+
table,
|
|
40
|
+
thead,
|
|
41
|
+
tbody {
|
|
42
|
+
background-color: transparent !important;
|
|
43
|
+
}
|
|
44
|
+
tr {
|
|
45
|
+
background-color: transparent !important;
|
|
46
|
+
}
|
|
47
|
+
th {
|
|
48
|
+
font-family: "AUPassataBold";
|
|
49
|
+
font-weight: normal;
|
|
50
|
+
}
|
|
51
|
+
th,
|
|
52
|
+
td {
|
|
53
|
+
border: 4px solid $white;
|
|
54
|
+
}
|
|
55
|
+
td {
|
|
56
|
+
padding: 0;
|
|
57
|
+
&:hover {
|
|
58
|
+
background-color: $gray-secondary-color;
|
|
59
|
+
&.sf {
|
|
60
|
+
a {
|
|
61
|
+
color: $mitstudie-sf-color;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&.obl {
|
|
65
|
+
a {
|
|
66
|
+
color: $mitstudie-obl-color;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
&.val {
|
|
70
|
+
a {
|
|
71
|
+
color: $mitstudie-val-color;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&.tlv {
|
|
75
|
+
a {
|
|
76
|
+
color: $mitstudie-tlv-color;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&.ogr {
|
|
80
|
+
a {
|
|
81
|
+
color: $mitstudie-obl-color;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
a {
|
|
86
|
+
padding: 2rem 1rem;
|
|
87
|
+
display: block;
|
|
88
|
+
text-decoration: none;
|
|
89
|
+
border-bottom: none !important;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
word-break: break-word;
|
|
92
|
+
hyphens: auto;
|
|
93
|
+
}
|
|
94
|
+
@for $i from 1 through 6 {
|
|
95
|
+
&[rowspan="#{$i}"] a {
|
|
96
|
+
min-height: $i * $diagramme-cell-height;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.sf {
|
|
101
|
+
background-color: $mitstudie-sf-color;
|
|
102
|
+
}
|
|
103
|
+
.obl {
|
|
104
|
+
background-color: $mitstudie-obl-color;
|
|
105
|
+
}
|
|
106
|
+
.val {
|
|
107
|
+
background-color: $mitstudie-val-color;
|
|
108
|
+
}
|
|
109
|
+
.tlv {
|
|
110
|
+
background-color: $mitstudie-tlv-color;
|
|
111
|
+
}
|
|
112
|
+
.ogr {
|
|
113
|
+
background-color: $mitstudie-obl-color;
|
|
114
|
+
}
|
|
115
|
+
&.show-for-small-only {
|
|
116
|
+
@media print {
|
|
117
|
+
display: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
120
|
}
|
package/src/styles/flowbox.scss
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
.au_flowbox {
|
|
2
|
-
background: #f0efef;
|
|
3
|
-
padding: 2rem;
|
|
4
|
-
margin-bottom: 1rem;
|
|
5
|
-
button {
|
|
6
|
-
text-align: left;
|
|
7
|
-
font-family: 'AUPassataRegular';
|
|
8
|
-
text-decoration: underline;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
}
|
|
11
|
-
>div>h2 {
|
|
12
|
-
margin: 0 0 1rem 0 !important;
|
|
13
|
-
text-transform: uppercase;
|
|
14
|
-
border: none !important;
|
|
15
|
-
padding: 0 !important;
|
|
16
|
-
}
|
|
17
|
-
.vcard {
|
|
18
|
-
padding: 1rem;
|
|
19
|
-
background-color: rgba(255, 255, 255, 0.95);
|
|
20
|
-
border: 0 none;
|
|
21
|
-
margin: 0 0 1rem 0;
|
|
22
|
-
.fn {
|
|
23
|
-
font-weight: bold;
|
|
24
|
-
font-size: 1.3636363636rem;
|
|
25
|
-
}
|
|
26
|
-
p {
|
|
27
|
-
font-family: inherit;
|
|
28
|
-
font-size: 1.2rem;
|
|
29
|
-
font-weight: normal;
|
|
30
|
-
line-height: 1.6;
|
|
31
|
-
margin-bottom: 1.8181818182rem;
|
|
32
|
-
text-rendering: optimizeLegibility;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
&.partner {
|
|
36
|
-
background: $staff-color;
|
|
37
|
-
>div {
|
|
38
|
-
>h2 {
|
|
39
|
-
color: #fff;
|
|
40
|
-
}
|
|
41
|
-
>p {
|
|
42
|
-
color: #fff;
|
|
43
|
-
a {
|
|
44
|
-
color: #fff !important;
|
|
45
|
-
border-bottom: none !important;
|
|
46
|
-
text-decoration: underline !important;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
>ul li {
|
|
50
|
-
padding-left: 0;
|
|
51
|
-
&::before {
|
|
52
|
-
display: none;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.au_flowbox_data {
|
|
60
|
-
display: none;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.au_staffcontactbox {
|
|
64
|
-
color: #fff;
|
|
65
|
-
padding: 1.3636364rem;
|
|
66
|
-
background-color: #379fcb;
|
|
67
|
-
margin-bottom: 1em;
|
|
68
|
-
>h2 {
|
|
69
|
-
color: #fff;
|
|
70
|
-
text-transform: uppercase;
|
|
71
|
-
margin: 0 0 1em 0 !important;
|
|
72
|
-
}
|
|
1
|
+
.au_flowbox {
|
|
2
|
+
background: #f0efef;
|
|
3
|
+
padding: 2rem;
|
|
4
|
+
margin-bottom: 1rem;
|
|
5
|
+
button {
|
|
6
|
+
text-align: left;
|
|
7
|
+
font-family: 'AUPassataRegular';
|
|
8
|
+
text-decoration: underline;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
}
|
|
11
|
+
>div>h2 {
|
|
12
|
+
margin: 0 0 1rem 0 !important;
|
|
13
|
+
text-transform: uppercase;
|
|
14
|
+
border: none !important;
|
|
15
|
+
padding: 0 !important;
|
|
16
|
+
}
|
|
17
|
+
.vcard {
|
|
18
|
+
padding: 1rem;
|
|
19
|
+
background-color: rgba(255, 255, 255, 0.95);
|
|
20
|
+
border: 0 none;
|
|
21
|
+
margin: 0 0 1rem 0;
|
|
22
|
+
.fn {
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
font-size: 1.3636363636rem;
|
|
25
|
+
}
|
|
26
|
+
p {
|
|
27
|
+
font-family: inherit;
|
|
28
|
+
font-size: 1.2rem;
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
line-height: 1.6;
|
|
31
|
+
margin-bottom: 1.8181818182rem;
|
|
32
|
+
text-rendering: optimizeLegibility;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
&.partner {
|
|
36
|
+
background: $staff-color;
|
|
37
|
+
>div {
|
|
38
|
+
>h2 {
|
|
39
|
+
color: #fff;
|
|
40
|
+
}
|
|
41
|
+
>p {
|
|
42
|
+
color: #fff;
|
|
43
|
+
a {
|
|
44
|
+
color: #fff !important;
|
|
45
|
+
border-bottom: none !important;
|
|
46
|
+
text-decoration: underline !important;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
>ul li {
|
|
50
|
+
padding-left: 0;
|
|
51
|
+
&::before {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.au_flowbox_data {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.au_staffcontactbox {
|
|
64
|
+
color: #fff;
|
|
65
|
+
padding: 1.3636364rem;
|
|
66
|
+
background-color: #379fcb;
|
|
67
|
+
margin-bottom: 1em;
|
|
68
|
+
>h2 {
|
|
69
|
+
color: #fff;
|
|
70
|
+
text-transform: uppercase;
|
|
71
|
+
margin: 0 0 1em 0 !important;
|
|
72
|
+
}
|
|
73
73
|
}
|