@funidata/fudis-core 3.2.0 → 3.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/_styles.scss CHANGED
@@ -21,6 +21,7 @@
21
21
  @forward './src/components/horizontal-rule/horizontal-rule';
22
22
  @forward './src/components/icon/icon';
23
23
  @forward './src/components/label/label';
24
+ @forward './src/components/language-badge/language-badge';
24
25
  @forward './src/components/link/link';
25
26
  @forward './src/components/loading-spinner/loading-spinner';
26
27
  @forward './src/components/notification/notification';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funidata/fudis-core",
3
- "version": "3.2.0",
3
+ "version": "3.4.0",
4
4
  "description": "Core styles and foundations for Fudis Design System",
5
5
  "files": [
6
6
  "src",
@@ -32,14 +32,13 @@
32
32
  },
33
33
  "homepage": "https://github.com/funidata/fudis-core#readme",
34
34
  "devDependencies": {
35
- "@storybook/addon-a11y": "10.4.6",
36
- "@storybook/addon-docs": "10.4.6",
37
- "@storybook/html-vite": "10.4.6",
35
+ "@storybook/addon-a11y": "^10.6.3",
36
+ "@storybook/addon-docs": "^10.6.3",
37
+ "@storybook/html-vite": "^10.6.3",
38
38
  "@whitespace/storybook-addon-html": "^9.0.0",
39
39
  "nodemon": "^3.1.14",
40
- "prettier2": "npm:prettier@2.8.8",
41
- "sass-embedded": "^1.99.0",
42
- "storybook": "10.4.6",
43
- "vite": "^8.1.0"
40
+ "sass-embedded": "^1.106.1",
41
+ "storybook": "^10.6.3",
42
+ "vite": "^8.3.5"
44
43
  }
45
44
  }
@@ -0,0 +1,48 @@
1
+ @use '../../foundations/colors/mixins.scss' as colorMixin;
2
+ @use '../../foundations/borders/mixins.scss' as border;
3
+ @use '../../foundations/utilities/mixins.scss' as utilities;
4
+ @use '../../foundations/spacing/tokens.scss' as spacing;
5
+ @use '../../foundations/focus/mixins.scss' as focus;
6
+ @use '../../foundations/typography/mixins.scss' as typography;
7
+
8
+ .fudis-language-badge {
9
+ @include colorMixin.bg-color('transparent');
10
+ @include border.border-none;
11
+ @include utilities.box-reset;
12
+
13
+ display: inline-flex;
14
+ align-items: center;
15
+ justify-content: center;
16
+ width: spacing.$spacing-lg;
17
+ height: spacing.$spacing-lg;
18
+
19
+ &:focus-within {
20
+ @include focus.focus-generic;
21
+ }
22
+
23
+ &__content {
24
+ @include typography.body-text-sm-regular;
25
+ @include colorMixin.bg-color('white');
26
+ @include border.border('1px', 'solid', 'gray-dark');
27
+ @include utilities.box-reset;
28
+
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ border-radius: 50%;
33
+ min-width: spacing.$spacing-md;
34
+ min-height: spacing.$spacing-md;
35
+ text-align: center;
36
+ /* stylelint-disable-next-line unit-disallowed-list */
37
+ letter-spacing: calc(0.02rem / var(--fudis-rem-multiplier));
38
+ }
39
+
40
+ &__missing {
41
+ @include border.border('1px', dashed, 'gray-dark');
42
+ }
43
+
44
+ &--selected,
45
+ &--selected:focus {
46
+ @include border.outline('2px', 'solid', 'primary');
47
+ }
48
+ }
@@ -23,6 +23,10 @@ $color-gray-light: #d4d4d4;
23
23
  $color-gray-middle: #727272;
24
24
  $color-gray-dark: #484848;
25
25
 
26
+ // Background colors
27
+
28
+ $color-blue-light: #edf6ff;
29
+
26
30
  // Accent colors
27
31
 
28
32
  $color-red-light: #f8dcd9;
@@ -43,6 +47,7 @@ $colors: (
43
47
  'gray-light': $color-gray-light,
44
48
  'gray-middle': $color-gray-middle,
45
49
  'gray-dark': $color-gray-dark,
50
+ 'blue-light': $color-blue-light,
46
51
  'red-light': $color-red-light,
47
52
  'red': $color-red,
48
53
  'yellow-light': $color-yellow-light,
@@ -15,6 +15,15 @@
15
15
  @include mixins.dimmer;
16
16
  }
17
17
 
18
+ .fudis-highlight-container {
19
+ &__blue-light {
20
+ @include colorMixin.bg-color('blue-light');
21
+
22
+ border-radius: spacing.$spacing-xs;
23
+ padding: spacing.$spacing-sm;
24
+ }
25
+ }
26
+
18
27
  // Invalid and disabled state styles for input elemenets
19
28
 
20
29
  .fudis-form-input {