@dynamic-framework/ui-react 1.30.1 → 1.32.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 +353 -150
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +10 -6
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +362 -155
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +197 -48
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +201 -48
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAvatar/DAvatar.d.ts +5 -2
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +7 -3
- package/dist/types/components/DInput/DInput.d.ts +2 -2
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +1 -1
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +1 -1
- package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
- package/dist/types/components/DInputPin/DInputPin.d.ts +3 -3
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +1 -1
- package/dist/types/components/DInputSelect/DInputSelect.d.ts +3 -3
- package/dist/types/components/DList/DList.d.ts +3 -0
- package/dist/types/components/DList/components/DListItem.d.ts +3 -0
- package/dist/types/components/DListGroup/DListGroup.d.ts +14 -0
- package/dist/types/components/DListGroup/components/DListGroupItem.d.ts +13 -0
- package/dist/types/components/DListGroup/index.d.ts +3 -0
- package/dist/types/components/DModal/components/DModalFooter.d.ts +1 -1
- package/dist/types/components/DOffcanvas/components/DOffcanvasFooter.d.ts +3 -3
- package/dist/types/components/DPaginator/DPaginator.d.ts +25 -8
- package/dist/types/components/DPopover/DPopover.d.ts +3 -0
- package/dist/types/components/DQuickActionButton/DQuickActionButton.d.ts +3 -0
- package/dist/types/components/DQuickActionCheck/DQuickActionCheck.d.ts +3 -0
- package/dist/types/components/DQuickActionSwitch/DQuickActionSwitch.d.ts +3 -0
- package/dist/types/components/DSelect/DSelect.d.ts +3 -3
- package/dist/types/components/DStepperDesktop/DStepperDesktop.d.ts +3 -1
- package/dist/types/components/DTabs/DTabs.d.ts +1 -1
- package/dist/types/components/index.d.ts +5 -2
- package/dist/types/components/interface.d.ts +0 -4
- package/dist/types/contexts/index.d.ts +2 -1
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useItemSelection.d.ts +16 -0
- package/dist/types/utils/changeQueryString.d.ts +4 -0
- package/dist/types/utils/getQueryString.d.ts +4 -0
- package/dist/types/utils/index.d.ts +3 -1
- package/package.json +21 -17
- package/src/style/abstracts/variables/_+import.scss +0 -1
- package/src/style/abstracts/variables/_forms.scss +6 -5
- package/src/style/abstracts/variables/_list-group.scss +3 -3
- package/src/style/abstracts/variables/_navs.scss +14 -17
- package/src/style/abstracts/variables/_options.scss +1 -1
- package/src/style/abstracts/variables/_tooltip.scss +4 -4
- package/src/style/base/_+import.scss +2 -1
- package/src/style/base/_alert.scss +20 -0
- package/src/style/base/_form-check.scss +6 -2
- package/src/style/base/_input-group.scss +4 -1
- package/src/style/base/_label.scss +1 -0
- package/src/style/base/_nav.scss +72 -0
- package/src/style/base/_pagination.scss +7 -5
- package/src/style/base/_placeholder.scss +3 -0
- package/src/style/components/_+import.scss +1 -1
- package/src/style/components/_d-avatar.scss +85 -0
- package/src/style/components/_d-input-pin.scss +11 -5
- package/src/style/components/_d-select.scss +15 -6
- package/src/style/components/_d-stepper-desktop.scss +25 -5
- package/src/style/components/_d-stepper-mobile.scss +6 -6
- package/src/style/root/_root.scss +9 -1
- package/src/style/abstracts/variables/_box-shadow.scss +0 -6
- package/src/style/base/_avatar.scss +0 -61
- package/src/style/components/_d-tabs.scss +0 -44
- /package/dist/types/utils/{format-currency.d.ts → formatCurrency.d.ts} +0 -0
|
@@ -14,14 +14,14 @@ $list-group-item-bg-scale: 0% !default;
|
|
|
14
14
|
$list-group-item-color-scale: 40% !default;
|
|
15
15
|
// fusv-enable
|
|
16
16
|
|
|
17
|
-
$list-group-hover-bg: var(--#{$prefix}
|
|
17
|
+
$list-group-hover-bg: var(--#{$prefix}surface-primary) !default;
|
|
18
18
|
|
|
19
19
|
$list-group-disabled-color: var(--#{$prefix}gray-600) !default;
|
|
20
20
|
|
|
21
|
-
$list-group-action-color: var(--#{$prefix}gray-
|
|
21
|
+
$list-group-action-color: var(--#{$prefix}gray-900) !default;
|
|
22
22
|
$list-group-action-hover-color: $list-group-action-color !default;
|
|
23
23
|
|
|
24
|
-
$list-group-action-active-bg: var(--#{$prefix}
|
|
24
|
+
$list-group-action-active-bg: var(--#{$prefix}primary-100) !default;
|
|
25
25
|
|
|
26
26
|
// custom
|
|
27
27
|
$list-group-item-border-radius: 0 !default;
|
|
@@ -1,35 +1,32 @@
|
|
|
1
1
|
// Navs
|
|
2
2
|
|
|
3
3
|
// scss-docs-start nav-variables
|
|
4
|
+
$nav-link-padding-y: $spacer-2 !default;
|
|
5
|
+
$nav-link-padding-x: $spacer-4 !default;
|
|
4
6
|
$nav-link-font-size: var(--#{$prefix}body-font-size) !default;
|
|
5
7
|
$nav-link-font-weight: var(--#{$prefix}fw-normal) !default;
|
|
6
|
-
$nav-link-color: var(--#{$prefix}gray-
|
|
7
|
-
$nav-link-hover-color: var(--#{$prefix}
|
|
8
|
-
$nav-link-
|
|
8
|
+
$nav-link-color: var(--#{$prefix}gray-900) !default;
|
|
9
|
+
$nav-link-hover-color: var(--#{$prefix}primary-600) !default;
|
|
10
|
+
$nav-link-hover-bg: var(--#{$prefix}surface-primary) !default;
|
|
11
|
+
$nav-link-disabled-color: var(--#{$prefix}gray-300) !default;
|
|
9
12
|
|
|
10
13
|
// custom
|
|
11
|
-
$nav-link-border-height: 2px !default;
|
|
12
|
-
$nav-link-line-height: var(--#{$prefix}ref-spacer-6) !default;
|
|
13
|
-
$nav-link-border-border-radius: $border-radius-pill !default;
|
|
14
|
-
$nav-link-border-active-color: var(--#{$prefix}secondary) !default;
|
|
15
14
|
$nav-link-border-active-font-weight: var(--#{$prefix}fw-bold) !default;
|
|
16
|
-
$nav-link-border-active-bg: var(--#{$prefix}secondary) !default;
|
|
17
15
|
// end custom
|
|
18
16
|
|
|
19
17
|
$nav-tabs-border-radius: var(--#{$prefix}border-radius-sm) !default;
|
|
20
|
-
$nav-tabs-link-active-color: var(--#{$prefix}
|
|
21
|
-
$nav-tabs-link-active-bg: var(--#{$prefix}
|
|
22
|
-
$nav-tabs-link-active-border-color: var(--#{$prefix}
|
|
18
|
+
$nav-tabs-link-active-color: var(--#{$prefix}primary) !default;
|
|
19
|
+
$nav-tabs-link-active-bg: var(--#{$prefix}white) !default;
|
|
20
|
+
$nav-tabs-link-active-border-color: var(--#{$prefix}gray-300) !default;
|
|
21
|
+
$nav-tabs-border-color: var(--#{$prefix}gray-300) !default;
|
|
23
22
|
|
|
24
23
|
// custom
|
|
25
|
-
$nav-nav-
|
|
26
|
-
$nav-nav-padding-y: var(--#{$prefix}ref-spacer-4) !default;
|
|
27
|
-
$nav-nav-gap: var(--#{$prefix}ref-spacer-6) !default;
|
|
24
|
+
$nav-nav-gap: var(--#{$prefix}ref-spacer-0) !default;
|
|
28
25
|
// end custom
|
|
29
26
|
|
|
30
|
-
$nav-pills-border-radius:
|
|
27
|
+
$nav-pills-border-radius: var(--#{$prefix}border-radius-sm) !default;
|
|
31
28
|
$nav-pills-link-active-color: var(--#{$prefix}white) !default;
|
|
32
|
-
$nav-pills-link-active-bg: var(--#{$prefix}
|
|
29
|
+
$nav-pills-link-active-bg: var(--#{$prefix}primary) !default;
|
|
33
30
|
// scss-docs-end nav-variables
|
|
34
31
|
|
|
35
|
-
$nav-underline-link-active-color: var(--#{$prefix}
|
|
32
|
+
$nav-underline-link-active-color: var(--#{$prefix}primary) !default;
|
|
@@ -15,7 +15,7 @@ $enable-container-classes: true !default;
|
|
|
15
15
|
$enable-cssgrid: true !default;
|
|
16
16
|
$enable-button-pointers: true !default;
|
|
17
17
|
$enable-rfs: true !default;
|
|
18
|
-
$enable-validation-icons:
|
|
18
|
+
$enable-validation-icons: true !default;
|
|
19
19
|
$enable-negative-margins: false !default;
|
|
20
20
|
$enable-deprecation-messages: true !default;
|
|
21
21
|
$enable-important-utilities: true !default;
|
|
@@ -5,12 +5,12 @@ $tooltip-color: var(--#{$prefix}body-bg) !default;
|
|
|
5
5
|
$tooltip-bg: var(--#{$prefix}emphasis-color) !default;
|
|
6
6
|
$tooltip-border-radius: var(--#{$prefix}ref-spacer-1) !default;
|
|
7
7
|
$tooltip-opacity: 1 !default;
|
|
8
|
-
$tooltip-padding-y: var(--#{$prefix}ref-spacer-
|
|
9
|
-
$tooltip-padding-x: var(--#{$prefix}ref-spacer-
|
|
8
|
+
$tooltip-padding-y: var(--#{$prefix}ref-spacer-2) !default;
|
|
9
|
+
$tooltip-padding-x: var(--#{$prefix}ref-spacer-1) !default;
|
|
10
10
|
|
|
11
11
|
// custom
|
|
12
|
-
$tooltip-font-size-sm: var(--#{$prefix}fs-small) !default;
|
|
13
|
-
$tooltip-font-size-lg: var(--#{$prefix}fs-
|
|
12
|
+
$tooltip-font-size-sm: var(--#{$prefix}fs-body-small) !default;
|
|
13
|
+
$tooltip-font-size-lg: var(--#{$prefix}fs-body-medium) !default;
|
|
14
14
|
// end custom
|
|
15
15
|
|
|
16
16
|
// scss-docs-end tooltip-variables
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
.alert-icon {
|
|
16
16
|
--#{$prefix}icon-size: var(--#{$prefix}alert-icon-size);
|
|
17
17
|
--#{$prefix}icon-color: var(--#{$prefix}alert-icon-color);
|
|
18
|
+
|
|
19
|
+
&:not(.d-icon) {
|
|
20
|
+
color: var(--#{$prefix}icon-color);
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
@each $theme, $value in map-remove($theme-colors, "light", "dark") {
|
|
@@ -26,4 +30,20 @@
|
|
|
26
30
|
--#{$prefix}alert-border-color: var(--#{$prefix}surface-#{$theme});
|
|
27
31
|
}
|
|
28
32
|
}
|
|
33
|
+
|
|
34
|
+
&.alert-light {
|
|
35
|
+
--#{$prefix}alert-icon-color: var(--#{$prefix}gray-500);
|
|
36
|
+
--#{$prefix}alert-color: var(--#{$prefix}body-color);
|
|
37
|
+
|
|
38
|
+
--#{$prefix}alert-bg: var(--#{$prefix}surface-gray);
|
|
39
|
+
--#{$prefix}alert-border-color: var(--#{$prefix}surface-gray);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&.alert-dark {
|
|
43
|
+
--#{$prefix}alert-icon-color: var(--#{$prefix}light);
|
|
44
|
+
--#{$prefix}alert-color: var(--#{$prefix}white);
|
|
45
|
+
|
|
46
|
+
--#{$prefix}alert-bg: var(--#{$prefix}gray-500);
|
|
47
|
+
--#{$prefix}alert-border-color: var(--#{$prefix}gray-500);
|
|
48
|
+
}
|
|
29
49
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
.form-check-label {
|
|
2
|
+
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-2);
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.form-check-input {
|
|
2
|
-
|
|
3
|
-
|
|
6
|
+
--#{$prefix}form-check-input-focus-border-color: #{$component-focus-border-color};
|
|
7
|
+
--#{$prefix}form-check-input-focus-box-shadow: #{$input-btn-focus-box-shadow};
|
|
4
8
|
}
|
|
@@ -5,6 +5,7 @@ label {
|
|
|
5
5
|
gap: var(--#{$prefix}ref-spacer-1);
|
|
6
6
|
align-items: center;
|
|
7
7
|
padding: var(--#{$prefix}label-padding-y) var(--#{$prefix}label-padding-x);
|
|
8
|
+
margin-bottom: var(--#{$prefix}label-margin-bottom);
|
|
8
9
|
font-size: var(--#{$prefix}label-font-size);
|
|
9
10
|
font-weight: var(--#{$prefix}label-font-weight);
|
|
10
11
|
color: var(--#{$prefix}label-color);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
.nav-pills,
|
|
2
|
+
.nav-tabs,
|
|
3
|
+
.nav-underline {
|
|
4
|
+
--#{$prefix}nav-tabs-border-color: #{$nav-tabs-border-color};
|
|
5
|
+
--#{$prefix}nav-tabs-nav-gap: #{$nav-nav-gap};
|
|
6
|
+
--#{$prefix}nav-link-padding-x: #{$nav-link-padding-x};
|
|
7
|
+
--#{$prefix}nav-link-padding-y: #{$nav-link-padding-y};
|
|
8
|
+
--#{$prefix}nav-tabs-link-border-active-font-weight: #{$nav-link-border-active-font-weight};
|
|
9
|
+
--#{$prefix}nav-link-hover-bg: #{$nav-link-hover-bg};
|
|
10
|
+
--#{$prefix}nav-link-hover-color: #{$nav-link-hover-color};
|
|
11
|
+
|
|
12
|
+
.nav-link {
|
|
13
|
+
&:hover {
|
|
14
|
+
background-color: var(--#{$prefix}nav-link-hover-bg);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.nav-pills,
|
|
20
|
+
.nav-underline {
|
|
21
|
+
gap: var(--#{$prefix}nav-tabs-nav-gap);
|
|
22
|
+
padding: var(--#{$prefix}nav-link-padding-y) var(--#{$prefix}nav-link-padding-x);
|
|
23
|
+
|
|
24
|
+
&.flex-column {
|
|
25
|
+
flex: 1 0 auto;
|
|
26
|
+
|
|
27
|
+
.nav-link {
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.nav-pills {
|
|
34
|
+
.nav-link.active {
|
|
35
|
+
&:hover {
|
|
36
|
+
color: var(--#{$prefix}nav-link-hover-color);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.nav-underline {
|
|
42
|
+
&.flex-column {
|
|
43
|
+
.nav-link {
|
|
44
|
+
border-right: 1px solid var(--#{$prefix}nav-tabs-border-color);
|
|
45
|
+
border-bottom-color: transparent;
|
|
46
|
+
}
|
|
47
|
+
.nav-link.active{
|
|
48
|
+
background-color: var(--#{$prefix}nav-link-hover-bg);
|
|
49
|
+
border-right: 1px solid currentcolor;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.nav-link {
|
|
53
|
+
padding: var(--#{$prefix}nav-link-padding-y) var(--#{$prefix}nav-link-padding-x);
|
|
54
|
+
border-bottom: 1px solid var(--#{$prefix}gray-300);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.nav-tabs {
|
|
59
|
+
.nav-link {
|
|
60
|
+
&.active {
|
|
61
|
+
border-bottom-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
&:not(.active):is(:hover, :focus) {
|
|
64
|
+
border-color: transparent;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.nav-link:focus-visible {
|
|
70
|
+
--#{$prefix}focus-ring-opacity: .25;
|
|
71
|
+
--#{$prefix}focus-ring-color: rgba(var(--#{$prefix}secondary-rgb), var(--#{$prefix}focus-ring-opacity));
|
|
72
|
+
}
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
min-height: var(--#{$prefix}pagination-page-item-size);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
.page-item-arrow {
|
|
14
|
+
&:is(.page-item:first-child, .page-item:last-child):not(.disabled) .page-link {
|
|
15
|
+
color: var(--#{$prefix}pagination-page-control-color);
|
|
16
|
+
}
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
&:is(.page-item:first-child, .page-item:last-child).disabled .page-link {
|
|
19
|
+
color: var(--#{$prefix}pagination-page-control-disabled-color);
|
|
20
|
+
}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
.page-link {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "d-avatar";
|
|
1
2
|
@import "d-icon";
|
|
2
3
|
@import "d-input-pin";
|
|
3
4
|
@import "d-button-icon";
|
|
@@ -11,7 +12,6 @@
|
|
|
11
12
|
@import "d-collapse-icon-text";
|
|
12
13
|
@import "d-datepicker";
|
|
13
14
|
@import "d-timepicker";
|
|
14
|
-
@import "d-tabs";
|
|
15
15
|
@import "d-close";
|
|
16
16
|
@import "d-popover";
|
|
17
17
|
@import "d-box-file";
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.d-avatar {
|
|
2
|
+
--#{$prefix}avatar-border: 1px solid var(--#{$prefix}avatar-bg);
|
|
3
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-12);
|
|
4
|
+
--#{$prefix}avatar-bg: var(--#{$prefix}secondary-100);
|
|
5
|
+
--#{$prefix}avatar-color: var(--#{$prefix}secondary-500);
|
|
6
|
+
--#{$prefix}avatar-font-weight: var(--#{$prefix}fw-bold);
|
|
7
|
+
--#{$prefix}avatar-border-radius: var(--#{$prefix}border-radius-pill);
|
|
8
|
+
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
width: var(--#{$prefix}avatar-size);
|
|
12
|
+
height: var(--#{$prefix}avatar-size);
|
|
13
|
+
font-size: calc(var(--#{$prefix}avatar-size) / 3);
|
|
14
|
+
border: var(--#{$prefix}avatar-border);
|
|
15
|
+
border-radius: var(--#{$prefix}avatar-border-radius);
|
|
16
|
+
|
|
17
|
+
.d-avatar-img {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
object-fit: cover;
|
|
21
|
+
border-radius: var(--#{$prefix}avatar-border-radius);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.d-avatar-name {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
font-weight: var(--#{$prefix}avatar-font-weight);
|
|
31
|
+
color: var(--#{$prefix}avatar-color);
|
|
32
|
+
white-space: pre-wrap;
|
|
33
|
+
background-color: var(--#{$prefix}avatar-bg);
|
|
34
|
+
border-radius: var(--#{$prefix}avatar-border-radius);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@each $theme, $value in map-remove($theme-colors, "light", "dark") {
|
|
38
|
+
$color: color-contrast($value);
|
|
39
|
+
&.d-avatar-#{$theme} {
|
|
40
|
+
--#{$prefix}avatar-color: var(--#{$prefix}#{$theme}-500);
|
|
41
|
+
--#{$prefix}avatar-bg: var(--#{$prefix}#{$theme}-100);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.d-avatar-dark-#{$theme} {
|
|
45
|
+
--#{$prefix}avatar-color: var(--#{$prefix}white);
|
|
46
|
+
--#{$prefix}avatar-bg: var(--#{$prefix}#{$theme}-500);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.d-avatar-light-#{$theme} {
|
|
50
|
+
--#{$prefix}avatar-color: var(--#{$prefix}#{$theme}-500);
|
|
51
|
+
--#{$prefix}avatar-bg: var(--#{$prefix}white);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.d-avatar-xs {
|
|
57
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-8);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.d-avatar-sm {
|
|
61
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-10);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.d-avatar-lg {
|
|
65
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-14);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.d-avatar-xl {
|
|
69
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-16);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.d-avatar-xxl {
|
|
73
|
+
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-18);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.d-avatar-group {
|
|
77
|
+
.d-avatar-img,
|
|
78
|
+
.d-avatar-name {
|
|
79
|
+
box-shadow: -2px 0 2px rgba(0, 0, 0, .1);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.d-avatar + .d-avatar {
|
|
83
|
+
margin-left: calc(var(--#{$prefix}avatar-size) * -.25);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -49,9 +49,19 @@
|
|
|
49
49
|
$border-color: map-get($data, "border-color");
|
|
50
50
|
$tooltip-bg-color: map-get($data, "tooltip-bg-color");
|
|
51
51
|
$box-shadow: map-get($data, "focus-box-shadow");
|
|
52
|
+
$icon: map-get($data, "icon");
|
|
53
|
+
|
|
54
|
+
&:has(.form-control.is-#{$state}) {
|
|
55
|
+
@if $enable-validation-icons {
|
|
56
|
+
padding-right: $input-height-inner;
|
|
57
|
+
background-image: $icon;
|
|
58
|
+
background-repeat: no-repeat;
|
|
59
|
+
background-position: right $input-height-inner-quarter center;
|
|
60
|
+
background-size: $input-height-inner-half $input-height-inner-half;
|
|
61
|
+
}
|
|
52
62
|
|
|
53
|
-
&:has(.form-control.is-#{$state}){
|
|
54
63
|
.form-control {
|
|
64
|
+
background: $input-bg;
|
|
55
65
|
border-color: $tooltip-bg-color;
|
|
56
66
|
box-shadow: $box-shadow;
|
|
57
67
|
}
|
|
@@ -59,10 +69,6 @@
|
|
|
59
69
|
.form-text {
|
|
60
70
|
color: $border-color;
|
|
61
71
|
}
|
|
62
|
-
|
|
63
|
-
.input-group-validation-icon {
|
|
64
|
-
--#{$prefix}icon-color: #{$tooltip-bg-color};
|
|
65
|
-
}
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
74
|
|
|
@@ -48,22 +48,31 @@
|
|
|
48
48
|
border-radius: var(--#{$prefix}input-border-radius);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
// validation states
|
|
52
51
|
@each $state, $data in $form-validation-states {
|
|
53
52
|
$border-color: map-get($data, "border-color");
|
|
54
53
|
$tooltip-bg-color: map-get($data, "tooltip-bg-color");
|
|
55
54
|
$box-shadow: map-get($data, "focus-box-shadow");
|
|
55
|
+
$icon: map-get($data, "icon");
|
|
56
56
|
|
|
57
57
|
.input-group:has(.d-select-component.is-#{$state}) {
|
|
58
58
|
border-color: $border-color;
|
|
59
|
-
box-shadow: $box-shadow;
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
.d-select__value-container {
|
|
61
|
+
@if $enable-validation-icons {
|
|
62
|
+
padding-right: $input-height-inner;
|
|
63
|
+
background-image: $icon;
|
|
64
|
+
background-repeat: no-repeat;
|
|
65
|
+
background-position: right $input-height-inner-quarter center;
|
|
66
|
+
background-size: $input-height-inner-half $input-height-inner-half;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:focus-within {
|
|
71
|
+
box-shadow: $box-shadow;
|
|
63
72
|
}
|
|
64
73
|
|
|
65
|
-
.
|
|
66
|
-
|
|
74
|
+
~ .form-text {
|
|
75
|
+
color: $border-color;
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
}
|
|
@@ -29,9 +29,10 @@
|
|
|
29
29
|
--#{$prefix}step-line-color: var(--#{$prefix}secondary);
|
|
30
30
|
|
|
31
31
|
/* Step label */
|
|
32
|
-
--#{$prefix}step-label-padding: var(--#{$prefix}ref-spacer-
|
|
32
|
+
--#{$prefix}step-label-padding: var(--#{$prefix}ref-spacer-4);
|
|
33
33
|
--#{$prefix}step-vertical-label-padding: var(--#{$prefix}ref-spacer-4);
|
|
34
|
-
|
|
34
|
+
--#{$prefix}step-label-font-size: var(--#{$prefix}body-font-size);
|
|
35
|
+
--#{$prefix}step-description-font-size: var(--#{$prefix}fs-body-tiny);
|
|
35
36
|
|
|
36
37
|
position: relative;
|
|
37
38
|
display: flex;
|
|
@@ -97,10 +98,25 @@
|
|
|
97
98
|
width: 50%;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
.d-step-
|
|
101
|
+
.d-step-text-container {
|
|
101
102
|
padding-right: var(--#{$prefix}step-label-padding);
|
|
102
103
|
padding-left: var(--#{$prefix}step-label-padding);
|
|
103
104
|
text-align: center;
|
|
105
|
+
|
|
106
|
+
.d-step-label {
|
|
107
|
+
font-size: var(--#{$prefix}step-label-font-size);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.d-step-description {
|
|
111
|
+
font-size: var(--#{$prefix}step-description-font-size);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.is-align-start {
|
|
117
|
+
.d-step-text-container {
|
|
118
|
+
text-align: left;
|
|
119
|
+
transform: translateX(calc(50% - (var(--#{$prefix}step-icon-container-size) / 2) - var(--#{$prefix}step-label-padding)));
|
|
104
120
|
}
|
|
105
121
|
}
|
|
106
122
|
|
|
@@ -116,12 +132,16 @@
|
|
|
116
132
|
height: 100%;
|
|
117
133
|
}
|
|
118
134
|
|
|
119
|
-
.d-step-
|
|
135
|
+
.d-step-text-container {
|
|
120
136
|
display: flex;
|
|
137
|
+
flex-direction: column;
|
|
121
138
|
flex-grow: 1;
|
|
122
|
-
align-items:
|
|
139
|
+
align-items: flex-start;
|
|
123
140
|
min-height: var(--#{$prefix}step-label-height);
|
|
124
141
|
padding: var(--#{$prefix}step-vertical-label-padding);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.d-step-label {
|
|
125
145
|
text-align: left;
|
|
126
146
|
}
|
|
127
147
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--#{$prefix}step-progress-outter-size: 62px;
|
|
7
7
|
--#{$prefix}step-progress-outter-z-index: 1;
|
|
8
8
|
--#{$prefix}step-progress-outter-fill-background-color: var(--#{$prefix}secondary-500);
|
|
9
|
-
--#{$prefix}step-progress-outter-background-color: var(--#{$prefix}
|
|
9
|
+
--#{$prefix}step-progress-outter-background-color: var(--#{$prefix}secondary-100);
|
|
10
10
|
|
|
11
11
|
/* Inner circle */
|
|
12
12
|
--#{$prefix}step-progress-inner-size: 50px;
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
/* Current step */
|
|
17
17
|
--#{$prefix}step-current-step-z-index: 3;
|
|
18
|
-
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}fw-
|
|
19
|
-
--#{$prefix}step-current-step-color: var(--#{$prefix}
|
|
18
|
+
--#{$prefix}step-current-step-font-weight: var(--#{$prefix}fw-normal);
|
|
19
|
+
--#{$prefix}step-current-step-color: var(--#{$prefix}secondary-500);
|
|
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}fs-
|
|
25
|
-
--#{$prefix}step-info-description-color: var(--#{$prefix}
|
|
23
|
+
--#{$prefix}step-info-label-font-size: var(--#{$prefix}body-font-size);
|
|
24
|
+
--#{$prefix}step-info-description-font-size: var(--#{$prefix}fs-body-tiny);
|
|
25
|
+
--#{$prefix}step-info-description-color: var(--#{$prefix}body-color);
|
|
26
26
|
|
|
27
27
|
display: flex;
|
|
28
28
|
gap: var(--#{$prefix}step-container-gap);
|
|
@@ -208,7 +208,8 @@
|
|
|
208
208
|
--#{$prefix}fw-bolder: #{$font-weight-bolder-value};
|
|
209
209
|
|
|
210
210
|
--#{$prefix}label-padding-y: var(--#{$prefix}ref-spacer-0);
|
|
211
|
-
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-
|
|
211
|
+
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-0);
|
|
212
|
+
--#{$prefix}label-margin-bottom: var(--#{$prefix}ref-spacer-1);
|
|
212
213
|
--#{$prefix}label-font-size: var(--#{$prefix}fs-small);
|
|
213
214
|
--#{$prefix}label-font-weight: var(--#{$prefix}fw-normal);
|
|
214
215
|
--#{$prefix}label-color: var(--#{$prefix}gray-700);
|
|
@@ -296,6 +297,13 @@
|
|
|
296
297
|
--#{$prefix}ref-spacer-#{$level}: #{$value};
|
|
297
298
|
}
|
|
298
299
|
|
|
300
|
+
// We can't use a css variable in SVG code,
|
|
301
|
+
--#{$prefix}form-feedback-icon-valid: #{escape-svg(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='#{$success}' d='M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z'/></svg>"))};
|
|
302
|
+
// We can't use a css variable in SVG code,
|
|
303
|
+
--#{$prefix}form-feedback-icon-invalid: #{escape-svg(url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='#{$danger}'><circle cx='6' cy='6' r='4.5'/><path stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/><circle cx='6' cy='8.2' r='.6' fill='#{$danger}' stroke='none'/></svg>"))};
|
|
304
|
+
|
|
305
|
+
--#{$prefix}default-placeholder-bg: var(--#{$prefix}secondary-200);
|
|
306
|
+
|
|
299
307
|
--#{$prefix}default-accordion-padding-x: var(--#{$prefix}ref-spacer-4);
|
|
300
308
|
--#{$prefix}default-accordion-padding-y: var(--#{$prefix}ref-spacer-6);
|
|
301
309
|
--#{$prefix}default-accordion-color: var(--#{$prefix}gray-700);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// scss-docs-start box-shadow-variables
|
|
2
|
-
$box-shadow: 0 12px 14px 0 rgba($dark, .2) !default;
|
|
3
|
-
$box-shadow-sm: 0 8px 12px 0 rgba($dark, .05) !default;
|
|
4
|
-
$box-shadow-lg: 0 20px 22px 0 rgba($dark, .25) !default;
|
|
5
|
-
$box-shadow-inset: inset 0 1px 2px rgba($black, .75) !default;
|
|
6
|
-
// scss-docs-end box-shadow-variables
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
.avatar {
|
|
2
|
-
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-8);
|
|
3
|
-
--#{$prefix}avatar-title-bg: var(--#{$prefix}gray-500);
|
|
4
|
-
--#{$prefix}avatar-title-color: var(--#{$prefix}white);
|
|
5
|
-
--#{$prefix}avatar-radius: var(--#{$prefix}border-radius-pill);
|
|
6
|
-
|
|
7
|
-
position: relative;
|
|
8
|
-
display: inline-block;
|
|
9
|
-
width: var(--#{$prefix}avatar-size);
|
|
10
|
-
height: var(--#{$prefix}avatar-size);
|
|
11
|
-
font-size: calc(var(--#{$prefix}avatar-size) / 3);
|
|
12
|
-
|
|
13
|
-
.avatar-img {
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: 100%;
|
|
16
|
-
object-fit: cover;
|
|
17
|
-
border-radius: var(--#{$prefix}avatar-radius);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.avatar-title {
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
width: 100%;
|
|
25
|
-
height: 100%;
|
|
26
|
-
color: var(--#{$prefix}avatar-title-color);
|
|
27
|
-
white-space: pre-wrap;
|
|
28
|
-
background-color: var(--#{$prefix}avatar-title-bg);
|
|
29
|
-
border-radius: var(--#{$prefix}avatar-radius);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.avatar-xs {
|
|
34
|
-
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-4);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.avatar-sm {
|
|
38
|
-
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-6);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.avatar-lg {
|
|
42
|
-
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-10);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.avatar-xl {
|
|
46
|
-
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-12);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.avatar-xxl {
|
|
50
|
-
--#{$prefix}avatar-size: var(--#{$prefix}ref-spacer-14);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.avatar-group {
|
|
54
|
-
.avatar-img {
|
|
55
|
-
box-shadow: -2px 0 2px rgba(0, 0, 0, .1);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.avatar + .avatar {
|
|
59
|
-
margin-left: calc(var(--#{$prefix}avatar-size) * -.25);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
.nav-pills,
|
|
2
|
-
.nav-tabs,
|
|
3
|
-
.nav-underline {
|
|
4
|
-
--#{$prefix}nav-tabs-nav-gap: #{$nav-nav-gap};
|
|
5
|
-
--#{$prefix}nav-tabs-nav-padding-x: #{$nav-nav-padding-x};
|
|
6
|
-
--#{$prefix}nav-tabs-nav-padding-y: #{$nav-nav-padding-y};
|
|
7
|
-
--#{$prefix}nav-tabs-link-border-active-font-weight: #{$nav-link-border-active-font-weight};
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.nav-pills,
|
|
11
|
-
.nav-underline {
|
|
12
|
-
gap: var(--#{$prefix}nav-tabs-nav-gap);
|
|
13
|
-
padding: var(--#{$prefix}nav-tabs-nav-padding-y) var(--#{$prefix}nav-tabs-nav-padding-x);
|
|
14
|
-
|
|
15
|
-
&.flex-column {
|
|
16
|
-
flex: 1 0 auto;
|
|
17
|
-
|
|
18
|
-
.nav-link {
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.nav-tabs {
|
|
25
|
-
.nav-link {
|
|
26
|
-
&.active {
|
|
27
|
-
font-weight: var(--#{$prefix}nav-tabs-link-border-active-font-weight);
|
|
28
|
-
border-bottom-color: transparent;
|
|
29
|
-
}
|
|
30
|
-
&:not(.active):is(:hover, :focus) {
|
|
31
|
-
border-color: transparent;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.nav-underline .nav-link {
|
|
37
|
-
&:not(.active):hover {
|
|
38
|
-
border-bottom-color: transparent;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.nav-link:focus-visible {
|
|
42
|
-
--#{$prefix}focus-ring-opacity: .25;
|
|
43
|
-
--#{$prefix}focus-ring-color: rgba(var(--#{$prefix}secondary-rgb), var(--#{$prefix}focus-ring-opacity));
|
|
44
|
-
}
|
|
File without changes
|