@odx/ui 1.0.0-rc.22 → 1.0.0-rc.24

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.
Files changed (40) hide show
  1. package/README.md +2 -1
  2. package/ag-grid-theme.css +1 -0
  3. package/core-theme.css +1 -1
  4. package/package.json +4 -1
  5. package/scss/3rdparty/ag-grid/theme.scss +220 -0
  6. package/scss/abstract/_typography.scss +9 -5
  7. package/scss/abstract/_utils.scss +7 -0
  8. package/scss/assets/icons.css.hbs +23 -0
  9. package/scss/components/area-header.component.scss +6 -1
  10. package/scss/components/badge.component.scss +2 -2
  11. package/scss/components/bar.component.scss +8 -1
  12. package/scss/components/breadcrumbs.component.scss +4 -0
  13. package/scss/components/button-group.component.scss +1 -1
  14. package/scss/components/button.component.scss +1 -1
  15. package/scss/components/card.component.scss +2 -0
  16. package/scss/components/form-field.component.scss +1 -1
  17. package/scss/components/icon.component.scss +4 -8
  18. package/scss/components/link.component.scss +8 -0
  19. package/scss/components/loading-spinner.component.scss +12 -1
  20. package/scss/components/logo.component.scss +6 -1
  21. package/scss/components/main-menu-button.component.scss +4 -0
  22. package/scss/components/main-menu-item.component.scss +10 -1
  23. package/scss/components/main-menu.component.scss +7 -1
  24. package/scss/components/mainfilter-group.component.scss +61 -0
  25. package/scss/components/modal.component.scss +4 -2
  26. package/scss/components/navigation-back.component.scss +23 -0
  27. package/scss/components/select.component.scss +1 -1
  28. package/scss/components/toast.component.scss +1 -1
  29. package/scss/components/tooltip.component.scss +2 -1
  30. package/scss/core.scss +6 -0
  31. package/scss/skeleton/_skeleton.scss +49 -0
  32. package/scss/variables/_color-palettes-dark.scss +53 -0
  33. package/scss/variables/_color-palettes.scss +1 -1
  34. package/scss/variables/_colors-dark.scss +43 -0
  35. package/scss/variables/_colors.scss +3 -2
  36. package/scss/variables/_controls.scss +1 -1
  37. package/scss/variables/_index.scss +2 -0
  38. package/scss/variables/_visuals.scss +2 -1
  39. package/core-icons.css +0 -43
  40. package/core-icons.woff2 +0 -0
@@ -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
+ }
@@ -4,7 +4,7 @@
4
4
  @use '../abstract/typography';
5
5
  @use '../abstract/utils';
6
6
 
