@odx/ui 3.9.3 → 4.0.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/CHANGELOG.md +12 -0
- package/core-theme.css +111 -46
- package/package.json +1 -1
- package/scss/components/button.component.scss +1 -30
- package/scss/components/chip.component.scss +14 -0
- package/scss/components/header.component.scss +8 -2
- package/scss/components/search-bar.component.scss +47 -0
- package/scss/core.scss +1 -0
- package/scss/variables/_colors-dark.scss +8 -4
- package/scss/variables/_colors.scss +17 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @odx/ui
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 295f120: Warning variant for buttons removed, new colors for buttons disable state
|
|
8
|
+
|
|
9
|
+
## 3.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 61c967c: new search bar component
|
|
14
|
+
|
|
3
15
|
## 3.9.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/core-theme.css
CHANGED
|
@@ -154,7 +154,6 @@
|
|
|
154
154
|
--odx-c-focus: var(--cyan-500-15);
|
|
155
155
|
--odx-c-focus-outline: var(--cyan-200);
|
|
156
156
|
--odx-c-focus-outline-dark: var(--cyan-400);
|
|
157
|
-
--odx-c-ghost-hover: var(--blue-700-5);
|
|
158
157
|
--odx-c-selected-hover: var(--cyan-500-20);
|
|
159
158
|
--odx-c-selected: var(--cyan-500-15);
|
|
160
159
|
--odx-c-selection: var(--cyan-300);
|
|
@@ -167,15 +166,15 @@
|
|
|
167
166
|
--odx-c-highlight: var(--cyan-500);
|
|
168
167
|
--odx-c-highlight-hover: var(--cyan-600);
|
|
169
168
|
--odx-c-highlight-active: var(--cyan-700);
|
|
170
|
-
--odx-c-highlight-disabled: var(--
|
|
169
|
+
--odx-c-highlight-disabled: var(--gray-300);
|
|
171
170
|
--odx-c-highlight-text: var(--odx-c-text-inverse);
|
|
172
|
-
--odx-c-highlight-text-disabled: var(--
|
|
171
|
+
--odx-c-highlight-text-disabled: var(--gray-700);
|
|
173
172
|
--odx-c-primary: var(--blue-700);
|
|
174
173
|
--odx-c-primary-hover: var(--blue-800);
|
|
175
174
|
--odx-c-primary-active: var(--blue-900);
|
|
176
|
-
--odx-c-primary-disabled: var(--
|
|
175
|
+
--odx-c-primary-disabled: var(--gray-300);
|
|
177
176
|
--odx-c-primary-text: var(--odx-c-text-inverse);
|
|
178
|
-
--odx-c-primary-text-disabled: var(--
|
|
177
|
+
--odx-c-primary-text-disabled: var(--gray-700);
|
|
179
178
|
--odx-c-secondary: var(--gray-300);
|
|
180
179
|
--odx-c-secondary-hover: var(--gray-400);
|
|
181
180
|
--odx-c-secondary-active: var(--gray-500);
|
|
@@ -185,9 +184,9 @@
|
|
|
185
184
|
--odx-c-success: var(--green-500);
|
|
186
185
|
--odx-c-success-hover: var(--green-600);
|
|
187
186
|
--odx-c-success-active: var(--green-700);
|
|
188
|
-
--odx-c-success-disabled: var(--
|
|
187
|
+
--odx-c-success-disabled: var(--gray-300);
|
|
189
188
|
--odx-c-success-text: var(--odx-c-text);
|
|
190
|
-
--odx-c-success-text-disabled: var(--
|
|
189
|
+
--odx-c-success-text-disabled: var(--gray-700);
|
|
191
190
|
--odx-c-warning: var(--yellow-500);
|
|
192
191
|
--odx-c-warning-hover: var(--yellow-600);
|
|
193
192
|
--odx-c-warning-active: var(--yellow-700);
|
|
@@ -197,15 +196,21 @@
|
|
|
197
196
|
--odx-c-danger: var(--red-500);
|
|
198
197
|
--odx-c-danger-hover: var(--red-600);
|
|
199
198
|
--odx-c-danger-active: var(--red-700);
|
|
200
|
-
--odx-c-danger-disabled: var(--
|
|
199
|
+
--odx-c-danger-disabled: var(--gray-300);
|
|
201
200
|
--odx-c-danger-text: var(--odx-c-text-inverse);
|
|
202
|
-
--odx-c-danger-text-disabled: var(--
|
|
201
|
+
--odx-c-danger-text-disabled: var(--gray-700);
|
|
203
202
|
--odx-c-confirmation: var(--orange-500);
|
|
204
203
|
--odx-c-confirmation-hover: var(--orange-600);
|
|
205
204
|
--odx-c-confirmation-active: var(--orange-700);
|
|
206
|
-
--odx-c-confirmation-disabled: var(--
|
|
205
|
+
--odx-c-confirmation-disabled: var(--gray-300);
|
|
207
206
|
--odx-c-confirmation-text: var(--odx-c-text);
|
|
208
|
-
--odx-c-confirmation-text-disabled: var(--
|
|
207
|
+
--odx-c-confirmation-text-disabled: var(--gray-700);
|
|
208
|
+
--odx-c-ghost: transparent;
|
|
209
|
+
--odx-c-ghost-hover: var(--blue-700-5);
|
|
210
|
+
--odx-c-ghost-active: var(--cyan-500-15);
|
|
211
|
+
--odx-c-ghost-disabled: transparent;
|
|
212
|
+
--odx-c-ghost-text: var(--cyan-500);
|
|
213
|
+
--odx-c-ghost-text-disabled: var(--gray-500);
|
|
209
214
|
}
|
|
210
215
|
|
|
211
216
|
:root:has([odxTheme=dark]),
|
|
@@ -225,21 +230,23 @@
|
|
|
225
230
|
--odx-c-focus-outline: var(--cyan-200);
|
|
226
231
|
--odx-c-focus-outline-dark: var(--odx-c-focus-outline);
|
|
227
232
|
--odx-c-ghost-hover: var(--blue-50-5);
|
|
233
|
+
--odx-c-ghost-text-disabled: var(--gray-400);
|
|
228
234
|
--odx-c-highlight-text: var(--black);
|
|
229
235
|
--odx-c-primary: var(--blue-900);
|
|
230
236
|
--odx-c-primary-hover: var(--blue-600);
|
|
231
237
|
--odx-c-primary-active: var(--blue-200);
|
|
232
|
-
--odx-c-primary-disabled: var(--odx-c-primary);
|
|
233
238
|
--odx-c-primary-text: var(--white);
|
|
234
|
-
--odx-c-primary-text-disabled: var(--
|
|
239
|
+
--odx-c-primary-text-disabled: var(--gray-100);
|
|
235
240
|
--odx-c-secondary-text-disabled: var(--gray-100);
|
|
236
241
|
--odx-c-highlight-hover: var(--cyan-400);
|
|
237
242
|
--odx-c-highlight-active: var(--cyan-300);
|
|
238
|
-
--odx-c-highlight-text-disabled: var(--
|
|
243
|
+
--odx-c-highlight-text-disabled: var(--gray-100);
|
|
239
244
|
--odx-c-danger-active: var(--red-100);
|
|
240
|
-
--odx-c-danger-text-disabled: var(--
|
|
245
|
+
--odx-c-danger-text-disabled: var(--gray-100);
|
|
241
246
|
--odx-c-success-text: var(--cyan-50);
|
|
247
|
+
--odx-c-success-text-disabled: var(--gray-100);
|
|
242
248
|
--odx-c-confirmation-text: var(--cyan-50);
|
|
249
|
+
--odx-c-confirmation-text-disabled: var(--gray-100);
|
|
243
250
|
--odx-c-warning-text: var(--cyan-50);
|
|
244
251
|
}
|
|
245
252
|
|
|
@@ -2640,43 +2647,21 @@ html body .odx-fs-italic {
|
|
|
2640
2647
|
background-color: var(--odx-c-confirmation-disabled);
|
|
2641
2648
|
color: var(--odx-c-confirmation-text-disabled);
|
|
2642
2649
|
}
|
|
2643
|
-
.odx-button--warning {
|
|
2644
|
-
background-color: var(--odx-c-warning);
|
|
2645
|
-
color: var(--odx-c-warning-text);
|
|
2646
|
-
}
|
|
2647
|
-
@media (hover: hover){
|
|
2648
|
-
.odx-button--warning:hover {
|
|
2649
|
-
background-color: var(--odx-c-warning-hover);
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
.odx-button--warning.odx-dropdown-host[aria-expanded=true], .odx-button--warning.is-active, .odx-button--warning:active {
|
|
2653
|
-
background-color: var(--odx-c-warning-active);
|
|
2654
|
-
}
|
|
2655
|
-
.odx-button--warning:disabled, .odx-button--warning.is-disabled {
|
|
2656
|
-
background-color: var(--odx-c-warning-disabled);
|
|
2657
|
-
color: var(--odx-c-warning-text-disabled);
|
|
2658
|
-
}
|
|
2659
2650
|
.odx-button--ghost, .odx-main-menu__close, .odx-main-menu-button, .odx-action-group > .odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
background-color: transparent;
|
|
2663
|
-
color: var(--odx-c-link);
|
|
2651
|
+
background-color: var(--odx-c-ghost);
|
|
2652
|
+
color: var(--odx-c-ghost-text);
|
|
2664
2653
|
}
|
|
2665
2654
|
@media (hover: hover){
|
|
2666
2655
|
.odx-button--ghost:hover, .odx-main-menu__close:hover, .odx-main-menu-button:hover, .odx-action-group>.odx-button:hover:not(.odx-button--primary,.odx-button--success,.odx-button--danger,.odx-button--confirmation,.odx-auth-sign-in) {
|
|
2667
|
-
background-color: var(--
|
|
2668
|
-
color: var(--odx-c-link-hover);
|
|
2669
|
-
}
|
|
2656
|
+
background-color: var(--odx-c-ghost-hover);
|
|
2670
2657
|
}
|
|
2671
|
-
.odx-button--ghost:active, .odx-main-menu__close:active, .odx-main-menu-button:active, .odx-action-group > .odx-button:active:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
2672
|
-
color: var(--odx-c-link-active);
|
|
2673
2658
|
}
|
|
2674
|
-
.odx-button--ghost.odx-dropdown-host[aria-expanded=true], .odx-dropdown-host[aria-expanded=true].odx-main-menu__close, .odx-dropdown-host[aria-expanded=true].odx-main-menu-button, .odx-action-group > .odx-dropdown-host[aria-expanded=true].odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in), .odx-button--ghost.is-active, .is-active.odx-main-menu__close, .is-active.odx-main-menu-button, .odx-action-group > .is-active.odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in), .odx-button--ghost:
|
|
2675
|
-
background-color: var(--odx-c-
|
|
2659
|
+
.odx-button--ghost.odx-dropdown-host[aria-expanded=true], .odx-dropdown-host[aria-expanded=true].odx-main-menu__close, .odx-dropdown-host[aria-expanded=true].odx-main-menu-button, .odx-action-group > .odx-dropdown-host[aria-expanded=true].odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in), .odx-button--ghost.is-active, .is-active.odx-main-menu__close, .is-active.odx-main-menu-button, .odx-action-group > .is-active.odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in), .odx-button--ghost:active, .odx-main-menu__close:active, .odx-main-menu-button:active, .odx-action-group > .odx-button:active:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
2660
|
+
background-color: var(--odx-c-ghost-active);
|
|
2676
2661
|
}
|
|
2677
2662
|
.odx-button--ghost:disabled, .odx-main-menu__close:disabled, .odx-main-menu-button:disabled, .odx-action-group > .odx-button:disabled:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in), .odx-button--ghost.is-disabled, .is-disabled.odx-main-menu__close, .is-disabled.odx-main-menu-button, .odx-action-group > .is-disabled.odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
2678
|
-
background-color:
|
|
2679
|
-
color: var(--odx-c-
|
|
2663
|
+
background-color: var(--odx-c-ghost-disabled);
|
|
2664
|
+
color: var(--odx-c-ghost-text-disabled);
|
|
2680
2665
|
}
|
|
2681
2666
|
.odx-button--small {
|
|
2682
2667
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
@@ -3733,6 +3718,18 @@ html body .odx-fs-italic {
|
|
|
3733
3718
|
border-radius: 50%;
|
|
3734
3719
|
margin: 0;
|
|
3735
3720
|
}
|
|
3721
|
+
.odx-chip--warning .odx-chip__action {
|
|
3722
|
+
background-color: var(--odx-c-warning);
|
|
3723
|
+
color: var(--odx-c-warning-text);
|
|
3724
|
+
}
|
|
3725
|
+
@media (hover: hover){
|
|
3726
|
+
.odx-chip--warning .odx-chip__action:hover {
|
|
3727
|
+
background-color: var(--odx-c-warning-hover);
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
.odx-chip--warning .odx-chip__action.is-active, .odx-chip--warning .odx-chip__action:active {
|
|
3731
|
+
background-color: var(--odx-c-warning-active);
|
|
3732
|
+
}
|
|
3736
3733
|
.odx-chip--small {
|
|
3737
3734
|
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
3738
3735
|
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
@@ -4385,8 +4382,8 @@ html body .odx-fs-italic {
|
|
|
4385
4382
|
}
|
|
4386
4383
|
|
|
4387
4384
|
.odx-header {
|
|
4388
|
-
padding-
|
|
4389
|
-
padding-
|
|
4385
|
+
padding-inline-start: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
|
|
4386
|
+
padding-inline-end: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
4390
4387
|
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
4391
4388
|
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
4392
4389
|
min-height: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
@@ -4432,6 +4429,9 @@ html body .odx-fs-italic {
|
|
|
4432
4429
|
display: block;
|
|
4433
4430
|
}
|
|
4434
4431
|
}
|
|
4432
|
+
.odx-header .odx-search-bar:not(:last-child) {
|
|
4433
|
+
margin-inline-end: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
4434
|
+
}
|
|
4435
4435
|
|
|
4436
4436
|
.odx-header-navigation {
|
|
4437
4437
|
background-color: var(--odx-c-background-content);
|
|
@@ -5994,6 +5994,71 @@ html body .odx-fs-italic {
|
|
|
5994
5994
|
transform: rotateX(180deg);
|
|
5995
5995
|
}
|
|
5996
5996
|
|
|
5997
|
+
.odx-search-bar {
|
|
5998
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
5999
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
6000
|
+
min-height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
|
|
6001
|
+
transition-delay: 0ms;
|
|
6002
|
+
transition-duration: var(--odx-v-transition-duration);
|
|
6003
|
+
transition-property: background-color, color, outline-color;
|
|
6004
|
+
transition-timing-function: var(--odx-v-transition-easing-fn);
|
|
6005
|
+
outline: var(--odx-v-outline-width) solid transparent;
|
|
6006
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
6007
|
+
background-color: var(--odx-input-control-background-color);
|
|
6008
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
6009
|
+
display: flex;
|
|
6010
|
+
outline-color: var(--odx-input-control-outline-color);
|
|
6011
|
+
overflow: hidden;
|
|
6012
|
+
position: relative;
|
|
6013
|
+
}
|
|
6014
|
+
.odx-search-bar:focus-within:has(input:focus-visible) {
|
|
6015
|
+
outline-color: var(--odx-c-focus-outline);
|
|
6016
|
+
}
|
|
6017
|
+
.odx-search-bar:focus-within:has(input:focus-visible) {
|
|
6018
|
+
background-color: var(--odx-c-focus);
|
|
6019
|
+
}
|
|
6020
|
+
@media (hover: hover){
|
|
6021
|
+
.odx-search-bar:focus-within:has(input:focus-visible):hover {
|
|
6022
|
+
background-color: var(--odx-c-focus);
|
|
6023
|
+
}
|
|
6024
|
+
}
|
|
6025
|
+
.odx-search-bar:not(:has(input[odxSearchBarControl])) {
|
|
6026
|
+
display: none;
|
|
6027
|
+
}
|
|
6028
|
+
.odx-search-bar__prefix {
|
|
6029
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
6030
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
6031
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
|
|
6032
|
+
transition-delay: 0ms;
|
|
6033
|
+
transition-duration: var(--odx-v-transition-duration);
|
|
6034
|
+
transition-property: color;
|
|
6035
|
+
transition-timing-function: var(--odx-v-transition-easing-fn);
|
|
6036
|
+
display: inline-flex;
|
|
6037
|
+
align-items: center;
|
|
6038
|
+
padding-inline-start: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
6039
|
+
flex: 0 0 auto;
|
|
6040
|
+
}
|
|
6041
|
+
.odx-search-bar__input {
|
|
6042
|
+
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
6043
|
+
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
6044
|
+
font-weight: var(--odx-typography-font-weight-medium);
|
|
6045
|
+
letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
|
|
6046
|
+
vertical-align: middle;
|
|
6047
|
+
width: 100%;
|
|
6048
|
+
}
|
|
6049
|
+
.odx-search-bar__input::-moz-placeholder {
|
|
6050
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
6051
|
+
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
6052
|
+
color: var(--odx-input-control-color);
|
|
6053
|
+
opacity: 0.65;
|
|
6054
|
+
}
|
|
6055
|
+
.odx-search-bar__input::placeholder {
|
|
6056
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
6057
|
+
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
6058
|
+
color: var(--odx-input-control-color);
|
|
6059
|
+
opacity: 0.65;
|
|
6060
|
+
}
|
|
6061
|
+
|
|
5997
6062
|
:root {
|
|
5998
6063
|
--odx-select-max-height: 220px;
|
|
5999
6064
|
}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@use 'icon.component';
|
|
11
11
|
|
|
12
12
|
.odx-button {
|
|
13
|
-
$variants: secondary, primary, highlight, success, danger, confirmation,
|
|
13
|
+
$variants: secondary, primary, highlight, success, danger, confirmation, ghost;
|
|
14
14
|
$icon-margin: 0.25;
|
|
15
15
|
|
|
16
16
|
@extend .odx-button--secondary;
|
|
@@ -94,35 +94,6 @@
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
&--ghost {
|
|
98
|
-
@include utils.with-outline();
|
|
99
|
-
|
|
100
|
-
background-color: transparent;
|
|
101
|
-
color: var(--odx-c-link);
|
|
102
|
-
|
|
103
|
-
&:hover {
|
|
104
|
-
background-color: var(--blue-700-5);
|
|
105
|
-
color: var(--odx-c-link-hover);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&:active {
|
|
109
|
-
color: var(--odx-c-link-active);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&#{dropdown.$dropdown-open-selector},
|
|
113
|
-
&.is-active,
|
|
114
|
-
&:focus-visible,
|
|
115
|
-
&:active {
|
|
116
|
-
background-color: var(--odx-c-focus);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&:disabled,
|
|
120
|
-
&.is-disabled {
|
|
121
|
-
background-color: transparent;
|
|
122
|
-
color: var(--odx-c-link-disabled);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
97
|
&--small {
|
|
127
98
|
$icon-margin: math.div(1, 8);
|
|
128
99
|
|
|
@@ -27,6 +27,20 @@ $variants: secondary, highlight, success, danger, warning, confirmation;
|
|
|
27
27
|
|
|
28
28
|
border-radius: 50%;
|
|
29
29
|
margin: 0;
|
|
30
|
+
|
|
31
|
+
#{$root}--warning & {
|
|
32
|
+
background-color: var(--odx-c-warning);
|
|
33
|
+
color: var(--odx-c-warning-text);
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--odx-c-warning-hover);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.is-active,
|
|
40
|
+
&:active {
|
|
41
|
+
background-color: var(--odx-c-warning-active);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
30
44
|
}
|
|
31
45
|
|
|
32
46
|
@each $size, $size-factor, $font-size-factor in $sizes {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
@use '../layout/typography' as *;
|
|
7
7
|
|
|
8
8
|
.odx-header {
|
|
9
|
-
@include dimensions.padding(math.div(20, 24), '
|
|
10
|
-
@include dimensions.padding(0.5, '
|
|
9
|
+
@include dimensions.padding(math.div(20, 24), 'inline-start');
|
|
10
|
+
@include dimensions.padding(0.5, 'inline-end');
|
|
11
11
|
@include dimensions.min-height(2);
|
|
12
12
|
@include utils.vertical-center-content();
|
|
13
13
|
|
|
@@ -53,4 +53,10 @@
|
|
|
53
53
|
display: block;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
.odx-search-bar {
|
|
58
|
+
&:not(:last-child) {
|
|
59
|
+
margin-inline-end: dimensions.get-size(0.5);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
56
62
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/utils';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/motion';
|
|
6
|
+
|
|
7
|
+
.odx-search-bar {
|
|
8
|
+
@include dimensions.min-height(1.5);
|
|
9
|
+
@include motion.transition(background-color color outline-color);
|
|
10
|
+
@include utils.with-outline();
|
|
11
|
+
@include utils.focus-state(true, true, 'input');
|
|
12
|
+
|
|
13
|
+
background-color: var(--odx-input-control-background-color);
|
|
14
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
15
|
+
display: flex;
|
|
16
|
+
outline-color: var(--odx-input-control-outline-color);
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
&:not(:has(input[odxSearchBarControl])) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__prefix {
|
|
25
|
+
@include dimensions.height(1.5);
|
|
26
|
+
@include motion.transition(color);
|
|
27
|
+
@include utils.vertical-center-content(true);
|
|
28
|
+
@include dimensions.padding(math.div(8, 24), 'inline-start');
|
|
29
|
+
|
|
30
|
+
flex: 0 0 auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__input {
|
|
34
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
35
|
+
@include typography.font-weight(medium);
|
|
36
|
+
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
width: 100%;
|
|
39
|
+
|
|
40
|
+
&::placeholder {
|
|
41
|
+
@include typography.font-weight(normal);
|
|
42
|
+
|
|
43
|
+
color: var(--odx-input-control-color);
|
|
44
|
+
opacity: 0.65;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
package/scss/core.scss
CHANGED
|
@@ -80,6 +80,7 @@ Layout
|
|
|
80
80
|
@use 'components/rich-list.component.scss';
|
|
81
81
|
@use 'components/rich-list-item-header.component.scss';
|
|
82
82
|
@use 'components/rich-list-item.component.scss';
|
|
83
|
+
@use 'components/search-bar.component.scss';
|
|
83
84
|
@use 'components/select.component';
|
|
84
85
|
@use 'components/slider.component';
|
|
85
86
|
@use 'components/spinbox.component';
|
|
@@ -21,28 +21,32 @@
|
|
|
21
21
|
--odx-c-focus-outline-dark: var(--odx-c-focus-outline);
|
|
22
22
|
|
|
23
23
|
--odx-c-ghost-hover: var(--blue-50-5);
|
|
24
|
+
--odx-c-ghost-text-disabled: var(--gray-400);
|
|
24
25
|
|
|
25
26
|
--odx-c-highlight-text: var(--black);
|
|
26
27
|
|
|
27
28
|
--odx-c-primary: var(--blue-900);
|
|
28
29
|
--odx-c-primary-hover: var(--blue-600);
|
|
29
30
|
--odx-c-primary-active: var(--blue-200);
|
|
30
|
-
|
|
31
|
+
|
|
31
32
|
--odx-c-primary-text: var(--white);
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
--odx-c-primary-text-disabled: var(--gray-100);
|
|
33
35
|
|
|
34
36
|
--odx-c-secondary-text-disabled: var(--gray-100);
|
|
35
37
|
|
|
36
38
|
--odx-c-highlight-hover: var(--cyan-400);
|
|
37
39
|
--odx-c-highlight-active: var(--cyan-300);
|
|
38
|
-
--odx-c-highlight-text-disabled: var(--
|
|
40
|
+
--odx-c-highlight-text-disabled: var(--gray-100);
|
|
39
41
|
|
|
40
42
|
--odx-c-danger-active: var(--red-100);
|
|
41
|
-
--odx-c-danger-text-disabled: var(--
|
|
43
|
+
--odx-c-danger-text-disabled: var(--gray-100);
|
|
42
44
|
|
|
43
45
|
--odx-c-success-text: var(--cyan-50);
|
|
46
|
+
--odx-c-success-text-disabled: var(--gray-100);
|
|
44
47
|
|
|
45
48
|
--odx-c-confirmation-text: var(--cyan-50);
|
|
49
|
+
--odx-c-confirmation-text-disabled: var(--gray-100);
|
|
46
50
|
|
|
47
51
|
--odx-c-warning-text: var(--cyan-50);
|
|
48
52
|
}
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
--odx-c-focus-outline: var(--cyan-200);
|
|
25
25
|
--odx-c-focus-outline-dark: var(--cyan-400);
|
|
26
26
|
|
|
27
|
-
--odx-c-ghost-hover: var(--blue-700-5);
|
|
28
27
|
--odx-c-selected-hover: var(--cyan-500-20);
|
|
29
28
|
--odx-c-selected: var(--cyan-500-15);
|
|
30
29
|
|
|
@@ -43,16 +42,16 @@
|
|
|
43
42
|
--odx-c-highlight: var(--cyan-500);
|
|
44
43
|
--odx-c-highlight-hover: var(--cyan-600);
|
|
45
44
|
--odx-c-highlight-active: var(--cyan-700);
|
|
46
|
-
--odx-c-highlight-disabled: var(--
|
|
45
|
+
--odx-c-highlight-disabled: var(--gray-300);
|
|
47
46
|
--odx-c-highlight-text: var(--odx-c-text-inverse);
|
|
48
|
-
--odx-c-highlight-text-disabled: var(--
|
|
47
|
+
--odx-c-highlight-text-disabled: var(--gray-700);
|
|
49
48
|
|
|
50
49
|
--odx-c-primary: var(--blue-700);
|
|
51
50
|
--odx-c-primary-hover: var(--blue-800);
|
|
52
51
|
--odx-c-primary-active: var(--blue-900);
|
|
53
|
-
--odx-c-primary-disabled: var(--
|
|
52
|
+
--odx-c-primary-disabled: var(--gray-300);
|
|
54
53
|
--odx-c-primary-text: var(--odx-c-text-inverse);
|
|
55
|
-
--odx-c-primary-text-disabled: var(--
|
|
54
|
+
--odx-c-primary-text-disabled: var(--gray-700);
|
|
56
55
|
|
|
57
56
|
--odx-c-secondary: var(--gray-300);
|
|
58
57
|
--odx-c-secondary-hover: var(--gray-400);
|
|
@@ -64,9 +63,9 @@
|
|
|
64
63
|
--odx-c-success: var(--green-500);
|
|
65
64
|
--odx-c-success-hover: var(--green-600);
|
|
66
65
|
--odx-c-success-active: var(--green-700);
|
|
67
|
-
--odx-c-success-disabled: var(--
|
|
66
|
+
--odx-c-success-disabled: var(--gray-300);
|
|
68
67
|
--odx-c-success-text: var(--odx-c-text);
|
|
69
|
-
--odx-c-success-text-disabled: var(--
|
|
68
|
+
--odx-c-success-text-disabled: var(--gray-700);
|
|
70
69
|
|
|
71
70
|
--odx-c-warning: var(--yellow-500);
|
|
72
71
|
--odx-c-warning-hover: var(--yellow-600);
|
|
@@ -78,14 +77,21 @@
|
|
|
78
77
|
--odx-c-danger: var(--red-500);
|
|
79
78
|
--odx-c-danger-hover: var(--red-600);
|
|
80
79
|
--odx-c-danger-active: var(--red-700);
|
|
81
|
-
--odx-c-danger-disabled: var(--
|
|
80
|
+
--odx-c-danger-disabled: var(--gray-300);
|
|
82
81
|
--odx-c-danger-text: var(--odx-c-text-inverse);
|
|
83
|
-
--odx-c-danger-text-disabled: var(--
|
|
82
|
+
--odx-c-danger-text-disabled: var(--gray-700);
|
|
84
83
|
|
|
85
84
|
--odx-c-confirmation: var(--orange-500);
|
|
86
85
|
--odx-c-confirmation-hover: var(--orange-600);
|
|
87
86
|
--odx-c-confirmation-active: var(--orange-700);
|
|
88
|
-
--odx-c-confirmation-disabled: var(--
|
|
87
|
+
--odx-c-confirmation-disabled: var(--gray-300);
|
|
89
88
|
--odx-c-confirmation-text: var(--odx-c-text);
|
|
90
|
-
--odx-c-confirmation-text-disabled: var(--
|
|
89
|
+
--odx-c-confirmation-text-disabled: var(--gray-700);
|
|
90
|
+
|
|
91
|
+
--odx-c-ghost: transparent;
|
|
92
|
+
--odx-c-ghost-hover: var(--blue-700-5);
|
|
93
|
+
--odx-c-ghost-active: var(--cyan-500-15);
|
|
94
|
+
--odx-c-ghost-disabled: transparent;
|
|
95
|
+
--odx-c-ghost-text: var(--cyan-500);
|
|
96
|
+
--odx-c-ghost-text-disabled: var(--gray-500);
|
|
91
97
|
}
|