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

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 (126) hide show
  1. package/dist/css/dynamic-ui-non-root.css +7153 -3699
  2. package/dist/css/dynamic-ui-non-root.min.css +2 -2
  3. package/dist/css/dynamic-ui-root.css +799 -127
  4. package/dist/css/dynamic-ui-root.min.css +2 -2
  5. package/dist/css/dynamic-ui.css +7950 -3824
  6. package/dist/css/dynamic-ui.min.css +2 -2
  7. package/dist/index.esm.js +255 -301
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +280 -310
  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/DBarChart/DBarChart.d.ts +9 -0
  15. package/dist/types/components/DBox/DBox.d.ts +5 -0
  16. package/dist/types/components/DBox/index.d.ts +2 -0
  17. package/dist/types/components/DButton/DButton.d.ts +6 -5
  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 +4 -8
  28. package/dist/types/components/DInput/DInput.d.ts +2 -2
  29. package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
  30. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +3 -3
  31. package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
  32. package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
  33. package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
  34. package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
  35. package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
  36. package/dist/types/components/DLayout/DLayout.d.ts +21 -0
  37. package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
  38. package/dist/types/components/DLayout/index.d.ts +3 -0
  39. package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
  40. package/dist/types/components/DMinimalLineChart/DMinimalLineChart.d.ts +9 -0
  41. package/dist/types/components/DMultiLineChart/DMultiLineChart.d.ts +9 -0
  42. package/dist/types/components/DOtp/DOtp.d.ts +16 -0
  43. package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
  44. package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
  45. package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
  46. package/dist/types/components/DOtp/index.d.ts +2 -0
  47. package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
  48. package/dist/types/components/DPieChart/DPieChart.d.ts +9 -0
  49. package/dist/types/components/DProgress/DProgress.d.ts +2 -1
  50. package/dist/types/components/DRadialBarChart/DRadialBarChart.d.ts +6 -0
  51. package/dist/types/components/DSelect/DSelect.d.ts +3 -3
  52. package/dist/types/components/DTabs/DTabs.d.ts +2 -2
  53. package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
  54. package/dist/types/components/DTimeline/index.d.ts +2 -0
  55. package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
  56. package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
  57. package/dist/types/components/index.d.ts +5 -8
  58. package/dist/types/components/interface.d.ts +3 -8
  59. package/package.json +8 -3
  60. package/src/style/_shame.scss +42 -1
  61. package/src/style/abstracts/_mixins.scss +1 -7
  62. package/src/style/abstracts/_utilities.scss +51 -1
  63. package/src/style/abstracts/variables/_+import.scss +3 -2
  64. package/src/style/abstracts/variables/_alerts.scss +2 -0
  65. package/src/style/abstracts/variables/_body.scss +10 -3
  66. package/src/style/abstracts/variables/_border.scss +5 -5
  67. package/src/style/abstracts/variables/_buttons.scss +17 -11
  68. package/src/style/abstracts/variables/_cards.scss +6 -4
  69. package/src/style/abstracts/variables/_chips.scss +2 -2
  70. package/src/style/abstracts/variables/_colors.scss +140 -69
  71. package/src/style/abstracts/variables/_datepicker.scss +10 -9
  72. package/src/style/abstracts/variables/_dropdowns.scss +6 -4
  73. package/src/style/abstracts/variables/_forms.scss +4 -4
  74. package/src/style/abstracts/variables/_list-group.scss +2 -2
  75. package/src/style/abstracts/variables/_modals.scss +4 -3
  76. package/src/style/abstracts/variables/_offcanvas.scss +1 -0
  77. package/src/style/abstracts/variables/_pagination.scss +4 -4
  78. package/src/style/abstracts/variables/_shadow.scss +1 -0
  79. package/src/style/abstracts/variables/_tables.scss +8 -3
  80. package/src/style/abstracts/variables/_tooltip.scss +1 -1
  81. package/src/style/abstracts/variables/_typography.scss +7 -7
  82. package/src/style/base/_+import.scss +1 -0
  83. package/src/style/base/_alert.scss +1 -27
  84. package/src/style/base/_badge.scss +50 -12
  85. package/src/style/base/_buttons.scss +148 -22
  86. package/src/style/base/_dropdown.scss +18 -0
  87. package/src/style/base/_input-group.scss +5 -0
  88. package/src/style/base/_list-group.scss +6 -0
  89. package/src/style/base/_pagination.scss +2 -0
  90. package/src/style/base/_tables.scss +4 -0
  91. package/src/style/base/_tooltip.scss +1 -10
  92. package/src/style/components/_+import.scss +4 -4
  93. package/src/style/components/_d-avatar.scss +2 -20
  94. package/src/style/components/_d-box.scss +13 -0
  95. package/src/style/components/_d-carousel.scss +19 -1
  96. package/src/style/components/_d-credit-card.scss +67 -0
  97. package/src/style/components/_d-datepicker.scss +64 -26
  98. package/src/style/components/_d-icon.scss +10 -3
  99. package/src/style/components/_d-modal.scss +3 -0
  100. package/src/style/components/_d-stepper-desktop.scss +61 -65
  101. package/src/style/components/_d-stepper-mobile.scss +2 -2
  102. package/src/style/components/_d-tabs.scss +37 -0
  103. package/src/style/components/_d-timeline.scss +108 -0
  104. package/src/style/helpers/_color-bg.scss +13 -3
  105. package/src/style/root/_root.scss +35 -18
  106. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
  107. package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
  108. package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
  109. package/dist/types/components/DInputSearch/index.d.ts +0 -2
  110. package/dist/types/components/DList/DList.d.ts +0 -17
  111. package/dist/types/components/DList/components/DListItem.d.ts +0 -13
  112. package/dist/types/components/DList/index.d.ts +0 -3
  113. package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
  114. package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
  115. package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
  116. package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
  117. package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
  118. package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
  119. package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
  120. package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
  121. package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
  122. package/dist/types/components/DSkeleton/index.d.ts +0 -2
  123. package/src/style/components/_d-quick-action-button.scss +0 -121
  124. package/src/style/components/_d-quick-action-check.scss +0 -74
  125. package/src/style/components/_d-quick-action-select.scss +0 -58
  126. package/src/style/components/_d-quick-action-switch.scss +0 -64
