@dynamic-framework/ui-react 2.0.0-dev.1 → 2.0.0-dev.10

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 (144) hide show
  1. package/dist/css/dynamic-ui-non-root.css +7054 -3736
  2. package/dist/css/dynamic-ui-non-root.min.css +3 -3
  3. package/dist/css/dynamic-ui-root.css +339 -161
  4. package/dist/css/dynamic-ui-root.min.css +3 -3
  5. package/dist/css/dynamic-ui.css +7380 -3884
  6. package/dist/css/dynamic-ui.min.css +3 -3
  7. package/dist/index.esm.js +641 -406
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +685 -433
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/components/DAlert/DAlert.d.ts +3 -3
  12. package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
  13. package/dist/types/components/DBadge/DBadge.d.ts +4 -3
  14. package/dist/types/components/DBox/DBox.d.ts +5 -0
  15. package/dist/types/components/DBox/index.d.ts +2 -0
  16. package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -1
  17. package/dist/types/components/DButton/DButton.d.ts +8 -17
  18. package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
  19. package/dist/types/components/DChip/DChip.d.ts +3 -3
  20. package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
  21. package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
  22. package/dist/types/components/DCreditCard/index.d.ts +2 -0
  23. package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
  24. package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
  25. package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
  26. package/dist/types/components/DDropdown/index.d.ts +2 -0
  27. package/dist/types/components/DIconBase/DIconBase.d.ts +13 -9
  28. package/dist/types/components/DInput/DInput.d.ts +3 -2
  29. package/dist/types/components/DInputCheck/DInputCheck.d.ts +2 -1
  30. package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
  31. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +4 -3
  32. package/dist/types/components/DInputMask/DInputMask.d.ts +7 -17
  33. package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
  34. package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
  35. package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
  36. package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
  37. package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +2 -1
  38. package/dist/types/components/DLayout/DLayout.d.ts +22 -0
  39. package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
  40. package/dist/types/components/DLayout/index.d.ts +3 -0
  41. package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
  42. package/dist/types/components/DModal/DModal.d.ts +3 -1
  43. package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +3 -1
  44. package/dist/types/components/DOtp/DOtp.d.ts +16 -0
  45. package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
  46. package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
  47. package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
  48. package/dist/types/components/DOtp/index.d.ts +2 -0
  49. package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
  50. package/dist/types/components/DPasswordStrengthMeter/DPasswordStrengthMeter.d.ts +23 -0
  51. package/dist/types/components/DPasswordStrengthMeter/PasswordCheckItem.d.ts +7 -0
  52. package/dist/types/components/DPasswordStrengthMeter/PasswordCheckList.d.ts +14 -0
  53. package/dist/types/components/DPasswordStrengthMeter/PasswordStrength.d.ts +6 -0
  54. package/dist/types/components/DPasswordStrengthMeter/index.d.ts +3 -0
  55. package/dist/types/components/DProgress/DProgress.d.ts +2 -1
  56. package/dist/types/components/DSelect/DSelect.d.ts +3 -3
  57. package/dist/types/components/DTabs/DTabs.d.ts +2 -2
  58. package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
  59. package/dist/types/components/DTimeline/index.d.ts +2 -0
  60. package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
  61. package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
  62. package/dist/types/components/DVoucher/DVoucher.d.ts +14 -0
  63. package/dist/types/components/DVoucher/hooks/useScreenshot.d.ts +5 -0
  64. package/dist/types/components/DVoucher/hooks/useScreenshotDownload.d.ts +5 -0
  65. package/dist/types/components/DVoucher/hooks/useScreenshotWebShare.d.ts +5 -0
  66. package/dist/types/components/DVoucher/index.d.ts +2 -0
  67. package/dist/types/components/config.d.ts +0 -2
  68. package/dist/types/components/index.d.ts +8 -9
  69. package/dist/types/components/interface.d.ts +3 -8
  70. package/dist/types/hooks/useResponsiveProp.d.ts +35 -0
  71. package/jest/setup.js +0 -2
  72. package/package.json +43 -40
  73. package/src/style/_shame.scss +42 -1
  74. package/src/style/abstracts/_mixins.scss +35 -23
  75. package/src/style/abstracts/_utilities.scss +70 -1
  76. package/src/style/abstracts/variables/_+import.scss +3 -2
  77. package/src/style/abstracts/variables/_alerts.scss +2 -0
  78. package/src/style/abstracts/variables/_body.scss +10 -3
  79. package/src/style/abstracts/variables/_border.scss +5 -5
  80. package/src/style/abstracts/variables/_buttons.scss +19 -11
  81. package/src/style/abstracts/variables/_cards.scss +6 -4
  82. package/src/style/abstracts/variables/_chips.scss +2 -2
  83. package/src/style/abstracts/variables/_colors.scss +147 -70
  84. package/src/style/abstracts/variables/_datepicker.scss +10 -9
  85. package/src/style/abstracts/variables/_dropdowns.scss +6 -4
  86. package/src/style/abstracts/variables/_forms.scss +4 -4
  87. package/src/style/abstracts/variables/_list-group.scss +2 -2
  88. package/src/style/abstracts/variables/_modals.scss +4 -3
  89. package/src/style/abstracts/variables/_offcanvas.scss +1 -0
  90. package/src/style/abstracts/variables/_pagination.scss +4 -4
  91. package/src/style/abstracts/variables/_shadow.scss +1 -0
  92. package/src/style/abstracts/variables/_tables.scss +8 -3
  93. package/src/style/abstracts/variables/_tooltip.scss +1 -1
  94. package/src/style/abstracts/variables/_typography.scss +7 -7
  95. package/src/style/base/_+import.scss +1 -0
  96. package/src/style/base/_alert.scss +1 -27
  97. package/src/style/base/_badge.scss +50 -12
  98. package/src/style/base/_buttons.scss +33 -30
  99. package/src/style/base/_dropdown.scss +18 -0
  100. package/src/style/base/_input-group.scss +5 -0
  101. package/src/style/base/_label.scss +0 -4
  102. package/src/style/base/_list-group.scss +6 -0
  103. package/src/style/base/_pagination.scss +2 -0
  104. package/src/style/base/_tables.scss +4 -0
  105. package/src/style/base/_tooltip.scss +1 -10
  106. package/src/style/components/_+import.scss +5 -4
  107. package/src/style/components/_d-avatar.scss +2 -20
  108. package/src/style/components/_d-box-file.scss +1 -1
  109. package/src/style/components/_d-box.scss +13 -0
  110. package/src/style/components/_d-carousel.scss +19 -1
  111. package/src/style/components/_d-credit-card.scss +67 -0
  112. package/src/style/components/_d-datepicker.scss +83 -26
  113. package/src/style/components/_d-icon.scss +10 -3
  114. package/src/style/components/_d-modal.scss +3 -0
  115. package/src/style/components/_d-stepper-desktop.scss +61 -65
  116. package/src/style/components/_d-stepper-mobile.scss +2 -2
  117. package/src/style/components/_d-tabs.scss +37 -0
  118. package/src/style/components/_d-timeline.scss +108 -0
  119. package/src/style/components/_d-voucher.scss +29 -0
  120. package/src/style/helpers/_color-bg.scss +13 -3
  121. package/src/style/root/_root.scss +109 -86
  122. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
  123. package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
  124. package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
  125. package/dist/types/components/DInputSearch/index.d.ts +0 -2
  126. package/dist/types/components/DList/DList.d.ts +0 -17
  127. package/dist/types/components/DList/components/DListItem.d.ts +0 -13
  128. package/dist/types/components/DList/index.d.ts +0 -3
  129. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
  130. package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
  131. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
  132. package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
  133. package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
  134. package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
  135. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
  136. package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
  137. package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
  138. package/dist/types/components/DSkeleton/index.d.ts +0 -2
  139. package/dist/types/components/DTableHead/DTableHead.d.ts +0 -9
  140. package/dist/types/components/DTableHead/index.d.ts +0 -2
  141. package/src/style/components/_d-quick-action-button.scss +0 -121
  142. package/src/style/components/_d-quick-action-check.scss +0 -74
  143. package/src/style/components/_d-quick-action-select.scss +0 -58
  144. package/src/style/components/_d-quick-action-switch.scss +0 -64
