@odx/ui 1.0.0-rc.22 → 1.0.0-rc.23
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 +2 -1
- package/ag-grid-theme.css +1 -0
- package/core-theme.css +1 -1
- package/package.json +4 -1
- package/scss/3rdparty/ag-grid/theme.scss +220 -0
- package/scss/abstract/_typography.scss +9 -5
- package/scss/components/area-header.component.scss +5 -0
- package/scss/components/badge.component.scss +1 -1
- package/scss/components/breadcrumbs.component.scss +4 -0
- package/scss/components/icon.component.scss +4 -8
- package/scss/components/main-menu-button.component.scss +4 -0
- package/scss/components/navigation-back.component.scss +23 -0
- package/scss/components/toast.component.scss +1 -1
- package/scss/core.scss +1 -0
- package/scss/variables/_visuals.scss +1 -0
- package/core-icons.css +0 -43
- package/core-icons.woff2 +0 -0
package/package.json
CHANGED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
@use '@odx/icons/core/utils' as icons;
|
|
2
|
+
@use '../../abstract/dimensions';
|
|
3
|
+
@use '../../abstract/typography';
|
|
4
|
+
|
|
5
|
+
.ag-theme-odx {
|
|
6
|
+
--ag-border-color: var(--odx-c-seperator);
|
|
7
|
+
--ag-foreground-color: var(--odx-c-text);
|
|
8
|
+
--ag-secondary-foreground-color: var(--odx-c-text);
|
|
9
|
+
--ag-disabled-foreground-color: vara(--odx-c-text-disabled);
|
|
10
|
+
|
|
11
|
+
--ag-background-color: var(--odx-c-background-content);
|
|
12
|
+
|
|
13
|
+
--ag-font-family: 'Pangea';
|
|
14
|
+
--ag-font-size: var(--odx-typography-base-size);
|
|
15
|
+
|
|
16
|
+
--ag-icon-size: #{typography.get-font-size(1)};
|
|
17
|
+
--ag-icon-font-family: #{icons.get-font-family()};
|
|
18
|
+
--ag-icon-font-code-aggregation: '#{icons.get-icon-glyph(placeholder)}';
|
|
19
|
+
--ag-icon-font-code-arrows: '#{icons.get-icon-glyph(placeholder)}';
|
|
20
|
+
--ag-icon-font-code-asc: '#{icons.get-icon-glyph(ascending)}';
|
|
21
|
+
--ag-icon-font-code-cancel: '#{icons.get-icon-glyph(close)}';
|
|
22
|
+
--ag-icon-font-code-chart: '#{icons.get-icon-glyph(placeholder)}';
|
|
23
|
+
--ag-icon-font-code-checkbox-checked: '#{icons.get-icon-glyph(placeholder)}';
|
|
24
|
+
--ag-icon-font-code-checkbox-indeterminate: '#{icons.get-icon-glyph(placeholder)}';
|
|
25
|
+
--ag-icon-font-code-checkbox-unchecked: '#{icons.get-icon-glyph(placeholder)}';
|
|
26
|
+
--ag-icon-font-code-color-picker: '#{icons.get-icon-glyph(placeholder)}';
|
|
27
|
+
--ag-icon-font-code-columns: '#{icons.get-icon-glyph(placeholder)}';
|
|
28
|
+
--ag-icon-font-code-contracted: '#{icons.get-icon-glyph(chevron-right)}';
|
|
29
|
+
--ag-icon-font-code-copy: '#{icons.get-icon-glyph(copy-content)}';
|
|
30
|
+
--ag-icon-font-code-cut: '#{icons.get-icon-glyph(cut)}';
|
|
31
|
+
--ag-icon-font-code-cross: '#{icons.get-icon-glyph(close)}';
|
|
32
|
+
--ag-icon-font-code-csv: '#{icons.get-icon-glyph(file)}';
|
|
33
|
+
--ag-icon-font-code-desc: '#{icons.get-icon-glyph(descending)}';
|
|
34
|
+
--ag-icon-font-code-excel: '#{icons.get-icon-glyph(file-excel)}';
|
|
35
|
+
--ag-icon-font-code-expanded: '#{icons.get-icon-glyph(chevron-left)}';
|
|
36
|
+
--ag-icon-font-code-eye-slash: '#{icons.get-icon-glyph(placeholder)}';
|
|
37
|
+
--ag-icon-font-code-eye: '#{icons.get-icon-glyph(placeholder)}';
|
|
38
|
+
--ag-icon-font-code-filter: '#{icons.get-icon-glyph(filter)}';
|
|
39
|
+
--ag-icon-font-code-first: '#{icons.get-icon-glyph(placeholder)}';
|
|
40
|
+
--ag-icon-font-code-grip: '#{icons.get-icon-glyph(placeholder)}';
|
|
41
|
+
--ag-icon-font-code-group: '#{icons.get-icon-glyph(placeholder)}';
|
|
42
|
+
--ag-icon-font-code-last: '#{icons.get-icon-glyph(placeholder)}';
|
|
43
|
+
--ag-icon-font-code-left: '#{icons.get-icon-glyph(arrow-left)}';
|
|
44
|
+
--ag-icon-font-code-linked: '#{icons.get-icon-glyph(placeholder)}';
|
|
45
|
+
--ag-icon-font-code-loading: '#{icons.get-icon-glyph(placeholder)}';
|
|
46
|
+
--ag-icon-font-code-maximize: '#{icons.get-icon-glyph(maximize)}';
|
|
47
|
+
--ag-icon-font-code-menu: '#{icons.get-icon-glyph(menu)}';
|
|
48
|
+
--ag-icon-font-code-minimize: '#{icons.get-icon-glyph(minimize)}';
|
|
49
|
+
--ag-icon-font-code-next: '#{icons.get-icon-glyph(chevron-right)}';
|
|
50
|
+
--ag-icon-font-code-none: '#{icons.get-icon-glyph(placeholder)}';
|
|
51
|
+
--ag-icon-font-code-not-allowed: '#{icons.get-icon-glyph(blocked)}';
|
|
52
|
+
--ag-icon-font-code-paste: '#{icons.get-icon-glyph(placeholder)}';
|
|
53
|
+
--ag-icon-font-code-pin: '#{icons.get-icon-glyph(pin)}';
|
|
54
|
+
--ag-icon-font-code-pivot: '#{icons.get-icon-glyph(placeholder)}';
|
|
55
|
+
--ag-icon-font-code-previous: '#{icons.get-icon-glyph(chevron-left)}';
|
|
56
|
+
--ag-icon-font-code-radio-button-off: '#{icons.get-icon-glyph(placeholder)}';
|
|
57
|
+
--ag-icon-font-code-radio-button-on: '#{icons.get-icon-glyph(placeholder)}';
|
|
58
|
+
--ag-icon-font-code-right: '#{icons.get-icon-glyph(arrow-right)}';
|
|
59
|
+
--ag-icon-font-code-save: '#{icons.get-icon-glyph(save)}';
|
|
60
|
+
--ag-icon-font-code-small-down: '#{icons.get-icon-glyph(chevron-down)}';
|
|
61
|
+
--ag-icon-font-code-small-left: '#{icons.get-icon-glyph(chevron-left)}';
|
|
62
|
+
--ag-icon-font-code-small-right: '#{icons.get-icon-glyph(chevron-right)}';
|
|
63
|
+
--ag-icon-font-code-small-up: '#{icons.get-icon-glyph(chevron-up)}';
|
|
64
|
+
--ag-icon-font-code-tick: '#{icons.get-icon-glyph(check)}';
|
|
65
|
+
--ag-icon-font-code-tree-closed: '#{icons.get-icon-glyph(chevron-right)}';
|
|
66
|
+
--ag-icon-font-code-tree-indeterminate: '#{icons.get-icon-glyph(minus)}';
|
|
67
|
+
--ag-icon-font-code-tree-open: '#{icons.get-icon-glyph(chevron-down)}';
|
|
68
|
+
--ag-icon-font-code-unlinked: '#{icons.get-icon-glyph(placeholder)}';
|
|
69
|
+
|
|
70
|
+
--ag-grid-size: #{dimensions.get-size(0.25)};
|
|
71
|
+
--ag-widget-vertical-spacing: #{dimensions.get-size(0.5)};
|
|
72
|
+
|
|
73
|
+
--ag-header-height: #{dimensions.get-size(2)};
|
|
74
|
+
--ag-row-height: #{dimensions.get-size(2)};
|
|
75
|
+
--ag-table-line-height: #{dimensions.get-size(1.5)};
|
|
76
|
+
--ag-list-item-height: #{dimensions.get-size(1.5)};
|
|
77
|
+
|
|
78
|
+
input[type='text'] {
|
|
79
|
+
background: var(--gray-100);
|
|
80
|
+
border: var(--ag-borders-critical) var(--gray100);
|
|
81
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
82
|
+
font-weight: var(--odx-typography-font-weight-normal);
|
|
83
|
+
letter-spacing: var(--odx-typography-font-weight-medium-letter-spacing);
|
|
84
|
+
line-height: var(--ag-table-line-height);
|
|
85
|
+
padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
86
|
+
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
87
|
+
vertical-align: middle;
|
|
88
|
+
|
|
89
|
+
&::placeholder {
|
|
90
|
+
color: var(--odx-c-text);
|
|
91
|
+
opacity: 0.65;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.ag-standard-button {
|
|
96
|
+
background-color: var(--odx-c-primary);
|
|
97
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
98
|
+
color: var(--odx-c-primary-text);
|
|
99
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
|
|
100
|
+
min-width: calc(var(--odx-vertical-rythm-base-size) * 3);
|
|
101
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
102
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
103
|
+
transition: all var(--odx-v-transition-duration) 0ms var(--odx-v-transition-easing-fn);
|
|
104
|
+
transition-property: background-color, color, outline;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ag-header {
|
|
108
|
+
border-bottom: var(--ag-borders-critical) var(--gray-700);
|
|
109
|
+
|
|
110
|
+
&-row:not(:first-child) {
|
|
111
|
+
.ag-header-cell,
|
|
112
|
+
.ag-header-group-cell.ag-header-group-cell-with-group {
|
|
113
|
+
border: none;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ag-cell-label-container {
|
|
118
|
+
width: fit-content;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ag-floating-filter {
|
|
122
|
+
.ag-filter-select {
|
|
123
|
+
.ag-picker-field-wrapper {
|
|
124
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 1.5);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
input[type='text']:disabled {
|
|
129
|
+
color: var(--odx-c-text);
|
|
130
|
+
font-weight: var(--odx-typography-font-weight-medium);
|
|
131
|
+
padding: 0;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ag-header-cell-text {
|
|
136
|
+
font-weight: var(--odx-typography-font-weight-medium);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ag-header-cell-label {
|
|
140
|
+
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.25);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ag-header-icon {
|
|
144
|
+
&.ag-header-cell-menu-button {
|
|
145
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 0.667);
|
|
146
|
+
width: calc(var(--odx-vertical-rythm-base-size) * 0.667);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.ag-popup {
|
|
152
|
+
[type='text']:focus {
|
|
153
|
+
border-color: var(--ag-input-border-color);
|
|
154
|
+
border-radius: var(--odx-v-border-radius);
|
|
155
|
+
box-shadow: unset;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ag-radio-button-input-wrapper {
|
|
160
|
+
align-items: center;
|
|
161
|
+
background-color: var(--odx-control-background-color);
|
|
162
|
+
border-radius: 50%;
|
|
163
|
+
display: flex;
|
|
164
|
+
flex: 0 0 auto;
|
|
165
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
|
|
166
|
+
justify-content: center;
|
|
167
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
|
|
168
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0.0834);
|
|
169
|
+
outline: var(--odx-v-outline-width) solid transparent;
|
|
170
|
+
outline-color: var(--odx-control-outline-color);
|
|
171
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
172
|
+
padding: 1px;
|
|
173
|
+
transition: all var(--odx-v-transition-duration) 0ms var(--odx-v-transition-easing-fn);
|
|
174
|
+
transition-property: background-color, color, outline-color;
|
|
175
|
+
width: calc(var(--odx-vertical-rythm-base-size) * 0.8334);
|
|
176
|
+
|
|
177
|
+
&:hover {
|
|
178
|
+
background-color: var(--odx-control-background-color-hover);
|
|
179
|
+
outline-color: var(--odx-control-outline-color-hover);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&.ag-checked {
|
|
183
|
+
background-color: var(--odx-control-background-color-selected);
|
|
184
|
+
color: var(--odx-control-color-selected);
|
|
185
|
+
opacity: 1;
|
|
186
|
+
outline-color: var(--odx-control-outline-color-selected);
|
|
187
|
+
|
|
188
|
+
&::after {
|
|
189
|
+
background-color: var(--odx-control-color-selected);
|
|
190
|
+
border-radius: 50%;
|
|
191
|
+
content: '';
|
|
192
|
+
height: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
193
|
+
left: unset;
|
|
194
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
195
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
196
|
+
top: unset;
|
|
197
|
+
transform: scale(1);
|
|
198
|
+
width: calc(var(--odx-vertical-rythm-base-size) * 0.1667);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ag-root-wrapper {
|
|
204
|
+
border: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ag-select {
|
|
208
|
+
.ag-picker-field-display {
|
|
209
|
+
color: var(--odx-c-text);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ag-picker-field-icon {
|
|
213
|
+
padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.ag-select-list {
|
|
218
|
+
color: var(--odx-c-text);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
@use 'utils';
|
|
3
3
|
|
|
4
|
+
@function get-font-size($size: 1) {
|
|
5
|
+
@if $size < 0 {
|
|
6
|
+
@return calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-negative-font-scaling-factor), $size));
|
|
7
|
+
} @else {
|
|
8
|
+
@return calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-positive-font-scaling-factor), $size));
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
4
12
|
@mixin font-size($size: 1) {
|
|
5
13
|
@if math.round($size) != $size {
|
|
6
14
|
@error '$size must me an integer';
|
|
7
15
|
}
|
|
8
16
|
|
|
9
|
-
|
|
10
|
-
font-size: calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-negative-font-scaling-factor), $size));
|
|
11
|
-
} @else {
|
|
12
|
-
font-size: calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-positive-font-scaling-factor), $size));
|
|
13
|
-
}
|
|
17
|
+
font-size: get-font-size($size);
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
@mixin font-weight($value: normal) {
|
|
@@ -8,12 +8,8 @@ $icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.di
|
|
|
8
8
|
@include dimensions.container(1);
|
|
9
9
|
@include utils.center-content(true);
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
flex: 0 0 auto;
|
|
12
12
|
font-size: dimensions.get-size(1);
|
|
13
|
-
text-rendering: auto;
|
|
14
|
-
text-transform: none;
|
|
15
|
-
user-select: none;
|
|
16
|
-
white-space: nowrap;
|
|
17
13
|
|
|
18
14
|
@each $size, $size_factor, $factor in $icon-sizes {
|
|
19
15
|
&--#{$size} {
|
|
@@ -27,9 +23,9 @@ $icon-sizes: (small math.div(16, 24) 1, large math.div(32, 24) 2, xlarge math.di
|
|
|
27
23
|
@include dimensions.margin-y(0);
|
|
28
24
|
|
|
29
25
|
font-size: inherit;
|
|
30
|
-
height:
|
|
26
|
+
height: 0.8em;
|
|
31
27
|
line-height: inherit;
|
|
32
|
-
vertical-align:
|
|
33
|
-
width:
|
|
28
|
+
vertical-align: super;
|
|
29
|
+
width: 0.8em;
|
|
34
30
|
}
|
|
35
31
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
|
|
6
|
+
.odx-navigation-back {
|
|
7
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
8
|
+
height: dimensions.get-size(1.5);
|
|
9
|
+
width: dimensions.get-size(1.5);
|
|
10
|
+
|
|
11
|
+
@include motion.transition(background-color outline);
|
|
12
|
+
@include utils.center-content(true);
|
|
13
|
+
@include utils.interactive($with-background: true);
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
background-color: var(--blue-700-5);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:active {
|
|
20
|
+
background-color: var(--cyan-500-15);
|
|
21
|
+
border: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
package/scss/core.scss
CHANGED
|
@@ -53,6 +53,7 @@ Layout
|
|
|
53
53
|
@use 'components/main-menu.component';
|
|
54
54
|
@use 'components/menu.component';
|
|
55
55
|
@use 'components/modal.component';
|
|
56
|
+
@use 'components/navigation-back.component';
|
|
56
57
|
@use 'components/progress.component';
|
|
57
58
|
@use 'components/radio-button.component';
|
|
58
59
|
@use 'components/radio-group.component';
|
package/core-icons.css
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-display: block;
|
|
3
|
-
font-family: "core-icons";
|
|
4
|
-
src: url("./core-icons.woff2?2e34fa04b5d8933d0d0fd3cefa3aa4d5") format("woff2");
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.odx-icon::before,
|
|
8
|
-
[class^="odx-icon-"]::before,
|
|
9
|
-
[class*=" odx-icon-"]::before {
|
|
10
|
-
font-family: core-icons !important;
|
|
11
|
-
font-style: normal;
|
|
12
|
-
font-weight: normal !important;
|
|
13
|
-
font-variant: normal;
|
|
14
|
-
text-transform: none;
|
|
15
|
-
line-height: 1;
|
|
16
|
-
vertical-align: top;
|
|
17
|
-
-webkit-font-smoothing: antialiased;
|
|
18
|
-
-moz-osx-font-smoothing: grayscale;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.odx-icon-add::before { content: "\f101"; }
|
|
22
|
-
.odx-icon-arrow-left::before { content: "\f102"; }
|
|
23
|
-
.odx-icon-arrow-right::before { content: "\f103"; }
|
|
24
|
-
.odx-icon-attachment::before { content: "\f104"; }
|
|
25
|
-
.odx-icon-calendar::before { content: "\f105"; }
|
|
26
|
-
.odx-icon-check::before { content: "\f106"; }
|
|
27
|
-
.odx-icon-chevron-down::before { content: "\f107"; }
|
|
28
|
-
.odx-icon-chevron-left::before { content: "\f108"; }
|
|
29
|
-
.odx-icon-chevron-right::before { content: "\f109"; }
|
|
30
|
-
.odx-icon-chevron-up::before { content: "\f10a"; }
|
|
31
|
-
.odx-icon-close::before { content: "\f10b"; }
|
|
32
|
-
.odx-icon-danger::before { content: "\f10c"; }
|
|
33
|
-
.odx-icon-identify::before { content: "\f10d"; }
|
|
34
|
-
.odx-icon-indeterminate::before { content: "\f10e"; }
|
|
35
|
-
.odx-icon-info::before { content: "\f10f"; }
|
|
36
|
-
.odx-icon-menu::before { content: "\f110"; }
|
|
37
|
-
.odx-icon-minus::before { content: "\f111"; }
|
|
38
|
-
.odx-icon-more::before { content: "\f112"; }
|
|
39
|
-
.odx-icon-placeholder::before { content: "\f113"; }
|
|
40
|
-
.odx-icon-plus::before { content: "\f114"; }
|
|
41
|
-
.odx-icon-tile-menu::before { content: "\f115"; }
|
|
42
|
-
.odx-icon-user::before { content: "\f116"; }
|
|
43
|
-
.odx-icon-warning::before { content: "\f117"; }
|
package/core-icons.woff2
DELETED
|
Binary file
|