@dynamic-framework/ui-react 1.5.0 → 1.7.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.
Files changed (226) hide show
  1. package/LICENSE +223 -21
  2. package/README.md +3 -15
  3. package/dist/css/dynamic-root.css +286 -0
  4. package/dist/css/dynamic-root.min.css +1 -0
  5. package/dist/css/dynamic-ui.css +17279 -1
  6. package/dist/css/dynamic-ui.min.css +1 -0
  7. package/dist/index.esm.js +918 -549
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +966 -590
  10. package/dist/index.js.map +1 -1
  11. package/dist/types/components/DAlert.d.ts +16 -0
  12. package/dist/types/components/DBadge.d.ts +11 -0
  13. package/dist/types/components/DBoxFile.d.ts +3 -4
  14. package/dist/types/components/DButton.d.ts +21 -0
  15. package/dist/types/components/DCard.d.ts +2 -2
  16. package/dist/types/components/DCardAccount.d.ts +3 -3
  17. package/dist/types/components/DCardBody.d.ts +2 -2
  18. package/dist/types/components/DCardFooter.d.ts +2 -2
  19. package/dist/types/components/DCardHeader.d.ts +2 -2
  20. package/dist/types/components/DCarousel.d.ts +3 -3
  21. package/dist/types/components/DCarouselSlide.d.ts +1 -1
  22. package/dist/types/components/DChip.d.ts +10 -0
  23. package/dist/types/components/DCollapse.d.ts +4 -4
  24. package/dist/types/components/DCollapseIconText.d.ts +3 -4
  25. package/dist/types/components/DCurrencyText.d.ts +1 -1
  26. package/dist/types/components/DDatePicker.d.ts +5 -5
  27. package/dist/types/components/DDatePickerHeader.d.ts +4 -4
  28. package/dist/types/components/DDatePickerInput.d.ts +7 -7
  29. package/dist/types/components/DDatePickerTime.d.ts +6 -6
  30. package/dist/types/components/DFormikInput.d.ts +2 -2
  31. package/dist/types/components/DFormikInputCurrency.d.ts +1 -1
  32. package/dist/types/components/DFormikInputSelect.d.ts +3 -6
  33. package/dist/types/components/DIcon.d.ts +16 -0
  34. package/dist/types/components/DInput.d.ts +32 -0
  35. package/dist/types/components/DInputCheck.d.ts +15 -0
  36. package/dist/types/components/DInputCounter.d.ts +22 -0
  37. package/dist/types/components/DInputCurrency.d.ts +4 -8
  38. package/dist/types/components/DInputCurrencyBase.d.ts +24 -0
  39. package/dist/types/components/DInputPassword.d.ts +17 -0
  40. package/dist/types/components/DInputPin.d.ts +19 -0
  41. package/dist/types/components/DInputSearch.d.ts +19 -0
  42. package/dist/types/components/DInputSelect.d.ts +23 -0
  43. package/dist/types/components/DInputSwitch.d.ts +11 -0
  44. package/dist/types/components/DList.d.ts +4 -3
  45. package/dist/types/components/DListItem.d.ts +4 -4
  46. package/dist/types/components/DListItemMovement.d.ts +2 -2
  47. package/dist/types/components/DModal.d.ts +14 -0
  48. package/dist/types/components/DModalBody.d.ts +6 -0
  49. package/dist/types/components/DModalFooter.d.ts +6 -0
  50. package/dist/types/components/DModalHeader.d.ts +7 -0
  51. package/dist/types/components/DMonthPicker.d.ts +4 -4
  52. package/dist/types/components/DOffcanvas.d.ts +10 -0
  53. package/dist/types/components/DOffcanvasBody.d.ts +6 -0
  54. package/dist/types/components/DOffcanvasFooter.d.ts +6 -0
  55. package/dist/types/components/DOffcanvasHeader.d.ts +7 -0
  56. package/dist/types/components/DPaginator.d.ts +4 -4
  57. package/dist/types/components/DPopover.d.ts +3 -2
  58. package/dist/types/components/DProgress.d.ts +9 -0
  59. package/dist/types/components/DQuickActionButton.d.ts +22 -0
  60. package/dist/types/components/DQuickActionCheck.d.ts +13 -0
  61. package/dist/types/components/DQuickActionSelect.d.ts +12 -0
  62. package/dist/types/components/DQuickActionSwitch.d.ts +11 -0
  63. package/dist/types/components/DSkeleton.d.ts +2 -2
  64. package/dist/types/components/DStepper.d.ts +6 -3
  65. package/dist/types/components/DStepperDesktop.d.ts +12 -0
  66. package/dist/types/components/DStepperMobile.d.ts +11 -0
  67. package/dist/types/components/DTabContent.d.ts +1 -1
  68. package/dist/types/components/DTabs.d.ts +5 -5
  69. package/dist/types/components/DToastContainer.d.ts +2 -3
  70. package/dist/types/components/DTooltip.d.ts +2 -2
  71. package/dist/types/components/banking/{MPermissionGroup.d.ts → DPermissionGroup.d.ts} +2 -2
  72. package/dist/types/components/banking/DPermissionItem.d.ts +1 -1
  73. package/dist/types/components/banking/{MSummaryCard.d.ts → DSummaryCard.d.ts} +2 -2
  74. package/dist/types/components/banking/index.d.ts +2 -2
  75. package/dist/types/components/banking/interface.d.ts +1 -1
  76. package/dist/types/components/config.d.ts +5 -0
  77. package/dist/types/components/index.d.ts +48 -20
  78. package/dist/types/components/interface.d.ts +44 -0
  79. package/dist/types/contexts/ModalContext.d.ts +12 -12
  80. package/dist/types/contexts/OffcanvasContext.d.ts +12 -12
  81. package/dist/types/hooks/useScreenshot.d.ts +1 -1
  82. package/dist/types/hooks/useToast.d.ts +3 -3
  83. package/dist/types/stories/components/DBadge.stories.d.ts +1 -1
  84. package/dist/types/stories/components/DBoxFile.stories.d.ts +1 -1
  85. package/dist/types/stories/components/DButton.stories.d.ts +1 -1
  86. package/dist/types/stories/components/DChip.stories.d.ts +1 -1
  87. package/dist/types/stories/components/DCurrencyText.stories.d.ts +1 -1
  88. package/dist/types/stories/components/DDatePicker.stories.d.ts +1 -1
  89. package/dist/types/stories/components/DFormikInput.stories.d.ts +1 -1
  90. package/dist/types/stories/components/DFormikInputCurrency.stories.d.ts +1 -1
  91. package/dist/types/stories/components/DFormikInputSelect.stories.d.ts +1 -1
  92. package/dist/types/stories/components/DIcon.stories.d.ts +1 -1
  93. package/dist/types/stories/components/DInput.stories.d.ts +1 -1
  94. package/dist/types/stories/components/DInputCheck.stories.d.ts +1 -1
  95. package/dist/types/stories/components/DInputCounter.stories.d.ts +1 -1
  96. package/dist/types/stories/components/DInputCurrency.stories.d.ts +1 -1
  97. package/dist/types/stories/components/DInputCurrencyBase.stories.d.ts +1 -1
  98. package/dist/types/stories/components/DInputPassword.stories.d.ts +1 -1
  99. package/dist/types/stories/components/DInputPin.stories.d.ts +1 -1
  100. package/dist/types/stories/components/DInputSearch.stories.d.ts +1 -1
  101. package/dist/types/stories/components/DInputSelect.stories.d.ts +7 -3
  102. package/dist/types/stories/components/DInputSwitch.stories.d.ts +1 -1
  103. package/dist/types/stories/components/DList.stories.d.ts +1 -1
  104. package/dist/types/stories/components/DListItem.stories.d.ts +1 -1
  105. package/dist/types/stories/components/DListItemMovement.stories.d.ts +1 -1
  106. package/dist/types/stories/components/DPaginator.stories.d.ts +1 -1
  107. package/dist/types/stories/components/DProgress.stories.d.ts +1 -1
  108. package/dist/types/stories/components/DQuickActionButton.stories.d.ts +1 -1
  109. package/dist/types/stories/components/DQuickActionCheck.stories.d.ts +1 -1
  110. package/dist/types/stories/components/DQuickActionSelect.stories.d.ts +1 -1
  111. package/dist/types/stories/components/DQuickActionSwitch.stories.d.ts +1 -1
  112. package/dist/types/stories/components/DSkeleton.stories.d.ts +1 -1
  113. package/dist/types/stories/components/DStepper.stories.d.ts +1 -1
  114. package/dist/types/stories/components/DStepperDesktop.stories.d.ts +7 -0
  115. package/dist/types/stories/components/DStepperMobile.stories.d.ts +6 -0
  116. package/dist/types/stories/components/DTooltip.stories.d.ts +1 -1
  117. package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +1 -1
  118. package/dist/types/stories/hooks/useModalContext.stories.d.ts +1 -1
  119. package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +1 -1
  120. package/dist/types/stories/hooks/useToast.stories.d.ts +2 -2
  121. package/dist/types/stories/patterns/DAlert.stories.d.ts +1 -1
  122. package/dist/types/stories/{components → patterns}/DCard.stories.d.ts +1 -1
  123. package/dist/types/stories/{components → patterns}/DCardAccount.stories.d.ts +1 -1
  124. package/dist/types/stories/patterns/DCarousel.stories.d.ts +1 -1
  125. package/dist/types/stories/patterns/DCollapse.stories.d.ts +1 -1
  126. package/dist/types/stories/patterns/DCollapseIconText.stories.d.ts +1 -1
  127. package/dist/types/stories/patterns/DModal.stories.d.ts +1 -1
  128. package/dist/types/stories/patterns/DOffcanvas.stories.d.ts +1 -1
  129. package/dist/types/stories/patterns/DPopover.stories.d.ts +2 -1
  130. package/dist/types/stories/patterns/DTabs.stories.d.ts +1 -1
  131. package/dist/types/utils/format-currency.d.ts +2 -0
  132. package/dist/types/utils/index.d.ts +2 -1
  133. package/dist/types/utils/liquid-parser.d.ts +20 -0
  134. package/package.json +64 -54
  135. package/src/style/_shame.scss +4 -0
  136. package/src/style/abstracts/_+import.scss +14 -2
  137. package/src/style/abstracts/_funcions.scss +55 -0
  138. package/src/style/abstracts/_maps.scss +1 -0
  139. package/src/style/abstracts/_mixins.scss +133 -0
  140. package/src/style/abstracts/_utilities.scss +78 -0
  141. package/src/style/abstracts/variables/_+import.scss +159 -0
  142. package/src/style/abstracts/variables/_accordion.scss +35 -0
  143. package/src/style/abstracts/variables/_alerts.scss +27 -0
  144. package/src/style/abstracts/variables/_badges.scss +15 -0
  145. package/src/style/abstracts/variables/_body.scss +52 -0
  146. package/src/style/abstracts/variables/_border.scss +29 -0
  147. package/src/style/abstracts/variables/_box-file.scss +4 -4
  148. package/src/style/abstracts/variables/_box-shadow.scss +6 -0
  149. package/src/style/abstracts/variables/_breadcrumb.scss +15 -0
  150. package/src/style/abstracts/variables/_buttons.scss +55 -0
  151. package/src/style/abstracts/variables/_cards.scss +23 -0
  152. package/src/style/abstracts/variables/_carousel.scss +37 -0
  153. package/src/style/abstracts/variables/_chips.scss +13 -0
  154. package/src/style/abstracts/variables/_close.scss +16 -0
  155. package/src/style/abstracts/variables/_code.scss +16 -0
  156. package/src/style/abstracts/variables/_collapse-icon-text.scss +3 -3
  157. package/src/style/abstracts/variables/_colors.scss +515 -0
  158. package/src/style/abstracts/variables/_cursors.scss +32 -0
  159. package/src/style/abstracts/variables/_dropdowns.scss +54 -0
  160. package/src/style/abstracts/variables/_figures.scss +6 -0
  161. package/src/style/abstracts/variables/_forms.scss +313 -0
  162. package/src/style/abstracts/variables/_grid.scss +41 -0
  163. package/src/style/abstracts/variables/_list-group.scss +43 -0
  164. package/src/style/abstracts/variables/_modals.scss +58 -0
  165. package/src/style/abstracts/variables/_navbar.scss +43 -0
  166. package/src/style/abstracts/variables/_navs.scss +44 -0
  167. package/src/style/abstracts/variables/_offcanvas.scss +20 -0
  168. package/src/style/abstracts/variables/_options.scss +24 -0
  169. package/src/style/abstracts/variables/_pagination.scss +41 -0
  170. package/src/style/abstracts/variables/_popovers.scss +31 -0
  171. package/src/style/abstracts/variables/_progress.scss +17 -0
  172. package/src/style/abstracts/variables/_quick-action-button.scss +31 -0
  173. package/src/style/abstracts/variables/_quick-action-check.scss +22 -0
  174. package/src/style/abstracts/variables/_quick-action-select.scss +16 -0
  175. package/src/style/abstracts/variables/_quick-action-switch.scss +21 -0
  176. package/src/style/abstracts/variables/_spacers.scss +28 -0
  177. package/src/style/abstracts/variables/_spinners.scss +13 -0
  178. package/src/style/abstracts/variables/_tables.scss +57 -0
  179. package/src/style/abstracts/variables/_thumbnails.scss +10 -0
  180. package/src/style/abstracts/variables/_toasts.scss +19 -0
  181. package/src/style/abstracts/variables/_tooltips.scss +29 -0
  182. package/src/style/abstracts/variables/_typography.scss +122 -0
  183. package/src/style/abstracts/variables/_z-index.scss +28 -0
  184. package/src/style/base/_+import.scss +15 -0
  185. package/src/style/base/_root.scss +248 -0
  186. package/src/style/base/_tables.scss +171 -0
  187. package/src/style/components/_+import.scss +46 -1
  188. package/src/style/components/_d-alert.scss +45 -0
  189. package/src/style/components/_d-badge.scss +26 -0
  190. package/src/style/components/_d-button.scss +191 -0
  191. package/src/style/components/_d-card-account.scss +3 -3
  192. package/src/style/components/_d-chip.scss +52 -0
  193. package/src/style/components/_d-icon.scss +32 -0
  194. package/src/style/components/_d-input-check.scss +20 -0
  195. package/src/style/components/_d-input-pin.scss +121 -0
  196. package/src/style/components/_d-input-select.scss +20 -0
  197. package/src/style/components/_d-input-switch.scss +58 -0
  198. package/src/style/components/_d-input.scss +168 -0
  199. package/src/style/components/_d-modal.scss +55 -0
  200. package/src/style/components/_d-offcanvas.scss +45 -0
  201. package/src/style/components/_d-popover.scss +4 -1
  202. package/src/style/components/_d-progress.scss +9 -0
  203. package/src/style/components/_d-quick-action-button.scss +111 -0
  204. package/src/style/components/_d-quick-action-check.scss +74 -0
  205. package/src/style/components/_d-quick-action-select.scss +56 -0
  206. package/src/style/components/_d-quick-action-switch.scss +71 -0
  207. package/src/style/components/{_d-stepper.scss → _d-stepper-desktop.scss} +1 -1
  208. package/src/style/components/_d-stepper-mobile.scss +69 -0
  209. package/src/style/dynamic-root.scss +6 -0
  210. package/src/style/dynamic-ui.scss +13 -1
  211. package/src/style/helpers/_+import.scss +13 -0
  212. package/src/style/helpers/_color-bg.scss +7 -0
  213. package/dist/css/dynamic-ui-all.css +0 -1
  214. package/dist/css/dynamic-ui-react.css +0 -1
  215. package/dist/types/components/proxies.d.ts +0 -23
  216. package/dist/types/components/react-component-lib/createComponent.d.ts +0 -10
  217. package/dist/types/components/react-component-lib/createOverlayComponent.d.ts +0 -21
  218. package/dist/types/components/react-component-lib/index.d.ts +0 -2
  219. package/dist/types/components/react-component-lib/interfaces.d.ts +0 -29
  220. package/dist/types/components/react-component-lib/utils/attachProps.d.ts +0 -16
  221. package/dist/types/components/react-component-lib/utils/case.d.ts +0 -2
  222. package/dist/types/components/react-component-lib/utils/dev.d.ts +0 -2
  223. package/dist/types/components/react-component-lib/utils/index.d.ts +0 -10
  224. package/src/style/dynamic-ui-all.scss +0 -3
  225. package/src/style/dynamic-ui-react.scss +0 -7
  226. /package/dist/types/stories/{constants.d.ts → config/constants.d.ts} +0 -0
