@odx/ui 1.0.0-rc.5 → 1.0.0-rc.7
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/core-icons.css +8 -6
- package/core-icons.woff2 +0 -0
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/cdk/connected-overlay.scss +36 -0
- package/scss/components/accordion-item.component.scss +5 -8
- package/scss/components/button.component.scss +2 -1
- package/scss/components/checkbox.component.scss +1 -1
- package/scss/components/dropdown.component.scss +20 -0
- package/scss/components/inline-message.component.scss +33 -0
- package/scss/components/list-item.component.scss +11 -6
- package/scss/components/loading-spinner.component.scss +1 -0
- package/scss/components/radio-button.component.scss +1 -1
- package/scss/components/rail-navigation-item.component.scss +1 -1
- package/scss/components/select.component.scss +107 -0
- package/scss/components/slider.component.scss +130 -0
- package/scss/components/spinbox.component.scss +124 -0
- package/scss/components/switch.component.scss +1 -1
- package/scss/components/toggle-button-group.component.scss +17 -13
- package/scss/components/toggle-button.component.scss +34 -5
- package/scss/components/tooltip.component.scss +34 -0
- package/scss/core.scss +8 -0
- package/scss/layout/_content.scss +5 -0
- package/scss/layout/_description-list.scss +29 -0
- package/scss/variables/_color-palettes.scss +1 -2
- package/scss/variables/_controls.scss +1 -2
|
@@ -5,36 +5,65 @@
|
|
|
5
5
|
@use '../abstract/utils';
|
|
6
6
|
|
|
7
7
|
.odx-toggle-button {
|
|
8
|
+
$root: &;
|
|
9
|
+
|
|
8
10
|
@include dimensions.line-height(1.5, 1);
|
|
9
|
-
@include motion.transition(
|
|
11
|
+
@include motion.transition(color);
|
|
10
12
|
@include typography.font-size(0);
|
|
13
|
+
@include typography.font-weight(medium);
|
|
11
14
|
@include utils.vertical-center-content();
|
|
12
15
|
|
|
13
16
|
color: currentcolor;
|
|
14
|
-
cursor: pointer;
|
|
15
17
|
overflow: hidden;
|
|
16
18
|
user-select: none;
|
|
17
19
|
|
|
18
20
|
&.is-active {
|
|
19
|
-
color: var(--odx-
|
|
21
|
+
color: var(--odx-c-highlight-text);
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
&.is-readonly {
|
|
23
|
-
color:
|
|
25
|
+
color: inherit;
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
&.is-disabled {
|
|
27
29
|
color: var(--odx-control-color-disabled);
|
|
28
30
|
}
|
|
29
31
|
|
|
32
|
+
&.is-active.is-disabled {
|
|
33
|
+
color: var(--odx-c-secondary-text-disabled);
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
&.is-disabled,
|
|
31
37
|
&.is-readonly {
|
|
32
38
|
pointer-events: none;
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
&__label {
|
|
42
|
+
@include motion.transition(background-color outline-color);
|
|
36
43
|
@include dimensions.padding-x(math.div(1, 3));
|
|
37
44
|
|
|
38
|
-
|
|
45
|
+
border-radius: var(--odx-toggle-button-border-radius);
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
|
|
48
|
+
#{$root}-group:not(.is-active) & {
|
|
49
|
+
@include utils.interactive($focus-within: true);
|
|
50
|
+
|
|
51
|
+
background-color: var(--blue-700-5);
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: var(--blue-700-10);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#{$root}-group.is-active &:hover {
|
|
59
|
+
background-color: var(--blue-700-5);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
#{$root}.is-readonly &,
|
|
63
|
+
#{$root}.is-disabled &,
|
|
64
|
+
#{$root}-group.is-active &,
|
|
65
|
+
#{$root}-group.has-error & {
|
|
66
|
+
background-color: transparent;
|
|
67
|
+
}
|
|
39
68
|
}
|
|
40
69
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@use '../abstract/dimensions';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--odx-tooltip-background-color: var(--blue-800);
|
|
5
|
+
--odx-tooltip-color: var(--odx-c-text-inverse);
|
|
6
|
+
--odx-tooltip-size-small: #{dimensions.get-size(5)};
|
|
7
|
+
--odx-tooltip-size-medium: #{dimensions.get-size(10)};
|
|
8
|
+
--odx-tooltip-size-large: #{dimensions.get-size(15)};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.odx-tooltip {
|
|
12
|
+
$sizes: small, medium, large;
|
|
13
|
+
|
|
14
|
+
@include dimensions.padding(0.5);
|
|
15
|
+
|
|
16
|
+
background-color: var(--odx-tooltip-background-color);
|
|
17
|
+
border-radius: var(--odx-v-border-radius);
|
|
18
|
+
color: var(--odx-tooltip-color);
|
|
19
|
+
display: block;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
|
|
22
|
+
@each $size in $sizes {
|
|
23
|
+
&--#{$size} {
|
|
24
|
+
max-width: var(--odx-tooltip-size-#{$size});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-overlay {
|
|
29
|
+
.odx-cdk-connected-overlay-arrow {
|
|
30
|
+
background-color: var(--odx-tooltip-background-color);
|
|
31
|
+
z-index: -1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/scss/core.scss
CHANGED
|
@@ -15,6 +15,7 @@ Layout
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
@use 'layout/base';
|
|
18
|
+
@use 'layout/description-list';
|
|
18
19
|
@use 'layout/layout';
|
|
19
20
|
@use 'layout/helpers';
|
|
20
21
|
@use 'layout/typography';
|
|
@@ -25,6 +26,7 @@ Layout
|
|
|
25
26
|
CDK
|
|
26
27
|
*/
|
|
27
28
|
@use 'cdk/active-indicator';
|
|
29
|
+
@use 'cdk/connected-overlay';
|
|
28
30
|
|
|
29
31
|
/*
|
|
30
32
|
Components
|
|
@@ -42,9 +44,11 @@ Layout
|
|
|
42
44
|
@use 'components/chip.component';
|
|
43
45
|
@use 'components/circular-progress.component';
|
|
44
46
|
@use 'components/content-box.component';
|
|
47
|
+
@use 'components/dropdown.component';
|
|
45
48
|
@use 'components/form-field.component';
|
|
46
49
|
@use 'components/header.component';
|
|
47
50
|
@use 'components/icon.component';
|
|
51
|
+
@use 'components/inline-message.component';
|
|
48
52
|
@use 'components/link.component';
|
|
49
53
|
@use 'components/list.component';
|
|
50
54
|
@use 'components/list-item.component';
|
|
@@ -57,6 +61,10 @@ Layout
|
|
|
57
61
|
@use 'components/radio-group.component';
|
|
58
62
|
@use 'components/rail-navigation.component';
|
|
59
63
|
@use 'components/rail-navigation-item.component';
|
|
64
|
+
@use 'components/select.component.scss';
|
|
65
|
+
@use 'components/slider.component.scss';
|
|
66
|
+
@use 'components/spinbox.component.scss';
|
|
60
67
|
@use 'components/switch.component.scss';
|
|
61
68
|
@use 'components/toggle-button.component';
|
|
62
69
|
@use 'components/toggle-button-group.component';
|
|
70
|
+
@use 'components/tooltip.component';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/typography';
|
|
4
|
+
|
|
5
|
+
.odx-description-list {
|
|
6
|
+
$gap: dimensions.get-size(math.div(8, 24));
|
|
7
|
+
@include dimensions.margin-y(0.5);
|
|
8
|
+
|
|
9
|
+
column-gap: $gap;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex: 0 0 100%;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
row-gap: calc(#{$gap} / 2);
|
|
14
|
+
|
|
15
|
+
dt,
|
|
16
|
+
dd {
|
|
17
|
+
align-items: flex-end;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
flex: 0 0 calc(50% - #{$gap} / 2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
dt {
|
|
23
|
+
@include typography.font-size(-1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
dd {
|
|
27
|
+
font-weight: var(--odx-typography-font-weight-medium);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--white: #ffffff;
|
|
3
|
-
--black: #
|
|
3
|
+
--black: #00060f;
|
|
4
4
|
|
|
5
5
|
--white-5: #{rgba(#ffffff, 5%)};
|
|
6
6
|
--white-60: #{rgba(#ffffff, 60%)};
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
--blue-700-5: #{rgba(#002766, 5%)};
|
|
31
31
|
--blue-700-10: #{rgba(#002766, 10%)};
|
|
32
32
|
--blue-700-15: #{rgba(#002766, 15%)};
|
|
33
|
-
--blue-700-25: #{rgba(#002766, 25%)};
|
|
34
33
|
--blue-800-30: #{rgba(#001433, 30%)};
|
|
35
34
|
|
|
36
35
|
--cyan-50: #cbe9ff;
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
--odx-control-color-selected: var(--odx-c-highlight-text);
|
|
11
11
|
--odx-control-background-color-selected: var(--odx-c-highlight);
|
|
12
12
|
--odx-control-outline-color-selected: var(--odx-c-highlight);
|
|
13
|
-
--odx-control-outline-color-selected-focus: var(--odx-c-highlight-active);
|
|
14
13
|
|
|
15
|
-
--odx-control-color-disabled: var(--gray-
|
|
14
|
+
--odx-control-color-disabled: var(--gray-500);
|
|
16
15
|
--odx-control-background-color-disabled: var(--gray-100);
|
|
17
16
|
--odx-control-outline-color-disabled: transparent;
|
|
18
17
|
|