7
- :root {
7
+ body {
8
8
  --odx-select-max-height: 220px;
9
9
  }
10
10
 
@@ -15,7 +15,7 @@
15
15
  right: var(--odx-toast-outer-offset);
16
16
  top: 0;
17
17
  width: 100%;
18
- z-index: var(--odx-v-layer-4);
18
+ z-index: var(--odx-v-layer-5);
19
19
 
20
20
  &__counter {
21
21
  align-self: center;
@@ -1,6 +1,7 @@
1
1
  @use '../abstract/dimensions';
2
+ @use '../abstract/utils';
2
3
 
3
- :root {
4
+ body {
4
5
  --odx-tooltip-background-color: var(--blue-800);
5
6
  --odx-tooltip-color: var(--odx-c-text-inverse);
6
7
  --odx-tooltip-size-small: #{dimensions.get-size(5)};
package/scss/core.scss CHANGED
@@ -19,6 +19,11 @@ Layout
19
19
  @use 'cdk/active-indicator';
20
20
  @use 'cdk/connected-overlay';
21
21
 
22
+ /*
23
+ Skeleton
24
+ */
25
+ @use 'skeleton/skeleton';
26
+
22
27
  /*
23
28
  Components
24
29
  */
@@ -53,6 +58,7 @@ Layout
53
58
  @use 'components/main-menu.component';
54
59
  @use 'components/menu.component';
55
60
  @use 'components/modal.component';
61
+ @use 'components/navigation-back.component';
56
62
  @use 'components/progress.component';
57
63
  @use 'components/radio-button.component';
58
64
  @use 'components/radio-group.component';
@@ -0,0 +1,49 @@
1
+ @keyframes skeleton-animation {
2
+ from {
3
+ opacity: 1;
4
+ }
5
+
6
+ to {
7
+ opacity: 0.5;
8
+ }
9
+ }
10
+
11
+ .odx-skeleton {
12
+ background-color: transparent;
13
+ color: transparent;
14
+ pointer-events: none;
15
+ position: relative;
16
+ user-select: none;
17
+
18
+ &::after {
19
+ animation: skeleton-animation ease-in-out 1s infinite alternate;
20
+ background-color: var(--gray-200);
21
+ border-radius: var(--odx-v-border-radius);
22
+ content: '';
23
+ height: 100%;
24
+ left: 0;
25
+ position: absolute;
26
+ top: 0;
27
+ width: 100%;
28
+ }
29
+
30
+ &--text::before {
31
+ content: '\a0';
32
+ }
33
+
34
+ &--short::after {
35
+ width: 40%;
36
+ }
37
+
38
+ &--center::after {
39
+ left: 50%;
40
+ position: absolute;
41
+ transform: translate(-50%, 0);
42
+ width: 40%;
43
+ }
44
+
45
+ * {
46
+ opacity: 0;
47
+ visibility: hidden;
48
+ }
49
+ }
@@ -0,0 +1,53 @@
1
+ @use '../abstract/utils';
2
+
3
+ body {
4
+ @include utils.dark-theme-selector() {
5
+ --white: #293642;
6
+ --white-dark: #060a12;
7
+ --black: #ffffff;
8
+
9
+ --focus-bg: #284e68;
10
+
11
+ --white-60: #{rgba(var(--white), 0.6)};
12
+
13
+ --gray-50: #2e3d49;
14
+ --gray-100: #344351;
15
+ --gray-200: #3e5160;
16
+ --gray-300: #495e6e;
17
+ --gray-400: #556c7c;
18
+ --gray-500: #607a8a;
19
+ --gray-600: #6d8797;
20
+ --gray-700: #7d94a1;
21
+ --gray-800: #e9eef4;
22
+ --gray-900: #9cacb4;
23
+
24
+ --blue-50: #455e85;
25
+ --blue-100: #043c95;
26
+ --blue-600: #a8c4f0;
27
+ --blue-700: #cbe9ff;
28
+ --blue-700-5: #{rgba(#cbe9ff, 0.1)};
29
+ --blue-700-10: #{rgba(#cbe9ff, 0.2)};
30
+ --blue-900: #d5e2f6;
31
+
32
+ --cyan-50: #002766;
33
+ --cyan-100: #003c66;
34
+ --cyan-200: #00508a;
35
+ --cyan-300: #0065ad;
36
+ --cyan-400: #007ad1;
37
+ --cyan-600: #1fa2ff;
38
+ --cyan-700: #47b3ff;
39
+ --cyan-800: #70c4ff;
40
+ --cyan-900: #9dd7ff;
41
+
42
+ --red-00: #4b3138;
43
+ --red-50: #724956;
44
+ --red-100: #bc0000;
45
+ --red-700: #ff9898;
46
+ --red-800: #ffb4b4;
47
+ --red-900: #ffe0e3;
48
+
49
+ --yellow-50: #5f5439;
50
+
51
+ --green-00: #355e54;
52
+ }
53
+ }
@@ -1,4 +1,4 @@
1
- :root {
1
+ body {
2
2
  --white: #ffffff;
3
3
  --black: #00060f;
4
4
 
@@ -0,0 +1,43 @@
1
+ @use '../abstract/utils';
2
+
3
+ body {
4
+ @include utils.dark-theme-selector() {
5
+ --odx-c-headline: var(--blue-900);
6
+
7
+ --odx-c-text: var(--blue-900);
8
+ --odx-c-text-inverse: var(--black);
9
+
10
+ --odx-c-link-disabled: var(--gray-400);
11
+
12
+ --odx-c-error: var(--red-00);
13
+ --odx-c-error-outline: var(--red-50);
14
+ --odx-c-error-outline-hover: var(--red-100);
15
+ --odx-c-error-text: var(--red-700);
16
+
17
+ --odx-c-focus: var(--focus-bg);
18
+ --odx-c-focus-outline: var(--cyan-200);
19
+ --odx-c-focus-outline-dark: var(--odx-c-focus-outline);
20
+
21
+ --odx-c-highlight-text: var(--black);
22
+
23
+ --odx-c-primary: var(--blue-900);
24
+ --odx-c-primary-hover: var(--blue-600);
25
+ --odx-c-primary-active: var(--blue-200);
26
+ --odx-c-primary-disabled: var(--odx-c-primary);
27
+ --odx-c-primary-text: var(--white);
28
+ --odx-c-primary-text-disabled: var(--blue-300);
29
+
30
+ --odx-c-secondary-text-disabled: var(--gray-100);
31
+
32
+ --odx-c-highlight-hover: var(--cyan-400);
33
+ --odx-c-highlight-active: var(--cyan-300);
34
+ --odx-c-highlight-text-disabled: var(--cyan-200);
35
+
36
+ --odx-c-danger-active: var(--red-100);
37
+ --odx-c-danger-text-disabled: var(--red-50);
38
+
39
+ --odx-c-success-text: var(--cyan-50);
40
+
41
+ --odx-c-confirmation-text: var(--cyan-50);
42
+ }
43
+ }
@@ -1,4 +1,4 @@
1
- :root {
1
+ body {
2
2
  --odx-c-headline: var(--blue-700);
3
3
 
4
4
  --odx-c-text: var(--blue-700);
@@ -22,7 +22,8 @@
22
22
  --odx-c-error-warning-text: var(--orange-500);
23
23
 
24
24
  --odx-c-focus: var(--cyan-500-15);
25
- --odx-c-focus-outline: var(--cyan-300);
25
+ --odx-c-focus-outline: var(--cyan-200);
26
+ --odx-c-focus-outline-dark: var(--cyan-400);
26
27
 
27
28
  --odx-c-selected: var(--cyan-500-15);
28
29
  --odx-c-selected-hover: var(--cyan-500-20);
@@ -1,4 +1,4 @@
1
- :root {
1
+ body {
2
2
  --odx-control-color: var(--odx-c-text);
3
3
  --odx-control-background-color: var(--gray-200);
4
4
  --odx-control-outline-color: var(--gray-300);
@@ -1,5 +1,7 @@
1
1
  @forward 'color-palettes';
2
+ @forward 'color-palettes-dark';
2
3
  @forward 'colors';
4
+ @forward 'colors-dark';
3
5
  @forward 'controls';
4
6
  @forward 'typography';
5
7
  @forward 'vertical-rythm';
@@ -1,4 +1,4 @@
1
- :root {
1
+ body {
2
2
  --odx-v-border-radius: calc(var(--odx-typography-base-size) * 0.375);
3
3
  --odx-v-border-radius-controls: calc(var(--odx-typography-base-size) * 0.19);
4
4
 
@@ -11,6 +11,7 @@
11
11
  --odx-v-layer-2: 10;
12
12
  --odx-v-layer-3: 20;
13
13
  --odx-v-layer-4: 9000;
14
+ --odx-v-layer-5: 9500;
14
15
 
15
16
  --odx-v-transition-duration: 250ms;
16
17
  --odx-v-transition-easing-fn: ease;
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