@odx/ui 5.1.0 → 5.2.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 +10 -0
- package/core-theme.css +1 -1
- package/package.json +1 -1
- package/scss/anchor-navigation.component.scss +91 -0
- package/scss/chip.component.scss +1 -0
- package/scss/components/anchor-navigation.component.scss +91 -0
- package/scss/components/chip.component.scss +1 -0
- package/scss/components/table.component.scss +0 -6
- package/scss/core.scss +1 -0
- package/scss/table.component.scss +0 -6
package/package.json
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
.odx-anchor-navigation {
|
|
7
|
+
--active-link-indicator-color: var(--odx-control-outline-color);
|
|
8
|
+
|
|
9
|
+
$root: &;
|
|
10
|
+
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: dimensions.get-size(math.div(8, 24));
|
|
13
|
+
|
|
14
|
+
&:is(:not(#{$root}--vertical)) {
|
|
15
|
+
border-block-end: var(--odx-v-outline-width-bold) solid var(--odx-control-outline-color);
|
|
16
|
+
padding-block-start: var(--odx-v-outline-width-bold);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--vertical {
|
|
20
|
+
border-inline-start: var(--odx-v-outline-width-bold) solid var(--odx-control-outline-color);
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-item {
|
|
25
|
+
@include motion.transition(border-color background-color);
|
|
26
|
+
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
min-width: dimensions.get-size(math.div(80, 24));
|
|
29
|
+
|
|
30
|
+
&:has([aria-current='page']) {
|
|
31
|
+
--active-link-indicator-color: var(--odx-c-link-active);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.odx-link {
|
|
35
|
+
@include dimensions.padding-x(math.div(12, 24));
|
|
36
|
+
@include dimensions.padding-y(math.div(6, 24));
|
|
37
|
+
@include utils.interactive($with-background: false);
|
|
38
|
+
|
|
39
|
+
color: var(--odx-c-text);
|
|
40
|
+
display: flex;
|
|
41
|
+
outline-offset: calc(var(--odx-v-outline-width-bold) * -1);
|
|
42
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
43
|
+
|
|
44
|
+
&:not(:empty) {
|
|
45
|
+
gap: dimensions.get-size(math.div(4, 24));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[aria-current='page'] {
|
|
49
|
+
background-color: var(--odx-c-selected);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
background-color: unset;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
color: var(--odx-c-text);
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
|
|
60
|
+
&:not([aria-current='page']) {
|
|
61
|
+
background-color: var(--gray-100);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:focus-visible {
|
|
65
|
+
background-color: unset;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#{$root}:is(:not(#{$root}--vertical)) & {
|
|
70
|
+
border-bottom-left-radius: 0;
|
|
71
|
+
border-bottom-right-radius: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#{$root}--vertical & {
|
|
75
|
+
border-bottom-left-radius: 0;
|
|
76
|
+
border-top-left-radius: 0;
|
|
77
|
+
inline-size: 100%;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#{$root}:is(:not(#{$root}--vertical)) & {
|
|
82
|
+
border-block-end: var(--odx-v-outline-width-bold) solid var(--active-link-indicator-color);
|
|
83
|
+
margin-block-end: calc(var(--odx-v-outline-width-bold) * -1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#{$root}--vertical & {
|
|
87
|
+
border-inline-start: var(--odx-v-outline-width-bold) solid var(--active-link-indicator-color);
|
|
88
|
+
margin-inline-start: calc(var(--odx-v-outline-width-bold) * -1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
package/scss/chip.component.scss
CHANGED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
.odx-anchor-navigation {
|
|
7
|
+
--active-link-indicator-color: var(--odx-control-outline-color);
|
|
8
|
+
|
|
9
|
+
$root: &;
|
|
10
|
+
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: dimensions.get-size(math.div(8, 24));
|
|
13
|
+
|
|
14
|
+
&:is(:not(#{$root}--vertical)) {
|
|
15
|
+
border-block-end: var(--odx-v-outline-width-bold) solid var(--odx-control-outline-color);
|
|
16
|
+
padding-block-start: var(--odx-v-outline-width-bold);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--vertical {
|
|
20
|
+
border-inline-start: var(--odx-v-outline-width-bold) solid var(--odx-control-outline-color);
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&-item {
|
|
25
|
+
@include motion.transition(border-color background-color);
|
|
26
|
+
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
min-width: dimensions.get-size(math.div(80, 24));
|
|
29
|
+
|
|
30
|
+
&:has([aria-current='page']) {
|
|
31
|
+
--active-link-indicator-color: var(--odx-c-link-active);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.odx-link {
|
|
35
|
+
@include dimensions.padding-x(math.div(12, 24));
|
|
36
|
+
@include dimensions.padding-y(math.div(6, 24));
|
|
37
|
+
@include utils.interactive($with-background: false);
|
|
38
|
+
|
|
39
|
+
color: var(--odx-c-text);
|
|
40
|
+
display: flex;
|
|
41
|
+
outline-offset: calc(var(--odx-v-outline-width-bold) * -1);
|
|
42
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
43
|
+
|
|
44
|
+
&:not(:empty) {
|
|
45
|
+
gap: dimensions.get-size(math.div(4, 24));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[aria-current='page'] {
|
|
49
|
+
background-color: var(--odx-c-selected);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:focus-visible {
|
|
53
|
+
background-color: unset;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
color: var(--odx-c-text);
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
|
|
60
|
+
&:not([aria-current='page']) {
|
|
61
|
+
background-color: var(--gray-100);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:focus-visible {
|
|
65
|
+
background-color: unset;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
#{$root}:is(:not(#{$root}--vertical)) & {
|
|
70
|
+
border-bottom-left-radius: 0;
|
|
71
|
+
border-bottom-right-radius: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#{$root}--vertical & {
|
|
75
|
+
border-bottom-left-radius: 0;
|
|
76
|
+
border-top-left-radius: 0;
|
|
77
|
+
inline-size: 100%;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
#{$root}:is(:not(#{$root}--vertical)) & {
|
|
82
|
+
border-block-end: var(--odx-v-outline-width-bold) solid var(--active-link-indicator-color);
|
|
83
|
+
margin-block-end: calc(var(--odx-v-outline-width-bold) * -1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#{$root}--vertical & {
|
|
87
|
+
border-inline-start: var(--odx-v-outline-width-bold) solid var(--active-link-indicator-color);
|
|
88
|
+
margin-inline-start: calc(var(--odx-v-outline-width-bold) * -1);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
package/scss/core.scss
CHANGED
|
@@ -32,6 +32,7 @@ Layout
|
|
|
32
32
|
@use 'components/accordion.component';
|
|
33
33
|
@use 'components/accordion-item.component';
|
|
34
34
|
@use 'components/action-group.component';
|
|
35
|
+
@use 'components/anchor-navigation.component';
|
|
35
36
|
@use 'components/area-header.component';
|
|
36
37
|
@use 'components/autocomplete.component';
|
|
37
38
|
@use 'components/avatar.component';
|