@@ -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
+ }
@@ -0,0 +1,108 @@
1
+ .d-timeline {
2
+ --#{$prefix}timeline-conector-size: 2px;
3
+ --#{$prefix}timeline-conector-bg: var(--#{$prefix}gray-100);
4
+ --#{$prefix}timeline-icon-size: 1rem;
5
+ --#{$prefix}timeline-icon-padding: .25rem;
6
+ --#{$prefix}timeline-icon-color: var(--#{$prefix}gray-600);
7
+ --#{$prefix}timeline-description-color: var(--#{$prefix}gray-400);
8
+ --#{$prefix}timeline-icon-bg: var(--#{$prefix}white);
9
+ position: relative;
10
+
11
+ display: flex;
12
+ flex-direction: column;
13
+
14
+ .d-timeline-item {
15
+ position: relative;
16
+ display: flex;
17
+ padding-bottom: 2rem;
18
+
19
+ .d-timeline-item-connector {
20
+ position: absolute;
21
+ top: .5rem;
22
+ left: .5rem;
23
+ width: var(--#{$prefix}timeline-conector-size);
24
+ height: 100%;
25
+ background-color: var(--#{$prefix}timeline-conector-bg);
26
+ }
27
+
28
+ .d-timeline-item-icon {
29
+ position: absolute;
30
+ top: 0;
31
+ left: calc(var(--#{$prefix}timeline-icon-size) / 2);
32
+ z-index: 1;
33
+ box-sizing: content-box;
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: var(--#{$prefix}timeline-icon-size);
38
+ height: var(--#{$prefix}timeline-icon-size);
39
+ padding: var(--#{$prefix}timeline-icon-padding);
40
+ line-height: 1;
41
+ color: var(--#{$prefix}timeline-icon-color);
42
+ background-color: var(--#{$prefix}timeline-icon-bg);
43
+ border: 1px solid rgba(0, 0, 0, .1);
44
+ border-radius: 50%;
45
+ transform: translateX(-50%);
46
+ }
47
+
48
+ &:last-child .d-timeline-item-connector {
49
+ display: none;
50
+ }
51
+
52
+ .d-timeline-item-content {
53
+ padding-left: 2rem;
54
+ }
55
+
56
+ .d-timeline-item-title {
57
+ margin-bottom: .25rem;
58
+ font-weight: 600;
59
+ }
60
+
61
+ .d-timeline-item-description {
62
+ margin-bottom: .5rem;
63
+ color: var(--#{$prefix}timeline-description-color);
64
+ }
65
+
66
+ .d-timeline-item-time {
67
+ font-size: .875rem;
68
+ color: #999;
69
+ }
70
+
71
+ &.d-timeline-item-success {
72
+ .d-timeline-item-icon {
73
+ color: var(--#{$prefix}white);
74
+ background-color: var(--#{$prefix}success-500);
75
+ }
76
+ }
77
+ &.d-timeline-item-danger {
78
+ .d-timeline-item-icon {
79
+ color: var(--#{$prefix}white);
80
+ background-color: var(--#{$prefix}danger-500);
81
+ }
82
+ }
83
+ &.d-timeline-item-warning {
84
+ .d-timeline-item-icon {
85
+ color: var(--#{$prefix}white);
86
+ background-color: var(--#{$prefix}warning-500);
87
+ }
88
+ }
89
+ &.d-timeline-item-primary {
90
+ .d-timeline-item-icon {
91
+ color: var(--#{$prefix}white);
92
+ background-color: var(--#{$prefix}primary-500);
93
+ }
94
+ }
95
+ &.d-timeline-item-info {
96
+ .d-timeline-item-icon {
97
+ color: var(--#{$prefix}white);
98
+ background-color: var(--#{$prefix}info-500);
99
+ }
100
+ }
101
+ &.d-timeline-item-secondary {
102
+ .d-timeline-item-icon {
103
+ color: var(--#{$prefix}white);
104
+ background-color: var(--#{$prefix}secondary-500);
105
+ }
106
+ }
107
+ }
108
+ }
@@ -1,8 +1,18 @@
1
1
  // All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
2
2
  @each $color, $value in map-merge-multiple($theme-colors-palettes, $theme-colors, $palette-grays, ("gray": map-get($colors, "gray"))) {
3
- .text-bg-#{$color} {
4
- color: color-contrast-var($value) if($enable-important-utilities, !important, null);
5
- background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
3
+ @if ($color == "secondary") {
4
+ .text-bg-secondary {
5
+ color: var(--#{$prefix}secondary-700);
6
+ background: var(--#{$prefix}secondary-50);
7
+ }
8
+ } @else {
9
+ .text-bg-#{$color} {
10
+ color: color-contrast-var($value) if($enable-important-utilities, !important, null);
11
+ background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
12
+ }
13
+ }
14
+ .hover-bg-#{$color}:hover {
15
+ background-color: var(--#{$prefix}#{$color}) if($enable-important-utilities, !important, null);
6
16
  }
7
17
  }
8
18
 
@@ -18,14 +18,6 @@
18
18
  // end custom
19
19
  }
20
20
 
21
- @each $color, $value in $bg-surface-colors {
22
- --#{$prefix}#{$color}-rgb: #{$value};
23
- }
24
-
25
- @each $color, $value in $bg-soft-colors {
26
- --#{$prefix}#{$color}-rgb: #{$value};
27
- }
28
-
29
21
  @each $color, $value in $theme-colors-palettes {
30
22
  @if str-index($color, "-500") {
31
23
  $base-color-name: str-slice($color, 1, str-index($color, "-500") - 1);
@@ -46,13 +38,6 @@
46
38
  --#{$prefix}gray-#{$color}: rgb(var(--#{$prefix}gray-#{$color}-rgb));
47
39
  }
48
40
 
49
- @each $color, $value in $bg-surface-colors {
50
- --#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
51
- }
52
-
53
- @each $color, $value in $bg-soft-colors {
54
- --#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
55
- }
56
41
  // end custom
57
42
 
58
43
  @each $color, $value in $theme-colors {
@@ -78,6 +63,17 @@
78
63
  --#{$prefix}#{$color}-text-emphasis: #{$value};
79
64
  }
80
65
 
66
+ $theme-colors-bg-subtle: (
67
+ "primary": $primary-bg-subtle,
68
+ "secondary": $secondary-bg-subtle,
69
+ "success": $green-25,
70
+ "info": $blue-25,
71
+ "warning": $yellow-25,
72
+ "danger": $red-25,
73
+ "light": $light-bg-subtle,
74
+ "dark": $dark-bg-subtle,
75
+ );
76
+
81
77
  @each $color, $value in $theme-colors-bg-subtle {
82
78
  --#{$prefix}#{$color}-bg-subtle: #{$value};
83
79
  }
@@ -110,7 +106,9 @@
110
106
  --#{$prefix}body-color: rgb(var(--#{$prefix}body-color-rgb));
111
107
  --#{$prefix}body-color-rgb: var(--#{$prefix}#{$body-color-mapping}-rgb);
112
108
  --#{$prefix}body-bg: rgb(var(--#{$prefix}body-bg-rgb));
113
- --#{$prefix}body-bg-rgb: var(--#{$prefix}#{$body-bg-mapping}-rgb);
109
+
110
+ // WIP: se convierte el hex a rgb
111
+ --#{$prefix}body-bg-rgb: #{to-rgb($body-bg)};
114
112
 
115
113
  --#{$prefix}emphasis-color: rgb(var(--#{$prefix}emphasis-color-rgb));
116
114
  --#{$prefix}emphasis-color-rgb: #{$body-emphasis-color};
@@ -226,9 +224,9 @@
226
224
  @if $color == "light" {
227
225
  @include df-button-variant-variables(
228
226
  "light",
229
- $default-color: var(--#{$prefix}gray-100),
227
+ $default-color: var(--#{$prefix}gray-25),
230
228
  $default-text-color: color-contrast-var(map-get($all-colors, gray-100)),
231
- $hover-color: var(--#{$prefix}gray-200),
229
+ $hover-color: var(--#{$prefix}gray-50),
232
230
  $hover-text-color: color-contrast-var(map-get($all-colors, gray-200)),
233
231
  $focus-color: var(--#{$prefix}gray-200),
234
232
  $focus-text-color: color-contrast-var(map-get($all-colors, gray-200)),
@@ -289,6 +287,24 @@
289
287
  $active-bg-color: var(--#{$prefix}gray-700),
290
288
  $focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
291
289
  );
290
+
291
+ } @else if $color == "secondary" {
292
+ @include df-button-variant-variables(
293
+ "secondary",
294
+ $default-color: var(--#{$prefix}secondary-50),
295
+ $default-text-color: var(--#{$prefix}secondary-700),
296
+ $hover-color: var(--#{$prefix}secondary-100),
297
+ $hover-text-color: var(--#{$prefix}secondary-700),
298
+ $focus-color: var(--#{$prefix}secondary-100),
299
+ $focus-text-color: var(--#{$prefix}secondary-700),
300
+ $active-color: var(--#{$prefix}secondary-100),
301
+ $active-text-color: var(--#{$prefix}secondary-700),
302
+ $focus-shadow-rgb: var(--#{$prefix}secondary-100-rgb),
303
+ );
304
+ @include df-button-link-variant-variables(
305
+ "secondary",
306
+ $active-bg-color: var(--#{$prefix}secondary-100),
307
+ );
292
308
  } @else {
293
309
  @include df-button-variant-variables($color);
294
310
  @include df-button-outline-variant-variables($color);
@@ -296,6 +312,7 @@
296
312
  }
297
313
  }
298
314
 
315
+
299
316
  // only reference root variables
300
317
  @each $level, $value in $spacers {
301
318
  --#{$prefix}ref-spacer-#{$level}: #{$value};
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import type { Options } from 'currency.js';
3
- type NonDInputProps = {
4
- value?: number;
5
- minValue?: number;
6
- maxValue?: number;
7
- currencyOptions: Options;
8
- currencyCode?: string;
9
- onChange?: (value?: number) => void;
10
- };
11
- declare const ForwardedDInputCurrencyBase: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
12
- value?: string | undefined;
13
- label?: string | undefined;
14
- loading?: boolean | undefined;
15
- hint?: string | undefined;
16
- size?: import("../interface").ComponentSize | undefined;
17
- invalid?: boolean | undefined;
18
- valid?: boolean | undefined;
19
- floatingLabel?: boolean | undefined;
20
- inputStart?: import("react").ReactNode;
21
- inputEnd?: import("react").ReactNode;
22
- onChange?: ((value: string) => void) | undefined;
23
- onIconStartClick?: ((value?: string | undefined) => void) | undefined;
24
- onIconEndClick?: ((value?: string | undefined) => void) | undefined;
25
- } & import("react").RefAttributes<HTMLInputElement>, "ref">, "value" | "type" | "onChange">, keyof NonDInputProps> & NonDInputProps & import("react").RefAttributes<HTMLInputElement>>;
26
- export default ForwardedDInputCurrencyBase;
@@ -1,2 +0,0 @@
1
- import DInputCurrencyBase from './DInputCurrencyBase';
2
- export default DInputCurrencyBase;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- declare const ForwardedDInputSearch: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "value" | "onChange">, "size" | "loading" | "label" | "invalid" | "value" | "onChange" | keyof import("../interface").BaseProps | keyof import("../interface").FamilyIconProps | keyof import("../interface").LabelIconProps | keyof import("../interface").StartIconProps | keyof import("../interface").EndIconProps | "hint" | "valid" | "floatingLabel" | "inputStart" | "inputEnd" | "onIconStartClick" | "onIconEndClick"> & import("../interface").BaseProps & import("../interface").FamilyIconProps & import("../interface").LabelIconProps & import("../interface").StartIconProps & import("../interface").EndIconProps & {
3
- value?: string | undefined;
4
- label?: string | undefined;
5
- loading?: boolean | undefined;
6
- hint?: string | undefined;
7
- size?: import("../interface").ComponentSize | undefined;
8
- invalid?: boolean | undefined;
9
- valid?: boolean | undefined;
10
- floatingLabel?: boolean | undefined;
11
- inputStart?: import("react").ReactNode;
12
- inputEnd?: import("react").ReactNode;
13
- onChange?: ((value: string) => void) | undefined;
14
- onIconStartClick?: ((value?: string | undefined) => void) | undefined;
15
- onIconEndClick?: ((value?: string | undefined) => void) | undefined;
16
- } & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
17
- export default ForwardedDInputSearch;
@@ -1,2 +0,0 @@
1
- import DInputSearch from './DInputSearch';
2
- export default DInputSearch;
@@ -1,17 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import DListItem from './components/DListItem';
3
- import type { BaseProps, BreakpointSize } from '../interface';
4
- type Props = BaseProps & PropsWithChildren<{
5
- flush?: boolean;
6
- numbered?: boolean;
7
- horizontal?: boolean;
8
- horizontalBreakpoint?: BreakpointSize;
9
- }>;
10
- /**
11
- * @deprecated Please use DListGroup instead
12
- */
13
- declare function DList({ children, className, style, flush, numbered, horizontal, horizontalBreakpoint, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
14
- declare const _default: typeof DList & {
15
- Item: typeof DListItem;
16
- };
17
- export default _default;
@@ -1,13 +0,0 @@
1
- import type { PropsWithChildren } from 'react';
2
- import type { BaseProps } from '../../interface';
3
- type Props = BaseProps & PropsWithChildren<{
4
- active?: boolean;
5
- disabled?: boolean;
6
- theme?: string;
7
- onClick?: () => void;
8
- }>;
9
- /**
10
- * @deprecated Please use DListGroup.Item or DListGroupItem instead
11
- */
12
- export default function DListItem({ children, className, style, active, disabled, theme, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,3 +0,0 @@
1
- import DList from './DList';
2
- export { default as DListItem } from './components/DListItem';
3
- export default DList;
@@ -1,20 +0,0 @@
1
- import type { BaseProps } from '../interface';
2
- type Props = BaseProps & {
3
- line1: string;
4
- line2: string;
5
- actionIcon?: string;
6
- actionIconTheme?: string;
7
- actionIconFamilyClass?: string;
8
- actionIconFamilyPrefix?: string;
9
- representativeImage?: string;
10
- representativeIcon?: string;
11
- representativeIconTheme?: string;
12
- representativeIconHasCircle?: boolean;
13
- representativeIconFamilyClass?: string;
14
- representativeIconFamilyPrefix?: string;
15
- href?: string;
16
- hrefTarget?: string;
17
- onClick?: () => void;
18
- };
19
- export default function DQuickActionButton({ line1, line2, className, actionIcon, actionIconFamilyClass, actionIconFamilyPrefix, actionIconTheme, representativeImage, representativeIcon, representativeIconTheme, representativeIconHasCircle, representativeIconFamilyClass, representativeIconFamilyPrefix, onClick, href, hrefTarget, style, dataAttributes, }: Props): import("react/jsx-runtime").JSX.Element;
20
- export {};
@@ -1,2 +0,0 @@
1
- import DQuickActionButton from './DQuickActionButton';
2
- export default DQuickActionButton;
@@ -1,17 +0,0 @@
1
- import type { ChangeEvent } from 'react';
2
- import type { BaseProps } from '../interface';
3
- type Props = BaseProps & {
4
- id?: string;
5
- name: string;
6
- value: string;
7
- line1: string;
8
- line2: string;
9
- line3: string;
10
- checked?: boolean;
11
- onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
12
- };
13
- /**
14
- * @deprecated
15
- */
16
- export default function DQuickActionCheck({ id: idProp, name, value, line1, line2, line3, className, style, checked, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
17
- export {};
@@ -1,2 +0,0 @@
1
- import DQuickActionCheck from './DQuickActionCheck';
2
- export default DQuickActionCheck;
@@ -1,13 +0,0 @@
1
- import type { ChangeEvent } from 'react';
2
- import type { BaseProps } from '../interface';
3
- type Props = BaseProps & {
4
- id?: string;
5
- name: string;
6
- value: string;
7
- line1: string;
8
- line2: string;
9
- selected?: boolean;
10
- onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
11
- };
12
- export default function DQuickActionSelect({ id: idProp, name, value, line1, line2, className, style, selected, dataAttributes, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
13
- export {};
@@ -1,2 +0,0 @@
1
- import DQuickActionSelect from './DQuickActionSelect';
2
- export default DQuickActionSelect;
@@ -1,15 +0,0 @@
1
- import type { BaseProps } from '../interface';
2
- type Props = BaseProps & {
3
- id?: string;
4
- name?: string;
5
- label: string;
6
- hint: string;
7
- checked?: boolean;
8
- disabled?: boolean;
9
- onClick?: (isChecked: boolean | undefined) => void;
10
- };
11
- /**
12
- * @deprecated
13
- */
14
- export default function DQuickActionSwitch({ id: idProp, name, label, hint, checked, disabled, className, style, dataAttributes, onClick, }: Props): import("react/jsx-runtime").JSX.Element;
15
- export {};