@dynamic-framework/ui-react 2.0.0-dev.1 → 2.0.0-dev.11
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/dist/css/dynamic-ui-non-root.css +7054 -3737
- package/dist/css/dynamic-ui-non-root.min.css +3 -3
- package/dist/css/dynamic-ui-root.css +339 -161
- package/dist/css/dynamic-ui-root.min.css +3 -3
- package/dist/css/dynamic-ui.css +7380 -3885
- package/dist/css/dynamic-ui.min.css +3 -3
- package/dist/index.esm.js +641 -406
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +685 -433
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAlert/DAlert.d.ts +3 -3
- package/dist/types/components/DAvatar/DAvatar.d.ts +1 -3
- package/dist/types/components/DBadge/DBadge.d.ts +4 -3
- package/dist/types/components/DBox/DBox.d.ts +5 -0
- package/dist/types/components/DBox/index.d.ts +2 -0
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +1 -1
- package/dist/types/components/DButton/DButton.d.ts +8 -17
- package/dist/types/components/DButtonIcon/DButtonIcon.d.ts +3 -3
- package/dist/types/components/DChip/DChip.d.ts +3 -3
- package/dist/types/components/DCollapse/DCollapse.d.ts +1 -1
- package/dist/types/components/DCreditCard/DCreditCard.d.ts +12 -0
- package/dist/types/components/DCreditCard/index.d.ts +2 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +3 -3
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -4
- package/dist/types/components/DDropdown/DDropdown.d.ts +20 -0
- package/dist/types/components/DDropdown/index.d.ts +2 -0
- package/dist/types/components/DIconBase/DIconBase.d.ts +13 -9
- package/dist/types/components/DInput/DInput.d.ts +3 -2
- package/dist/types/components/DInputCheck/DInputCheck.d.ts +2 -1
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +3 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +4 -3
- package/dist/types/components/DInputMask/DInputMask.d.ts +7 -17
- package/dist/types/components/DInputPhone/DInputPhone.d.ts +2 -2
- package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
- package/dist/types/components/DInputRange/DInputRange.d.ts +2 -2
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
- package/dist/types/components/DInputSwitch/DInputSwitch.d.ts +2 -1
- package/dist/types/components/DLayout/DLayout.d.ts +22 -0
- package/dist/types/components/DLayout/components/DLayoutPane.d.ts +13 -0
- package/dist/types/components/DLayout/index.d.ts +3 -0
- package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +4 -4
- package/dist/types/components/DModal/DModal.d.ts +3 -1
- package/dist/types/components/DOffcanvas/DOffcanvas.d.ts +3 -1
- package/dist/types/components/DOtp/DOtp.d.ts +16 -0
- package/dist/types/components/DOtp/DOtpspec.d.ts +0 -0
- package/dist/types/components/DOtp/components/OtpCountdown.d.ts +7 -0
- package/dist/types/components/DOtp/hooks/useCountdown.d.ts +4 -0
- package/dist/types/components/DOtp/index.d.ts +2 -0
- package/dist/types/components/DPaginator/DPaginator.d.ts +2 -27
- package/dist/types/components/DPasswordStrengthMeter/DPasswordStrengthMeter.d.ts +23 -0
- package/dist/types/components/DPasswordStrengthMeter/PasswordCheckItem.d.ts +7 -0
- package/dist/types/components/DPasswordStrengthMeter/PasswordCheckList.d.ts +14 -0
- package/dist/types/components/DPasswordStrengthMeter/PasswordStrength.d.ts +6 -0
- package/dist/types/components/DPasswordStrengthMeter/index.d.ts +3 -0
- package/dist/types/components/DProgress/DProgress.d.ts +2 -1
- package/dist/types/components/DSelect/DSelect.d.ts +3 -3
- package/dist/types/components/DTabs/DTabs.d.ts +2 -2
- package/dist/types/components/DTimeline/DTimeline.d.ts +15 -0
- package/dist/types/components/DTimeline/index.d.ts +2 -0
- package/dist/types/components/DToastContainer/useDToast.d.ts +2 -2
- package/dist/types/components/DTooltip/DTooltip.d.ts +1 -2
- package/dist/types/components/DVoucher/DVoucher.d.ts +14 -0
- package/dist/types/components/DVoucher/hooks/useScreenshot.d.ts +5 -0
- package/dist/types/components/DVoucher/hooks/useScreenshotDownload.d.ts +5 -0
- package/dist/types/components/DVoucher/hooks/useScreenshotWebShare.d.ts +5 -0
- package/dist/types/components/DVoucher/index.d.ts +2 -0
- package/dist/types/components/config.d.ts +0 -2
- package/dist/types/components/index.d.ts +8 -9
- package/dist/types/components/interface.d.ts +3 -8
- package/dist/types/hooks/useResponsiveProp.d.ts +35 -0
- package/jest/setup.js +0 -2
- package/package.json +43 -40
- package/src/style/_shame.scss +42 -1
- package/src/style/abstracts/_mixins.scss +35 -23
- package/src/style/abstracts/_utilities.scss +70 -1
- package/src/style/abstracts/variables/_+import.scss +3 -2
- package/src/style/abstracts/variables/_alerts.scss +2 -0
- package/src/style/abstracts/variables/_body.scss +10 -3
- package/src/style/abstracts/variables/_border.scss +5 -5
- package/src/style/abstracts/variables/_buttons.scss +19 -11
- package/src/style/abstracts/variables/_cards.scss +6 -4
- package/src/style/abstracts/variables/_chips.scss +2 -2
- package/src/style/abstracts/variables/_colors.scss +147 -70
- package/src/style/abstracts/variables/_datepicker.scss +10 -9
- package/src/style/abstracts/variables/_dropdowns.scss +6 -4
- package/src/style/abstracts/variables/_forms.scss +4 -4
- package/src/style/abstracts/variables/_list-group.scss +2 -2
- package/src/style/abstracts/variables/_modals.scss +4 -3
- package/src/style/abstracts/variables/_offcanvas.scss +1 -0
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_shadow.scss +1 -0
- package/src/style/abstracts/variables/_tables.scss +8 -3
- package/src/style/abstracts/variables/_tooltip.scss +1 -1
- package/src/style/abstracts/variables/_typography.scss +7 -7
- package/src/style/base/_+import.scss +1 -0
- package/src/style/base/_alert.scss +1 -27
- package/src/style/base/_badge.scss +50 -12
- package/src/style/base/_buttons.scss +33 -30
- package/src/style/base/_dropdown.scss +18 -0
- package/src/style/base/_input-group.scss +5 -0
- package/src/style/base/_label.scss +0 -4
- package/src/style/base/_list-group.scss +6 -0
- package/src/style/base/_pagination.scss +2 -0
- package/src/style/base/_tables.scss +4 -0
- package/src/style/base/_tooltip.scss +1 -10
- package/src/style/components/_+import.scss +5 -4
- package/src/style/components/_d-avatar.scss +2 -20
- package/src/style/components/_d-box-file.scss +1 -1
- package/src/style/components/_d-box.scss +13 -0
- package/src/style/components/_d-carousel.scss +20 -1
- package/src/style/components/_d-credit-card.scss +67 -0
- package/src/style/components/_d-datepicker.scss +83 -26
- package/src/style/components/_d-icon.scss +10 -3
- package/src/style/components/_d-modal.scss +3 -0
- package/src/style/components/_d-stepper-desktop.scss +61 -65
- package/src/style/components/_d-stepper-mobile.scss +2 -2
- package/src/style/components/_d-tabs.scss +37 -0
- package/src/style/components/_d-timeline.scss +108 -0
- package/src/style/components/_d-voucher.scss +29 -0
- package/src/style/helpers/_color-bg.scss +13 -3
- package/src/style/root/_root.scss +109 -86
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +0 -26
- package/dist/types/components/DInputCurrencyBase/index.d.ts +0 -2
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +0 -17
- package/dist/types/components/DInputSearch/index.d.ts +0 -2
- package/dist/types/components/DList/DList.d.ts +0 -17
- package/dist/types/components/DList/components/DListItem.d.ts +0 -13
- package/dist/types/components/DList/index.d.ts +0 -3
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +0 -20
- package/dist/types/components/DQuickActionButton/index.d.ts +0 -2
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +0 -17
- package/dist/types/components/DQuickActionCheck/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSelect/DQuickActionSelect.d.ts +0 -13
- package/dist/types/components/DQuickActionSelect/index.d.ts +0 -2
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +0 -15
- package/dist/types/components/DQuickActionSwitch/index.d.ts +0 -2
- package/dist/types/components/DSkeleton/DSkeleton.d.ts +0 -11
- package/dist/types/components/DSkeleton/index.d.ts +0 -2
- package/dist/types/components/DTableHead/DTableHead.d.ts +0 -9
- package/dist/types/components/DTableHead/index.d.ts +0 -2
- package/src/style/components/_d-quick-action-button.scss +0 -121
- package/src/style/components/_d-quick-action-check.scss +0 -74
- package/src/style/components/_d-quick-action-select.scss +0 -58
- package/src/style/components/_d-quick-action-switch.scss +0 -64
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.d-voucher {
|
|
2
|
+
--#{$prefix}voucher-header-gap: var(--#{$prefix}ref-spacer-4);
|
|
3
|
+
--#{$prefix}voucher-amount-padding: var(--#{$prefix}ref-spacer-4);
|
|
4
|
+
--#{$prefix}voucher-amount-background: var(--#{$prefix}secondary-50);
|
|
5
|
+
--#{$prefix}voucher-amount-rounded: var(--#{$prefix}ref-spacer-4);
|
|
6
|
+
--#{$prefix}voucher-footer-gap: var(--#{$prefix}ref-spacer-4);
|
|
7
|
+
--#{$prefix}voucher-margin: 0 0 var(--#{$prefix}ref-spacer-4) 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.d-voucher-header {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
gap: var(--#{$prefix}voucher-header-gap);
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
margin: var(--#{$prefix}voucher-margin);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.d-voucher-amount {
|
|
20
|
+
padding: var(--#{$prefix}voucher-amount-padding);
|
|
21
|
+
background: var(--#{$prefix}voucher-amount-background);
|
|
22
|
+
border-radius: var(--#{$prefix}voucher-amount-rounded);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.d-voucher-footer {
|
|
26
|
+
display: flex;
|
|
27
|
+
gap: var(--#{$prefix}voucher-footer-gap);
|
|
28
|
+
justify-content: flex-start;
|
|
29
|
+
}
|
|
@@ -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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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};
|
|
@@ -223,79 +221,104 @@
|
|
|
223
221
|
--#{$prefix}btn-sm-border-radius: #{$btn-border-radius-sm};
|
|
224
222
|
|
|
225
223
|
@each $color, $value in $theme-colors {
|
|
226
|
-
@if $color
|
|
227
|
-
@
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
224
|
+
@if not map-has-key($theme-colors-extra, $color) {
|
|
225
|
+
@if $color == "light" {
|
|
226
|
+
@include df-button-variant-variables(
|
|
227
|
+
"light",
|
|
228
|
+
$default-color: var(--#{$prefix}gray-25),
|
|
229
|
+
$default-text-color: color-contrast-var(map-get($all-colors, gray-100)),
|
|
230
|
+
$hover-color: var(--#{$prefix}gray-50),
|
|
231
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
232
|
+
$focus-color: var(--#{$prefix}gray-200),
|
|
233
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
234
|
+
$active-color: var(--#{$prefix}gray-300),
|
|
235
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-300)),
|
|
236
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-100-rgb),
|
|
237
|
+
);
|
|
238
|
+
@include df-button-outline-variant-variables(
|
|
239
|
+
"light",
|
|
240
|
+
$default-color: var(--#{$prefix}gray-100),
|
|
241
|
+
$hover-color: var(--#{$prefix}gray-200),
|
|
242
|
+
$focus-color: var(--#{$prefix}gray-200),
|
|
243
|
+
$active-color: var(--#{$prefix}gray-300),
|
|
244
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-100-rgb),
|
|
245
|
+
);
|
|
246
|
+
@include df-button-link-variant-variables(
|
|
247
|
+
"light",
|
|
248
|
+
$default-color: var(--#{$prefix}gray-100),
|
|
249
|
+
$hover-text-color: var(--#{$prefix}gray-200),
|
|
250
|
+
$focus-text-color: var(--#{$prefix}gray-200),
|
|
251
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-300)),
|
|
252
|
+
$active-bg-color: var(--#{$prefix}gray-300),
|
|
253
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-100-rgb),
|
|
254
|
+
);
|
|
255
|
+
} @else if $color == "dark" {
|
|
256
|
+
@include df-button-variant-variables(
|
|
257
|
+
"dark",
|
|
258
|
+
$default-color: var(--#{$prefix}gray-900),
|
|
259
|
+
$default-text-color: color-contrast-var(map-get($all-colors, gray-900)),
|
|
260
|
+
$hover-color: var(--#{$prefix}gray-800),
|
|
261
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
262
|
+
$focus-color: var(--#{$prefix}gray-800),
|
|
263
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
264
|
+
$active-color: var(--#{$prefix}gray-700),
|
|
265
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-700)),
|
|
266
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
|
|
267
|
+
);
|
|
268
|
+
@include df-button-outline-variant-variables(
|
|
269
|
+
"dark",
|
|
270
|
+
$default-color: var(--#{$prefix}gray-900),
|
|
271
|
+
$hover-color: var(--#{$prefix}gray-800),
|
|
272
|
+
$focus-color: var(--#{$prefix}gray-800),
|
|
273
|
+
$active-color: var(--#{$prefix}gray-700),
|
|
274
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
|
|
275
|
+
);
|
|
276
|
+
@include df-button-link-variant-variables(
|
|
277
|
+
"dark",
|
|
278
|
+
$default-color: var(--#{$prefix}gray-900),
|
|
279
|
+
$hover-text-color: var(--#{$prefix}gray-800),
|
|
280
|
+
$focus-text-color: var(--#{$prefix}gray-800),
|
|
281
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-700)),
|
|
282
|
+
$active-bg-color: var(--#{$prefix}gray-700),
|
|
283
|
+
$focus-shadow-rgb: var(--#{$prefix}gray-900-rgb),
|
|
284
|
+
);
|
|
285
|
+
|
|
286
|
+
} @else if $color == "secondary" {
|
|
287
|
+
@include df-button-variant-variables(
|
|
288
|
+
"secondary",
|
|
289
|
+
$default-color: var(--#{$prefix}secondary-50),
|
|
290
|
+
$default-text-color: var(--#{$prefix}secondary-700),
|
|
291
|
+
$hover-color: var(--#{$prefix}secondary-100),
|
|
292
|
+
$hover-text-color: var(--#{$prefix}secondary-700),
|
|
293
|
+
$focus-color: var(--#{$prefix}secondary-100),
|
|
294
|
+
$focus-text-color: var(--#{$prefix}secondary-700),
|
|
295
|
+
$active-color: var(--#{$prefix}secondary-100),
|
|
296
|
+
$active-text-color: var(--#{$prefix}secondary-700),
|
|
297
|
+
$focus-shadow-rgb: var(--#{$prefix}secondary-100-rgb),
|
|
298
|
+
);
|
|
299
|
+
@include df-button-outline-variant-variables(
|
|
300
|
+
"secondary",
|
|
301
|
+
$default-color: var(--#{$prefix}secondary-500),
|
|
302
|
+
$default-border-color: var(--#{$prefix}secondary-200),
|
|
303
|
+
$hover-color: var(--#{$prefix}secondary-700),
|
|
304
|
+
$hover-border-color: var(--#{$prefix}secondary-400),
|
|
305
|
+
$focus-color: var(--#{$prefix}secondary-700),
|
|
306
|
+
$active-color: var(--#{$prefix}secondary-700),
|
|
307
|
+
$active-border-color: var(--#{$prefix}secondary-600),
|
|
308
|
+
);
|
|
309
|
+
@include df-button-link-variant-variables(
|
|
310
|
+
"secondary",
|
|
311
|
+
$active-bg-color: var(--#{$prefix}secondary-100),
|
|
312
|
+
);
|
|
313
|
+
} @else {
|
|
314
|
+
@include df-button-variant-variables($color);
|
|
315
|
+
@include df-button-outline-variant-variables($color);
|
|
316
|
+
@include df-button-link-variant-variables($color);
|
|
317
|
+
}
|
|
296
318
|
}
|
|
297
319
|
}
|
|
298
320
|
|
|
321
|
+
|
|
299
322
|
// only reference root variables
|
|
300
323
|
@each $level, $value in $spacers {
|
|
301
324
|
--#{$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,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,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,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,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,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,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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
export type Props = PropsWithChildren<{
|
|
3
|
-
speed?: number;
|
|
4
|
-
viewBox?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
foregroundColor?: string;
|
|
7
|
-
}>;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated Please use https://getbootstrap.com/docs/5.3/components/placeholders/ instead
|
|
10
|
-
*/
|
|
11
|
-
export default function DSkeleton({ speed, viewBox, backgroundColor, foregroundColor, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseProps } from '../interface';
|
|
2
|
-
type Props = BaseProps & {
|
|
3
|
-
field: string;
|
|
4
|
-
label: string;
|
|
5
|
-
value?: string;
|
|
6
|
-
onChange: (value: string) => void;
|
|
7
|
-
};
|
|
8
|
-
export default function DTableHead({ className, style, field, label, value, onChange, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|