@@ -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}secondary-100);
5
- --#{$prefix}avatar-color: var(--#{$prefix}secondary-500);
4
+ --#{$prefix}avatar-bg: var(--#{$prefix}gray-100);
5
+ --#{$prefix}avatar-color: var(--#{$prefix}gray-500);
6
6
  --#{$prefix}avatar-font-weight: var(--#{$prefix}fw-bold);
7
7
  --#{$prefix}avatar-border-radius: var(--#{$prefix}border-radius-pill);
8
8
 
@@ -33,24 +33,6 @@
33
33
  background-color: var(--#{$prefix}avatar-bg);
34
34
  border-radius: var(--#{$prefix}avatar-border-radius);
35
35
  }
36
-
37
- @each $theme, $value in map-remove($theme-colors, "light", "dark") {
38
- $color: color-contrast($value);
39
- &.d-avatar-#{$theme} {
40
- --#{$prefix}avatar-color: var(--#{$prefix}#{$theme}-500);
41
- --#{$prefix}avatar-bg: var(--#{$prefix}#{$theme}-100);
42
- }
43
-
44
- &.d-avatar-dark-#{$theme} {
45
- --#{$prefix}avatar-color: var(--#{$prefix}white);
46
- --#{$prefix}avatar-bg: var(--#{$prefix}#{$theme}-500);
47
- }
48
-
49
- &.d-avatar-light-#{$theme} {
50
- --#{$prefix}avatar-color: var(--#{$prefix}#{$theme}-500);
51
- --#{$prefix}avatar-bg: var(--#{$prefix}white);
52
- }
53
- }
54
36
  }
