@odx/ui 2.9.9 → 2.10.1
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/CHANGELOG.md +16 -2
- package/core-theme.css +32 -28
- package/package.json +1 -1
- package/scss/components/bar.component.scss +1 -1
- package/scss/components/card.component.scss +24 -19
- package/scss/components/dropdown.component.scss +1 -1
- package/scss/components/toast-item.component.scss +1 -0
- package/scss/components/toast.component.scss +1 -0
- package/scss/variables/_color-palettes-dark.scss +1 -0
- package/scss/variables/_color-palettes.scss +1 -0
- package/scss/variables/_colors.scss +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
## @odx/ui 2.9.8 (2023-10-25)
|
|
2
|
-
|
|
3
1
|
## 2.9.9
|
|
4
2
|
|
|
3
|
+
## 2.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a7e1493f: box-shadow color was updated for dark and light theme
|
|
8
|
+
|
|
9
|
+
## 2.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 00afc8a6: Expanded the possibilities of using the Card component
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 0ded821a: border radius for toasts
|
|
18
|
+
|
|
5
19
|
### Patch Changes
|
|
6
20
|
|
|
7
21
|
- 469224e8: Update library dependencies
|
package/core-theme.css
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
body {
|
|
6
6
|
--white: #ffffff;
|
|
7
7
|
--black: #00060f;
|
|
8
|
+
--black-20: rgba(0, 0, 0, 0.2);
|
|
8
9
|
--white-5: rgba(255, 255, 255, 0.05);
|
|
9
10
|
--white-60: rgba(255, 255, 255, 0.6);
|
|
10
11
|
--gray-50: #f5f7fa;
|
|
@@ -91,6 +92,7 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
91
92
|
--white: #293642;
|
|
92
93
|
--white-dark: #060a12;
|
|
93
94
|
--black: #ffffff;
|
|
95
|
+
--black-20: rgba(0, 0, 0, 0.6);
|
|
94
96
|
--focus-bg: #284e68;
|
|
95
97
|
--white-60: rgba(var(--white), 0.6);
|
|
96
98
|
--gray-50: #2e3d49;
|
|
@@ -156,7 +158,7 @@ body {
|
|
|
156
158
|
--odx-c-selection: var(--cyan-300);
|
|
157
159
|
--odx-c-backdrop: var(--white-60);
|
|
158
160
|
--odx-c-backdrop-dark: var(--blue-800-30);
|
|
159
|
-
--odx-c-box-shadow: var(--
|
|
161
|
+
--odx-c-box-shadow: var(--black-20);
|
|
160
162
|
--odx-c-separator: var(--gray-200);
|
|
161
163
|
--odx-c-background: var(--gray-50);
|
|
162
164
|
--odx-c-background-content: var(--white);
|
|
@@ -2315,7 +2317,7 @@ html body .odx-fs-italic {
|
|
|
2315
2317
|
.odx-dropdown {
|
|
2316
2318
|
background-color: var(--odx-c-background-content);
|
|
2317
2319
|
border-radius: var(--odx-v-border-radius);
|
|
2318
|
-
box-shadow: var(--odx-v-box-shadow-layer-
|
|
2320
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
2319
2321
|
display: block;
|
|
2320
2322
|
min-height: inherit;
|
|
2321
2323
|
}
|
|
@@ -2810,7 +2812,7 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
2810
2812
|
align-items: center;
|
|
2811
2813
|
background-color: var(--odx-bar-background-color);
|
|
2812
2814
|
border-radius: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
2813
|
-
box-shadow:
|
|
2815
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
2814
2816
|
color: var(--odx-bar-text-color);
|
|
2815
2817
|
display: inline-flex;
|
|
2816
2818
|
gap: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
@@ -2982,6 +2984,17 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
2982
2984
|
border-radius: 0;
|
|
2983
2985
|
}
|
|
2984
2986
|
|
|
2987
|
+
body {
|
|
2988
|
+
--odx-card-avatar-size: 64px;
|
|
2989
|
+
--odx-card-content-vertical-alignment: center;
|
|
2990
|
+
}
|
|
2991
|
+
@media (min-width: 480px) {
|
|
2992
|
+
body {
|
|
2993
|
+
--odx-card-avatar-size: 128px;
|
|
2994
|
+
--odx-card-content-vertical-alignment: top;
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2985
2998
|
.odx-card {
|
|
2986
2999
|
transition: all var(--odx-v-transition-duration) 0ms var(--odx-v-transition-easing-fn);
|
|
2987
3000
|
transition-property: box-shadow, outline-color, color;
|
|
@@ -3052,24 +3065,6 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
3052
3065
|
gap: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
3053
3066
|
}
|
|
3054
3067
|
}
|
|
3055
|
-
.odx-card--launch-tile .odx-avatar, .odx-card--launch-tile-centered .odx-avatar {
|
|
3056
|
-
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
3057
|
-
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
3058
|
-
height: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
|
|
3059
|
-
width: calc(var(--odx-vertical-rythm-base-size) * 2.6667);
|
|
3060
|
-
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
3061
|
-
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
3062
|
-
flex: 0 0 auto;
|
|
3063
|
-
}
|
|
3064
|
-
@media (min-width: 480px) {
|
|
3065
|
-
.odx-card--launch-tile .odx-avatar, .odx-card--launch-tile-centered .odx-avatar {
|
|
3066
|
-
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
3067
|
-
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
3068
|
-
height: calc(var(--odx-vertical-rythm-base-size) * 5.3334);
|
|
3069
|
-
width: calc(var(--odx-vertical-rythm-base-size) * 5.3334);
|
|
3070
|
-
margin: calc(var(--odx-vertical-rythm-base-size) * 0.1667) auto 0;
|
|
3071
|
-
}
|
|
3072
|
-
}
|
|
3073
3068
|
.odx-card--launch-tile .odx-card__title, .odx-card--launch-tile-centered .odx-card__title {
|
|
3074
3069
|
font-weight: var(--odx-typography-font-weight-medium);
|
|
3075
3070
|
letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
|
|
@@ -3091,12 +3086,7 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
3091
3086
|
display: flex;
|
|
3092
3087
|
flex: 1;
|
|
3093
3088
|
flex-direction: column;
|
|
3094
|
-
justify-content:
|
|
3095
|
-
}
|
|
3096
|
-
@media (min-width: 480px) {
|
|
3097
|
-
.odx-card--launch-tile .odx-card__content, .odx-card--launch-tile-centered .odx-card__content {
|
|
3098
|
-
display: block;
|
|
3099
|
-
}
|
|
3089
|
+
justify-content: var(--odx-card-content-vertical-alignment);
|
|
3100
3090
|
}
|
|
3101
3091
|
@media (min-width: 480px) {
|
|
3102
3092
|
.odx-card__content {
|
|
@@ -3116,6 +3106,18 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
3116
3106
|
gap: calc(var(--odx-vertical-rythm-base-size) * 0.6667);
|
|
3117
3107
|
}
|
|
3118
3108
|
}
|
|
3109
|
+
.odx-card .odx-avatar {
|
|
3110
|
+
flex: 0 0 auto;
|
|
3111
|
+
height: var(--odx-card-avatar-size);
|
|
3112
|
+
width: var(--odx-card-avatar-size);
|
|
3113
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
3114
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
3115
|
+
}
|
|
3116
|
+
@media (min-width: 480px) {
|
|
3117
|
+
.odx-card .odx-avatar {
|
|
3118
|
+
margin: calc(var(--odx-vertical-rythm-base-size) * 0.1667) auto 0;
|
|
3119
|
+
}
|
|
3120
|
+
}
|
|
3119
3121
|
.odx-card__footer {
|
|
3120
3122
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
3121
3123
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
@@ -3138,7 +3140,7 @@ body[odxTheme=dark], body.odx-theme-dark {
|
|
|
3138
3140
|
.odx-card__footer .odx-button {
|
|
3139
3141
|
margin: 0;
|
|
3140
3142
|
}
|
|
3141
|
-
.odx-card .odx-
|
|
3143
|
+
.odx-card > .odx-action-group {
|
|
3142
3144
|
margin: 0;
|
|
3143
3145
|
position: absolute;
|
|
3144
3146
|
right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
@@ -5964,6 +5966,7 @@ body {
|
|
|
5964
5966
|
|
|
5965
5967
|
.odx-toast-container {
|
|
5966
5968
|
--odx-toast-outer-offset: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
5969
|
+
--odx-toast-border-radius: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
5967
5970
|
display: flex;
|
|
5968
5971
|
flex-direction: column;
|
|
5969
5972
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
@@ -5993,6 +5996,7 @@ body {
|
|
|
5993
5996
|
--odx-c-warning: var(--yellow-50);
|
|
5994
5997
|
--odx-c-danger: var(--red-00);
|
|
5995
5998
|
--odx-c-success: var(--green-00);
|
|
5999
|
+
border-radius: var(--odx-toast-border-radius);
|
|
5996
6000
|
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
5997
6001
|
display: block;
|
|
5998
6002
|
}
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ body {
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
background-color: var(--odx-bar-background-color);
|
|
29
29
|
border-radius: dimensions.get-size(math.div(6, 24));
|
|
30
|
-
box-shadow:
|
|
30
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
31
31
|
color: var(--odx-bar-text-color);
|
|
32
32
|
display: inline-flex;
|
|
33
33
|
gap: dimensions.get-size(math.div(12, 24));
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
@use '../abstract/typography';
|
|
6
6
|
@use '../abstract/utils';
|
|
7
7
|
|
|
8
|
+
body {
|
|
9
|
+
--odx-card-avatar-size: 64px;
|
|
10
|
+
--odx-card-content-vertical-alignment: center;
|
|
11
|
+
|
|
12
|
+
@include breakpoints.up(phone) {
|
|
13
|
+
--odx-card-avatar-size: 128px;
|
|
14
|
+
--odx-card-content-vertical-alignment: top;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
.odx-card {
|
|
9
19
|
$root: &;
|
|
10
20
|
$main-padding: dimensions.get-size(math.div(12, 24));
|
|
@@ -73,19 +83,6 @@
|
|
|
73
83
|
}
|
|
74
84
|
}
|
|
75
85
|
|
|
76
|
-
.odx-avatar {
|
|
77
|
-
@include dimensions.container(math.div(64, 24));
|
|
78
|
-
@include dimensions.margin-y(math.div(4, 24));
|
|
79
|
-
|
|
80
|
-
flex: 0 0 auto;
|
|
81
|
-
|
|
82
|
-
@include breakpoints.up(phone) {
|
|
83
|
-
@include dimensions.container(math.div(128, 24));
|
|
84
|
-
|
|
85
|
-
margin: dimensions.get-size(math.div(4, 24)) auto 0;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
86
|
#{$root}__title {
|
|
90
87
|
@include typography.font-weight(medium);
|
|
91
88
|
|
|
@@ -108,11 +105,7 @@
|
|
|
108
105
|
display: flex;
|
|
109
106
|
flex: 1;
|
|
110
107
|
flex-direction: column;
|
|
111
|
-
justify-content:
|
|
112
|
-
|
|
113
|
-
@include breakpoints.up(phone) {
|
|
114
|
-
display: block;
|
|
115
|
-
}
|
|
108
|
+
justify-content: var(--odx-card-content-vertical-alignment);
|
|
116
109
|
}
|
|
117
110
|
}
|
|
118
111
|
|
|
@@ -141,6 +134,18 @@
|
|
|
141
134
|
}
|
|
142
135
|
}
|
|
143
136
|
|
|
137
|
+
.odx-avatar {
|
|
138
|
+
flex: 0 0 auto;
|
|
139
|
+
height: var(--odx-card-avatar-size);
|
|
140
|
+
width: var(--odx-card-avatar-size);
|
|
141
|
+
|
|
142
|
+
@include dimensions.margin-y(math.div(4, 24));
|
|
143
|
+
|
|
144
|
+
@include breakpoints.up(phone) {
|
|
145
|
+
margin: dimensions.get-size(math.div(4, 24)) auto 0;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
144
149
|
&__footer {
|
|
145
150
|
@include dimensions.padding-x(0.5);
|
|
146
151
|
|
|
@@ -166,7 +171,7 @@
|
|
|
166
171
|
}
|
|
167
172
|
}
|
|
168
173
|
|
|
169
|
-
.odx-
|
|
174
|
+
> .odx-action-group {
|
|
170
175
|
margin: 0;
|
|
171
176
|
position: absolute;
|
|
172
177
|
right: $main-padding;
|
|
@@ -6,7 +6,7 @@ $dropdown-open-selector: '.odx-dropdown-host[aria-expanded="true"]';
|
|
|
6
6
|
.odx-dropdown {
|
|
7
7
|
background-color: var(--odx-c-background-content);
|
|
8
8
|
border-radius: var(--odx-v-border-radius);
|
|
9
|
-
box-shadow: var(--odx-v-box-shadow-layer-
|
|
9
|
+
box-shadow: var(--odx-v-box-shadow-layer-1);
|
|
10
10
|
display: block;
|
|
11
11
|
min-height: inherit;
|
|
12
12
|
|