@dynamic-framework/ui-react 1.18.0 → 1.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/css/dynamic-ui-non-root.css +1634 -1019
  2. package/dist/css/dynamic-ui-non-root.min.css +2 -2
  3. package/dist/css/dynamic-ui-root.css +493 -29
  4. package/dist/css/dynamic-ui-root.min.css +2 -2
  5. package/dist/css/dynamic-ui.css +2126 -1047
  6. package/dist/css/dynamic-ui.min.css +2 -2
  7. package/dist/index.esm.js +290 -318
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +288 -321
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/components/DAvatar/DAvatar.d.ts +9 -0
  12. package/dist/types/components/DAvatar/index.d.ts +2 -0
  13. package/dist/types/components/DCarousel/DCarousel.d.ts +5 -4
  14. package/dist/types/components/DDatePicker/DDatePicker.d.ts +5 -4
  15. package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +5 -4
  16. package/dist/types/components/DDatePickerInput/DDatePickerInput.d.ts +1 -0
  17. package/dist/types/components/DToastContainer/DToastContainer.d.ts +9 -7
  18. package/dist/types/components/DToastContainer/index.d.ts +1 -1
  19. package/dist/types/components/DToastContainer/{useToast.d.ts → useDToast.d.ts} +7 -4
  20. package/dist/types/components/index.d.ts +1 -1
  21. package/dist/types/components/interface.d.ts +1 -0
  22. package/dist/types/contexts/DContext.d.ts +8 -7
  23. package/dist/types/contexts/DPortalContext.d.ts +29 -0
  24. package/dist/types/contexts/index.d.ts +1 -2
  25. package/dist/types/hooks/useStackState.d.ts +1 -1
  26. package/package.json +3 -3
  27. package/src/style/abstracts/_mixins.scss +110 -94
  28. package/src/style/abstracts/_utilities.scss +46 -1
  29. package/src/style/abstracts/variables/_+import.scss +2 -0
  30. package/src/style/abstracts/variables/_accordion.scss +2 -2
  31. package/src/style/abstracts/variables/_alerts.scss +1 -1
  32. package/src/style/abstracts/variables/_cards.scss +2 -0
  33. package/src/style/abstracts/variables/_collapse-icon-text.scss +2 -2
  34. package/src/style/abstracts/variables/_forms.scss +7 -8
  35. package/src/style/abstracts/variables/_navs.scss +2 -2
  36. package/src/style/abstracts/variables/_pagination.scss +4 -4
  37. package/src/style/abstracts/variables/_progress.scss +2 -2
  38. package/src/style/abstracts/variables/_quick-action-button.scss +4 -4
  39. package/src/style/abstracts/variables/_quick-action-check.scss +4 -4
  40. package/src/style/abstracts/variables/_quick-action-select.scss +3 -3
  41. package/src/style/abstracts/variables/_quick-action-switch.scss +2 -2
  42. package/src/style/abstracts/variables/_tooltip.scss +16 -0
  43. package/src/style/abstracts/variables/_typography.scss +76 -20
  44. package/src/style/abstracts/variables/_z-index.scss +11 -0
  45. package/src/style/base/_+import.scss +7 -2
  46. package/src/style/base/_avatar.scss +61 -0
  47. package/src/style/base/_backdrop.scss +9 -0
  48. package/src/style/base/_button-group.scss +13 -0
  49. package/src/style/base/{_button.scss → _buttons.scss} +14 -48
  50. package/src/style/base/_form-check.scss +2 -1
  51. package/src/style/base/_input-group.scss +11 -6
  52. package/src/style/base/_tooltip.scss +23 -0
  53. package/src/style/base/_type.scss +104 -0
  54. package/src/style/components/_+import.scss +0 -2
  55. package/src/style/components/_d-datepicker.scss +95 -45
  56. package/src/style/components/_d-icon.scss +1 -1
  57. package/src/style/components/_d-input-pin.scss +5 -0
  58. package/src/style/components/_d-quick-action-button.scss +8 -0
  59. package/src/style/components/_d-quick-action-select.scss +2 -0
  60. package/src/style/components/_d-quick-action-switch.scss +4 -4
  61. package/src/style/components/_d-select.scss +1 -1
  62. package/src/style/components/_d-stepper-mobile.scss +3 -3
  63. package/src/style/helpers/_+import.scss +3 -1
  64. package/src/style/helpers/_colored-links.scss +70 -0
  65. package/src/style/helpers/_text-truncate.scss +8 -0
  66. package/src/style/root/_root.scss +98 -21
  67. package/dist/types/components/DMonthPicker/DMonthPicker.d.ts +0 -12
  68. package/dist/types/components/DMonthPicker/index.d.ts +0 -2
  69. package/dist/types/contexts/DModalContext.d.ts +0 -31
  70. package/dist/types/contexts/DOffcanvasContext.d.ts +0 -31
  71. package/src/style/components/_d-monthpicker.scss +0 -98
  72. package/src/style/components/_d-tooltip.scss +0 -35
