@dynamic-framework/ui-react 2.1.1 → 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.
- package/README.md +8 -0
- package/dist/css/dynamic-ui.css +15518 -1105
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/index.esm.js +338 -137
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +345 -135
- package/dist/index.js.map +1 -1
- package/dist/types/components/DBadge/DBadge.d.ts +3 -2
- package/dist/types/components/DButton/DButton.d.ts +7 -3
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +7 -8
- package/dist/types/components/DCollapse/DCollapse.d.ts +1 -2
- package/dist/types/components/DCreditCard/DCreditCard.d.ts +2 -1
- package/dist/types/components/DDataStateWrapper/DDataStateWrapper.d.ts +14 -0
- package/dist/types/components/DDataStateWrapper/components/EmptyState.d.ts +8 -0
- package/dist/types/components/DDataStateWrapper/components/ErrorState.d.ts +8 -0
- package/dist/types/components/DDataStateWrapper/components/LoadingState.d.ts +6 -0
- package/dist/types/components/DDataStateWrapper/index.d.ts +2 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +2 -1
- package/dist/types/components/DDatePicker/components/DDatePickerTime.d.ts +4 -6
- package/dist/types/components/DErrorBoundary/DErrorBoundary.d.ts +11 -0
- package/dist/types/components/DErrorBoundary/components/DefaultErrorBoundary.d.ts +6 -0
- package/dist/types/components/DErrorBoundary/index.d.ts +3 -0
- package/dist/types/components/DInputPin/DInputPin.d.ts +2 -1
- package/dist/types/components/DPopover/DPopover.d.ts +2 -7
- package/dist/types/components/DSelect/DSelect.d.ts +2 -1
- package/dist/types/components/DSelect/components/DSelectOptionCheck.d.ts +1 -1
- package/dist/types/components/DTabs/DTabs.d.ts +3 -1
- package/dist/types/components/DVoucher/DVoucher.d.ts +5 -4
- package/dist/types/components/index.d.ts +2 -0
- package/package.json +18 -21
- package/src/style/_shame.scss +2 -2
- package/src/style/abstracts/_mixins.scss +4 -4
- package/src/style/abstracts/_utilities-dark.scss +72 -0
- package/src/style/abstracts/_utilities.scss +76 -8
- package/src/style/abstracts/variables/_+import.scss +2 -6
- package/src/style/abstracts/variables/_alerts.scss +1 -1
- package/src/style/abstracts/variables/_border.scss +9 -0
- package/src/style/abstracts/variables/_buttons.scss +1 -1
- package/src/style/abstracts/variables/_carousel.scss +13 -1
- package/src/style/abstracts/variables/_colors.scss +2 -2
- package/src/style/abstracts/variables/_input-phone.scss +1 -1
- package/src/style/abstracts/variables/_navs.scss +23 -27
- package/src/style/abstracts/variables/_tooltip.scss +2 -2
- package/src/style/abstracts/variables/_typography.scss +0 -40
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_badge.scss +2 -2
- package/src/style/base/_carousel.scss +44 -0
- package/src/style/base/_collapse.scss +21 -8
- package/src/style/base/_nav.scss +10 -59
- package/src/style/base/_type.scss +7 -6
- package/src/style/components/_+import.scss +0 -1
- package/src/style/components/_d-avatar.scss +2 -2
- package/src/style/components/_d-carousel.scss +26 -4
- package/src/style/components/_d-chip.scss +13 -3
- package/src/style/components/_d-credit-card.scss +22 -12
- package/src/style/components/_d-icon.scss +17 -0
- package/src/style/components/_d-select.scss +59 -25
- package/src/style/components/_d-stepper-desktop.scss +2 -2
- package/src/style/components/_d-tabs.scss +7 -18
- package/src/style/components/_d-timeline.scss +6 -5
- package/src/style/components/_d-voucher.scss +2 -1
- package/src/style/dynamic-ui.scss +2 -0
- package/src/style/helpers/_+import.scss +1 -0
- package/src/style/helpers/_animations.scss +13 -0
- package/src/style/helpers/_color-bg.scss +1 -3
- package/src/style/root/_root.scss +8 -9
- package/dist/css/dynamic-ui-non-root.css +0 -37666
- package/dist/css/dynamic-ui-non-root.min.css +0 -6
- package/dist/css/dynamic-ui-root.css +0 -1132
- package/dist/css/dynamic-ui-root.min.css +0 -6
- package/src/style/abstracts/variables/_quick-action-button.scss +0 -31
- package/src/style/abstracts/variables/_quick-action-check.scss +0 -22
- package/src/style/abstracts/variables/_quick-action-select.scss +0 -16
- package/src/style/abstracts/variables/_quick-action-switch.scss +0 -19
- package/src/style/components/_d-collapse-icon-text.scss +0 -16
- package/src/style/dynamic-ui-non-root.scss +0 -15
- package/src/style/dynamic-ui-root.scss +0 -5
|
@@ -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-
|
|
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-
|
|
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-
|
|
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}
|
|
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}
|
|
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-
|
|
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:
|
|
68
|
-
color:
|
|
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}
|
|
86
|
-
background-color: var(--#{$prefix}warning-
|
|
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}
|
|
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;
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
.d-voucher-amount {
|
|
20
20
|
padding: var(--#{$prefix}voucher-amount-padding);
|
|
21
|
+
text-align: center;
|
|
21
22
|
background: var(--#{$prefix}voucher-amount-background);
|
|
22
23
|
border-radius: var(--#{$prefix}voucher-amount-rounded);
|
|
23
24
|
}
|
|
@@ -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
|
+
}
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
background-color: RGBA(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
background-color: var(--#{$prefix}#{$color}) if($enable-important-utilities, !important, null);
|
|
16
|
-
}
|
|
14
|
+
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
@each $color, $value in $theme-colors {
|
|
@@ -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
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
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
|
|
|
@@ -193,11 +197,6 @@
|
|
|
193
197
|
@include rfs($small-font-size-value, --#{$prefix}rfs-fs-small);
|
|
194
198
|
--#{$prefix}fs-small: var(--#{$prefix}rfs-fs-small);
|
|
195
199
|
|
|
196
|
-
@each $level, $value in $body-font-sizes-value {
|
|
197
|
-
@include rfs($value, --#{$prefix}rfs-fs-body-#{$level});
|
|
198
|
-
--#{$prefix}fs-body-#{$level}: var(--#{$prefix}rfs-fs-body-#{$level});
|
|
199
|
-
}
|
|
200
|
-
|
|
201
200
|
--#{$prefix}fw-lighter: #{$font-weight-lighter-value};
|
|
202
201
|
--#{$prefix}fw-light: #{$font-weight-light-value};
|
|
203
202
|
--#{$prefix}fw-normal: #{$font-weight-normal-value};
|