@funidata/fudis-core 3.1.1 → 3.3.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/README.md
CHANGED
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.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Core styles and foundations for Fudis Design System",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -26,20 +26,19 @@
|
|
|
26
26
|
"foundations"
|
|
27
27
|
],
|
|
28
28
|
"author": "Funidata Ltd",
|
|
29
|
-
"license": "
|
|
29
|
+
"license": "MIT",
|
|
30
30
|
"bugs": {
|
|
31
31
|
"url": "https://github.com/funidata/fudis-core/issues"
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/funidata/fudis-core#readme",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@storybook/addon-a11y": "10.
|
|
36
|
-
"@storybook/addon-docs": "10.
|
|
37
|
-
"@storybook/html-vite": "10.
|
|
35
|
+
"@storybook/addon-a11y": "^10.6.0",
|
|
36
|
+
"@storybook/addon-docs": "^10.6.0",
|
|
37
|
+
"@storybook/html-vite": "^10.6.0",
|
|
38
38
|
"@whitespace/storybook-addon-html": "^9.0.0",
|
|
39
39
|
"nodemon": "^3.1.14",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"vite": "^8.0.14"
|
|
40
|
+
"sass-embedded": "^1.104.1",
|
|
41
|
+
"storybook": "^10.6.0",
|
|
42
|
+
"vite": "^8.3.0"
|
|
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
|
+
}
|