@@ -5,8 +5,8 @@ $form-text-color: $text-muted !default;
5
5
 
6
6
  // scss-docs-start form-label-variables
7
7
  $form-label-margin-bottom: 0 !default;
8
- $form-label-font-size: var(--#{$prefix}ref-fs-small) !default;
9
- $form-label-font-weight: var(--#{$prefix}ref-fw-bold) !default;
8
+ $form-label-font-size: var(--#{$prefix}fs-small) !default;
9
+ $form-label-font-weight: var(--#{$prefix}fw-bold) !default;
10
10
  $form-label-color: var(--#{$prefix}gray) !default;
11
11
  // scss-docs-end form-label-variables
12
12
 
@@ -27,9 +27,10 @@ $input-disabled-color: var(--#{$prefix}gray-300) !default;
27
27
  $input-disabled-bg: var(--#{$prefix}gray-100) !default;
28
28
  $input-disabled-border-color: var(--#{$prefix}gray-300) !default;
29
29
 
30
- $input-color: var(--#{$prefix}gray) !default;
30
+ $input-color: var(--#{$prefix}gray-900) !default;
31
31
  $input-box-shadow: 0 0 0 transparent !default; // to avoid the none in the bootstrap box-shadow calculation
32
32
 
33
+ $input-border-color: var(--#{$prefix}gray-300) !default;
33
34
  $input-border-radius: var(--#{$prefix}border-radius-sm) !default;
34
35
  $input-border-radius-sm: var(--#{$prefix}border-radius-sm) !default;
35
36
  $input-border-radius-lg: var(--#{$prefix}border-radius-sm) !default;
@@ -48,9 +49,9 @@ $input-plaintext-color: var(--#{$prefix}body-color) !default;
48
49
  $form-check-size-multiplier: 1.5 !default;
49
50
  // end custom
50
51
  $form-check-input-width: 1em * $form-check-size-multiplier !default;
51
- $form-check-min-height: $font-size-base * $line-height-base * $form-check-size-multiplier !default;
52
+ $form-check-min-height: $form-check-input-width !default;
52
53
  $form-check-padding-start: $form-check-input-width - .5em * $form-check-size-multiplier !default;
53
- $form-check-margin-bottom: .125rem * $form-check-size-multiplier !default;
54
+ $form-check-margin-bottom: .125rem !default;
54
55
 
55
56
  // custom
56
57
  $form-check-input-border-color: var(--#{$prefix}gray-400) !default;
@@ -69,9 +70,7 @@ $form-check-input-hover-border-color: var(--#{$prefix}focus-ring-color) !default
69
70
  $form-check-input-checked-bg-image: url("data:image/svg+xml, <svg viewBox='-4 -6 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M14.294 0.594229C14.3863 0.498719 14.4966 0.422536 14.6186 0.370127C14.7406 0.317718 14.8719 0.290132 15.0046 0.288978C15.1374 0.287824 15.2691 0.313126 15.392 0.363407C15.5149 0.413688 15.6265 0.487941 15.7204 0.581833C15.8143 0.675726 15.8886 0.787378 15.9389 0.910275C15.9891 1.03317 16.0144 1.16485 16.0133 1.29763C16.0121 1.43041 15.9846 1.56163 15.9321 1.68363C15.8797 1.80564 15.8036 1.91598 15.708 2.00823L6.70804 11.0082C6.52051 11.1957 6.26621 11.301 6.00104 11.301C5.73588 11.301 5.48157 11.1957 5.29404 11.0082L0.293041 6.00723C0.110883 5.81863 0.0100885 5.56602 0.0123669 5.30383C0.0146453 5.04163 0.119815 4.79082 0.305223 4.60541C0.490631 4.42 0.741443 4.31483 1.00364 4.31255C1.26584 4.31028 1.51844 4.41107 1.70704 4.59323L6.00104 8.88723L14.294 0.594229V0.594229Z' fill='#{$white}'/></svg>") !default;
70
71
  $form-check-radio-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='2' fill='#{$white}'/></svg>") !default;
71
72
 
72
- $form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#{$secondary}' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/></svg>") !default;
73
-
74
- $form-check-input-disabled-opacity: 1 !default;
73
+ $form-check-input-indeterminate-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='none' stroke='#{$white}' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/></svg>") !default;
75
74
 
76
75
  // custom
77
76
  $form-check-input-disabled-border-color: var(--#{$prefix}gray-300) !default;
@@ -2,7 +2,7 @@
2
2
 
3
3
  // scss-docs-start nav-variables
4
4
  $nav-link-font-size: var(--#{$prefix}body-font-size) !default;
5
- $nav-link-font-weight: var(--#{$prefix}ref-fw-normal) !default;
5
+ $nav-link-font-weight: var(--#{$prefix}fw-normal) !default;
6
6
  $nav-link-color: var(--#{$prefix}gray-500) !default;
7
7
  $nav-link-hover-color: var(--#{$prefix}secondary-600) !default;
8
8
  $nav-link-disabled-color: var(--#{$prefix}gray-200) !default;
@@ -12,7 +12,7 @@ $nav-link-border-height: 2px !default;
12
12
  $nav-link-line-height: var(--#{$prefix}ref-spacer-6) !default;
13
13
  $nav-link-border-border-radius: $border-radius-pill !default;
14
14
  $nav-link-border-active-color: var(--#{$prefix}secondary) !default;
15
- $nav-link-border-active-font-weight: var(--#{$prefix}ref-fw-bold) !default;
15
+ $nav-link-border-active-font-weight: var(--#{$prefix}fw-bold) !default;
16
16
  $nav-link-border-active-bg: var(--#{$prefix}secondary) !default;
17
17
  // end custom
18
18
 
@@ -3,10 +3,10 @@
3
3
  // scss-docs-start pagination-variables
4
4
  $pagination-padding-y: var(--#{$prefix}ref-spacer-1) !default;
5
5
  $pagination-padding-x: var(--#{$prefix}ref-spacer-1) !default;
6
- $pagination-padding-y-sm: var(--#{$prefix}ref-spacer-1) !default;
7
- $pagination-padding-x-sm: var(--#{$prefix}ref-spacer-1) !default;
8
- $pagination-padding-y-lg: var(--#{$prefix}ref-spacer-2) !default;
9
- $pagination-padding-x-lg: var(--#{$prefix}ref-spacer-2) !default;
6
+ $pagination-padding-y-sm: var(--#{$prefix}ref-spacer-0) !default;
7
+ $pagination-padding-x-sm: var(--#{$prefix}ref-spacer-0) !default;
8
+ $pagination-padding-y-lg: var(--#{$prefix}ref-spacer-1) !default;
9
+ $pagination-padding-x-lg: var(--#{$prefix}ref-spacer-1) !default;
10
10
 
11
11
  // custom
12
12
  $pagination-page-item-size: $spacer-8 !default;
@@ -1,7 +1,7 @@
1
1
  // Progress bars
2
2
 
3
3
  // scss-docs-start progress-variables
4
- $progress-font-size: var(--#{$prefix}ref-fs-small) !default;
4
+ $progress-font-size: var(--#{$prefix}fs-small) !default;
5
5
  $progress-bg: var(--#{$prefix}secondary-100) !default;
6
6
  $progress-border-radius: var(--#{$prefix}border-radius-pill) !default;
7
7
  $progress-box-shadow: none !default;
@@ -9,6 +9,6 @@ $progress-bar-color: var(--#{$prefix}white) !default;
9
9
  $progress-bar-bg: var(--#{$prefix}secondary) !default;
10
10
 
11
11
  // custom
12
- $progress-font-weight: var(--#{$prefix}ref-fw-bold) !default;
12
+ $progress-font-weight: var(--#{$prefix}fw-bold) !default;
13
13
  // end custom
14
14
  // scss-docs-end progress-variables
@@ -5,12 +5,12 @@ $quick-action-button-border: 1px solid var(--#{$prefix}secondary-100) !default;
5
5
  $quick-action-button-border-radius: var(--#{$prefix}border-radius) !default;
6
6
  $quick-action-button-box-shadow: none !default;
7
7
 
8
- $quick-action-button-line1-font-size: var(--#{$prefix}ref-fs-6) !default;
9
- $quick-action-button-line1-font-weight: var(--#{$prefix}ref-fw-bold) !default;
8
+ $quick-action-button-line1-font-size: var(--#{$prefix}fs-6) !default;
9
+ $quick-action-button-line1-font-weight: var(--#{$prefix}fw-bold) !default;
10
10
  $quick-action-button-line1-color: var(--#{$prefix}body-color) !default;
11
11
 
12
- $quick-action-button-line2-font-size: var(--#{$prefix}ref-fs-small) !default;
13
- $quick-action-button-line2-font-weight: var(--#{$prefix}ref-fw-normal) !default;
12
+ $quick-action-button-line2-font-size: var(--#{$prefix}fs-small) !default;
13
+ $quick-action-button-line2-font-weight: var(--#{$prefix}fw-normal) !default;
14
14
  $quick-action-button-line2-color: var(--#{$prefix}gray-500) !default;
15
15
 
16
16
  $quick-action-button-representative-image-size: var(--#{$prefix}ref-spacer-9) !default;
@@ -4,15 +4,15 @@ $quick-action-check-bg: var(--#{$prefix}white) !default;
4
4
  $quick-action-check-border-radius: var(--#{$prefix}border-radius-sm) !default;
5
5
 
6
6
  $quick-action-check-line1-font-size: var(--#{$prefix}body-font-size) !default;
7
- $quick-action-check-line1-font-weight: var(--#{$prefix}ref-fw-bold) !default;
7
+ $quick-action-check-line1-font-weight: var(--#{$prefix}fw-bold) !default;
8
8
  $quick-action-check-line1-color: var(--#{$prefix}gray-900) !default;
9
9
 
10
- $quick-action-check-line2-font-size: var(--#{$prefix}ref-fs-small) !default;
11
- $quick-action-check-line2-font-weight: var(--#{$prefix}ref-fw-normal) !default;
10
+ $quick-action-check-line2-font-size: var(--#{$prefix}fs-small) !default;
11
+ $quick-action-check-line2-font-weight: var(--#{$prefix}fw-normal) !default;
12
12
  $quick-action-check-line2-color: var(--#{$prefix}gray) !default;
13
13
 
14
14
  $quick-action-check-line3-font-size: var(--#{$prefix}body-font-size) !default;
15
- $quick-action-check-line3-font-weight: var(--#{$prefix}ref-fw-bold) !default;
15
+ $quick-action-check-line3-font-weight: var(--#{$prefix}fw-bold) !default;
16
16
  $quick-action-check-line3-color: var(--#{$prefix}gray) !default;
17
17
 
18
18
  $quick-action-check-hover-bg: var(--#{$prefix}gray-100) !default;
@@ -2,12 +2,12 @@ $quick-action-select-padding: var(--#{$prefix}ref-spacer-4) !default;
2
2
  $quick-action-select-bg: var(--#{$prefix}gray-100) !default;
3
3
  $quick-action-select-border-radius: var(--#{$prefix}border-radius-sm) !default;
4
4
 
5
- $quick-action-select-line1-font-size: var(--#{$prefix}ref-fs-small) !default;
6
- $quick-action-select-line1-font-weight: var(--#{$prefix}ref-fw-normal) !default;
5
+ $quick-action-select-line1-font-size: var(--#{$prefix}fs-small) !default;
6
+ $quick-action-select-line1-font-weight: var(--#{$prefix}fw-normal) !default;
7
7
  $quick-action-select-line1-color: var(--#{$prefix}secondary) !default;
8
8
 
9
9
  $quick-action-select-line2-font-size: var(--#{$prefix}body-font-size) !default;
10
- $quick-action-select-line2-font-weight: var(--#{$prefix}ref-fw-bold) !default;
10
+ $quick-action-select-line2-font-weight: var(--#{$prefix}fw-bold) !default;
11
11
  $quick-action-select-line2-color: var(--#{$prefix}light-text-emphasis) !default;
12
12
 
13
13
  $quick-action-select-hover-bg: var(--#{$prefix}gray-200) !default;
@@ -9,8 +9,8 @@ $quick-action-switch-label-font-size: $font-size-base !default;
9
9
  $quick-action-switch-label-font-weight: $form-label-font-weight !default;
10
10
  $quick-action-switch-label-color: $form-switch-label-color !default;
11
11
 
12
- $quick-action-switch-hint-font-size: var(--#{$prefix}ref-fs-small) !default;
13
- $quick-action-switch-hint-font-weight: var(--#{$prefix}ref-fw-normal) !default;
12
+ $quick-action-switch-hint-font-size: var(--#{$prefix}fs-small) !default;
13
+ $quick-action-switch-hint-font-weight: var(--#{$prefix}fw-normal) !default;
14
14
  $quick-action-switch-hint-color: var(--#{$prefix}gray-400) !default;
15
15
 
16
16
  $quick-action-switch-hover-bg: var(--#{$prefix}secondary-soft) !default;
@@ -0,0 +1,16 @@
1
+ // scss-docs-start tooltip-variables
2
+ $tooltip-font-size: var(--#{$prefix}tooltip-component-font-size, var(--#{$prefix}body-font-size)) !default;
3
+ $tooltip-max-width: var(--#{$prefix}tooltip-component-max-width, 300px) !default;
4
+ $tooltip-color: var(--#{$prefix}tooltip-component-color, var(--#{$prefix}body-bg)) !default;
5
+ $tooltip-bg: var(--#{$prefix}tooltip-component-bg, var(--#{$prefix}emphasis-color)) !default;
6
+ $tooltip-border-radius: var(--#{$prefix}tooltip-component-border-radius, var(--#{$prefix}ref-spacer-1)) !default;
7
+ $tooltip-opacity: 1 !default;
8
+ $tooltip-padding-y: var(--#{$prefix}ref-spacer-1) !default;
9
+ $tooltip-padding-x: var(--#{$prefix}ref-spacer-2) !default;
10
+
11
+ // custom
12
+ $tooltip-font-size-sm: var(--#{$prefix}fs-small) !default;
13
+ $tooltip-font-size-lg: var(--#{$prefix}fs-6) !default;
14
+ // end custom
15
+
16
+ // scss-docs-end tooltip-variables
@@ -9,29 +9,63 @@ $font-family-sans-serif: "Source Sans 3", sans-serif !default;
9
9
  // $font-size-base affects the font size of the body text
10
10
  $font-size-root: 16px !default;
11
11
  $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
12
- $font-size-sm: $font-size-base * .875 !default; // 14px
12
+
13
+ // custom
14
+ $font-size-sm: var(--#{$prefix}fs-small) !default;
15
+ $font-size-sm-value: .875em !default;
16
+ // end custom
17
+
13
18
  $font-size-lg: $font-size-base * 1.125 !default; // 18px
14
19
 
15
- $font-weight-lighter: lighter !default;
16
- $font-weight-light: 200 !default;
17
- $font-weight-normal: 400 !default;
18
- $font-weight-semibold: 600 !default;
19
- $font-weight-bold: 700 !default;
20
- $font-weight-bolder: 800 !default;
20
+ // custom
21
+ $font-weight-lighter-value: lighter !default;
22
+ $font-weight-light-value: 200 !default;
23
+ $font-weight-normal-value: 400 !default;
24
+ $font-weight-semibold-value: 600 !default;
25
+ $font-weight-bold-value: 700 !default;
26
+ $font-weight-bolder-value: 800 !default;
27
+
28
+ $font-weight-lighter: var(--#{$prefix}fw-lighter) !default;
29
+ $font-weight-light: var(--#{$prefix}fw-light) !default;
30
+ $font-weight-normal: var(--#{$prefix}fw-normal) !default;
31
+ $font-weight-semibold: var(--#{$prefix}fw-semibold) !default;
32
+ $font-weight-bold: var(--#{$prefix}fw-bold) !default;
33
+ $font-weight-bolder: var(--#{$prefix}fw-bolder) !default;
34
+ // end custom
21
35
 
22
36
  $font-weight-base: $font-weight-normal !default;
23
37
 
24
38
  $line-height-base: 1.5 !default;
25
39
 
26
- $h1-font-size: $font-size-base * 4 !default;
27
- $h2-font-size: $font-size-base * 3.5 !default;
28
- $h3-font-size: $font-size-base * 3 !default;
29
- $h4-font-size: $font-size-base * 2 !default;
30
- $h5-font-size: $font-size-base * 1.5 !default;
31
- $h6-font-size: $font-size-base * 1.125 !default;
40
+ // custom
41
+ $h1-font-size-value: $font-size-base * 4 !default;
42
+ $h2-font-size-value: $font-size-base * 3.5 !default;
43
+ $h3-font-size-value: $font-size-base * 3 !default;
44
+ $h4-font-size-value: $font-size-base * 2 !default;
45
+ $h5-font-size-value: $font-size-base * 1.5 !default;
46
+ $h6-font-size-value: $font-size-base * 1.125 !default;
47
+
48
+ $h1-font-size: var(--#{$prefix}fs-1) !default;
49
+ $h2-font-size: var(--#{$prefix}fs-2) !default;
50
+ $h3-font-size: var(--#{$prefix}fs-3) !default;
51
+ $h4-font-size: var(--#{$prefix}fs-4) !default;
52
+ $h5-font-size: var(--#{$prefix}fs-5) !default;
53
+ $h6-font-size: var(--#{$prefix}fs-6) !default;
54
+ // end custom
32
55
  // scss-docs-end font-variables
33
56
 
34
57
  // scss-docs-start font-sizes
58
+ // custom
59
+ $font-size-values: (
60
+ 1: $h1-font-size-value,
61
+ 2: $h2-font-size-value,
62
+ 3: $h3-font-size-value,
63
+ 4: $h4-font-size-value,
64
+ 5: $h5-font-size-value,
65
+ 6: $h6-font-size-value
66
+ ) !default;
67
+ // end custom
68
+
35
69
  $font-sizes: (
36
70
  1: $h1-font-size,
37
71
  2: $h2-font-size,
@@ -45,16 +79,35 @@ $font-sizes: (
45
79
  // scss-docs-start headings-variables
46
80
  $headings-margin-bottom: 0 !default;
47
81
  $headings-font-weight: $font-weight-bold !default;
48
- $headings-line-height: 1.2 !default;
82
+ $headings-line-height-value: 1.2 !default;
83
+ $headings-line-height: var(--#{$prefix}heading-line-height) !default;
49
84
  // scss-docs-end headings-variables
50
85
 
51
86
  // scss-docs-start display-headings
52
- $display1-font-size: 7.5rem !default;
53
- $display2-font-size: 4.5rem !default;
54
- $display3-font-size: 4rem !default;
55
- $display4-font-size: 3.5rem !default;
56
- $display5-font-size: 3rem !default;
57
- $display6-font-size: 2.5rem !default;
87
+ // custom
88
+ $display1-font-size-value: 7.5rem !default;
89
+ $display2-font-size-value: 4.5rem !default;
90
+ $display3-font-size-value: 4rem !default;
91
+ $display4-font-size-value: 3.5rem !default;
92
+ $display5-font-size-value: 3rem !default;
93
+ $display6-font-size-value: 2.5rem !default;
94
+
95
+ $display1-font-size: var(--#{$prefix}fs-display-1) !default;
96
+ $display2-font-size: var(--#{$prefix}fs-display-2) !default;
97
+ $display3-font-size: var(--#{$prefix}fs-display-3) !default;
98
+ $display4-font-size: var(--#{$prefix}fs-display-4) !default;
99
+ $display5-font-size: var(--#{$prefix}fs-display-5) !default;
100
+ $display6-font-size: var(--#{$prefix}fs-display-6) !default;
101
+
102
+ $display-font-size-values: (
103
+ 1: $display1-font-size-value,
104
+ 2: $display2-font-size-value,
105
+ 3: $display3-font-size-value,
106
+ 4: $display4-font-size-value,
107
+ 5: $display5-font-size-value,
108
+ 6: $display6-font-size-value
109
+ ) !default;
110
+ // end custom
58
111
 
59
112
  $display-font-sizes: (
60
113
  1: $display1-font-size,
@@ -72,7 +125,10 @@ $display-line-height: $headings-line-height !default;
72
125
  // scss-docs-start type-variables
73
126
  $lead-font-weight: $font-weight-normal !default;
74
127
 
128
+ // custom
75
129
  $small-font-size: $font-size-sm !default;
130
+ $small-font-size-value: $font-size-sm-value !default;
131
+ // end custom
76
132
 
77
133
  $sub-sup-font-size: .75em !default;
78
134
 
@@ -0,0 +1,11 @@
1
+ // Z-index master list
2
+ //
3
+ // Warning: Avoid customizing these values. They're used for a bird's eye view
4
+ // of components dependent on the z-axis and are designed to all work together.
5
+
6
+ // scss-docs-start zindex-stack
7
+ $zindex-offcanvas-backdrop: 1050 !default;
8
+ $zindex-offcanvas: 1055 !default;
9
+ $zindex-modal-backdrop: 1050 !default;
10
+ $zindex-modal: 1055 !default;
11
+ // scss-docs-end zindex-stack
@@ -1,6 +1,6 @@
1
1
  @import "bootstrap/scss/reboot";
2
2
 
3
- @import "bootstrap/scss/type";
3
+ // @import "bootstrap/scss/type"; we use our own bootstrap based implementation
4
4
 
5
5
  @import "bootstrap/scss/images";
6
6
  @import "bootstrap/scss/containers";
@@ -34,6 +34,7 @@
34
34
  @import "bootstrap/scss/placeholders";
35
35
  @import "bootstrap/scss/badge";
36
36
 
37
+ @import "type";
37
38
  @import "body";
38
39
  @import "accordion";
39
40
  @import "form-switch";
@@ -41,7 +42,8 @@
41
42
  @import "form-control";
42
43
  @import "form-text";
43
44
  @import "input-group";
44
- @import "button";
45
+ @import "buttons";
46
+ @import "button-group";
45
47
  @import "progress";
46
48
  @import "alert";
47
49
  @import "collapse";
@@ -49,3 +51,6 @@
49
51
  @import "breadcrumb";
50
52
  @import "dropdown";
51
53
  @import "label";
54
+ @import "avatar";
55
+ @import "backdrop";
56
+ @import "tooltip";
@@ -0,0 +1,61 @@
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
+ }
@@ -0,0 +1,9 @@
1
+ .backdrop {
2
+ // scss-docs-start modal-backdrop-css-vars
3
+ --#{$prefix}backdrop-zindex: #{$zindex-modal};
4
+ --#{$prefix}backdrop-bg: #{$modal-backdrop-bg};
5
+ --#{$prefix}backdrop-opacity: #{$modal-backdrop-opacity};
6
+ // scss-docs-end modal-backdrop-css-vars
7
+
8
+ @include overlay-backdrop(var(--#{$prefix}backdrop-zindex), var(--#{$prefix}backdrop-bg), var(--#{$prefix}backdrop-opacity));
9
+ }
@@ -0,0 +1,13 @@
1
+ .btn-group-vertical {
2
+ .btn {
3
+ --#{$prefix}btn-border-radius: var(--#{$prefix}border-radius-sm);
4
+ }
5
+
6
+ &.btn-group-lg .btn {
7
+ --#{$prefix}btn-border-radius: var(--#{$prefix}border-radius);
8
+ }
9
+
10
+ &.btn-group-sm .btn {
11
+ --#{$prefix}btn-border-radius: var(--#{$prefix}border-radius-sm);
12
+ }
13
+ }
@@ -39,7 +39,7 @@
39
39
  cursor: if($enable-button-pointers, pointer, null);
40
40
  user-select: none;
41
41
  border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
42
- @include border-radius(var(--#{$prefix}btn-border-radius));
42
+ border-radius: var(--#{$prefix}btn-border-radius);
43
43
  @include gradient-bg(var(--#{$prefix}btn-bg));
44
44
  @include box-shadow(var(--#{$prefix}btn-box-shadow));
45
45
  @include transition($btn-transition);
@@ -66,14 +66,18 @@
66
66
 
67
67
  // focus selectors
68
68
  .btn-check:focus-visible + &,
69
- &:focus-visible,
70
- &.focus-visible {
69
+ &:focus-visible:not(:hover),
70
+ &.focus-visible:not(:hover) {
71
71
  // copy of .btn:focus bootstrap + focus var
72
72
  color: var(--#{$prefix}btn-focus-color, var(--#{$prefix}btn-hover-color));
73
73
  @include gradient-bg(var(--#{$prefix}btn-focus-bg, var(--#{$prefix}btn-hover-bg)));
74
74
  border-color: var(--#{$prefix}btn-focus-border-color, var(--#{$prefix}btn-hover-border-color));
75
75
  // end copy
76
+ }
76
77
 
78
+ .btn-check:focus-visible + &,
79
+ &:focus-visible,
80
+ &.focus-visible {
77
81
  outline: var(--#{$prefix}btn-focus-border-width, var(--#{$prefix}btn-border-width)) solid var(--#{$prefix}btn-focus-outline-color, var(--#{$prefix}focus-ring-color));
78
82
  outline-offset: var(--#{$prefix}btn-focus-outline-offset, var(--#{$prefix}btn-border-width));
79
83
  }
@@ -119,57 +123,15 @@
119
123
 
120
124
  @each $color, $value in $theme-colors {
121
125
  .btn-#{$color} {
122
- @if $color == "light" { // default bootstrap style
123
- @include button-variant(
124
- $value,
125
- $value,
126
- $hover-background: shade-color($value, $btn-hover-bg-shade-amount),
127
- $hover-border: shade-color($value, $btn-hover-border-shade-amount),
128
- $active-background: shade-color($value, $btn-active-bg-shade-amount),
129
- $active-border: shade-color($value, $btn-active-border-shade-amount)
130
- );
131
- } @else if $color == "dark" { // default bootstrap style
132
- @include button-variant(
133
- $value,
134
- $value,
135
- $hover-background: tint-color($value, $btn-hover-bg-tint-amount),
136
- $hover-border: tint-color($value, $btn-hover-border-tint-amount),
137
- $active-background: tint-color($value, $btn-active-bg-tint-amount),
138
- $active-border: tint-color($value, $btn-active-border-tint-amount)
139
- );
140
- } @else {
141
- @include df-button-variant($color);
142
- }
126
+ @include df-button-variant-mapper($color);
143
127
  }
144
128
 
145
129
  .btn-outline-#{$color} {
146
- @if $color == "light" or $color == "dark" { // default bootstrap style
147
- @include button-outline-variant($value);
148
- } @else {
149
- @include df-button-outline-variant($color);
150
- }
130
+ @include df-button-variant-mapper($color, "outline");
151
131
  }
152
132
 
153
133
  .btn-link-#{$color} {
154
- span {
155
- text-decoration: underline;
156
- }
157
-
158
- @if $color == "light" {
159
- @include df-button-link-variant(
160
- "gray",
161
- $default-color: $value,
162
- $hover-bg-color: var(--#{$prefix}gray-300),
163
- $active-bg-color: var(--#{$prefix}gray-500)
164
- );
165
- } @else if $color == "dark" {
166
- @include df-button-link-variant(
167
- "gray",
168
- $default-color: $value
169
- );
170
- } @else {
171
- @include df-button-link-variant($color);
172
- }
134
+ @include df-button-variant-mapper($color, "link");
173
135
  }
174
136
  }
175
137
 
@@ -194,6 +156,10 @@
194
156
  [class*="btn-link-"] {
195
157
  --#{$prefix}btn-text-decoration: var(--#{$prefix}link-decoration);
196
158
 
159
+ span {
160
+ text-decoration: underline;
161
+ }
162
+
197
163
  @if $enable-gradients {
198
164
  background-image: none;
199
165
  }
@@ -13,8 +13,9 @@
13
13
  border-color: $form-check-input-checked-border-color;
14
14
  }
15
15
 
16
- &:disabled {
16
+ &:disabled:not(:checked, :indeterminate) {
17
17
  background-color: $form-check-input-disabled-bg;
18
18
  border-color: $form-check-input-disabled-border-color;
19
+ opacity: 1;
19
20
  }
20
21
  }
@@ -1,12 +1,12 @@
1
1
  // bootstrap reset layer
2
+ .input-group-text + .form-control {
3
+ padding-left: 0;
4
+ }
5
+
2
6
  .input-group > .form-select,
3
7
  .input-group > .form-control {
4
8
  border: 0;
5
9
 
6
- &:not(:first-child) {
7
- padding-left: 0;
8
- }
9
-
10
10
  &:focus {
11
11
  border: 0;
12
12
  box-shadow: none;
@@ -18,7 +18,7 @@
18
18
  background-position: right 0 center;
19
19
  }
20
20
 
21
- .input-group > .form-control:not(:last-child) {
21
+ .form-control:has(~ .input-group-text) {
22
22
  padding-right: 0;
23
23
  }
24
24
 
@@ -62,7 +62,6 @@
62
62
  --#{$prefix}input-disabled-bg: #{$input-disabled-bg};
63
63
  --#{$prefix}input-disabled-color: #{$input-disabled-color};
64
64
 
65
-
66
65
  border: var(--#{$prefix}input-border-width) solid var(--#{$prefix}input-border-color);
67
66
  @include border-radius(var(--#{$prefix}input-border-radius), 0);
68
67
 
@@ -111,4 +110,10 @@
111
110
  button:disabled .d-icon {
112
111
  --#{$prefix}icon-color: var(--#{$prefix}input-disabled-color);
113
112
  }
113
+
114
+ > .btn {
115
+ --#{$prefix}btn-border-radius: var(--#{$prefix}input-border-radius);
116
+
117
+ margin: -1px;
118
+ }
114
119
  }
@@ -0,0 +1,23 @@
1
+ .tooltip {
2
+ --#{$prefix}tooltip-sm-font-size: #{$tooltip-font-size-sm};
3
+ --#{$prefix}tooltip-lg-font-size: #{$tooltip-font-size-lg};
4
+
5
+ fill: var(--#{$prefix}tooltip-bg);
6
+
7
+ &.tooltip-sm {
8
+ --#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-sm-font-size);
9
+ }
10
+
11
+ &.tooltip-lg {
12
+ --#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-lg-font-size);
13
+ }
14
+
15
+ @each $theme, $value in $theme-colors {
16
+ $color: color-contrast-var($value);
17
+
18
+ &.tooltip-#{$theme} {
19
+ --#{$prefix}tooltip-color: var(--#{$prefix}tooltip-component-color, #{$color});
20
+ --#{$prefix}tooltip-bg: var(--#{$prefix}tooltip-component-bg, var(--#{$prefix}#{$theme}));
21
+ }
22
+ }
23
+ }