55
37
 
56
38
  .d-avatar-xs {
@@ -50,7 +50,7 @@
50
50
  border: var(--#{$prefix}box-file-disabled-border);
51
51
  }
52
52
 
53
- .d-icon {
53
+ .d-box-file-dropzone > .d-icon {
54
54
  --#{$prefix}icon-size: var(--#{$prefix}box-file-icon-size);
55
55
  --#{$prefix}icon-color: var(--#{$prefix}box-file-icon-color);
56
56
  }
@@ -0,0 +1,13 @@
1
+ .d-box {
2
+ --#{$prefix}box-bg: #{var(--#{$prefix}white)};
3
+ --#{$prefix}box-border: 0;
4
+ --#{$prefix}box-border-radius: #{var(--#{$prefix}border-radius)};
5
+ --#{$prefix}box-padding: #{var(--#{$prefix}ref-spacer-4)};
6
+ --#{$prefix}box-shadow: #{var(--#{$prefix}box-shadow-lg)};
7
+ padding: var(--#{$prefix}box-padding);
8
+
9
+ background-color: var(--#{$prefix}box-bg);
10
+ border: var(--#{$prefix}box-border);
11
+ border-radius: var(--#{$prefix}box-border-radius);
12
+ box-shadow: var(--#{$prefix}box-shadow);
13
+ }
@@ -1,5 +1,5 @@
1
1
  @import "node_modules/@splidejs/splide/src/css/template/default/index";
2
-
2
+ // stylelint-disable
3
3
  .d-carousel {
4
4
  // Arrows
5
5
  --#{$prefix}carousel-arrow-space: calc(var(--#{$prefix}ref-spacer-4) * -1);
@@ -19,8 +19,26 @@
19
19
  }
20
20
  }
21
21
 
22
+ .splide__pagination__page {
23
+ margin: 0;
24
+ }
25
+
22
26
  .d-carousel-pagination {
23
27
  bottom: var(--#{$prefix}carousel-pagination-bottom);
28
+ position: relative;
29
+ bottom: auto;
30
+ top: -0.5rem;
31
+ width: fit-content;
32
+ background: var(--#{$prefix}gray-25);
33
+ padding: var(--#{$prefix}ref-spacer-2) var(--#{$prefix}ref-spacer-4);
34
+ border-radius: var(--#{$prefix}border-radius-lg);
35
+ margin: auto;
36
+ gap: var(--#{$prefix}ref-spacer-2);
37
+
38
+ li {
39
+ margin: 0;
40
+ display: flex;
41
+ }
24
42
 
25
43
  .d-carousel-pagination-page {
26
44
  background-color: var(--#{$prefix}carousel-pagination-page-bg);
@@ -0,0 +1,67 @@
1
+ .d-credit-card {
2
+ --#{$prefix}d-credit-card-bg:
3
+ radial-gradient(circle at 25% 10%, rgba(255, 255, 255, .12), transparent 18%), linear-gradient(
4
+ 135deg,
5
+ #ff9a8b 0%,
6
+ #ffb199 12%,
7
+ #caa6ff 40%,
8
+ #7aa7ff 65%,
9
+ #39e6d6 100%
10
+ );
11
+ --#{$prefix}d-credit-card-aspect-ratio: 16/9;
12
+ --#{$prefix}d-credit-card-chip-bg: rgba(255, 255, 255, .12);
13
+ --#{$prefix}d-credit-card-font-family-number: var(--#{$prefix}font-monospace);
14
+ --#{$prefix}d-credit-card-padding: var(--#{$prefix}ref-spacer-4);
15
+ --#{$prefix}d-credit-card-number-size: inherit;
16
+ --#{$prefix}d-credit-card-chip-size: 30px;
17
+ flex-direction: column;
18
+
19
+ aspect-ratio: var(--#{$prefix}d-credit-card-aspect-ratio);
20
+ padding: var(--#{$prefix}d-credit-card-padding);
21
+ background: var(--#{$prefix}d-credit-card-bg);
22
+ --#{$prefix}d-credit-card-logo-size: 22%;
23
+
24
+ > * {
25
+ display: flex;
26
+ align-items: center;
27
+ }
28
+
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
+ }
36
+ }
37
+
38
+ .d-credit-card-logo {
39
+ width: var(--#{$prefix}d-credit-card-logo-size);
40
+ }
41
+
42
+ .d-credit-card-chip {
43
+ background: var(--#{$prefix}d-credit-card-chip-bg);
44
+ }
45
+
46
+ .d-credit-card-chip-image {
47
+ width: var(--#{$prefix}d-credit-card-chip-size);
48
+ }
49
+
50
+ .d-credit-card-number {
51
+ font-family: var(--#{$prefix}d-credit-card-font-family-number);
52
+ font-size: var(--#{$prefix}d-credit-card-number-size);
53
+ }
54
+
55
+ &.is-vertical {
56
+ --#{$prefix}d-credit-card-aspect-ratio: 9/16;
57
+ --#{$prefix}d-credit-card-number-size: var(--#{$prefix}ref-spacer-3);
58
+ --#{$prefix}d-credit-card-logo-size: 30%;
59
+ }
60
+
61
+ .d-credit-card-header {
62
+ align-items: center;
63
+ justify-content: space-between;
64
+ min-height: 45px;
65
+ }
66
+
67
+ }
@@ -74,9 +74,12 @@
74
74
  --#{$prefix}datepicker-in-range-disabled-bg: #{$datepicker-in-range-disabled-bg};
75
75
 
76
76
  // Time
77
- --#{$prefix}datepicker-time-list-item-width: 85px;
77
+ --#{$prefix}datepicker-time-list-item-width: #{$datepicker-time-list-item-width};
78
78
  --#{$prefix}datepicker-time-list-item-padding: var(--#{$prefix}ref-spacer-2) var(--#{$prefix}ref-spacer-1);
79
79
 
80
+ // Top
81
+ --#{$prefix}datepicker-top-header-bg: var(--#{$prefix}primary-500);
82
+
80
83
 
81
84
  background-color: var(--#{$prefix}datepicker-bg);
82
85
  border: var(--#{$prefix}datepicker-border);
@@ -85,6 +88,10 @@
85
88
  display: inline-block;
86
89
  position: relative;
87
90
  line-height: initial;
91
+ overflow: hidden;
92
+ p {
93
+ font-weight: 500;
94
+ }
88
95
  }
89
96
 
90
97
  .react-datepicker--time-only {
@@ -102,27 +109,10 @@
102
109
  .react-datepicker-popper {
103
110
  z-index: 1;
104
111
  line-height: 0;
112
+ }
105
113
 
106
- .react-datepicker__triangle {
107
- --#{$prefix}datepicker-border-color: var(--#{$prefix}gray-100);
108
- stroke: var(--#{$prefix}datepicker-border-color);
109
- }
110
-
111
- &[data-placement^="bottom"] {
112
- .react-datepicker__triangle {
113
- --#{$prefix}datepicker-header-bg: var(--#{$prefix}secondary-soft);
114
- fill: var(--#{$prefix}datepicker-header-bg);
115
- color: var(--#{$prefix}datepicker-header-bg);
116
- }
117
- }
118
-
119
- &[data-placement^="top"] {
120
- .react-datepicker__triangle {
121
- --#{$prefix}datepicker-header-bg: var(--#{$prefix}white);
122
- fill: var(--#{$prefix}datepicker-header-bg);
123
- color: var(--#{$prefix}datepicker-header-bg);
124
- }
125
- }
114
+ .react-datepicker__triangle {
115
+ display: none;
126
116
  }
127
117
 
128
118
  .react-datepicker__header {
@@ -147,6 +137,32 @@
147
137
  border-top-right-radius: var(--#{$prefix}datepicker-border-radius);
148
138
  }
149
139
 
140
+ .custom-year-selector {
141
+ width: 8ch;
142
+ background: transparent;
143
+ color: var(--#{$prefix}body-color);
144
+ margin: auto;
145
+
146
+ .input-group {
147
+ border: 0;
148
+ }
149
+
150
+ .d-select__indicator-separator {
151
+ display: none;
152
+ }
153
+
154
+ .d-select__control {
155
+ background-color: var(--#{$prefix}datepicker-top-header-bg);
156
+ padding: var(--bs-ref-spacer-1) var(--bs-ref-spacer-1);
157
+ flex-wrap: nowrap;
158
+ color: var(--#{$prefix}white);
159
+ border: 0;
160
+ }
161
+ .d-select__menu-list {
162
+ max-height: 10lh;
163
+ }
164
+ }
165
+
150
166
  &-selector {
151
167
  display: flex;
152
168
  align-items: center;
@@ -179,15 +195,11 @@
179
195
  }
180
196
  }
181
197
  }
182
-
183
- &.custom-year-selector .d-select__single-value {
184
- width: 4ch;
185
- }
186
198
  }
187
199
 
188
200
  p {
189
201
  margin: 0;
190
- font-weight: bold;
202
+ font-weight: 500;
191
203
  }
192
204
 
193
205
  .header-button:first-child {
@@ -237,6 +249,7 @@
237
249
 
238
250
  .react-datepicker__year {
239
251
  margin: var(--#{$prefix}datepicker-body-margin);
252
+ padding: 1rem;
240
253
  text-align: center;
241
254
 
242
255
  &-wrapper {
@@ -252,6 +265,34 @@
252
265
  }
253
266
  }
254
267
 
268
+ .react-datepicker__month {
269
+ padding: 1rem;
270
+ }
271
+
272
+ .react-datepicker__header--custom,
273
+ .react-datepicker__header-month-selector {
274
+ padding-top: .5rem;
275
+ padding-bottom: .5rem;
276
+ }
277
+
278
+ .react-datepicker__month-text--selected {
279
+ font-weight: var(--#{$prefix}fw-semibold);
280
+ }
281
+
282
+ .datepicker-top-header {
283
+ background: var(--#{$prefix}primary-500);
284
+ color: var(--#{$prefix}white);
285
+ padding: 1rem;
286
+ margin-bottom: 1rem;
287
+ margin-top: -.5rem;
288
+ }
289
+
290
+ .react-datepicker__year,
291
+ .react-datepicker__quarterPicker {
292
+ --#{$prefix}datepicker-body-gap: 1rem;
293
+ --#{$prefix}datepicker-body-margin: 1rem;
294
+ }
295
+
255
296
  .react-datepicker__month,
256
297
  .react-datepicker__quarter {
257
298
  margin: var(--#{$prefix}datepicker-body-margin);
@@ -277,6 +318,22 @@
277
318
  width: 6ch;
278
319
  }
279
320
  }
321
+
322
+ .react-datepicker__month-text,
323
+ .react-datepicker__quarter-text,
324
+ .react-datepicker__year-text {
325
+ padding: .25rem;
326
+ border: 1px solid var(--#{$prefix}gray-50);
327
+ border-radius: var(--#{$prefix}datepicker-border-radius);
328
+ }
329
+
330
+
331
+ .react-datepicker__month-text--today,
332
+ .react-datepicker__year-text--today,
333
+ .react-datepicker__quarter-text--today {
334
+ font-weight: var(--#{$prefix}fw-semibold) !important;
335
+ }
336
+
280
337
  // START TODO: Revisar con Mati diseño del time
281
338
  .react-datepicker__time-container {
282
339
  float: right;
@@ -8,13 +8,20 @@
8
8
  display: inline-flex !important; /* stylelint-disable-line declaration-no-important */
9
9
  align-items: center;
10
10
  justify-content: center;
11
- width: var(--#{$prefix}icon-size);
12
- height: var(--#{$prefix}icon-size);
13
11
  padding: var(--#{$prefix}icon-padding);
14
12
  font-size: var(--#{$prefix}icon-size) !important; /* stylelint-disable-line declaration-no-important */
13
+ line-height: 1;
15
14
  color: var(--#{$prefix}icon-color);
16
15
  background-color: var(--#{$prefix}icon-bg-color);
17
- border-radius: var(--#{$prefix}icon-padding);
16
+ border-radius: calc(var(--bs-icon-padding) * 4);
17
+
18
+ // For Lucide icons (SVG)
19
+ svg {
20
+ display: block;
21
+ width: var(--#{$prefix}icon-size);
22
+ height: var(--#{$prefix}icon-size);
23
+ color: var(--#{$prefix}icon-color);
24
+ }
18
25
  }
19
26
 
20
27
  .d-icon-loading {
@@ -25,6 +25,9 @@
25
25
  .modal-footer {
26
26
  gap: var(--#{$prefix}modal-footer-gap);
27
27
  padding: var(--#{$prefix}modal-footer-padding);
28
+ > * {
29
+ margin: 0;
30
+ }
28
31
  }
29
32
 
30
33
  .d-modal-action-fill > * {
@@ -1,32 +1,30 @@
1
1
  .d-stepper-desktop {
2
2
  /* Icon container */
3
- --#{$prefix}step-icon-container-color: var(--#{$prefix}secondary);
4
- --#{$prefix}step-icon-container-background-color: var(--#{$prefix}white);
3
+ --#{$prefix}step-icon-container-color: var(--#{$prefix}gray-400);
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);
7
- --#{$prefix}step-icon-container-border-width: 1px;
8
- --#{$prefix}step-icon-container-border-color: var(--#{$prefix}secondary);
7
+ --#{$prefix}step-icon-container-border-width: 2px;
8
+ --#{$prefix}step-icon-container-border-color: var(--#{$prefix}gray-200);
9
9
  --#{$prefix}step-icon-container-border-radius: 100%;
10
10
  --#{$prefix}step-icon-container-z-index: 1;
11
11
 
12
12
  /* Base step */
13
- --#{$prefix}step-label-height: var(--#{$prefix}ref-spacer-12);
14
13
  --#{$prefix}step-icon-size: var(--#{$prefix}ref-spacer-6);
15
14
  --#{$prefix}step-gap: var(--#{$prefix}ref-spacer-2);
16
15
  --#{$prefix}step-z-index: 0;
17
16
 
18
17
  /* Checked step */
19
- --#{$prefix}step-check-text-color: var(--#{$prefix}white);
20
18
  --#{$prefix}step-check-background-color: var(--#{$prefix}success);
21
19
  --#{$prefix}step-check-border-color: var(--#{$prefix}success);
22
20
 
23
21
  /* Current step */
24
- --#{$prefix}step-current-text-color: var(--#{$prefix}white);
25
- --#{$prefix}step-current-background-color: var(--#{$prefix}secondary);
22
+ --#{$prefix}step-current-text-color: var(--#{$prefix}step-icon-container-color);
23
+ --#{$prefix}step-current-background-color: transparent;
26
24
 
27
25
  /* Step line */
28
- --#{$prefix}step-line-stroke: 1px;
29
- --#{$prefix}step-line-color: var(--#{$prefix}secondary);
26
+ --#{$prefix}step-line-stroke: 2px;
27
+ --#{$prefix}step-line-color: var(--#{$prefix}gray-200);
30
28
 
31
29
  /* Step label */
32
30
  --#{$prefix}step-label-padding: var(--#{$prefix}ref-spacer-4);
@@ -38,11 +36,30 @@
38
36
  display: flex;
39
37
 
40
38
  .d-step {
39
+ position: relative;
41
40
  display: flex;
42
41
  flex: 1 1 0;
43
42
  flex-direction: column;
44
43
  gap: var(--#{$prefix}step-gap);
45
44
 
45
+ &:last-child {
46
+ &::after {
47
+ content: none;
48
+ }
49
+ }
50
+
51
+ &::after {
52
+ position: absolute;
53
+ top: 16px;
54
+ left: calc(50% + var(--bs-step-icon-container-size));
55
+ z-index: 1;
56
+ width: calc(100% - var(--bs-step-icon-container-size) * 2);
57
+ height: var(--#{$prefix}step-icon-container-border-width);
58
+ content: "";
59
+ background: var(--#{$prefix}gray-100);
60
+ border-radius: 10px;
61
+ }
62
+
46
63
  .d-step-value {
47
64
  position: relative;
48
65
  display: flex;
@@ -66,37 +83,24 @@
66
83
  }
67
84
 
68
85
  .d-step-check {
69
- color: var(--#{$prefix}step-check-text-color);
70
- background-color: var(--#{$prefix}step-check-background-color);
71
- border-color: var(--#{$prefix}step-check-border-color);
72
- }
73
-
74
- .d-step-current {
75
- color: var(--#{$prefix}step-current-text-color);
76
- background-color: var(--#{$prefix}step-current-background-color);
77
- }
78
-
79
- .d-step-value::after {
80
- position: absolute;
81
- top: 50%;
82
- z-index: var(--#{$prefix}step-z-index);
83
- width: 100%;
84
- height: var(--#{$prefix}step-line-stroke);
85
- content: "";
86
- background-color: var(--#{$prefix}step-line-color);
86
+ .d-step-icon {
87
+ --#{$prefix}icon-color: var(--#{$prefix}white);
88
+ --#{$prefix}icon-component-size: .25rem;
89
+ --#{$prefix}icon-size: 1rem;
90
+ --#{$prefix}icon-component-padding: calc(var(--#{$prefix}icon-component-size, 24px) * .4);
91
+ --#{$prefix}icon-component-bg-color: var(--#{$prefix}step-check-background-color);
92
+ border-radius: 2rem;
93
+ }
87
94
  }
88
95
 
89
- &:first-child .d-step-value::after {
90
- left: 50%;
91
- z-index: var(--#{$prefix}step-z-index);
92
- width: 50%;
96
+ &.d-step-current {
97
+ --#{$prefix}step-icon-container-color: var(--#{$prefix}primary-500);
98
+ --#{$prefix}step-icon-container-border-color: var(--#{$prefix}primary-500);
99
+ .d-step-icon-container {
100
+ font-weight: 500;
101
+ }
93
102
  }
94
103
 
95
- &:last-child .d-step-value::after {
96
- right: 50%;
97
- z-index: var(--#{$prefix}step-z-index);
98
- width: 50%;
99
- }
100
104
 
101
105
  .d-step-text-container {
102
106
  padding-right: var(--#{$prefix}step-label-padding);
@@ -109,10 +113,18 @@
109
113
 
110
114
  .d-step-description {
111
115
  font-size: var(--#{$prefix}step-description-font-size);
116
+ color: var(--#{$prefix}gray-400);
112
117
  }
113
118
  }
114
119
  }
115
120
 
121
+ .d-step-current {
122
+ .d-step-label {
123
+ --font-weight-active-text: 500;
124
+ font-weight: var(--font-weight-active-text);
125
+ }
126
+ }
127
+
116
128
  &.is-align-start {
117
129
  .d-step-text-container {
118
130
  text-align: left;
@@ -122,14 +134,14 @@
122
134
 
123
135
  &.is-vertical {
124
136
  flex-direction: column;
137
+ gap: var(--#{$prefix}step-gap);
125
138
 
126
139
  .d-step {
127
140
  flex-direction: row;
128
- align-items: center;
141
+ align-items: start;
129
142
 
130
143
  .d-step-value {
131
- align-items: center;
132
- height: 100%;
144
+ align-items: start;
133
145
  }
134
146
 
135
147
  .d-step-text-container {
@@ -137,43 +149,27 @@
137
149
  flex-grow: 1;
138
150
  flex-direction: column;
139
151
  align-items: flex-start;
140
- min-height: var(--#{$prefix}step-label-height);
141
- padding: var(--#{$prefix}step-vertical-label-padding);
152
+ padding-inline: var(--#{$prefix}step-vertical-label-padding);
142
153
  }
143
154
 
144
155
  .d-step-label {
145
156
  text-align: left;
146
157
  }
147
158
 
148
- .d-step-value::after {
149
- position: absolute;
150
- top: 0;
151
- left: calc(50% - var(--#{$prefix}step-line-stroke));
152
- z-index: var(--#{$prefix}step-z-index);
153
- width: 0;
154
- height: 100%;
155
- content: "";
156
- border: var(--#{$prefix}step-line-stroke) solid var(--#{$prefix}step-line-color);
157
- }
158
-
159
- &:first-child .d-step-value::after {
160
- top: 50%;
161
- z-index: var(--#{$prefix}step-z-index);
162
- width: 0;
163
- height: 50%;
164
- }
165
-
166
- &:last-child .d-step-value::after {
167
- z-index: var(--#{$prefix}step-z-index);
168
- width: 0;
169
- height: 50%;
159
+ &::after {
160
+ top: calc(var(--bs-step-icon-container-size) + 4px);
161
+ left: 16px;
162
+ width: var(--#{$prefix}step-icon-container-border-width);
163
+ height: calc(100% - var(--bs-step-icon-container-size));
170
164
  }
171
165
  }
172
166
  }
173
167
 
174
168
  .d-step-icon {
175
169
  --#{$prefix}icon-size: var(--#{$prefix}step-icon-size);
176
-
170
+ position: absolute;
171
+ right: -10px;
172
+ bottom: -4px;
177
173
  display: flex;
178
174
  font-size: inherit;
179
175
  }
@@ -5,8 +5,8 @@
5
5
  /* Outter circle */
6
6
  --#{$prefix}step-progress-outter-size: 62px;
7
7
  --#{$prefix}step-progress-outter-z-index: 1;
8
- --#{$prefix}step-progress-outter-fill-background-color: var(--#{$prefix}secondary-500);
9
- --#{$prefix}step-progress-outter-background-color: var(--#{$prefix}secondary-100);
8
+ --#{$prefix}step-progress-outter-fill-background-color: var(--#{$prefix}primary-500);
9
+ --#{$prefix}step-progress-outter-background-color: var(--#{$prefix}primary-50);
10
10
 
11
11
  /* Inner circle */
12
12
  --#{$prefix}step-progress-inner-size: 50px;
@@ -0,0 +1,37 @@
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
+ .nav-toggle-button-group {
16
+ --#{$prefix}toggle-button-group-border-radius: 4rem;
17
+ --#{$prefix}toggle-button-group-link-active-color: var(--#{$prefix}white);
18
+ --#{$prefix}toggle-button-group-link-active-bg: var(--#{$prefix}primary);
19
+ --#{$prefix}toggle-button-group-link-hover-bg: var(--#{$prefix}secondary-500);
20
+ --#{$prefix}toggle-button-group-bg: var(--#{$prefix}gray-25);
21
+ --#{$prefix}toggle-button-group-radius: 4rem;
22
+ --#{$prefix}toggle-button-group-padding: .25rem;
23
+ padding: var(--#{$prefix}toggle-button-group-padding);
24
+ overflow: hidden;
25
+ background: var(--#{$prefix}toggle-button-group-bg);
26
+ border: 1px solid var(--#{$prefix}gray-50);
27
+ border-radius: var(--#{$prefix}toggle-button-group-radius);
28
+ .nav-link {
29
+ flex: 1;
30
+ border-radius: var(--#{$prefix}toggle-button-group-border-radius);
31
+ }
32
+ .nav-link.active {
33
+ font-weight: var(--#{$prefix}fw-semibold);
34
+ color: var(--#{$prefix}toggle-button-group-link-active-color);
35
+ background: var(--#{$prefix}toggle-button-group-link-active-bg);
36
+ }
37
+ }