@odx/ui 1.0.0-rc.8 → 1.0.0-rc.9
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 +1 -1
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/abstract/_dimensions.scss +2 -1
- package/scss/abstract/_motion.scss +3 -1
- package/scss/abstract/_utils.scss +2 -1
- package/scss/components/action-group.component.scss +2 -2
- package/scss/components/avatar.component.scss +1 -0
- package/scss/components/bar.component.scss +86 -0
- package/scss/components/breadcrumbs.component.scss +26 -0
- package/scss/components/button-group.component.scss +1 -0
- package/scss/components/button.component.scss +6 -2
- package/scss/components/checkbox.component.scss +1 -0
- package/scss/components/chip.component.scss +1 -0
- package/scss/components/content-box.component.scss +20 -16
- package/scss/components/dropdown.component.scss +3 -1
- package/scss/components/form-field.component.scss +1 -1
- package/scss/components/icon.component.scss +1 -1
- package/scss/components/launch-tile.component.scss +5 -5
- package/scss/components/list-item.component.scss +1 -1
- package/scss/components/main-menu.component.scss +1 -1
- package/scss/components/menu-item.component.scss +8 -0
- package/scss/components/menu.component.scss +16 -0
- package/scss/components/modal.component.scss +47 -4
- package/scss/components/select.component.scss +0 -4
- package/scss/components/slider.component.scss +1 -0
- package/scss/components/switch.component.scss +2 -1
- package/scss/components/tab-bar-item.component.scss +1 -1
- package/scss/components/toast-item.component.scss +79 -0
- package/scss/components/toast.component.scss +33 -0
- package/scss/components/toggle-button-group.component.scss +3 -2
- package/scss/core.scss +6 -1
- package/scss/layout/_description-list.scss +2 -1
- package/scss/layout/_helpers.scss +2 -0
- package/scss/layout/_typography.scss +6 -4
- package/scss/variables/_colors.scss +1 -1
- package/scss/variables/_typography.scss +1 -1
- package/scss/variables/_visuals.scss +3 -2
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
--odx-toggle-button-border-radius: 2px;
|
|
8
8
|
|
|
9
9
|
$root: &;
|
|
10
|
+
|
|
10
11
|
@include dimensions.height(2, 1.5);
|
|
11
12
|
@include dimensions.padding-x(math.div(6, 24));
|
|
12
13
|
@include motion.transition(background-color outline-color);
|
|
13
14
|
@include utils.center-content(true);
|
|
14
|
-
@include utils.with-outline;
|
|
15
|
+
@include utils.with-outline();
|
|
15
16
|
|
|
16
17
|
border-radius: var(--odx-v-border-radius-controls);
|
|
17
18
|
column-gap: dimensions.get-size(math.div(6, 24));
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
|
|
20
21
|
&__indicator {
|
|
21
22
|
@include dimensions.height(2, 1);
|
|
22
|
-
@include utils.with-outline;
|
|
23
|
+
@include utils.with-outline();
|
|
23
24
|
|
|
24
25
|
background-color: var(--odx-c-highlight);
|
|
25
26
|
border-radius: var(--odx-toggle-button-border-radius);
|
package/scss/core.scss
CHANGED
|
@@ -38,6 +38,8 @@ Layout
|
|
|
38
38
|
@use 'components/area-header.component';
|
|
39
39
|
@use 'components/avatar.component';
|
|
40
40
|
@use 'components/badge.component';
|
|
41
|
+
@use 'components/bar.component';
|
|
42
|
+
@use 'components/breadcrumbs.component';
|
|
41
43
|
@use 'components/button-group.component';
|
|
42
44
|
@use 'components/button.component';
|
|
43
45
|
@use 'components/checkbox.component';
|
|
@@ -56,11 +58,12 @@ Layout
|
|
|
56
58
|
@use 'components/loading-spinner.component';
|
|
57
59
|
@use 'components/logo.component';
|
|
58
60
|
@use 'components/main-menu.component';
|
|
61
|
+
@use 'components/menu.component';
|
|
62
|
+
@use 'components/menu-item.component';
|
|
59
63
|
@use 'components/modal.component';
|
|
60
64
|
@use 'components/progress.component';
|
|
61
65
|
@use 'components/radio-button.component';
|
|
62
66
|
@use 'components/radio-group.component';
|
|
63
|
-
|
|
64
67
|
@use 'components/rail-navigation.component';
|
|
65
68
|
@use 'components/rail-navigation-item.component';
|
|
66
69
|
@use 'components/select.component';
|
|
@@ -69,6 +72,8 @@ Layout
|
|
|
69
72
|
@use 'components/switch.component';
|
|
70
73
|
@use 'components/tab-bar-item.component';
|
|
71
74
|
@use 'components/tab-bar.component';
|
|
75
|
+
@use 'components/toast.component';
|
|
76
|
+
@use 'components/toast-item.component';
|
|
72
77
|
@use 'components/toggle-button.component';
|
|
73
78
|
@use 'components/toggle-button-group.component';
|
|
74
79
|
@use 'components/tooltip.component';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.odx-description-list {
|
|
6
6
|
$gap: dimensions.get-size(math.div(8, 24));
|
|
7
|
+
|
|
7
8
|
@include dimensions.margin-y(0.5);
|
|
8
9
|
|
|
9
10
|
column-gap: $gap;
|
|
@@ -24,6 +25,6 @@
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
dd {
|
|
27
|
-
|
|
28
|
+
@include typography.font-weight(medium);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -10,6 +10,7 @@ html body {
|
|
|
10
10
|
|
|
11
11
|
@each $size in (4, 8, 12, 16, 24, 36, 48) {
|
|
12
12
|
$factor: math.div($size, 24);
|
|
13
|
+
|
|
13
14
|
@each $direction in (top, right, bottom, left) {
|
|
14
15
|
.odx-margin-#{$direction}-#{$size} {
|
|
15
16
|
@include dimensions.margin($factor, $direction);
|
|
@@ -31,6 +32,7 @@ html body {
|
|
|
31
32
|
|
|
32
33
|
@each $size in (4, 8, 12, 16, 24, 36, 48) {
|
|
33
34
|
$factor: math.div($size, 24);
|
|
35
|
+
|
|
34
36
|
@each $direction in (top, right, bottom, left) {
|
|
35
37
|
.odx-padding-#{$direction}-#{$size} {
|
|
36
38
|
@include dimensions.padding($factor, $direction);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* stylelint-disable block-closing-brace-newline-after */
|
|
2
1
|
@use 'sass:math';
|
|
3
2
|
@use '../abstract/breakpoints';
|
|
4
3
|
@use '../abstract/dimensions';
|
|
@@ -25,13 +24,17 @@
|
|
|
25
24
|
src: url('../assets/fonts/PangeaText-SemiBoldWeb.woff2') format('woff2');
|
|
26
25
|
}
|
|
27
26
|
|
|
27
|
+
html {
|
|
28
|
+
font-size: 62.5%;
|
|
29
|
+
}
|
|
30
|
+
|
|
28
31
|
html body {
|
|
29
32
|
@include dimensions.line-height(1);
|
|
30
33
|
@include typography.font-size(0);
|
|
34
|
+
@include typography.font-weight(normal);
|
|
31
35
|
|
|
32
36
|
color: var(--odx-c-text);
|
|
33
37
|
font-family: Pangea, sans-serif;
|
|
34
|
-
font-weight: var(--odx-typography-font-weight-normal);
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
.odx-title,
|
|
@@ -97,8 +100,7 @@ html body {
|
|
|
97
100
|
|
|
98
101
|
.odx-text {
|
|
99
102
|
@include dimensions.line-height(1);
|
|
100
|
-
|
|
101
|
-
font-weight: var(--odx-typography-font-weight-normal);
|
|
103
|
+
@include typography.font-weight(normal);
|
|
102
104
|
|
|
103
105
|
&--small {
|
|
104
106
|
@include dimensions.line-height(1, math.div(20, 24));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../abstract/breakpoints';
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
|
-
--odx-typography-base-size:
|
|
4
|
+
--odx-typography-base-size: 1.6rem; // clamp(1.4rem, 0.667vw + 1rem, 1.6rem);
|
|
5
5
|
--odx-typography-base-line-height: 1.5;
|
|
6
6
|
--odx-typography-font-weight-normal: normal;
|
|
7
7
|
--odx-typography-font-weight-normal-letter-spacing: 0;
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
--odx-v-border-radius-controls: calc(var(--odx-typography-base-size) * 0.19);
|
|
4
4
|
|
|
5
5
|
--odx-v-backdrop-blur: 3px;
|
|
6
|
-
|
|
7
|
-
--odx-v-
|
|
6
|
+
|
|
7
|
+
--odx-v-box-shadow-layer-1: 0 2px 6px 0 var(--odx-c-box-shadow);
|
|
8
|
+
--odx-v-box-shadow-layer-2: 0 4px 12px 0 var(--odx-c-box-shadow);
|
|
8
9
|
|
|
9
10
|
--odx-v-transition-duration: 250ms;
|
|
10
11
|
--odx-v-transition-easing-fn: ease;
|