@dynamic-framework/ui-react 2.2.0 → 2.3.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.
Files changed (56) hide show
  1. package/README.md +8 -0
  2. package/dist/css/dynamic-ui.css +2265 -214
  3. package/dist/css/dynamic-ui.min.css +2 -2
  4. package/dist/index.esm.js +197 -132
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/index.js +195 -130
  7. package/dist/index.js.map +1 -1
  8. package/dist/types/components/DBadge/DBadge.d.ts +3 -2
  9. package/dist/types/components/DButton/DButton.d.ts +3 -2
  10. package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -7
  11. package/dist/types/components/DCollapse/DCollapse.d.ts +1 -2
  12. package/dist/types/components/DDatePicker/DDatePicker.d.ts +2 -1
  13. package/dist/types/components/DDatePicker/components/DDatePickerTime.d.ts +4 -6
  14. package/dist/types/components/DInputPin/DInputPin.d.ts +2 -1
  15. package/dist/types/components/DPopover/DPopover.d.ts +2 -7
  16. package/dist/types/components/DSelect/DSelect.d.ts +2 -1
  17. package/dist/types/components/DSelect/components/DSelectOptionCheck.d.ts +1 -1
  18. package/dist/types/components/DTabs/DTabs.d.ts +3 -1
  19. package/package.json +11 -15
  20. package/src/style/_shame.scss +2 -2
  21. package/src/style/abstracts/_mixins.scss +4 -4
  22. package/src/style/abstracts/_utilities.scss +69 -0
  23. package/src/style/abstracts/variables/_+import.scss +2 -2
  24. package/src/style/abstracts/variables/_alerts.scss +1 -1
  25. package/src/style/abstracts/variables/_border.scss +9 -0
  26. package/src/style/abstracts/variables/_buttons.scss +1 -1
  27. package/src/style/abstracts/variables/_carousel.scss +13 -1
  28. package/src/style/abstracts/variables/_colors.scss +2 -2
  29. package/src/style/abstracts/variables/_navs.scss +23 -27
  30. package/src/style/base/_+import.scss +1 -0
  31. package/src/style/base/_badge.scss +1 -1
  32. package/src/style/base/_carousel.scss +44 -0
  33. package/src/style/base/_collapse.scss +21 -8
  34. package/src/style/base/_nav.scss +10 -59
  35. package/src/style/base/_type.scss +4 -0
  36. package/src/style/components/_+import.scss +0 -1
  37. package/src/style/components/_d-avatar.scss +2 -2
  38. package/src/style/components/_d-carousel.scss +26 -4
  39. package/src/style/components/_d-chip.scss +13 -3
  40. package/src/style/components/_d-credit-card.scss +22 -12
  41. package/src/style/components/_d-icon.scss +17 -0
  42. package/src/style/components/_d-select.scss +59 -25
  43. package/src/style/components/_d-stepper-desktop.scss +2 -2
  44. package/src/style/components/_d-tabs.scss +7 -18
  45. package/src/style/components/_d-timeline.scss +6 -5
  46. package/src/style/components/_d-voucher.scss +1 -1
  47. package/src/style/helpers/_+import.scss +1 -0
  48. package/src/style/helpers/_animations.scss +13 -0
  49. package/src/style/root/_root.scss +8 -4
  50. package/dist/css/dynamic-ui-non-root.css +0 -50044
  51. package/dist/css/dynamic-ui-non-root.min.css +0 -6
  52. package/dist/css/dynamic-ui-root.css +0 -1116
  53. package/dist/css/dynamic-ui-root.min.css +0 -6
  54. package/src/style/components/_d-collapse-icon-text.scss +0 -16
  55. package/src/style/dynamic-ui-non-root.scss +0 -17
  56. package/src/style/dynamic-ui-root.scss +0 -5
