@dynamic-framework/ui-react 1.18.0 → 1.19.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/dist/css/dynamic-ui-non-root.css +1363 -868
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +493 -29
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +1855 -896
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +117 -151
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +118 -155
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAvatar/DAvatar.d.ts +9 -0
- package/dist/types/components/DAvatar/index.d.ts +2 -0
- package/dist/types/components/DCarousel/DCarousel.d.ts +5 -4
- package/dist/types/components/DToastContainer/DToastContainer.d.ts +9 -7
- package/dist/types/components/DToastContainer/index.d.ts +1 -1
- package/dist/types/components/DToastContainer/{useToast.d.ts → useDToast.d.ts} +7 -4
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/interface.d.ts +1 -0
- package/dist/types/contexts/DContext.d.ts +8 -7
- package/dist/types/contexts/DPortalContext.d.ts +29 -0
- package/dist/types/contexts/index.d.ts +1 -2
- package/package.json +3 -3
- package/src/style/abstracts/_mixins.scss +110 -94
- package/src/style/abstracts/_utilities.scss +34 -1
- package/src/style/abstracts/variables/_+import.scss +2 -0
- package/src/style/abstracts/variables/_accordion.scss +2 -2
- package/src/style/abstracts/variables/_alerts.scss +1 -1
- package/src/style/abstracts/variables/_cards.scss +2 -0
- package/src/style/abstracts/variables/_collapse-icon-text.scss +2 -2
- package/src/style/abstracts/variables/_forms.scss +5 -7
- package/src/style/abstracts/variables/_navs.scss +2 -2
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_progress.scss +2 -2
- package/src/style/abstracts/variables/_quick-action-button.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-check.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-select.scss +3 -3
- package/src/style/abstracts/variables/_quick-action-switch.scss +2 -2
- package/src/style/abstracts/variables/_tooltip.scss +16 -0
- package/src/style/abstracts/variables/_typography.scss +76 -20
- package/src/style/abstracts/variables/_z-index.scss +11 -0
- package/src/style/base/_+import.scss +7 -2
- package/src/style/base/_avatar.scss +61 -0
- package/src/style/base/_backdrop.scss +9 -0
- package/src/style/base/_button-group.scss +13 -0
- package/src/style/base/{_button.scss → _buttons.scss} +14 -48
- package/src/style/base/_form-check.scss +2 -1
- package/src/style/base/_input-group.scss +11 -6
- package/src/style/base/_tooltip.scss +23 -0
- package/src/style/base/_type.scss +104 -0
- package/src/style/components/_+import.scss +0 -1
- package/src/style/components/_d-datepicker.scss +7 -7
- package/src/style/components/_d-monthpicker.scss +4 -4
- package/src/style/components/_d-quick-action-button.scss +8 -0
- package/src/style/components/_d-quick-action-select.scss +2 -0
- package/src/style/components/_d-quick-action-switch.scss +4 -4
- package/src/style/components/_d-select.scss +1 -1
- package/src/style/components/_d-stepper-mobile.scss +3 -3
- package/src/style/helpers/_+import.scss +1 -0
- package/src/style/helpers/_text-truncate.scss +8 -0
- package/src/style/root/_root.scss +98 -21
- package/dist/types/contexts/DModalContext.d.ts +0 -31
- package/dist/types/contexts/DOffcanvasContext.d.ts +0 -31
- package/src/style/components/_d-tooltip.scss +0 -35
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
--#{$prefix}datepicker-header-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-6);
|
|
14
14
|
--#{$prefix}datepicker-header-background-color: var(--#{$prefix}secondary-soft);
|
|
15
15
|
--#{$prefix}datepicker-header-border: 0;
|
|
16
|
-
--#{$prefix}datepicker-header-font-size: var(--#{$prefix}
|
|
16
|
+
--#{$prefix}datepicker-header-font-size: var(--#{$prefix}fs-6);
|
|
17
17
|
|
|
18
18
|
--#{$prefix}datepicker-day-names-margin: 0;
|
|
19
19
|
--#{$prefix}datepicker-day-names-font-size: var(--#{$prefix}ref-spacer-4);
|
|
20
20
|
|
|
21
|
-
--#{$prefix}datepicker-day-name-weight: var(--#{$prefix}
|
|
21
|
+
--#{$prefix}datepicker-day-name-weight: var(--#{$prefix}fw-bold);
|
|
22
22
|
--#{$prefix}datepicker-day-name-margin: 0;
|
|
23
23
|
--#{$prefix}datepicker-day-name-size: var(--#{$prefix}ref-spacer-4);
|
|
24
24
|
--#{$prefix}datepicker-day-name-color: var(--#{$prefix}gray-500);
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
// Day variables
|
|
35
35
|
--#{$prefix}datepicker-day-margin: 0;
|
|
36
|
-
--#{$prefix}datepicker-day-font-size: var(--#{$prefix}
|
|
36
|
+
--#{$prefix}datepicker-day-font-size: var(--#{$prefix}fs-small);
|
|
37
37
|
--#{$prefix}datepicker-day-size: var(--#{$prefix}ref-spacer-4);
|
|
38
38
|
--#{$prefix}datepicker-day-padding: var(--#{$prefix}ref-spacer-4);
|
|
39
39
|
--#{$prefix}datepicker-day-radius: 100%;
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
--#{$prefix}datepicker-day-outside-month-color: var(--#{$prefix}gray-400);
|
|
51
51
|
|
|
52
|
-
--#{$prefix}datepicker-day-today-font-weight: var(--#{$prefix}
|
|
52
|
+
--#{$prefix}datepicker-day-today-font-weight: var(--#{$prefix}fw-normal);
|
|
53
53
|
--#{$prefix}datepicker-day-today-box-shadow: 0 0 0 2px inset var(--#{$prefix}secondary);
|
|
54
54
|
|
|
55
55
|
// Time variables
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
|
|
62
62
|
--#{$prefix}datepicker-time-input-padding: var(--#{$prefix}ref-spacer-4);
|
|
63
63
|
--#{$prefix}datepicker-time-input-gap: var(--#{$prefix}ref-spacer-2);
|
|
64
|
-
--#{$prefix}datepicker-time-input-label-weight: var(--#{$prefix}
|
|
64
|
+
--#{$prefix}datepicker-time-input-label-weight: var(--#{$prefix}fw-bold);
|
|
65
65
|
--#{$prefix}datepicker-time-input-label-color: var(--#{$prefix}gray-700);
|
|
66
|
-
--#{$prefix}datepicker-time-input-label-size: var(--#{$prefix}
|
|
66
|
+
--#{$prefix}datepicker-time-input-label-size: var(--#{$prefix}fs-small);
|
|
67
67
|
|
|
68
68
|
font-family: var(--#{$prefix}datepicker-font-family);
|
|
69
69
|
font-size: var(--#{$prefix}datepicker-font-size);
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
.d-datepicker-header {
|
|
242
|
-
font-size: var(--#{$prefix}
|
|
242
|
+
font-size: var(--#{$prefix}fs-6);
|
|
243
243
|
}
|
|
244
244
|
}
|
|
245
245
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.react-datepicker.d-month-picker {
|
|
4
4
|
// Month variables
|
|
5
5
|
--#{$prefix}monthpicker-header-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-2) 0;
|
|
6
|
-
--#{$prefix}monthpicker-font-weight: var(--#{$prefix}
|
|
6
|
+
--#{$prefix}monthpicker-font-weight: var(--#{$prefix}fw-normal);
|
|
7
7
|
--#{$prefix}monthpicker-header-color: var(--#{$prefix}white);
|
|
8
8
|
--#{$prefix}monthpicker-header-bg: var(--#{$prefix}dark);
|
|
9
9
|
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
--#{$prefix}monthpicker-month-hover-bg: var(--#{$prefix}gray-700);
|
|
20
20
|
|
|
21
21
|
--#{$prefix}monthpicker-month-wrapper-gap: var(--#{$prefix}ref-spacer-2);
|
|
22
|
-
--#{$prefix}monthpicker-month-wrapper-font-size: var(--#{$prefix}
|
|
22
|
+
--#{$prefix}monthpicker-month-wrapper-font-size: var(--#{$prefix}fs-small);
|
|
23
23
|
|
|
24
24
|
--#{$prefix}monthpicker-single-month-width: 46px;
|
|
25
25
|
--#{$prefix}monthpicker-single-month-padding: var(--#{$prefix}ref-spacer-2);
|
|
26
26
|
--#{$prefix}monthpicker-single-month-margin: 0;
|
|
27
27
|
--#{$prefix}monthpicker-single-month-text-transform: capitalize;
|
|
28
28
|
--#{$prefix}monthpicker-single-month-radius: var(--#{$prefix}ref-spacer-6);
|
|
29
|
-
--#{$prefix}monthpicker-single-month-line-height: var(--#{$prefix}
|
|
29
|
+
--#{$prefix}monthpicker-single-month-line-height: var(--#{$prefix}fs-6);
|
|
30
30
|
|
|
31
31
|
--#{$prefix}monthpicker-single-month-after-display: inline;
|
|
32
32
|
--#{$prefix}monthpicker-single-month-after-content: ".";
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
.btn-sm {
|
|
47
47
|
--#{$prefix}btn-padding-x: 0;
|
|
48
48
|
--#{$prefix}btn-padding-y: 0;
|
|
49
|
-
--#{$prefix}btn-font-size: var(--#{$prefix}
|
|
49
|
+
--#{$prefix}btn-font-size: var(--#{$prefix}fs-5);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
|
|
26
26
|
--#{$prefix}quick-action-button-action-icon-color: #{$quick-action-button-action-icon-color};
|
|
27
27
|
--#{$prefix}quick-action-button-action-icon-size: #{$quick-action-button-action-icon-size};
|
|
28
|
+
--#{$prefix}quick-action-button-action-link-padding-x: var(--#{$prefix}ref-spacer-3);
|
|
29
|
+
--#{$prefix}quick-action-button-action-link-padding-y: var(--#{$prefix}ref-spacer-2);
|
|
28
30
|
|
|
29
31
|
--#{$prefix}quick-action-button-hover-bg: #{$quick-action-button-hover-bg};
|
|
30
32
|
--#{$prefix}quick-action-button-hover-border-color: #{$quick-action-button-hover-border-color};
|
|
@@ -85,6 +87,12 @@
|
|
|
85
87
|
flex-grow: 1;
|
|
86
88
|
}
|
|
87
89
|
|
|
90
|
+
.d-quick-action-button-action-link,
|
|
91
|
+
.d-quick-action-button-secondary-action-link {
|
|
92
|
+
--#{$prefix}btn-padding-x: var(--#{$prefix}quick-action-button-action-link-padding-x);
|
|
93
|
+
--#{$prefix}btn-padding-y: var(--#{$prefix}quick-action-button-action-link-padding-y);
|
|
94
|
+
}
|
|
95
|
+
|
|
88
96
|
.d-quick-action-button-line1 {
|
|
89
97
|
font-size: var(--#{$prefix}quick-action-button-line1-font-size);
|
|
90
98
|
font-weight: var(--#{$prefix}quick-action-button-line1-font-weight);
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
gap: var(--#{$prefix}quick-action-switch-content-gap);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
font-size: var(--#{$prefix}quick-action-switch-label-font-size);
|
|
58
|
-
font-weight: var(--#{$prefix}quick-action-switch-label-font-weight);
|
|
59
|
-
color: var(--#{$prefix}quick-action-switch-label-color);
|
|
56
|
+
label {
|
|
57
|
+
--#{$prefix}label-font-size: var(--#{$prefix}quick-action-switch-label-font-size);
|
|
58
|
+
--#{$prefix}label-font-weight: var(--#{$prefix}quick-action-switch-label-font-weight);
|
|
59
|
+
--#{$prefix}label-color: var(--#{$prefix}quick-action-switch-label-color);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.d-quick-action-switch-hint {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
--#{$prefix}select-option-selected-color: var(--#{$prefix}secondary);
|
|
10
10
|
--#{$prefix}select-option-selected-bg: var(--#{$prefix}gray-100);
|
|
11
11
|
--#{$prefix}select-option-is-checkbox-font-size: var(--#{$prefix}body-font-size);
|
|
12
|
-
--#{$prefix}select-option-is-checkbox-font-weight: var(--#{$prefix}
|
|
12
|
+
--#{$prefix}select-option-is-checkbox-font-weight: var(--#{$prefix}fw-normal);
|
|
13
13
|
--#{$prefix}select-option-is-checkbox-color: var(--#{$prefix}gray-900);
|
|
14
14
|
--#{$prefix}select-option-has-icon-icon-size: var(--#{$prefix}ref-spacer-4);
|
|
15
15
|
--#{$prefix}select-multi-value-padding-x: var(--#{$prefix}select-gap);
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
/* Current step */
|
|
17
17
|
--#{$prefix}step-current-step-z-index: 3;
|
|
18
|
-
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}
|
|
18
|
+
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}fw-bold);
|
|
19
19
|
--#{$prefix}step-current-step-color: var(--#{$prefix}gray-700);
|
|
20
20
|
|
|
21
21
|
/* Info circle */
|
|
22
22
|
--#{$prefix}step-info-max-width: 12rem;
|
|
23
|
-
--#{$prefix}step-info-label-font-size: var(--#{$prefix}
|
|
24
|
-
--#{$prefix}step-info-description-font-size: var(--#{$prefix}
|
|
23
|
+
--#{$prefix}step-info-label-font-size: var(--#{$prefix}fs-6);
|
|
24
|
+
--#{$prefix}step-info-description-font-size: var(--#{$prefix}fs-small);
|
|
25
25
|
--#{$prefix}step-info-description-color: var(--#{$prefix}gray-500);
|
|
26
26
|
|
|
27
27
|
display: flex;
|
|
@@ -31,10 +31,6 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
|
35
|
-
--#{$prefix}btn-lg-border-radius: #{$btn-border-radius-lg};
|
|
36
|
-
--#{$prefix}btn-sm-border-radius: #{$btn-border-radius-sm};
|
|
37
|
-
|
|
38
34
|
@each $color, $value in $colors {
|
|
39
35
|
// custom
|
|
40
36
|
--#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
|
|
@@ -173,32 +169,113 @@
|
|
|
173
169
|
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
|
|
174
170
|
// scss-docs-end root-form-validation-variables
|
|
175
171
|
|
|
176
|
-
|
|
172
|
+
--#{$prefix}heading-line-height: #{$headings-line-height-value};
|
|
177
173
|
|
|
178
|
-
@each $level, $value in $
|
|
179
|
-
--#{$prefix}
|
|
174
|
+
@each $level, $value in $display-font-size-values {
|
|
175
|
+
@include rfs($value, --#{$prefix}rfs-display-#{$level});
|
|
176
|
+
--#{$prefix}fs-display-#{$level}: var(--#{$prefix}rfs-display-#{$level});
|
|
180
177
|
}
|
|
181
178
|
|
|
182
|
-
@each $level, $value in $
|
|
183
|
-
--#{$prefix}
|
|
184
|
-
|
|
185
|
-
@each $level, $value in $font-sizes {
|
|
186
|
-
--#{$prefix}ref-fs-#{$level}: #{$value};
|
|
179
|
+
@each $level, $value in $font-size-values {
|
|
180
|
+
@include rfs($value, --#{$prefix}rfs-fs-#{$level});
|
|
181
|
+
--#{$prefix}fs-#{$level}: var(--#{$prefix}rfs-fs-#{$level});
|
|
187
182
|
}
|
|
188
|
-
--#{$prefix}
|
|
183
|
+
@include rfs($small-font-size-value, --#{$prefix}rfs-fs-small);
|
|
184
|
+
--#{$prefix}fs-small: var(--#{$prefix}rfs-fs-small);
|
|
189
185
|
|
|
190
|
-
--#{$prefix}
|
|
191
|
-
--#{$prefix}
|
|
192
|
-
--#{$prefix}
|
|
193
|
-
--#{$prefix}
|
|
194
|
-
--#{$prefix}
|
|
195
|
-
--#{$prefix}
|
|
186
|
+
--#{$prefix}fw-lighter: #{$font-weight-lighter-value};
|
|
187
|
+
--#{$prefix}fw-light: #{$font-weight-light-value};
|
|
188
|
+
--#{$prefix}fw-normal: #{$font-weight-normal-value};
|
|
189
|
+
--#{$prefix}fw-semibold: #{$font-weight-semibold-value};
|
|
190
|
+
--#{$prefix}fw-bold: #{$font-weight-bold-value};
|
|
191
|
+
--#{$prefix}fw-bolder: #{$font-weight-bolder-value};
|
|
196
192
|
|
|
197
193
|
--#{$prefix}label-padding-y: var(--#{$prefix}ref-spacer-0);
|
|
198
194
|
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-2);
|
|
199
|
-
--#{$prefix}label-font-size: var(--#{$prefix}
|
|
200
|
-
--#{$prefix}label-font-weight: var(--#{$prefix}
|
|
195
|
+
--#{$prefix}label-font-size: var(--#{$prefix}fs-small);
|
|
196
|
+
--#{$prefix}label-font-weight: var(--#{$prefix}fw-bold);
|
|
201
197
|
--#{$prefix}label-color: var(--#{$prefix}gray);
|
|
198
|
+
|
|
199
|
+
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
|
200
|
+
--#{$prefix}btn-lg-border-radius: #{$btn-border-radius-lg};
|
|
201
|
+
--#{$prefix}btn-sm-border-radius: #{$btn-border-radius-sm};
|
|
202
|
+
|
|
203
|
+
@each $color, $value in $theme-colors {
|
|
204
|
+
@if $color == "light" {
|
|
205
|
+
@include df-button-variant-variables(
|
|
206
|
+
"light",
|
|
207
|
+
$default-color: var(--#{$prefix}light),
|
|
208
|
+
$hover-color: var(--#{$prefix}gray-200),
|
|
209
|
+
$focus-color: var(--#{$prefix}light),
|
|
210
|
+
$active-color: var(--#{$prefix}gray-300),
|
|
211
|
+
$default-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
212
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
213
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
214
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-300)),
|
|
215
|
+
$disabled-opacity: .5
|
|
216
|
+
);
|
|
217
|
+
@include df-button-outline-variant-variables(
|
|
218
|
+
"light",
|
|
219
|
+
$default-color: var(--#{$prefix}light),
|
|
220
|
+
$hover-bg-color: var(--#{$prefix}light),
|
|
221
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
222
|
+
$focus-text-color: var(--#{$prefix}light),
|
|
223
|
+
$active-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
224
|
+
$active-bg-color: var(--#{$prefix}gray-300),
|
|
225
|
+
$active-border-color: var(--#{$prefix}gray-300)
|
|
226
|
+
);
|
|
227
|
+
@include df-button-link-variant-variables(
|
|
228
|
+
"light",
|
|
229
|
+
$default-color: var(--#{$prefix}light),
|
|
230
|
+
$hover-bg-color: var(--#{$prefix}light),
|
|
231
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
232
|
+
$focus-text-color: var(--#{$prefix}light),
|
|
233
|
+
$active-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
234
|
+
$active-bg-color: var(--#{$prefix}gray-300)
|
|
235
|
+
);
|
|
236
|
+
} @else if $color == "dark" {
|
|
237
|
+
@include df-button-variant-variables(
|
|
238
|
+
"dark",
|
|
239
|
+
$default-color: var(--#{$prefix}dark),
|
|
240
|
+
$hover-color: var(--#{$prefix}gray-800),
|
|
241
|
+
$focus-color: var(--#{$prefix}dark),
|
|
242
|
+
$active-color: var(--#{$prefix}gray-700),
|
|
243
|
+
$default-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
244
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
245
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
246
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-700)),
|
|
247
|
+
$disabled-opacity: .5
|
|
248
|
+
);
|
|
249
|
+
@include df-button-outline-variant-variables(
|
|
250
|
+
"dark",
|
|
251
|
+
$default-color: var(--#{$prefix}dark),
|
|
252
|
+
$hover-bg-color: var(--#{$prefix}dark),
|
|
253
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
254
|
+
$focus-text-color: var(--#{$prefix}dark),
|
|
255
|
+
$active-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
256
|
+
$active-bg-color: var(--#{$prefix}gray-700),
|
|
257
|
+
$active-border-color: var(--#{$prefix}gray-700)
|
|
258
|
+
);
|
|
259
|
+
@include df-button-link-variant-variables(
|
|
260
|
+
"dark",
|
|
261
|
+
$default-color: var(--#{$prefix}dark),
|
|
262
|
+
$hover-bg-color: var(--#{$prefix}dark),
|
|
263
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
264
|
+
$focus-text-color: var(--#{$prefix}dark),
|
|
265
|
+
$active-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
266
|
+
$active-bg-color: var(--#{$prefix}gray-700)
|
|
267
|
+
);
|
|
268
|
+
} @else {
|
|
269
|
+
@include df-button-variant-variables($color);
|
|
270
|
+
@include df-button-outline-variant-variables($color);
|
|
271
|
+
@include df-button-link-variant-variables($color);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// only reference root variables
|
|
276
|
+
@each $level, $value in $spacers {
|
|
277
|
+
--#{$prefix}ref-spacer-#{$level}: #{$value};
|
|
278
|
+
}
|
|
202
279
|
}
|
|
203
280
|
|
|
204
281
|
@if $enable-dark-mode {
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren, FC } from 'react';
|
|
2
|
-
type ModalComponent<P = any> = FC<ModalProps<P>>;
|
|
3
|
-
type ModalAvailableList<T extends Record<string, unknown>> = {
|
|
4
|
-
[K in keyof T]: ModalComponent<T[K]>;
|
|
5
|
-
};
|
|
6
|
-
type Props<T extends Record<string, unknown>> = PropsWithChildren<{
|
|
7
|
-
portalName: string;
|
|
8
|
-
availableModals: ModalAvailableList<T>;
|
|
9
|
-
}>;
|
|
10
|
-
type ModalStackItem<N extends string = string, P = any> = {
|
|
11
|
-
modalName: N;
|
|
12
|
-
Component: ModalComponent<P>;
|
|
13
|
-
payload: P;
|
|
14
|
-
};
|
|
15
|
-
type OpenModalFunction<P = unknown> = (name: string, payload: P) => void;
|
|
16
|
-
type CloseModalFunction = () => void;
|
|
17
|
-
type ModalContextType<T extends Record<string, unknown>> = {
|
|
18
|
-
stack: ModalStackItem<string, T[keyof T]>[];
|
|
19
|
-
openModal: OpenModalFunction<T[keyof T]>;
|
|
20
|
-
closeModal: CloseModalFunction;
|
|
21
|
-
};
|
|
22
|
-
export type ModalProps<P = unknown> = {
|
|
23
|
-
name: string;
|
|
24
|
-
payload: P;
|
|
25
|
-
openModal: OpenModalFunction<P>;
|
|
26
|
-
closeModal: CloseModalFunction;
|
|
27
|
-
};
|
|
28
|
-
export declare const DModalContext: import("react").Context<ModalContextType<any> | undefined>;
|
|
29
|
-
export declare function DModalContextProvider<T extends Record<string, unknown>>({ portalName, children, availableModals, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare function useDModalContext<T extends Record<string, unknown>>(): ModalContextType<T>;
|
|
31
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren, FC } from 'react';
|
|
2
|
-
type OffcanvasComponent<P = any> = FC<OffcanvasProps<P>>;
|
|
3
|
-
type OffcanvasAvailableList<T extends Record<string, unknown>> = {
|
|
4
|
-
[K in keyof T]: OffcanvasComponent<T[K]>;
|
|
5
|
-
};
|
|
6
|
-
type Props<T extends Record<string, unknown>> = PropsWithChildren<{
|
|
7
|
-
portalName: string;
|
|
8
|
-
availableOffcanvas: OffcanvasAvailableList<T>;
|
|
9
|
-
}>;
|
|
10
|
-
type OffcanvasStackItem<N extends string = string, P = any> = {
|
|
11
|
-
offcanvasName: N;
|
|
12
|
-
Component: OffcanvasComponent<P>;
|
|
13
|
-
payload: P;
|
|
14
|
-
};
|
|
15
|
-
type OpenOffcanvasFunction<P = unknown> = (name: string, payload: P) => void;
|
|
16
|
-
type CloseOffcanvasFunction = () => void;
|
|
17
|
-
type OffcanvasContextType<T extends Record<string, unknown>> = {
|
|
18
|
-
stack: OffcanvasStackItem<string, T[keyof T]>[];
|
|
19
|
-
openOffcanvas: OpenOffcanvasFunction<T[keyof T]>;
|
|
20
|
-
closeOffcanvas: CloseOffcanvasFunction;
|
|
21
|
-
};
|
|
22
|
-
export type OffcanvasProps<P = any> = {
|
|
23
|
-
name: string;
|
|
24
|
-
payload: P;
|
|
25
|
-
openOffcanvas: OpenOffcanvasFunction<P>;
|
|
26
|
-
closeOffcanvas: CloseOffcanvasFunction;
|
|
27
|
-
};
|
|
28
|
-
export declare const DOffcanvasContext: import("react").Context<OffcanvasContextType<any> | undefined>;
|
|
29
|
-
export declare function DOffcanvasContextProvider<T extends Record<string, unknown>>({ portalName, children, availableOffcanvas, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare function useDOffcanvasContext<T extends Record<string, unknown>>(): OffcanvasContextType<T>;
|
|
31
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.d-tooltip {
|
|
2
|
-
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-component-font-size, var(--#{$prefix}body-font-size));
|
|
3
|
-
--#{$prefix}tooltip-sm-font-size: var(--#{$prefix}ref-fs-small);
|
|
4
|
-
--#{$prefix}tooltip-lg-font-size: var(--#{$prefix}ref-fs-6);
|
|
5
|
-
--#{$prefix}tooltip-bg: var(--#{$prefix}tooltip-component-bg, transparent);
|
|
6
|
-
--#{$prefix}tooltip-border-radius: var(--#{$prefix}tooltip-component-border-radius, var(--#{$prefix}border-radius));
|
|
7
|
-
--#{$prefix}tooltip-color: var(--#{$prefix}tooltip-component-color, var(--#{$prefix}body-color));
|
|
8
|
-
--#{$prefix}tooltip-padding: var(--#{$prefix}tooltip-component-padding, var(--#{$prefix}ref-spacer-2));
|
|
9
|
-
--#{$prefix}tooltip-max-width: var(--#{$prefix}tooltip-component-max-width, 300px);
|
|
10
|
-
max-width: var(--#{$prefix}tooltip-max-width);
|
|
11
|
-
padding: var(--#{$prefix}tooltip-padding);
|
|
12
|
-
|
|
13
|
-
font-size: var(--#{$prefix}tooltip-font-size);
|
|
14
|
-
color: var(--#{$prefix}tooltip-color);
|
|
15
|
-
background: var(--#{$prefix}tooltip-bg);
|
|
16
|
-
border-radius: var(--#{$prefix}tooltip-border-radius);
|
|
17
|
-
fill: var(--#{$prefix}tooltip-bg);
|
|
18
|
-
|
|
19
|
-
&.d-tooltip-sm {
|
|
20
|
-
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-sm-font-size);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.d-tooltip-lg {
|
|
24
|
-
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-lg-font-size);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@each $theme, $value in $theme-colors {
|
|
28
|
-
$color: color-contrast-var($value);
|
|
29
|
-
|
|
30
|
-
&.d-tooltip-#{$theme} {
|
|
31
|
-
--#{$prefix}tooltip-color: var(--#{$prefix}tooltip-component-color, #{$color});
|
|
32
|
-
--#{$prefix}tooltip-bg: var(--#{$prefix}tooltip-component-bg, var(--#{$prefix}#{$theme}));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|