@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funidata/fudis-core",
3
- "version": "2.0.0",
3
+ "version": "2.2.0-rc.0",
4
4
  "description": "Core styles and foundations for Fudis Design System",
5
5
  "files": [
6
6
  "src",
@@ -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):not(&__label--hidden) {
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
- &__icon-only {
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;
@@ -52,6 +52,7 @@
52
52
 
53
53
  &__box {
54
54
  @include borders.border('1px', 'solid', 'gray-middle');
55
+ @include colorMixins.bg-color('white');
55
56
 
56
57
  display: flex;
57
58
  position: absolute;
@@ -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
+ }
@@ -21,6 +21,8 @@
21
21
  list-style: none;
22
22
 
23
23
  &__item {
24
+ @include typography.body-text-md-regular;
25
+
24
26
  position: relative;
25
27
  margin-left: spacing.$spacing-sm;
26
28
  padding-left: spacing.$spacing-xxs;