@@ -1,3 +1,15 @@
1
- @import "@dynamic-framework/ui/src/style/abstracts/+import";
1
+ @import "funcions";
2
+ @import "bootstrap/scss/functions";
2
3
 
3
- @import "variables/+import";
4
+ @import "variables/+import"; // Include any default variable overrides here
5
+ @import "bootstrap/scss/variables";
6
+ // @import "bootstrap/scss/variables-dark"; re-enable with dark implementation
7
+
8
+ @import "maps"; // Include any default map overrides here
9
+ @import "bootstrap/scss/maps";
10
+
11
+ @import "mixins";
12
+ @import "bootstrap/scss/mixins";
13
+
14
+ @import "bootstrap/scss/utilities";
15
+ @import "utilities"; // Extend utilities here
@@ -0,0 +1,55 @@
1
+ // Theme functions
2
+ @use "sass:math";
3
+
4
+ @function strip-unit($number) {
5
+ @if type-of($number) == "number" and not unitless($number) {
6
+ @return math.div($number, $number * 0 + 1);
7
+ }
8
+ @return $number;
9
+ }
10
+
11
+ @function to-rem($value-in-px, $base-in-px: $font-size-root) {
12
+ $value: strip-unit($value-in-px);
13
+ $base: strip-unit($base-in-px);
14
+ $result: math.div($value, $base) * 1rem;
15
+ @return $result;
16
+ }
17
+
18
+ @function map-prev-key($map, $text) {
19
+ $new-map: ();
20
+
21
+ @each $key, $value in $map {
22
+ $new-key: "#{$text}-#{$key}";
23
+ $new-map: map-merge($new-map, ($new-key: $value));
24
+ }
25
+
26
+ @return $new-map;
27
+ }
28
+
29
+ @function map-get-key($map, $value) {
30
+ @each $key, $val in $map {
31
+ @if $val == $value {
32
+ @return $key;
33
+ }
34
+ }
35
+ @return null;
36
+ }
37
+
38
+ @function color-contrast-var($color) {
39
+ $value: color-contrast($color);
40
+ $key: map-get-key($grays, $value);
41
+
42
+ @if $value == $white {
43
+ @return var(--#{$prefix}white);
44
+ }
45
+
46
+ @if $value == $black {
47
+ @return var(--#{$prefix}black);
48
+ }
49
+
50
+ @if $key != null {
51
+ @return var(--#{$prefix}gray-#{$key});
52
+ }
53
+
54
+ @return null;
55
+ }
@@ -0,0 +1 @@
1
+ // Theme maps
@@ -0,0 +1,133 @@
1
+ // scss-docs-start df-btn-variant-mixin
2
+ @mixin df-button-variant(
3
+ $color-name,
4
+ $default-color: var(--#{$prefix}#{$color-name}-500),
5
+ $hover-color: var(--#{$prefix}#{$color-name}-700),
6
+ $active-color: var(--#{$prefix}#{$color-name}-600),
7
+ $disabled-color: var(--#{$prefix}#{$color-name}-100),
8
+ $text-color-100: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-100)),
9
+ $text-color-500: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-500)),
10
+ $text-color-700: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-600)),
11
+ $text-color-900: color-contrast-var(map-get($theme-colors-palletes, #{$color-name}-700)),
12
+ ) {
13
+ --#{$prefix}btn-color: #{$text-color-500};
14
+ --#{$prefix}btn-bg: #{$default-color};
15
+ --#{$prefix}btn-border-color: #{$default-color};
16
+
17
+ --#{$prefix}btn-hover-color: #{$text-color-900};
18
+ --#{$prefix}btn-hover-bg: #{$hover-color};
19
+ --#{$prefix}btn-hover-border-color: #{$hover-color};
20
+
21
+ --#{$prefix}btn-active-color: #{$text-color-700};
22
+ --#{$prefix}btn-active-bg: #{$active-color};
23
+ --#{$prefix}btn-active-border-color: #{$active-color};
24
+
25
+ --#{$prefix}btn-disabled-color: #{$text-color-100};
26
+ --#{$prefix}btn-disabled-bg: #{$disabled-color};
27
+ --#{$prefix}btn-disabled-border-color: #{$disabled-color};
28
+
29
+ &.loading {
30
+ --#{$prefix}btn-disabled-opacity: 1;
31
+ --#{$prefix}btn-disabled-bg: #{$active-color};
32
+ --#{$prefix}btn-disabled-border-color: #{$active-color};
33
+ --#{$prefix}btn-disabled-color: #{$text-color-700};
34
+ }
35
+ }
36
+ // scss-docs-end df-btn-variant-mixin
37
+
38
+
39
+ // scss-docs-start df-btn-outline-variant-mixin
40
+ @mixin df-button-outline-variant($color-name) {
41
+ --#{$prefix}btn-bg: transparent;
42
+ --#{$prefix}btn-border-color: var(--#{$prefix}#{$color-name}-500);
43
+ --#{$prefix}btn-color: var(--#{$prefix}#{$color-name}-500);
44
+
45
+ --#{$prefix}btn-hover-bg: var(--#{$prefix}#{$color-name}-100);
46
+ --#{$prefix}btn-hover-border-color: var(--#{$prefix}#{$color-name}-600);
47
+ --#{$prefix}btn-hover-color: var(--#{$prefix}#{$color-name}-600);
48
+
49
+ --#{$prefix}btn-focus-bg: var(--#{$prefix}#{$color-name}-100);
50
+ --#{$prefix}btn-focus-border-color: var(--#{$prefix}#{$color-name});
51
+ --#{$prefix}btn-focus-color: var(--#{$prefix}#{$color-name});
52
+
53
+ --#{$prefix}btn-active-bg: var(--#{$prefix}#{$color-name}-300);
54
+ --#{$prefix}btn-active-border-color: var(--#{$prefix}#{$color-name}-600);
55
+ --#{$prefix}btn-active-color: var(--#{$prefix}#{$color-name}-600);
56
+
57
+ --#{$prefix}btn-disabled-bg: transparent;
58
+ --#{$prefix}btn-disabled-border-color: var(--#{$prefix}#{$color-name}-100);
59
+ --#{$prefix}btn-disabled-color: var(--#{$prefix}#{$color-name}-100);
60
+
61
+ --#{$prefix}gradient: none;
62
+
63
+ &.loading {
64
+ --#{$prefix}btn-disabled-opacity: 1;
65
+ --#{$prefix}btn-disabled-bg: transparent;
66
+ --#{$prefix}btn-disabled-border-color: var(--#{$prefix}#{$color-name}-600);
67
+ --#{$prefix}btn-disabled-color: var(--#{$prefix}#{$color-name}-600);
68
+ }
69
+ }
70
+ // scss-docs-end df-btn-outline-variant-mixin
71
+
72
+ // scss-docs-start df-btn-link-variant-mixin
73
+ @mixin df-button-link-variant(
74
+ $color-name,
75
+ $text-color-100: var(--#{$prefix}#{$color-name}-100),
76
+ $text-color-500: var(--#{$prefix}#{$color-name}-500),
77
+ $text-color-700: var(--#{$prefix}#{$color-name}-600),
78
+ $text-color-900: var(--#{$prefix}#{$color-name}-700),
79
+ ) {
80
+ --#{$prefix}btn-padding-x: var(--#{$prefix}btn-link-padding-x);
81
+ --#{$prefix}btn-padding-y: var(--#{$prefix}btn-link-padding-y);
82
+
83
+ --#{$prefix}btn-bg: transparent;
84
+ --#{$prefix}btn-border-color: transparent;
85
+ --#{$prefix}btn-color: #{$text-color-500};
86
+
87
+ --#{$prefix}btn-hover-bg: transparent;
88
+ --#{$prefix}btn-hover-border-color: transparent;
89
+ --#{$prefix}btn-hover-color: #{$text-color-900};
90
+
91
+ --#{$prefix}btn-focus-bg: transparent;
92
+ --#{$prefix}btn-focus-border-color: transparent;
93
+ --#{$prefix}btn-focus-color: #{$text-color-500};
94
+
95
+ --#{$prefix}btn-active-bg: transparent;
96
+ --#{$prefix}btn-active-border-color: transparent;
97
+ --#{$prefix}btn-active-color: #{$text-color-700};
98
+
99
+ --#{$prefix}btn-disabled-bg: transparent;
100
+ --#{$prefix}btn-disabled-border-color: transparent;
101
+ --#{$prefix}btn-disabled-color: #{$text-color-100};
102
+
103
+ --#{$prefix}btn-focus-outline-offset: 0;
104
+
105
+ &.loading {
106
+ --#{$prefix}btn-disabled-opacity: 1;
107
+ --#{$prefix}btn-disabled-bg: transparent;
108
+ --#{$prefix}btn-disabled-border-color: transparent;
109
+ --#{$prefix}btn-disabled-color: var(--#{$prefix}#{$color-name}-600);
110
+ }
111
+ }
112
+ // scss-docs-end df-btn-link-variant-mixin
113
+
114
+ // scss-docs-start df-table-variant
115
+ @mixin df-table-variant($state, $background) {
116
+ .table-#{$state} {
117
+ $color: color-contrast-var(map-get($all-colors, $background));
118
+
119
+ --#{$prefix}table-color: #{$color};
120
+ --#{$prefix}table-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{100% - $table-bg-scale * -1})")};
121
+ --#{$prefix}table-border-color: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-border-factor})")};
122
+ --#{$prefix}table-striped-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-striped-bg-factor})")};
123
+ --#{$prefix}table-striped-color: #{$color};
124
+ --#{$prefix}table-active-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-active-bg-factor})")};
125
+ --#{$prefix}table-active-color: #{$color};
126
+ --#{$prefix}table-hover-bg: #{unquote("color-mix(in srgb, var(--#{$prefix}#{$background}), var(--#{$prefix}white) #{(100% - $table-bg-scale) * $table-hover-bg-factor})")};
127
+ --#{$prefix}table-hover-color: #{$color};
128
+
129
+ color: var(--#{$prefix}table-color);
130
+ border-color: var(--#{$prefix}table-border-color);
131
+ }
132
+ }
133
+ // scss-docs-end df-table-variant
@@ -0,0 +1,78 @@
1
+ /* stylelint-disable scss/dollar-variable-default */
2
+ // Theme utilities
3
+
4
+ $utilities: map-merge(
5
+ $utilities,
6
+ (
7
+ "opacity": map-merge(
8
+ map-get($utilities, "opacity"),
9
+ (
10
+ values: map-merge(
11
+ map-get(map-get($utilities, "opacity"), "values"),
12
+ (
13
+ 40: .4,
14
+ )
15
+ )
16
+ )
17
+ ),
18
+ "color": map-merge(
19
+ map-get($utilities, "color"),
20
+ (
21
+ values: map-merge(
22
+ map-get(map-get($utilities, "color"), "values"),
23
+ // TODO: try to move the map-loop to $utilities-text map libraries/dynamic-ui/node_modules/bootstrap/scss/_maps.scss
24
+ map-loop($palette-grays, rgba-css-var, "$key", "text"),
25
+ )
26
+ )
27
+ ),
28
+ "background-color": map-merge(
29
+ map-get($utilities, "background-color"),
30
+ (
31
+ values: map-merge(
32
+ map-get(map-get($utilities, "background-color"), "values"),
33
+ // TODO: try to move the map-loop to $utilities-bg map libraries/dynamic-ui/node_modules/bootstrap/scss/_maps.scss
34
+ map-merge(
35
+ map-loop($palette-grays, rgba-css-var, "$key", "bg"),
36
+ map-loop($bg-soft-colors, rgba-css-var, "$key", "bg")
37
+ )
38
+ )
39
+ )
40
+ ),
41
+ "shadow": map-merge(
42
+ map-get($utilities, "shadow"),
43
+ (
44
+ values: (
45
+ null: var(--#{$prefix}box-shadow),
46
+ sm: var(--#{$prefix}box-shadow-sm),
47
+ lg: var(--#{$prefix}box-shadow-lg),
48
+ none: none,
49
+ )
50
+ )
51
+ ),
52
+ "text-opacity": map-merge(
53
+ map-get($utilities, "text-opacity"),
54
+ (
55
+ values: map-merge(
56
+ map-get(map-get($utilities, "text-opacity"), "values"),
57
+ (
58
+ 40: .4,
59
+ )
60
+ )
61
+ )
62
+ ),
63
+ "border-color": map-merge(
64
+ map-get($utilities, "border-color"),
65
+ (
66
+ values: map-merge(
67
+ map-get(map-get($utilities, "border-color"), "values"),
68
+ // TODO: try to move the map-loop to $utilities-border map libraries/dynamic-ui/node_modules/bootstrap/scss/_maps.scss
69
+ map-loop($palette-grays, rgba-css-var, "$key", "border"),
70
+ )
71
+ )
72
+ ),
73
+ "cursor": (
74
+ property: cursor,
75
+ values: $cursors,
76
+ ),
77
+ )
78
+ );
@@ -1,2 +1,161 @@
1
+ // Variables
2
+ //
3
+ // Variables should follow the `$component-state-property-size` formula for
4
+ // consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs.
5
+
6
+ // Prefix for :root CSS variables
7
+
8
+ $variable-prefix: bs- !default; // Deprecated in v5.2.0 for the shorter `$prefix`
9
+ $prefix: $variable-prefix !default;
10
+
11
+ @import "colors";
12
+
13
+ // Characters which are escaped by the escape-svg function
14
+ $escaped-characters: (
15
+ ("<", "%3c"),
16
+ (">", "%3e"),
17
+ ("#", "%23"),
18
+ ("(", "%28"),
19
+ (")", "%29"),
20
+ ) !default;
21
+
22
+ @import "options";
23
+
24
+ // Gradient
25
+ //
26
+ // The gradient which is added to components if `$enable-gradients` is `true`
27
+ // This gradient is also added to elements with `.bg-gradient`
28
+ // scss-docs-start variable-gradient
29
+ $gradient: linear-gradient(180deg, rgba($white, .15), rgba($white, 0)) !default;
30
+ // scss-docs-end variable-gradient
31
+
32
+ @import "spacers";
33
+
34
+ // Position
35
+ //
36
+ // Define the edge positioning anchors of the position utilities.
37
+
38
+ // scss-docs-start position-map
39
+ $position-values: (
40
+ 0: 0,
41
+ 50: 50%,
42
+ 100: 100%
43
+ ) !default;
44
+ // scss-docs-end position-map
45
+
46
+ @import "body";
47
+ @import "grid";
48
+ @import "border";
49
+ @import "box-shadow";
50
+
51
+ // scss-docs-start focus-ring-variables
52
+ $focus-ring-width: .25rem !default;
53
+ $focus-ring-opacity: 1 !default;
54
+ // custom
55
+ $focus-ring-color-mapping: "secondary-rgb" !default;
56
+ $focus-ring-color: var(--#{$prefix}focus-ring-color) !default;
57
+ // end custom
58
+ $focus-ring-blur: 0 !default;
59
+ $focus-ring-box-shadow: 0 0 $focus-ring-blur $focus-ring-width $focus-ring-color !default;
60
+ // scss-docs-end focus-ring-variables
61
+
62
+ $component-active-color: var(--#{$prefix}white) !default;
63
+ $component-active-bg: $focus-ring-color !default;
64
+
65
+ // scss-docs-start caret-variables
66
+ $caret-width: .3em !default;
67
+ $caret-vertical-align: $caret-width * .85 !default;
68
+ $caret-spacing: $caret-width * .85 !default;
69
+ // scss-docs-end caret-variables
70
+
71
+ $transition-base: all .2s ease-in-out !default;
72
+ $transition-fade: opacity .3s linear !default;
73
+ // scss-docs-start collapse-transition
74
+ $transition-collapse: height .35s ease !default;
75
+ $transition-collapse-width: width .35s ease !default;
76
+ // scss-docs-end collapse-transition
77
+
78
+ // scss-docs-start aspect-ratios
79
+ $aspect-ratios: (
80
+ "1x1": 100%,
81
+ "4x3": calc(3 / 4 * 100%),
82
+ "16x9": calc(9 / 16 * 100%),
83
+ "21x9": calc(9 / 21 * 100%)
84
+ ) !default;
85
+ // scss-docs-end aspect-ratios
86
+
87
+ @import "typography";
88
+ @import "tables";
89
+
90
+ // Buttons + Forms
91
+ //
92
+ // Shared variables that are reassigned to `$input-` and `$btn-` specific variables.
93
+
94
+ // scss-docs-start input-btn-variables
95
+ $input-btn-padding-y: .625rem !default;
96
+ $input-btn-padding-x: $spacer-4 !default;
97
+ $input-btn-font-family: null !default;
98
+ $input-btn-font-size: $font-size-base !default;
99
+ $input-btn-line-height: $line-height-base !default;
100
+
101
+ $input-btn-focus-width: 0 !default;
102
+ $input-btn-focus-color-opacity: 0 !default;
103
+ $input-btn-focus-color: rgba(var(--#{$prefix}secondary-rgb), $input-btn-focus-color-opacity) !default;
104
+ $input-btn-focus-blur: 0 !default;
105
+ $input-btn-focus-box-shadow: none !default;
106
+
107
+ $input-btn-padding-y-sm: $spacer-2 !default;
108
+ $input-btn-padding-x-sm: $spacer-3 !default;
109
+ $input-btn-font-size-sm: $small-font-size !default;
110
+
111
+ $input-btn-padding-y-lg: 1.125rem !default;
112
+ $input-btn-padding-x-lg: $spacer-4 !default;
113
+ $input-btn-font-size-lg: 1rem !default;
114
+
115
+ $input-btn-border-width: $border-width !default;
116
+ // scss-docs-end input-btn-variables
117
+
118
+ @import "buttons";
119
+ @import "forms";
120
+ @import "z-index";
121
+ @import "navs";
122
+ @import "navbar";
123
+ @import "dropdowns";
124
+ @import "pagination";
125
+
126
+ // Placeholders
127
+
128
+ // scss-docs-start placeholders
129
+ $placeholder-opacity-max: .5 !default;
130
+ $placeholder-opacity-min: .2 !default;
131
+ // scss-docs-end placeholders
132
+
133
+ @import "cards";
134
+ @import "accordion";
135
+ @import "tooltips";
136
+ @import "popovers";
137
+ @import "toasts";
138
+ @import "badges";
139
+ @import "modals";
140
+ @import "alerts";
141
+ @import "progress";
142
+ @import "list-group";
143
+ @import "thumbnails";
144
+ @import "figures";
145
+ @import "breadcrumb";
146
+ @import "carousel";
147
+ @import "spinners";
148
+ @import "close";
149
+ @import "offcanvas";
150
+ @import "code";
151
+
152
+ // custom
153
+ @import "quick-action-button";
154
+ @import "quick-action-select";
155
+ @import "quick-action-check";
156
+ @import "quick-action-switch";
157
+ @import "cursors";
158
+ @import "chips";
1
159
  @import "collapse-icon-text";
2
160
  @import "box-file";
161
+ // end custom
@@ -0,0 +1,35 @@
1
+ // Accordion
2
+
3
+ // scss-docs-start accordion-variables
4
+ $accordion-padding-y: 1rem !default;
5
+ $accordion-padding-x: 1.25rem !default;
6
+ $accordion-color: var(--#{$prefix}body-color) !default;
7
+ $accordion-bg: var(--#{$prefix}body-bg) !default;
8
+ $accordion-border-width: var(--#{$prefix}border-width) !default;
9
+ $accordion-border-color: var(--#{$prefix}border-color) !default;
10
+ $accordion-border-radius: var(--#{$prefix}border-radius) !default;
11
+ $accordion-inner-border-radius: subtract($accordion-border-radius, $accordion-border-width) !default;
12
+
13
+ $accordion-body-padding-y: $accordion-padding-y !default;
14
+ $accordion-body-padding-x: $accordion-padding-x !default;
15
+
16
+ $accordion-button-padding-y: $accordion-padding-y !default;
17
+ $accordion-button-padding-x: $accordion-padding-x !default;
18
+ $accordion-button-color: var(--#{$prefix}body-color) !default;
19
+ $accordion-button-bg: var(--#{$prefix}accordion-bg) !default;
20
+ $accordion-transition: $btn-transition, border-radius .15s ease !default;
21
+ $accordion-button-active-bg: var(--#{$prefix}primary-bg-subtle) !default;
22
+ $accordion-button-active-color: var(--#{$prefix}primary-text-emphasis) !default;
23
+
24
+ $accordion-button-focus-border-color: $input-focus-border-color !default;
25
+ $accordion-button-focus-box-shadow: $btn-focus-box-shadow !default;
26
+
27
+ $accordion-icon-width: 1.25rem !default;
28
+ $accordion-icon-color: $body-color !default;
29
+ $accordion-icon-active-color: $primary-text-emphasis !default;
30
+ $accordion-icon-transition: transform .2s ease-in-out !default;
31
+ $accordion-icon-transform: rotate(-180deg) !default;
32
+
33
+ $accordion-button-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
34
+ $accordion-button-active-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
35
+ // scss-docs-end accordion-variables
@@ -0,0 +1,27 @@
1
+ // Alerts
2
+ //
3
+ // Define alert colors, border radius, and padding.
4
+
5
+ // scss-docs-start alert-variables
6
+ $alert-padding-y: $spacer-3 !default;
7
+ $alert-padding-x: $spacer-4 !default;
8
+ $alert-margin-bottom: $spacer-3 !default;
9
+ $alert-border-radius: var(--#{$prefix}border-radius-sm) !default;
10
+ $alert-link-font-weight: var(--#{$prefix}ref-fw-bold) !default;
11
+ $alert-border-width: var(--#{$prefix}border-width) !default;
12
+ $alert-bg-scale: 100% !default;
13
+ $alert-border-scale: 100% !default;
14
+ $alert-color-scale: 100% !default;
15
+ $alert-dismissible-padding-r: $alert-padding-x * 3 !default; // 3x covers width of x plus default padding on either side
16
+
17
+ // custom
18
+ $alert-gap: $spacer-3 !default;
19
+ $alert-box-shadow: var(--#{$prefix}box-shadow-sm) !default;
20
+ // end custom
21
+ // scss-docs-end alert-variables
22
+
23
+ // fusv-disable
24
+ $alert-bg-scale: -80% !default; // Deprecated in v5.2.0, to be removed in v6
25
+ $alert-border-scale: -70% !default; // Deprecated in v5.2.0, to be removed in v6
26
+ $alert-color-scale: 40% !default; // Deprecated in v5.2.0, to be removed in v6
27
+ // fusv-enable
@@ -0,0 +1,15 @@
1
+ // Badges
2
+
3
+ // scss-docs-start badge-variables
4
+ $badge-font-size: $small-font-size !default;
5
+ $badge-font-weight: $font-weight-normal !default;
6
+ $badge-color: var(--#{$prefix}gray-900) !default;
7
+ $badge-padding-y: var(--#{$prefix}ref-spacer-1) !default;
8
+ $badge-padding-x: var(--#{$prefix}ref-spacer-2) !default;
9
+ $badge-border-radius: $border-radius-sm !default;
10
+
11
+ // custom
12
+ $badge-bg: var(--#{$prefix}white) !default;
13
+ $badge-dot-height: var(--#{$prefix}ref-spacer-3) !default;
14
+ // end custom
15
+ // scss-docs-end badge-variables
@@ -0,0 +1,52 @@
1
+ // Body
2
+ //
3
+ // Settings for the `<body>` element.
4
+
5
+ $body-text-align: null !default;
6
+
7
+ // custom
8
+ $body-color-mapping: "gray-900" !default;
9
+ $body-color: map-get($all-colors, $body-color-mapping) !default;
10
+ $body-bg-mapping: "white" !default;
11
+ $body-bg: map-get($all-colors, $body-bg-mapping) !default;
12
+
13
+ $body-secondary-color: var(--#{$prefix}body-color-rgb) !default;
14
+ $body-secondary-bg: var(--#{$prefix}gray-200) !default;
15
+
16
+ $body-tertiary-color: var(--#{$prefix}body-color-rgb) !default;
17
+ $body-tertiary-bg: var(--#{$prefix}gray-100) !default;
18
+
19
+ $body-emphasis-color: var(--#{$prefix}black) !default;
20
+ // end custom
21
+
22
+ // Links
23
+ //
24
+ // Style anchor elements.
25
+
26
+ // custom
27
+ $link-color-mapping: "primary" !default;
28
+ $link-hover-color-mapping: "primary-700" !default;
29
+ $link-color: map-get($all-colors, $link-color-mapping) !default;
30
+ $link-hover-color: map-get($all-colors, $link-hover-color-mapping) !default;
31
+ // end custom
32
+ $link-decoration: underline !default;
33
+ $link-shade-percentage: 20% !default; // unused
34
+ $link-hover-decoration: underline !default;
35
+
36
+ $stretched-link-pseudo-element: after !default;
37
+ $stretched-link-z-index: 1 !default;
38
+
39
+ // Icon links
40
+ // scss-docs-start icon-link-variables
41
+ $icon-link-gap: .375rem !default;
42
+ $icon-link-underline-offset: .25em !default;
43
+ $icon-link-icon-size: 1em !default;
44
+ $icon-link-icon-transition: .2s ease-in-out transform !default;
45
+ $icon-link-icon-transform: translate3d(.25em, 0, 0) !default;
46
+ // scss-docs-end icon-link-variables
47
+
48
+ // Paragraphs
49
+ //
50
+ // Style p element.
51
+
52
+ $paragraph-margin-bottom: 0 !default;
@@ -0,0 +1,29 @@
1
+ // Components
2
+ //
3
+ // Define common padding and border radius sizes and more.
4
+
5
+ // scss-docs-start border-variables
6
+ $border-width: 1px !default;
7
+ $border-widths: (
8
+ 1: 1px,
9
+ 2: 2px,
10
+ 3: 3px,
11
+ 4: 4px,
12
+ 5: 5px
13
+ ) !default;
14
+ $border-style: solid !default;
15
+ $border-color: var(--#{$prefix}gray-200) !default;
16
+ $border-color-translucent: rgba(var(--#{$prefix}black-rgb), .175) !default;
17
+ // scss-docs-end border-variables
18
+
19
+ // scss-docs-start border-radius-variables
20
+ $border-radius: 1rem !default;
21
+ $border-radius-sm: .5rem !default;
22
+ $border-radius-lg: 1.5rem !default;
23
+ $border-radius-xl: 2rem !default;
24
+ $border-radius-xxl: 2.5rem !default;
25
+ $border-radius-pill: 50rem !default;
26
+ // scss-docs-end border-radius-variables
27
+ // fusv-disable
28
+ $border-radius-2xl: $border-radius-xxl !default; // Deprecated in v5.3.0
29
+ // fusv-enable
@@ -1,9 +1,9 @@
1
- $box-file-gap: $spacer-3 !default;
1
+ $box-file-gap: var(--#{$prefix}ref-spacer-3) !default;
2
2
  $box-file-border: 1px dashed var(--#{$prefix}gray-700) !default;
3
- $box-file-border-radius: $border-radius !default;
4
- $box-file-padding: $spacer-5 !default;
3
+ $box-file-border-radius: var(--#{$prefix}border-radius) !default;
4
+ $box-file-padding: var(--#{$prefix}ref-spacer-5) !default;
5
5
  $box-file-content-max-width: 220px !default;
6
- $box-file-icon-size: $spacer-8 !default;
6
+ $box-file-icon-size: var(--#{$prefix}ref-spacer-8) !default;
7
7
  $box-file-icon-color: var(--#{$prefix}secondary-300) !default;
8
8
 
9
9
  $box-file-hover-border: 1px dashed var(--#{$prefix}secondary-700) !default;
@@ -0,0 +1,6 @@
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, .075) !default;
6
+ // scss-docs-end box-shadow-variables
@@ -0,0 +1,15 @@
1
+ // Breadcrumbs
2
+
3
+ // scss-docs-start breadcrumb-variables
4
+ $breadcrumb-font-size: null !default;
5
+ $breadcrumb-padding-y: 0 !default;
6
+ $breadcrumb-padding-x: 0 !default;
7
+ $breadcrumb-item-padding-x: .5rem !default;
8
+ $breadcrumb-margin-bottom: 1rem !default;
9
+ $breadcrumb-bg: null !default;
10
+ $breadcrumb-divider-color: var(--#{$prefix}secondary-color) !default;
11
+ $breadcrumb-active-color: var(--#{$prefix}secondary-color) !default;
12
+ $breadcrumb-divider: quote("/") !default;
13
+ $breadcrumb-divider-flipped: $breadcrumb-divider !default;
14
+ $breadcrumb-border-radius: null !default;
15
+ // scss-docs-end breadcrumb-variables