@@ -1,69 +1,20 @@
1
- .nav-pills,
2
- .nav-tabs,
3
- .nav-underline {
4
- --#{$prefix}nav-tabs-border-color: #{$nav-tabs-border-color};
5
- --#{$prefix}nav-tabs-nav-gap: #{$nav-nav-gap};
6
- --#{$prefix}nav-link-padding-x: #{$nav-link-padding-x};
7
- --#{$prefix}nav-link-padding-y: #{$nav-link-padding-y};
8
- --#{$prefix}nav-tabs-link-border-active-font-weight: #{$nav-link-border-active-font-weight};
9
- --#{$prefix}nav-link-hover-bg: #{$nav-link-hover-bg};
10
- --#{$prefix}nav-link-hover-color: #{$nav-link-hover-color};
11
-
12
- .nav-link {
13
- &:hover:not(.active, .disabled, :disabled) {
14
- background-color: var(--#{$prefix}nav-link-hover-bg);
15
- }
16
- }
17
- }
18
-
19
- .nav-pills,
20
- .nav-underline {
21
- gap: var(--#{$prefix}nav-tabs-nav-gap);
22
-
23
- &.flex-column {
24
- flex: 1 0 auto;
25
-
26
- .nav-link {
27
- width: 100%;
28
- }
1
+ .nav-tabs {
2
+ .nav-link.active,
3
+ .nav-item.show .nav-link {
4
+ border-bottom-color: transparent;
29
5
  }
30
6
  }
31
7
 
32
8
  .nav-underline {
33
- --#{$prefix}nav-underline-border-width: #{$nav-underline-border-width};
34
- --#{$prefix}nav-underline-border-color: #{$nav-underline-border-color};
35
-
36
- &.flex-column {
37
- .nav-link {
38
- border-right: var(--#{$prefix}nav-underline-border-width) solid var(--#{$prefix}nav-underline-border-color);
39
- border-bottom-width: 0;
40
- }
41
-
42
- .nav-link.active {
43
- background-color: var(--#{$prefix}nav-link-hover-bg);
44
- border-right: var(--#{$prefix}nav-underline-border-width) solid currentcolor;
45
- }
46
- }
9
+ --#{$prefix}nav-underline-font-weight: #{$nav-underline-font-weight};
47
10
 
48
- .nav-link {
49
- padding: var(--#{$prefix}nav-link-padding-y) var(--#{$prefix}nav-link-padding-x);
50
- border-bottom: var(--#{$prefix}nav-underline-border-width) solid var(--#{$prefix}nav-underline-border-color);
11
+ .nav-link.active,
12
+ .show > .nav-link {
13
+ font-weight: var(--#{$prefix}nav-underline-font-weight);
51
14
  }
52
15
  }
53
16
 
54
- .nav-tabs {
55
- .nav-link {
56
- &.active {
57
- border-bottom-color: transparent;
58
- }
59
-
60
- &:not(.active):is(:hover, :focus) {
61
- border-color: transparent;
62
- }
63
- }
64
- }
65
17
 
66
- .nav-link:focus-visible {
67
- --#{$prefix}focus-ring-opacity: .25;
68
- --#{$prefix}focus-ring-color: rgba(var(--#{$prefix}secondary-rgb), var(--#{$prefix}focus-ring-opacity));
18
+ .tab-content {
19
+ margin-bottom: var(--#{$prefix}ref-spacer-4);
69
20
  }
@@ -104,3 +104,7 @@
104
104
  content: "\2014\00A0"; // em dash, nbsp
105
105
  }
106
106
  }
107
+
108
+ [class*="link-underline"] {
109
+ text-decoration: underline;
110
+ }
@@ -8,7 +8,6 @@
8
8
  @import "d-timeline";
9
9
  @import "d-box";
10
10
  @import "d-offcanvas";
11
- @import "d-collapse-icon-text";
12
11
  @import "d-datepicker";
13
12
  @import "d-timepicker";
14
13
  @import "d-voucher";
@@ -1,8 +1,8 @@
1
1
  .d-avatar {
2
2
  --#{$prefix}avatar-border: 1px solid var(--#{$prefix}avatar-bg);
3
3
  --#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-12);
4
- --#{$prefix}avatar-bg: var(--#{$prefix}gray-100);
5
- --#{$prefix}avatar-color: var(--#{$prefix}gray-500);
4
+ --#{$prefix}avatar-bg: var(--#{$prefix}gray-50);
5
+ --#{$prefix}avatar-color: var(--#{$prefix}gray-600);
6
6
  --#{$prefix}avatar-font-weight: var(--#{$prefix}fw-bold);
7
7
  --#{$prefix}avatar-border-radius: var(--#{$prefix}border-radius-pill);
8
8
 
@@ -5,8 +5,8 @@
5
5
  --#{$prefix}carousel-arrow-space: calc(var(--#{$prefix}ref-spacer-4) * -1);
6
6
  // Pagination
7
7
  --#{$prefix}carousel-pagination-bottom: auto;
8
- --#{$prefix}carousel-pagination-page-bg: var(--#{$prefix}secondary-100);
9
- --#{$prefix}carousel-pagination-active-page-bg: var(--#{$prefix}secondary);
8
+ --#{$prefix}carousel-pagination-page-bg: var(--#{$prefix}primary-100);
9
+ --#{$prefix}carousel-pagination-active-page-bg: var(--#{$prefix}primary);
10
10
  // :focus
11
11
  --#{$prefix}carousel-focus-outline-color: var(--#{$prefix}focus-ring-color);
12
12
 
@@ -22,14 +22,36 @@
22
22
  // stylelint-disable
23
23
  .splide__pagination__page {
24
24
  margin: 0;
25
+ border: $carousel-indicator-border;
26
+ width: $carousel-indicator-width;
27
+ height: $carousel-indicator-width;
28
+ border-radius: $carousel-indicator-radius;
29
+ opacity: 1;
30
+ transition: 0.3s;
31
+ }
32
+
33
+ .splide__pagination__page.is-active {
34
+ background: $carousel-indicator-active-width;
35
+ width: $carousel-indicator-active-width;
36
+ border-color: $carousel-indicator-active-bg;
37
+ transform: none;
38
+ }
39
+
40
+ .splide__arrow {
41
+ width: $carousel-control-height;
42
+ height: $carousel-control-height;
43
+ background: var(--#{$prefix}primary);
44
+ padding: var(--#{$prefix}ref-spacer-1);
45
+ svg {
46
+ filter: invert(1);
47
+ }
25
48
  }
26
49
 
27
50
  .d-carousel-pagination {
28
51
  bottom: var(--#{$prefix}carousel-pagination-bottom);
29
52
  position: relative;
30
- top: -0.5rem;
53
+ margin-top: var(--#{$prefix}--#{$prefix}ref-spacer-4);
31
54
  width: fit-content;
32
- background: var(--#{$prefix}gray-25);
33
55
  padding: var(--#{$prefix}ref-spacer-2) var(--#{$prefix}ref-spacer-4);
34
56
  border-radius: var(--#{$prefix}border-radius-lg);
35
57
  margin: auto;
@@ -37,7 +37,7 @@
37
37
  border: 0;
38
38
  }
39
39
 
40
- @each $theme, $value in map-remove($theme-colors, "light", "dark") {
40
+ @each $theme, $value in map-remove($theme-colors, "light", "dark", "warning") {
41
41
  $color: color-contrast($value);
42
42
  &.d-chip-#{$theme} {
43
43
  --#{$prefix}chip-color: var(--#{$prefix}#{$theme}-700);
@@ -45,8 +45,18 @@
45
45
  }
46
46
  }
47
47
 
48
+ &.d-chip-warning {
49
+ --#{$prefix}chip-color: var(--#{$prefix}warning-800);
50
+ --#{$prefix}chip-bg: var(--#{$prefix}warning-100);
51
+ }
52
+
48
53
  &.d-chip-light {
49
- --#{$prefix}chip-color: var(--#{$prefix}gray);
50
- --#{$prefix}chip-bg: var(--#{$prefix}gray-100);
54
+ --#{$prefix}chip-color: var(--#{$prefix}gray-800);
55
+ --#{$prefix}chip-bg: var(--#{$prefix}gray-25);
56
+ }
57
+
58
+ &.d-chip-dark {
59
+ --#{$prefix}chip-color: var(--#{$prefix}white);
60
+ --#{$prefix}chip-bg: var(--#{$prefix}black);
51
61
  }
52
62
  }
@@ -14,25 +14,26 @@
14
14
  --#{$prefix}d-credit-card-padding: var(--#{$prefix}ref-spacer-4);
15
15
  --#{$prefix}d-credit-card-number-size: inherit;
16
16
  --#{$prefix}d-credit-card-chip-size: 30px;
17
- flex-direction: column;
17
+ --#{$prefix}d-credit-card-color: var(--#{$prefix}white);
18
+ --#{$prefix}d-credit-card-logo-size: 22%;
18
19
 
20
+ position: relative;
21
+ display: flex;
22
+ flex-direction: column;
19
23
  aspect-ratio: var(--#{$prefix}d-credit-card-aspect-ratio);
20
24
  padding: var(--#{$prefix}d-credit-card-padding);
25
+ overflow: hidden;
26
+ color: var(--#{$prefix}d-credit-card-color);
21
27
  background: var(--#{$prefix}d-credit-card-bg);
22
- --#{$prefix}d-credit-card-logo-size: 22%;
28
+ border-radius: var(--#{$prefix}border-radius-lg);
23
29
 
24
- > * {
25
- display: flex;
26
- align-items: center;
30
+ .d-credit-card-details {
31
+ display: block;
32
+ margin-top: auto;
27
33
  }
28
34
 
29
- .d-credit-card-details {
30
- .name {
31
- font-size: var(--#{$prefix}ref-fs-6);
32
- }
33
- .date {
34
- font-size: var(--#{$prefix}ref-fs-6);
35
- }
35
+ .d-credit-card-name {
36
+ font-size: var(--#{$prefix}ref-fs-6);
36
37
  }
37
38
 
38
39
  .d-credit-card-logo {
@@ -40,7 +41,9 @@
40
41
  }
41
42
 
42
43
  .d-credit-card-chip {
44
+ padding: var(--#{$prefix}ref-spacer-1);
43
45
  background: var(--#{$prefix}d-credit-card-chip-bg);
46
+ border-radius: var(--#{$prefix}border-radius-sm);
44
47
  }
45
48
 
46
49
  .d-credit-card-chip-image {
@@ -48,6 +51,7 @@
48
51
  }
49
52
 
50
53
  .d-credit-card-number {
54
+ margin-bottom: var(--#{$prefix}ref-spacer-4);
51
55
  font-family: var(--#{$prefix}d-credit-card-font-family-number);
52
56
  font-size: var(--#{$prefix}d-credit-card-number-size);
53
57
  }
@@ -59,9 +63,15 @@
59
63
  }
60
64
 
61
65
  .d-credit-card-header {
66
+ display: flex;
62
67
  align-items: center;
63
68
  justify-content: space-between;
64
69
  min-height: 45px;
65
70
  }
66
71
 
72
+ .d-credit-card-holder-text {
73
+ display: block;
74
+ opacity: .5;
75
+ }
76
+
67
77
  }
@@ -24,6 +24,23 @@
24
24
  }
25
25
  }
26
26
 
27
+ // Circle background defaults and opacity variable
28
+ .d-icon-has-circle {
29
+ --#{$prefix}icon-component-bg-opacity: .1;
30
+ --#{$prefix}icon-component-bg-color: rgba(var(--#{$prefix}body-color-rgb), var(--#{$prefix}icon-component-bg-opacity));
31
+ }
32
+
33
+ // Generate color classes for icon color and circle background
34
+ @each $theme, $value in $theme-colors {
35
+ .d-icon-color-#{$theme} {
36
+ --#{$prefix}icon-component-color: var(--#{$prefix}#{$theme});
37
+ }
38
+
39
+ .d-icon-color-#{$theme}.d-icon-has-circle {
40
+ --#{$prefix}icon-component-bg-color: rgba(var(--#{$prefix}#{$theme}-rgb), var(--#{$prefix}icon-component-bg-opacity));
41
+ }
42
+ }
43
+
27
44
  .d-icon-loading {
28
45
  animation: loading-icon var(--#{$prefix}icon-loading-duration) infinite linear;
29
46
  }
@@ -6,9 +6,9 @@
6
6
  // select
7
7
  --#{$prefix}select-menu-shadow: #{$box-shadow-sm};
8
8
  --#{$prefix}select-menu-z-index: #{$zindex-dropdown};
9
+ --#{$prefix}select-option-selected-bg: var(--#{$prefix}gray-50);
9
10
  --#{$prefix}select-option-focus-bg: var(--#{$prefix}gray-100);
10
11
  --#{$prefix}select-option-selected-color: var(--#{$prefix}secondary);
11
- --#{$prefix}select-option-selected-bg: unset;
12
12
  --#{$prefix}select-option-selected-font-weight: var(--#{$prefix}fw-bold);
13
13
  --#{$prefix}select-option-is-checkbox-font-size: var(--#{$prefix}body-font-size);
14
14
  --#{$prefix}select-option-is-checkbox-font-weight: var(--#{$prefix}fw-normal);
@@ -29,6 +29,18 @@
29
29
  --#{$prefix}select-indicator-width: var(--#{$prefix}ref-spacer-5);
30
30
  --#{$prefix}select-indicator-height: var(--#{$prefix}ref-spacer-5);
31
31
 
32
+ // checkbox tokens
33
+ --#{$prefix}select-check-width: 1rem; // 16px
34
+ --#{$prefix}select-check-height: 1rem; // 16px
35
+ --#{$prefix}select-check-margin-end: .5rem; // 8px
36
+ --#{$prefix}select-check-border-width: .0625rem; // 1px
37
+ --#{$prefix}select-check-border-radius: .125rem; // 2px
38
+ --#{$prefix}select-check-mark-top: .0625rem; // 1px
39
+ --#{$prefix}select-check-mark-left: .25rem; // 4px
40
+ --#{$prefix}select-check-mark-width: .375rem; // 6px
41
+ --#{$prefix}select-check-mark-height: .625rem; // 10px
42
+ --#{$prefix}select-check-mark-border-width: .125rem; // 2px
43
+
32
44
  // focus
33
45
  &:focus-within {
34
46
  .input-group {
@@ -148,6 +160,7 @@
148
160
  padding: $input-padding-y $input-padding-x;
149
161
  }
150
162
 
163
+ .d-select__option--is-selected.d-select__option--is-focused,
151
164
  .d-select__option--is-focused {
152
165
  background: var(--#{$prefix}select-option-focus-bg);
153
166
  }
@@ -156,30 +169,6 @@
156
169
  font-weight: var(--#{$prefix}select-option-selected-font-weight);
157
170
  color: var(--#{$prefix}select-option-selected-color);
158
171
  background: var(--#{$prefix}select-option-selected-bg);
159
-
160
- &:hover {
161
- --#{$prefix}select-option-selected-bg: var(--#{$prefix}gray-100);
162
- }
163
- }
164
-
165
- // select option with checkbox
166
- .d-select__option--is-checkbox {
167
- padding: 0;
168
-
169
- > label {
170
- width: 100%;
171
- padding: $input-padding-x;
172
- }
173
-
174
- .form-check-input {
175
- margin-right: $input-padding-x;
176
- }
177
- }
178
-
179
- .d-select__option--is-checkbox label {
180
- font-size: var(--#{$prefix}select-option-is-checkbox-font-size);
181
- font-weight: var(--#{$prefix}select-option-is-checkbox-font-weight);
182
- color: var(--#{$prefix}select-option-is-checkbox-color);
183
172
  }
184
173
 
185
174
  // select multi control
@@ -258,4 +247,49 @@
258
247
  &.disabled .d-icon {
259
248
  --#{$prefix}icon-color: var(--#{$prefix}input-disabled-color);
260
249
  }
250
+
251
+ .d-select__check {
252
+ position: relative;
253
+ display: inline-block;
254
+
255
+ flex-shrink: 0;
256
+ width: var(--#{$prefix}select-check-width);
257
+ height: var(--#{$prefix}select-check-height);
258
+ margin-right: var(--#{$prefix}select-check-margin-end);
259
+ background: $input-bg;
260
+
261
+ border: var(--#{$prefix}select-check-border-width) solid var(--#{$prefix}input-border-color);
262
+ border-radius: var(--#{$prefix}select-check-border-radius);
263
+ }
264
+
265
+ /* checkmark */
266
+ .d-select__check::after {
267
+ position: absolute;
268
+
269
+ top: var(--#{$prefix}select-check-mark-top);
270
+ left: var(--#{$prefix}select-check-mark-left);
271
+
272
+ width: var(--#{$prefix}select-check-mark-width);
273
+ height: var(--#{$prefix}select-check-mark-height);
274
+ content: "";
275
+
276
+ border-right: var(--#{$prefix}select-check-mark-border-width) solid var(--bs-white);
277
+ border-bottom: var(--#{$prefix}select-check-mark-border-width) solid var(--bs-white);
278
+
279
+ opacity: 0;
280
+
281
+ transform: rotate(45deg) scale(0);
282
+ transform-origin: center;
283
+ }
284
+
285
+ /* selected state */
286
+ .d-select__check--selected {
287
+ background: var(--#{$prefix}primary-500);
288
+ border-color: var(--#{$prefix}primary-500);
289
+ }
290
+
291
+ .d-select__check--selected::after {
292
+ opacity: 1;
293
+ transform: rotate(45deg) scale(1);
294
+ }
261
295
  }
@@ -1,6 +1,6 @@
1
1
  .d-stepper-desktop {
2
2
  /* Icon container */
3
- --#{$prefix}step-icon-container-color: var(--#{$prefix}gray-400);
3
+ --#{$prefix}step-icon-container-color: var(--#{$prefix}gray-500);
4
4
  --#{$prefix}step-icon-container-background-color: transparent;
5
5
  --#{$prefix}step-icon-container-size: var(--#{$prefix}ref-spacer-9);
6
6
  --#{$prefix}step-icon-container-font-size: var(--#{$prefix}ref-spacer-4);
@@ -113,7 +113,7 @@
113
113
 
114
114
  .d-step-description {
115
115
  font-size: var(--#{$prefix}step-description-font-size);
116
- color: var(--#{$prefix}gray-400);
116
+ color: var(--#{$prefix}gray-500);
117
117
  }
118
118
  }
119
119
  }
@@ -1,36 +1,25 @@
1
- .tab-content {
2
- margin-bottom: var(--#{$prefix}ref-spacer-4);
3
- }
4
-
5
- .nav-pills {
6
- --#{$prefix}nav-pills-link-active-bg: var(--#{$prefix}gray-50);
7
- --#{$prefix}nav-pills-link-active-color: var(--#{$prefix}primary-500);
8
- }
9
-
10
- .nav-tabs {
11
- --#{$prefix}nav-tabs-border-color: var(--#{$prefix}gray-100);
12
- --#{$prefix}nav-tabs-link-active-border-color: var(--#{$prefix}nav-tabs-border-color);
13
- }
14
-
15
1
  .nav-toggle-button-group {
2
+ --#{$prefix}toggle-button-group-border-color: var(--#{$prefix}gray-50);
16
3
  --#{$prefix}toggle-button-group-border-radius: 4rem;
17
4
  --#{$prefix}toggle-button-group-link-active-color: var(--#{$prefix}white);
18
5
  --#{$prefix}toggle-button-group-link-active-bg: var(--#{$prefix}primary);
19
- --#{$prefix}toggle-button-group-link-hover-bg: var(--#{$prefix}secondary-500);
6
+ --#{$prefix}toggle-button-group-link-font-weight: var(--#{$prefix}fw-normal);
20
7
  --#{$prefix}toggle-button-group-bg: var(--#{$prefix}gray-25);
21
8
  --#{$prefix}toggle-button-group-radius: 4rem;
22
9
  --#{$prefix}toggle-button-group-padding: .25rem;
10
+
23
11
  padding: var(--#{$prefix}toggle-button-group-padding);
24
12
  overflow: hidden;
25
13
  background: var(--#{$prefix}toggle-button-group-bg);
26
- border: 1px solid var(--#{$prefix}gray-50);
14
+ border: 1px solid var(--#{$prefix}toggle-button-group-border-color);
27
15
  border-radius: var(--#{$prefix}toggle-button-group-radius);
16
+
28
17
  .nav-link {
29
- flex: 1;
30
18
  border-radius: var(--#{$prefix}toggle-button-group-border-radius);
31
19
  }
20
+
32
21
  .nav-link.active {
33
- font-weight: var(--#{$prefix}fw-semibold);
22
+ font-weight: var(--#{$prefix}toggle-button-group-link-font-weight);
34
23
  color: var(--#{$prefix}toggle-button-group-link-active-color);
35
24
  background: var(--#{$prefix}toggle-button-group-link-active-bg);
36
25
  }
@@ -4,7 +4,8 @@
4
4
  --#{$prefix}timeline-icon-size: 1rem;
5
5
  --#{$prefix}timeline-icon-padding: .25rem;
6
6
  --#{$prefix}timeline-icon-color: var(--#{$prefix}gray-600);
7
- --#{$prefix}timeline-description-color: var(--#{$prefix}gray-400);
7
+ --#{$prefix}timeline-description-color: var(--#{$prefix}gray-500);
8
+ --#{$prefix}timeline-description-time-color: var(--#{$prefix}gray-500);
8
9
  --#{$prefix}timeline-icon-bg: var(--#{$prefix}white);
9
10
  position: relative;
10
11
 
@@ -64,8 +65,8 @@
64
65
  }
65
66
 
66
67
  .d-timeline-item-time {
67
- font-size: .875rem;
68
- color: #999;
68
+ font-size: var(--#{$prefix}fs-small);
69
+ color: var(--#{$prefix}timeline-description-time-color);
69
70
  }
70
71
 
71
72
  &.d-timeline-item-success {
@@ -82,8 +83,8 @@
82
83
  }
83
84
  &.d-timeline-item-warning {
84
85
  .d-timeline-item-icon {
85
- color: var(--#{$prefix}white);
86
- background-color: var(--#{$prefix}warning-500);
86
+ color: var(--#{$prefix}warning-800);
87
+ background-color: var(--#{$prefix}warning-300);
87
88
  }
88
89
  }
89
90
  &.d-timeline-item-primary {
@@ -1,7 +1,7 @@
1
1
  .d-voucher {
2
2
  --#{$prefix}voucher-header-gap: var(--#{$prefix}ref-spacer-4);
3
3
  --#{$prefix}voucher-amount-padding: var(--#{$prefix}ref-spacer-4);
4
- --#{$prefix}voucher-amount-background: var(--#{$prefix}secondary-50);
4
+ --#{$prefix}voucher-amount-background: var(--#{$prefix}gray-25);
5
5
  --#{$prefix}voucher-amount-rounded: var(--#{$prefix}ref-spacer-4);
6
6
  --#{$prefix}voucher-footer-gap: var(--#{$prefix}ref-spacer-4);
7
7
  --#{$prefix}voucher-margin: 0 0 var(--#{$prefix}ref-spacer-4) 0;
@@ -15,3 +15,4 @@
15
15
 
16
16
  @import "overlay";
17
17
  @import "text-truncate";
18
+ @import "animations";
@@ -0,0 +1,13 @@
1
+ // ============================================================
2
+ // Animations
3
+ // Utility classes for common CSS animations.
4
+ // ============================================================
5
+
6
+ @keyframes fadein {
7
+ 0% { opacity: 0; }
8
+ 100% { opacity: 1; }
9
+ }
10
+
11
+ .fade-in {
12
+ animation: fadein .3s ease-in-out;
13
+ }
@@ -165,10 +165,14 @@
165
165
  // scss-docs-start root-focus-variables
166
166
  --#{$prefix}focus-ring-width: #{$focus-ring-width};
167
167
  --#{$prefix}focus-ring-opacity: #{$focus-ring-opacity};
168
- --#{$prefix}focus-ring-border-color-rgb: #{$focus-ring-border-color};
169
- --#{$prefix}focus-ring-border-color: rgb(var(--#{$prefix}focus-ring-border-color-rgb));
170
- --#{$prefix}focus-ring-base-color-rgb: var(--#{$prefix}#{$focus-ring-color-mapping});
171
- --#{$prefix}focus-ring-base-color: rgb(var(--#{$prefix}focus-ring-base-color-rgb));
168
+ @if $focus-ring-border-color == transparent {
169
+ --#{$prefix}focus-ring-border-color: #{$focus-ring-border-color}; // custom
170
+ } @else {
171
+ --#{$prefix}focus-ring-border-color-rgb: #{to-rgb($focus-ring-border-color)}; // custom
172
+ --#{$prefix}focus-ring-border-color: rgb(var(--#{$prefix}focus-ring-border-color-rgb));
173
+ }
174
+ --#{$prefix}focus-ring-base-color-rgb: var(--#{$prefix}#{$focus-ring-color-mapping}); // custom
175
+ --#{$prefix}focus-ring-base-color: rgb(var(--#{$prefix}focus-ring-base-color-rgb)); // custom
172
176
  --#{$prefix}focus-ring-color: rgba(var(--#{$prefix}focus-ring-base-color-rgb), var(--#{$prefix}focus-ring-opacity));
173
177
  // scss-docs-end root-focus-variables
174
178