@funidata/fudis-core 2.0.0 → 2.2.0-rc.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/_styles.scss +4 -0
- package/package.json +1 -1
- package/src/components/breadcrumbs/breadcrumbs.scss +24 -0
- package/src/components/button/button.scss +2 -8
- package/src/components/checkbox/checkbox.scss +1 -0
- package/src/components/description-list/description-list.scss +95 -0
- package/src/components/error-summary/error-summary.scss +2 -0
- package/src/components/icon/icon.scss +616 -26
- package/src/components/link/link.scss +11 -0
- package/src/components/radio-button/radio-button.scss +1 -0
- package/src/components/tab-navigation/tab-navigation.scss +49 -0
- package/src/components/table/table-mixins.scss +153 -0
- package/src/components/table/table.scss +10 -0
- package/src/foundations/typography/mixins.scss +22 -3
- package/src/foundations/typography/tokens.scss +2 -0
package/_styles.scss
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
@forward './src/components/alert/alert';
|
|
12
12
|
@forward './src/components/button/button';
|
|
13
13
|
@forward './src/components/badge/badge';
|
|
14
|
+
@forward './src/components/breadcrumbs/breadcrumbs';
|
|
14
15
|
@forward './src/components/checkbox/checkbox';
|
|
15
16
|
@forward './src/components/checkbox-group/checkbox-group';
|
|
17
|
+
@forward './src/components/description-list/description-list';
|
|
16
18
|
@forward './src/components/error-summary/error-summary';
|
|
17
19
|
@forward './src/components/fieldset/fieldset';
|
|
18
20
|
@forward './src/components/guidance/guidance';
|
|
@@ -25,6 +27,8 @@
|
|
|
25
27
|
@forward './src/components/popover/popover';
|
|
26
28
|
@forward './src/components/radio-button/radio-button';
|
|
27
29
|
@forward './src/components/radio-button-group/radio-button-group';
|
|
30
|
+
@forward './src/components/table/table';
|
|
31
|
+
@forward './src/components/table/table-mixins';
|
|
28
32
|
@forward './src/components/tab-navigation/tab-navigation';
|
|
29
33
|
@forward './src/components/text-area/text-area';
|
|
30
34
|
@forward './src/components/text-input/text-input';
|
package/package.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@use '../../foundations/utilities/mixins.scss' as utilities;
|
|
2
|
+
@use '../../foundations/typography/mixins.scss' as typography;
|
|
3
|
+
@use '../../foundations/spacing/tokens.scss' as spacing;
|
|
4
|
+
|
|
5
|
+
.fudis-breadcrumbs {
|
|
6
|
+
@include typography.body-text-md-regular;
|
|
7
|
+
@include utilities.box-reset;
|
|
8
|
+
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
align-items: center;
|
|
12
|
+
margin-bottom: spacing.$spacing-md;
|
|
13
|
+
list-style: none;
|
|
14
|
+
|
|
15
|
+
&__item {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
min-height: spacing.$spacing-lg;
|
|
19
|
+
|
|
20
|
+
&-link {
|
|
21
|
+
@include typography.link-inherit;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@include focus.focus-generic;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
&:has(&__icon)
|
|
27
|
+
&:has(&__icon) {
|
|
28
28
|
padding-left: 0;
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
min-height: spacing.$spacing-lg;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
&
|
|
66
|
+
&__extra-small {
|
|
67
67
|
padding: 0;
|
|
68
68
|
width: spacing.$spacing-lg;
|
|
69
69
|
min-width: initial;
|
|
@@ -71,12 +71,6 @@
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
&__label {
|
|
75
|
-
&--hidden {
|
|
76
|
-
padding: 0 spacing.$spacing-xs;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
74
|
&__icon {
|
|
81
75
|
position: relative;
|
|
82
76
|
width: spacing.$spacing-lg;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@use '../../foundations/colors/mixins' as colorMixin;
|
|
2
|
+
@use '../../foundations/spacing/tokens.scss' as spacing;
|
|
3
|
+
@use '../../foundations/typography/mixins' as typography;
|
|
4
|
+
@use '../../foundations/typography/tokens.scss' as typographyTokens;
|
|
5
|
+
@use '../../foundations/utilities/mixins.scss' as utilities;
|
|
6
|
+
|
|
7
|
+
.fudis-dl {
|
|
8
|
+
@include utilities.box-reset;
|
|
9
|
+
|
|
10
|
+
.fudis-dl-item {
|
|
11
|
+
@include utilities.box-reset;
|
|
12
|
+
|
|
13
|
+
display: block;
|
|
14
|
+
min-height: spacing.$spacing-md;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fudis-dl-item-term {
|
|
18
|
+
&__regular {
|
|
19
|
+
@include typography.description-list-key-typography;
|
|
20
|
+
@include colorMixin.text-color('gray-dark');
|
|
21
|
+
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
margin: spacing.$spacing-xxs 0;
|
|
25
|
+
min-height: spacing.$spacing-md;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__compact {
|
|
29
|
+
@include typography.description-list-compact-key-typography;
|
|
30
|
+
@include colorMixin.text-color('gray-dark');
|
|
31
|
+
|
|
32
|
+
display: inline-block;
|
|
33
|
+
position: relative;
|
|
34
|
+
padding-left: spacing.$spacing-xs;
|
|
35
|
+
|
|
36
|
+
&::before {
|
|
37
|
+
@include colorMixin.bg-color('gray-middle');
|
|
38
|
+
|
|
39
|
+
display: inline-block;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: spacing.$pixel-2;
|
|
42
|
+
left: 0;
|
|
43
|
+
width: spacing.$pixel-1;
|
|
44
|
+
height: 80%;
|
|
45
|
+
content: '';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__colon {
|
|
49
|
+
font-weight: typographyTokens.$font-weight-light;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.fudis-dl-item-details {
|
|
55
|
+
&__regular {
|
|
56
|
+
@include typography.description-list-value-typography;
|
|
57
|
+
@include colorMixin.text-color('gray-dark');
|
|
58
|
+
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
margin: 0;
|
|
62
|
+
min-height: spacing.$spacing-sm;
|
|
63
|
+
|
|
64
|
+
&__parenthesis {
|
|
65
|
+
display: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&__sub-heading {
|
|
69
|
+
@include colorMixin.text-color('gray-dark');
|
|
70
|
+
@include typography.description-list-value-typography;
|
|
71
|
+
|
|
72
|
+
margin-top: 0;
|
|
73
|
+
margin-bottom: spacing.$spacing-xxs;
|
|
74
|
+
font-weight: typographyTokens.$font-weight-regular;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__compact {
|
|
79
|
+
@include typography.description-list-compact-value-typography;
|
|
80
|
+
@include colorMixin.text-color('gray-dark');
|
|
81
|
+
|
|
82
|
+
display: inline-block;
|
|
83
|
+
margin-left: 0;
|
|
84
|
+
padding-left: spacing.$spacing-xxs;
|
|
85
|
+
|
|
86
|
+
&__parenthesis {
|
|
87
|
+
display: initial;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&__sub-heading {
|
|
91
|
+
@include utilities.box-reset;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|