@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.
- package/LICENSE +223 -21
- package/README.md +3 -15
- package/dist/css/dynamic-root.css +286 -0
- package/dist/css/dynamic-root.min.css +1 -0
- package/dist/css/dynamic-ui.css +17279 -1
- package/dist/css/dynamic-ui.min.css +1 -0
- package/dist/index.esm.js +918 -549
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +966 -590
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAlert.d.ts +16 -0
- package/dist/types/components/DBadge.d.ts +11 -0
- package/dist/types/components/DBoxFile.d.ts +3 -4
- package/dist/types/components/DButton.d.ts +21 -0
- package/dist/types/components/DCard.d.ts +2 -2
- package/dist/types/components/DCardAccount.d.ts +3 -3
- package/dist/types/components/DCardBody.d.ts +2 -2
- package/dist/types/components/DCardFooter.d.ts +2 -2
- package/dist/types/components/DCardHeader.d.ts +2 -2
- package/dist/types/components/DCarousel.d.ts +3 -3
- package/dist/types/components/DCarouselSlide.d.ts +1 -1
- package/dist/types/components/DChip.d.ts +10 -0
- package/dist/types/components/DCollapse.d.ts +4 -4
- package/dist/types/components/DCollapseIconText.d.ts +3 -4
- package/dist/types/components/DCurrencyText.d.ts +1 -1
- package/dist/types/components/DDatePicker.d.ts +5 -5
- package/dist/types/components/DDatePickerHeader.d.ts +4 -4
- package/dist/types/components/DDatePickerInput.d.ts +7 -7
- package/dist/types/components/DDatePickerTime.d.ts +6 -6
- package/dist/types/components/DFormikInput.d.ts +2 -2
- package/dist/types/components/DFormikInputCurrency.d.ts +1 -1
- package/dist/types/components/DFormikInputSelect.d.ts +3 -6
- package/dist/types/components/DIcon.d.ts +16 -0
- package/dist/types/components/DInput.d.ts +32 -0
- package/dist/types/components/DInputCheck.d.ts +15 -0
- package/dist/types/components/DInputCounter.d.ts +22 -0
- package/dist/types/components/DInputCurrency.d.ts +4 -8
- package/dist/types/components/DInputCurrencyBase.d.ts +24 -0
- package/dist/types/components/DInputPassword.d.ts +17 -0
- package/dist/types/components/DInputPin.d.ts +19 -0
- package/dist/types/components/DInputSearch.d.ts +19 -0
- package/dist/types/components/DInputSelect.d.ts +23 -0
- package/dist/types/components/DInputSwitch.d.ts +11 -0
- package/dist/types/components/DList.d.ts +4 -3
- package/dist/types/components/DListItem.d.ts +4 -4
- package/dist/types/components/DListItemMovement.d.ts +2 -2
- package/dist/types/components/DModal.d.ts +14 -0
- package/dist/types/components/DModalBody.d.ts +6 -0
- package/dist/types/components/DModalFooter.d.ts +6 -0
- package/dist/types/components/DModalHeader.d.ts +7 -0
- package/dist/types/components/DMonthPicker.d.ts +4 -4
- package/dist/types/components/DOffcanvas.d.ts +10 -0
- package/dist/types/components/DOffcanvasBody.d.ts +6 -0
- package/dist/types/components/DOffcanvasFooter.d.ts +6 -0
- package/dist/types/components/DOffcanvasHeader.d.ts +7 -0
- package/dist/types/components/DPaginator.d.ts +4 -4
- package/dist/types/components/DPopover.d.ts +3 -2
- package/dist/types/components/DProgress.d.ts +9 -0
- package/dist/types/components/DQuickActionButton.d.ts +22 -0
- package/dist/types/components/DQuickActionCheck.d.ts +13 -0
- package/dist/types/components/DQuickActionSelect.d.ts +12 -0
- package/dist/types/components/DQuickActionSwitch.d.ts +11 -0
- package/dist/types/components/DSkeleton.d.ts +2 -2
- package/dist/types/components/DStepper.d.ts +6 -3
- package/dist/types/components/DStepperDesktop.d.ts +12 -0
- package/dist/types/components/DStepperMobile.d.ts +11 -0
- package/dist/types/components/DTabContent.d.ts +1 -1
- package/dist/types/components/DTabs.d.ts +5 -5
- package/dist/types/components/DToastContainer.d.ts +2 -3
- package/dist/types/components/DTooltip.d.ts +2 -2
- package/dist/types/components/banking/{MPermissionGroup.d.ts → DPermissionGroup.d.ts} +2 -2
- package/dist/types/components/banking/DPermissionItem.d.ts +1 -1
- package/dist/types/components/banking/{MSummaryCard.d.ts → DSummaryCard.d.ts} +2 -2
- package/dist/types/components/banking/index.d.ts +2 -2
- package/dist/types/components/banking/interface.d.ts +1 -1
- package/dist/types/components/config.d.ts +5 -0
- package/dist/types/components/index.d.ts +48 -20
- package/dist/types/components/interface.d.ts +44 -0
- package/dist/types/contexts/ModalContext.d.ts +12 -12
- package/dist/types/contexts/OffcanvasContext.d.ts +12 -12
- package/dist/types/hooks/useScreenshot.d.ts +1 -1
- package/dist/types/hooks/useToast.d.ts +3 -3
- package/dist/types/stories/components/DBadge.stories.d.ts +1 -1
- package/dist/types/stories/components/DBoxFile.stories.d.ts +1 -1
- package/dist/types/stories/components/DButton.stories.d.ts +1 -1
- package/dist/types/stories/components/DChip.stories.d.ts +1 -1
- package/dist/types/stories/components/DCurrencyText.stories.d.ts +1 -1
- package/dist/types/stories/components/DDatePicker.stories.d.ts +1 -1
- package/dist/types/stories/components/DFormikInput.stories.d.ts +1 -1
- package/dist/types/stories/components/DFormikInputCurrency.stories.d.ts +1 -1
- package/dist/types/stories/components/DFormikInputSelect.stories.d.ts +1 -1
- package/dist/types/stories/components/DIcon.stories.d.ts +1 -1
- package/dist/types/stories/components/DInput.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCheck.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCounter.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCurrency.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputCurrencyBase.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputPassword.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputPin.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputSearch.stories.d.ts +1 -1
- package/dist/types/stories/components/DInputSelect.stories.d.ts +7 -3
- package/dist/types/stories/components/DInputSwitch.stories.d.ts +1 -1
- package/dist/types/stories/components/DList.stories.d.ts +1 -1
- package/dist/types/stories/components/DListItem.stories.d.ts +1 -1
- package/dist/types/stories/components/DListItemMovement.stories.d.ts +1 -1
- package/dist/types/stories/components/DPaginator.stories.d.ts +1 -1
- package/dist/types/stories/components/DProgress.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionButton.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionCheck.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionSelect.stories.d.ts +1 -1
- package/dist/types/stories/components/DQuickActionSwitch.stories.d.ts +1 -1
- package/dist/types/stories/components/DSkeleton.stories.d.ts +1 -1
- package/dist/types/stories/components/DStepper.stories.d.ts +1 -1
- package/dist/types/stories/components/DStepperDesktop.stories.d.ts +7 -0
- package/dist/types/stories/components/DStepperMobile.stories.d.ts +6 -0
- package/dist/types/stories/components/DTooltip.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useFormatCurrency.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useModalContext.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useOffcanvasContext.stories.d.ts +1 -1
- package/dist/types/stories/hooks/useToast.stories.d.ts +2 -2
- package/dist/types/stories/patterns/DAlert.stories.d.ts +1 -1
- package/dist/types/stories/{components → patterns}/DCard.stories.d.ts +1 -1
- package/dist/types/stories/{components → patterns}/DCardAccount.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DCarousel.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DCollapse.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DCollapseIconText.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DModal.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DOffcanvas.stories.d.ts +1 -1
- package/dist/types/stories/patterns/DPopover.stories.d.ts +2 -1
- package/dist/types/stories/patterns/DTabs.stories.d.ts +1 -1
- package/dist/types/utils/format-currency.d.ts +2 -0
- package/dist/types/utils/index.d.ts +2 -1
- package/dist/types/utils/liquid-parser.d.ts +20 -0
- package/package.json +64 -54
- package/src/style/_shame.scss +4 -0
- package/src/style/abstracts/_+import.scss +14 -2
- package/src/style/abstracts/_funcions.scss +55 -0
- package/src/style/abstracts/_maps.scss +1 -0
- package/src/style/abstracts/_mixins.scss +133 -0
- package/src/style/abstracts/_utilities.scss +78 -0
- package/src/style/abstracts/variables/_+import.scss +159 -0
- package/src/style/abstracts/variables/_accordion.scss +35 -0
- package/src/style/abstracts/variables/_alerts.scss +27 -0
- package/src/style/abstracts/variables/_badges.scss +15 -0
- package/src/style/abstracts/variables/_body.scss +52 -0
- package/src/style/abstracts/variables/_border.scss +29 -0
- package/src/style/abstracts/variables/_box-file.scss +4 -4
- package/src/style/abstracts/variables/_box-shadow.scss +6 -0
- package/src/style/abstracts/variables/_breadcrumb.scss +15 -0
- package/src/style/abstracts/variables/_buttons.scss +55 -0
- package/src/style/abstracts/variables/_cards.scss +23 -0
- package/src/style/abstracts/variables/_carousel.scss +37 -0
- package/src/style/abstracts/variables/_chips.scss +13 -0
- package/src/style/abstracts/variables/_close.scss +16 -0
- package/src/style/abstracts/variables/_code.scss +16 -0
- package/src/style/abstracts/variables/_collapse-icon-text.scss +3 -3
- package/src/style/abstracts/variables/_colors.scss +515 -0
- package/src/style/abstracts/variables/_cursors.scss +32 -0
- package/src/style/abstracts/variables/_dropdowns.scss +54 -0
- package/src/style/abstracts/variables/_figures.scss +6 -0
- package/src/style/abstracts/variables/_forms.scss +313 -0
- package/src/style/abstracts/variables/_grid.scss +41 -0
- package/src/style/abstracts/variables/_list-group.scss +43 -0
- package/src/style/abstracts/variables/_modals.scss +58 -0
- package/src/style/abstracts/variables/_navbar.scss +43 -0
- package/src/style/abstracts/variables/_navs.scss +44 -0
- package/src/style/abstracts/variables/_offcanvas.scss +20 -0
- package/src/style/abstracts/variables/_options.scss +24 -0
- package/src/style/abstracts/variables/_pagination.scss +41 -0
- package/src/style/abstracts/variables/_popovers.scss +31 -0
- package/src/style/abstracts/variables/_progress.scss +17 -0
- package/src/style/abstracts/variables/_quick-action-button.scss +31 -0
- package/src/style/abstracts/variables/_quick-action-check.scss +22 -0
- package/src/style/abstracts/variables/_quick-action-select.scss +16 -0
- package/src/style/abstracts/variables/_quick-action-switch.scss +21 -0
- package/src/style/abstracts/variables/_spacers.scss +28 -0
- package/src/style/abstracts/variables/_spinners.scss +13 -0
- package/src/style/abstracts/variables/_tables.scss +57 -0
- package/src/style/abstracts/variables/_thumbnails.scss +10 -0
- package/src/style/abstracts/variables/_toasts.scss +19 -0
- package/src/style/abstracts/variables/_tooltips.scss +29 -0
- package/src/style/abstracts/variables/_typography.scss +122 -0
- package/src/style/abstracts/variables/_z-index.scss +28 -0
- package/src/style/base/_+import.scss +15 -0
- package/src/style/base/_root.scss +248 -0
- package/src/style/base/_tables.scss +171 -0
- package/src/style/components/_+import.scss +46 -1
- package/src/style/components/_d-alert.scss +45 -0
- package/src/style/components/_d-badge.scss +26 -0
- package/src/style/components/_d-button.scss +191 -0
- package/src/style/components/_d-card-account.scss +3 -3
- package/src/style/components/_d-chip.scss +52 -0
- package/src/style/components/_d-icon.scss +32 -0
- package/src/style/components/_d-input-check.scss +20 -0
- package/src/style/components/_d-input-pin.scss +121 -0
- package/src/style/components/_d-input-select.scss +20 -0
- package/src/style/components/_d-input-switch.scss +58 -0
- package/src/style/components/_d-input.scss +168 -0
- package/src/style/components/_d-modal.scss +55 -0
- package/src/style/components/_d-offcanvas.scss +45 -0
- package/src/style/components/_d-popover.scss +4 -1
- package/src/style/components/_d-progress.scss +9 -0
- package/src/style/components/_d-quick-action-button.scss +111 -0
- package/src/style/components/_d-quick-action-check.scss +74 -0
- package/src/style/components/_d-quick-action-select.scss +56 -0
- package/src/style/components/_d-quick-action-switch.scss +71 -0
- package/src/style/components/{_d-stepper.scss → _d-stepper-desktop.scss} +1 -1
- package/src/style/components/_d-stepper-mobile.scss +69 -0
- package/src/style/dynamic-root.scss +6 -0
- package/src/style/dynamic-ui.scss +13 -1
- package/src/style/helpers/_+import.scss +13 -0
- package/src/style/helpers/_color-bg.scss +7 -0
- package/dist/css/dynamic-ui-all.css +0 -1
- package/dist/css/dynamic-ui-react.css +0 -1
- package/dist/types/components/proxies.d.ts +0 -23
- package/dist/types/components/react-component-lib/createComponent.d.ts +0 -10
- package/dist/types/components/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/types/components/react-component-lib/index.d.ts +0 -2
- package/dist/types/components/react-component-lib/interfaces.d.ts +0 -29
- package/dist/types/components/react-component-lib/utils/attachProps.d.ts +0 -16
- package/dist/types/components/react-component-lib/utils/case.d.ts +0 -2
- package/dist/types/components/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/types/components/react-component-lib/utils/index.d.ts +0 -10
- package/src/style/dynamic-ui-all.scss +0 -3
- package/src/style/dynamic-ui-react.scss +0 -7
- /package/dist/types/stories/{constants.d.ts → config/constants.d.ts} +0 -0
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
[data-bs-theme="dynamic"] {
|
|
3
|
+
// Note: Custom variable values only support SassScript inside `#{}`.
|
|
4
|
+
|
|
5
|
+
// Colors
|
|
6
|
+
//
|
|
7
|
+
// Generate palettes for full colors, grays, and theme colors.
|
|
8
|
+
|
|
9
|
+
// custom
|
|
10
|
+
@each $color, $value in $colors {
|
|
11
|
+
--#{$prefix}#{$color}-rgb: #{to-rgb($value)};
|
|
12
|
+
}
|
|
13
|
+
// end custom
|
|
14
|
+
|
|
15
|
+
@each $color, $value in $grays {
|
|
16
|
+
// custom
|
|
17
|
+
--#{$prefix}gray-#{$color}-rgb: #{to-rgb($value)};
|
|
18
|
+
// end custom
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@each $color, $value in $bg-soft-colors {
|
|
22
|
+
--#{$prefix}#{$color}-rgb: #{to-rgb($value)};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@each $color, $value in $theme-colors-palletes {
|
|
26
|
+
@if str-index($color, "-500") {
|
|
27
|
+
$base-color-name: str-slice($color, 1, str-index($color, "-500") - 1);
|
|
28
|
+
--#{$prefix}#{$color}-rgb: var(--#{$prefix}#{$base-color-name}-rgb);
|
|
29
|
+
} @else {
|
|
30
|
+
--#{$prefix}#{$color}-rgb: #{to-rgb($value)};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@each $color, $value in $colors {
|
|
35
|
+
// custom
|
|
36
|
+
--#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
|
|
37
|
+
// end custom
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// custom
|
|
41
|
+
@each $color, $value in $grays {
|
|
42
|
+
--#{$prefix}gray-#{$color}: rgb(var(--#{$prefix}gray-#{$color}-rgb));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@each $color, $value in $bg-soft-colors {
|
|
46
|
+
--#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
|
|
47
|
+
}
|
|
48
|
+
// end custom
|
|
49
|
+
|
|
50
|
+
@each $color, $value in $theme-colors {
|
|
51
|
+
// custom
|
|
52
|
+
--#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
|
|
53
|
+
// end custom
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// custom
|
|
57
|
+
// original $theme-colors-rgb
|
|
58
|
+
@each $color, $value in $theme-colors-mapping {
|
|
59
|
+
--#{$prefix}#{$color}-rgb: var(--#{$prefix}#{$value}-rgb);
|
|
60
|
+
}
|
|
61
|
+
// end custom
|
|
62
|
+
|
|
63
|
+
// custom
|
|
64
|
+
@each $color, $value in $theme-colors-palletes {
|
|
65
|
+
--#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
|
|
66
|
+
}
|
|
67
|
+
// end custom
|
|
68
|
+
|
|
69
|
+
@each $color, $value in $theme-colors-text {
|
|
70
|
+
--#{$prefix}#{$color}-text-emphasis: #{$value};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@each $color, $value in $theme-colors-bg-subtle {
|
|
74
|
+
--#{$prefix}#{$color}-bg-subtle: #{$value};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@each $color, $value in $theme-colors-border-subtle {
|
|
78
|
+
--#{$prefix}#{$color}-border-subtle: #{$value};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Fonts
|
|
82
|
+
|
|
83
|
+
// Note: Use `inspect` for lists so that quoted items keep the quotes.
|
|
84
|
+
// See https://github.com/sass/sass/issues/2383#issuecomment-336349172
|
|
85
|
+
--#{$prefix}font-sans-serif: #{inspect($font-family-sans-serif)};
|
|
86
|
+
--#{$prefix}font-monospace: #{inspect($font-family-monospace)};
|
|
87
|
+
--#{$prefix}gradient: #{$gradient};
|
|
88
|
+
|
|
89
|
+
// Root and body
|
|
90
|
+
// scss-docs-start root-body-variables
|
|
91
|
+
@if $font-size-root != null {
|
|
92
|
+
--#{$prefix}root-font-size: #{$font-size-root};
|
|
93
|
+
}
|
|
94
|
+
--#{$prefix}body-font-family: #{inspect($font-family-base)};
|
|
95
|
+
@include rfs($font-size-base, --#{$prefix}body-font-size);
|
|
96
|
+
--#{$prefix}body-font-weight: #{$font-weight-base};
|
|
97
|
+
--#{$prefix}body-line-height: #{$line-height-base};
|
|
98
|
+
@if $body-text-align != null {
|
|
99
|
+
--#{$prefix}body-text-align: #{$body-text-align};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
--#{$prefix}body-color: rgb(var(--#{$prefix}body-color-rgb));
|
|
103
|
+
--#{$prefix}body-color-rgb: var(--#{$prefix}#{$body-color-mapping}-rgb);
|
|
104
|
+
--#{$prefix}body-bg: rgb(var(--#{$prefix}body-bg-rgb));
|
|
105
|
+
--#{$prefix}body-bg-rgb: var(--#{$prefix}#{$body-bg-mapping}-rgb);
|
|
106
|
+
|
|
107
|
+
--#{$prefix}emphasis-color: rgb(var(--#{$prefix}emphasis-color-rgb));
|
|
108
|
+
--#{$prefix}emphasis-color-rgb: #{$body-emphasis-color};
|
|
109
|
+
|
|
110
|
+
--#{$prefix}secondary-color: rgba(var(--#{$prefix}secondary-color-rgb), .75);
|
|
111
|
+
--#{$prefix}secondary-color-rgb: #{$body-secondary-color};
|
|
112
|
+
--#{$prefix}secondary-bg: rgb(var(--#{$prefix}secondary-bg-rgb));
|
|
113
|
+
--#{$prefix}secondary-bg-rgb: #{$body-secondary-bg};
|
|
114
|
+
|
|
115
|
+
--#{$prefix}tertiary-color: rgba(var(--#{$prefix}tertiary-color-rgb), .5);
|
|
116
|
+
--#{$prefix}tertiary-color-rgb: #{$body-tertiary-color};
|
|
117
|
+
--#{$prefix}tertiary-bg: rgb(var(--#{$prefix}tertiary-bg-rgb));
|
|
118
|
+
--#{$prefix}tertiary-bg-rgb: #{$body-tertiary-bg};
|
|
119
|
+
// scss-docs-end root-body-variables
|
|
120
|
+
|
|
121
|
+
--#{$prefix}heading-color: #{$headings-color};
|
|
122
|
+
|
|
123
|
+
--#{$prefix}link-color: rgb(var(--#{$prefix}link-color-rgb));
|
|
124
|
+
--#{$prefix}link-color-rgb: var(--#{$prefix}#{$link-color-mapping});
|
|
125
|
+
--#{$prefix}link-decoration: #{$link-decoration};
|
|
126
|
+
|
|
127
|
+
--#{$prefix}link-hover-color: rgb(var(--#{$prefix}link-hover-color-rgb));
|
|
128
|
+
--#{$prefix}link-hover-color-rgb: var(--#{$prefix}#{$link-hover-color-mapping});
|
|
129
|
+
|
|
130
|
+
@if $link-hover-decoration != null {
|
|
131
|
+
--#{$prefix}link-hover-decoration: #{$link-hover-decoration};
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
--#{$prefix}code-color: rgb(var(--#{$prefix}code-color-rgb));
|
|
135
|
+
--#{$prefix}code-color-rgb: var(--#{$prefix}#{$code-color-mapping}-rgb);
|
|
136
|
+
--#{$prefix}highlight-bg: #{$mark-bg};
|
|
137
|
+
|
|
138
|
+
// scss-docs-start root-border-var
|
|
139
|
+
--#{$prefix}border-width: #{$border-width};
|
|
140
|
+
--#{$prefix}border-style: #{$border-style};
|
|
141
|
+
--#{$prefix}border-color: #{$border-color};
|
|
142
|
+
--#{$prefix}border-color-translucent: #{$border-color-translucent};
|
|
143
|
+
|
|
144
|
+
--#{$prefix}border-radius: #{$border-radius};
|
|
145
|
+
--#{$prefix}border-radius-sm: #{$border-radius-sm};
|
|
146
|
+
--#{$prefix}border-radius-lg: #{$border-radius-lg};
|
|
147
|
+
--#{$prefix}border-radius-xl: #{$border-radius-xl};
|
|
148
|
+
--#{$prefix}border-radius-xxl: #{$border-radius-xxl};
|
|
149
|
+
--#{$prefix}border-radius-2xl: var(--#{$prefix}border-radius-xxl); // Deprecated in v5.3.0 for consistency
|
|
150
|
+
--#{$prefix}border-radius-pill: #{$border-radius-pill};
|
|
151
|
+
// scss-docs-end root-border-var
|
|
152
|
+
|
|
153
|
+
--#{$prefix}box-shadow: #{$box-shadow};
|
|
154
|
+
--#{$prefix}box-shadow-sm: #{$box-shadow-sm};
|
|
155
|
+
--#{$prefix}box-shadow-lg: #{$box-shadow-lg};
|
|
156
|
+
--#{$prefix}box-shadow-inset: #{$box-shadow-inset};
|
|
157
|
+
|
|
158
|
+
// Focus styles
|
|
159
|
+
// scss-docs-start root-focus-variables
|
|
160
|
+
--#{$prefix}focus-ring-width: #{$focus-ring-width};
|
|
161
|
+
--#{$prefix}focus-ring-opacity: #{$focus-ring-opacity};
|
|
162
|
+
--#{$prefix}focus-ring-color: rgba(var(--#{$prefix}#{$focus-ring-color-mapping}), var(--#{$prefix}focus-ring-opacity));
|
|
163
|
+
// scss-docs-end root-focus-variables
|
|
164
|
+
|
|
165
|
+
// scss-docs-start root-form-validation-variables
|
|
166
|
+
--#{$prefix}form-valid-color: #{$form-valid-color};
|
|
167
|
+
--#{$prefix}form-valid-border-color: #{$form-valid-border-color};
|
|
168
|
+
--#{$prefix}form-invalid-color: #{$form-invalid-color};
|
|
169
|
+
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
|
|
170
|
+
// scss-docs-end root-form-validation-variables
|
|
171
|
+
|
|
172
|
+
// only reference root variables
|
|
173
|
+
|
|
174
|
+
@each $level, $value in $spacers {
|
|
175
|
+
--#{$prefix}ref-spacer-#{$level}: #{$value};
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@each $level, $value in $display-font-sizes {
|
|
179
|
+
--#{$prefix}ref-display-#{$level}: #{$value};
|
|
180
|
+
}
|
|
181
|
+
@each $level, $value in $font-sizes {
|
|
182
|
+
--#{$prefix}ref-fs-#{$level}: #{$value};
|
|
183
|
+
}
|
|
184
|
+
--#{$prefix}ref-fs-small: #{$small-font-size};
|
|
185
|
+
|
|
186
|
+
--#{$prefix}ref-fw-lighter: #{$font-weight-lighter};
|
|
187
|
+
--#{$prefix}ref-fw-light: #{$font-weight-light};
|
|
188
|
+
--#{$prefix}ref-fw-normal: #{$font-weight-normal};
|
|
189
|
+
--#{$prefix}ref-fw-semibold: #{$font-weight-semibold};
|
|
190
|
+
--#{$prefix}ref-fw-bold: #{$font-weight-bold};
|
|
191
|
+
--#{$prefix}ref-fw-bolder: #{$font-weight-bolder};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@if $enable-dark-mode {
|
|
195
|
+
@include color-mode(dark, true) {
|
|
196
|
+
color-scheme: dark;
|
|
197
|
+
|
|
198
|
+
// scss-docs-start root-dark-mode-vars
|
|
199
|
+
--#{$prefix}body-color: #{$body-color-dark};
|
|
200
|
+
--#{$prefix}body-color-rgb: #{to-rgb($body-color-dark)};
|
|
201
|
+
--#{$prefix}body-bg: #{$body-bg-dark};
|
|
202
|
+
--#{$prefix}body-bg-rgb: #{to-rgb($body-bg-dark)};
|
|
203
|
+
|
|
204
|
+
--#{$prefix}emphasis-color: #{$body-emphasis-color-dark};
|
|
205
|
+
--#{$prefix}emphasis-color-rgb: #{to-rgb($body-emphasis-color-dark)};
|
|
206
|
+
|
|
207
|
+
--#{$prefix}secondary-color: #{$body-secondary-color-dark};
|
|
208
|
+
--#{$prefix}secondary-color-rgb: #{to-rgb($body-secondary-color-dark)};
|
|
209
|
+
--#{$prefix}secondary-bg: #{$body-secondary-bg-dark};
|
|
210
|
+
--#{$prefix}secondary-bg-rgb: #{to-rgb($body-secondary-bg-dark)};
|
|
211
|
+
|
|
212
|
+
--#{$prefix}tertiary-color: #{$body-tertiary-color-dark};
|
|
213
|
+
--#{$prefix}tertiary-color-rgb: #{to-rgb($body-tertiary-color-dark)};
|
|
214
|
+
--#{$prefix}tertiary-bg: #{$body-tertiary-bg-dark};
|
|
215
|
+
--#{$prefix}tertiary-bg-rgb: #{to-rgb($body-tertiary-bg-dark)};
|
|
216
|
+
|
|
217
|
+
@each $color, $value in $theme-colors-text-dark {
|
|
218
|
+
--#{$prefix}#{$color}-text-emphasis: #{$value};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
@each $color, $value in $theme-colors-bg-subtle-dark {
|
|
222
|
+
--#{$prefix}#{$color}-bg-subtle: #{$value};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
@each $color, $value in $theme-colors-border-subtle-dark {
|
|
226
|
+
--#{$prefix}#{$color}-border-subtle: #{$value};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
--#{$prefix}heading-color: #{$headings-color-dark};
|
|
230
|
+
|
|
231
|
+
--#{$prefix}link-color: #{$link-color-dark};
|
|
232
|
+
--#{$prefix}link-hover-color: #{$link-hover-color-dark};
|
|
233
|
+
--#{$prefix}link-color-rgb: #{to-rgb($link-color-dark)};
|
|
234
|
+
--#{$prefix}link-hover-color-rgb: #{to-rgb($link-hover-color-dark)};
|
|
235
|
+
|
|
236
|
+
--#{$prefix}code-color: #{$code-color-dark};
|
|
237
|
+
|
|
238
|
+
--#{$prefix}border-color: #{$border-color-dark};
|
|
239
|
+
--#{$prefix}border-color-translucent: #{$border-color-translucent-dark};
|
|
240
|
+
|
|
241
|
+
--#{$prefix}form-valid-color: #{$form-valid-color-dark};
|
|
242
|
+
--#{$prefix}form-valid-border-color: #{$form-valid-border-color-dark};
|
|
243
|
+
--#{$prefix}form-invalid-color: #{$form-invalid-color-dark};
|
|
244
|
+
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color-dark};
|
|
245
|
+
// scss-docs-end root-dark-mode-vars
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Basic Bootstrap table
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
.table {
|
|
6
|
+
// Reset needed for nesting tables
|
|
7
|
+
--#{$prefix}table-color-type: initial;
|
|
8
|
+
--#{$prefix}table-bg-type: initial;
|
|
9
|
+
--#{$prefix}table-color-state: initial;
|
|
10
|
+
--#{$prefix}table-bg-state: initial;
|
|
11
|
+
// End of reset
|
|
12
|
+
--#{$prefix}table-color: #{$table-color};
|
|
13
|
+
--#{$prefix}table-bg: #{$table-bg};
|
|
14
|
+
--#{$prefix}table-border-color: #{$table-border-color};
|
|
15
|
+
--#{$prefix}table-accent-bg: #{$table-accent-bg};
|
|
16
|
+
--#{$prefix}table-striped-color: #{$table-striped-color};
|
|
17
|
+
--#{$prefix}table-striped-bg: #{$table-striped-bg};
|
|
18
|
+
--#{$prefix}table-active-color: #{$table-active-color};
|
|
19
|
+
--#{$prefix}table-active-bg: #{$table-active-bg};
|
|
20
|
+
--#{$prefix}table-hover-color: #{$table-hover-color};
|
|
21
|
+
--#{$prefix}table-hover-bg: #{$table-hover-bg};
|
|
22
|
+
|
|
23
|
+
width: 100%;
|
|
24
|
+
margin-bottom: var(--#{$prefix}ref-spacer-3);
|
|
25
|
+
vertical-align: $table-cell-vertical-align;
|
|
26
|
+
border-color: var(--#{$prefix}table-border-color);
|
|
27
|
+
|
|
28
|
+
// Target th & td
|
|
29
|
+
// We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
|
|
30
|
+
// We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
|
|
31
|
+
// Another advantage is that this generates less code and makes the selector less specific making it easier to override.
|
|
32
|
+
// stylelint-disable-next-line selector-max-universal
|
|
33
|
+
> :not(caption) > * > * {
|
|
34
|
+
padding: $table-cell-padding-y $table-cell-padding-x;
|
|
35
|
+
// Following the precept of cascades: https://codepen.io/miriamsuzanne/full/vYNgodb
|
|
36
|
+
color: var(--#{$prefix}table-color-state, var(--#{$prefix}table-color-type, var(--#{$prefix}table-color)));
|
|
37
|
+
background-color: var(--#{$prefix}table-bg);
|
|
38
|
+
border-bottom-width: $table-border-width;
|
|
39
|
+
box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-bg-state, var(--#{$prefix}table-bg-type, var(--#{$prefix}table-accent-bg)));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
> tbody {
|
|
43
|
+
vertical-align: inherit;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
> thead {
|
|
47
|
+
vertical-align: bottom;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.table-group-divider {
|
|
52
|
+
border-top: calc(#{$table-border-width} * 2) solid $table-group-separator-color;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
//
|
|
56
|
+
// Change placement of captions with a class
|
|
57
|
+
//
|
|
58
|
+
|
|
59
|
+
.caption-top {
|
|
60
|
+
caption-side: top;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
//
|
|
65
|
+
// Condensed table w/ half padding
|
|
66
|
+
//
|
|
67
|
+
|
|
68
|
+
.table-sm {
|
|
69
|
+
// stylelint-disable-next-line selector-max-universal
|
|
70
|
+
> :not(caption) > * > * {
|
|
71
|
+
padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// Border versions
|
|
77
|
+
//
|
|
78
|
+
// Add or remove borders all around the table and between all the columns.
|
|
79
|
+
//
|
|
80
|
+
// When borders are added on all sides of the cells, the corners can render odd when
|
|
81
|
+
// these borders do not have the same color or if they are semi-transparent.
|
|
82
|
+
// Therefor we add top and border bottoms to the `tr`s and left and right borders
|
|
83
|
+
// to the `td`s or `th`s
|
|
84
|
+
|
|
85
|
+
.table-bordered {
|
|
86
|
+
> :not(caption) > * {
|
|
87
|
+
border-width: $table-border-width 0;
|
|
88
|
+
|
|
89
|
+
// stylelint-disable-next-line selector-max-universal
|
|
90
|
+
> * {
|
|
91
|
+
border-width: 0 $table-border-width;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.table-borderless {
|
|
97
|
+
// stylelint-disable-next-line selector-max-universal
|
|
98
|
+
> :not(caption) > * > * {
|
|
99
|
+
border-bottom-width: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
> :not(:first-child) {
|
|
103
|
+
border-top-width: 0;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// Zebra-striping
|
|
108
|
+
//
|
|
109
|
+
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
110
|
+
|
|
111
|
+
// For rows
|
|
112
|
+
.table-striped {
|
|
113
|
+
> tbody > tr:nth-of-type(#{$table-striped-order}) > * {
|
|
114
|
+
--#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
|
|
115
|
+
--#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// For columns
|
|
120
|
+
.table-striped-columns {
|
|
121
|
+
> :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
|
|
122
|
+
--#{$prefix}table-color-type: var(--#{$prefix}table-striped-color);
|
|
123
|
+
--#{$prefix}table-bg-type: var(--#{$prefix}table-striped-bg);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Active table
|
|
128
|
+
//
|
|
129
|
+
// The `.table-active` class can be added to highlight rows or cells
|
|
130
|
+
|
|
131
|
+
.table-active {
|
|
132
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-active-color);
|
|
133
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-active-bg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Hover effect
|
|
137
|
+
//
|
|
138
|
+
// Placed here since it has to come after the potential zebra striping
|
|
139
|
+
|
|
140
|
+
.table-hover {
|
|
141
|
+
> tbody > tr:hover > * {
|
|
142
|
+
--#{$prefix}table-color-state: var(--#{$prefix}table-hover-color);
|
|
143
|
+
--#{$prefix}table-bg-state: var(--#{$prefix}table-hover-bg);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
// Table variants
|
|
149
|
+
//
|
|
150
|
+
// Table variants set the table cell backgrounds, border colors
|
|
151
|
+
// and the colors of the striped, hovered & active tables
|
|
152
|
+
|
|
153
|
+
@each $color, $value in $table-variants {
|
|
154
|
+
@include df-table-variant($color, $value);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// Responsive tables
|
|
158
|
+
//
|
|
159
|
+
// Generate series of `.table-responsive-*` classes for configuring the screen
|
|
160
|
+
// size of where your table will overflow.
|
|
161
|
+
|
|
162
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
163
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
164
|
+
|
|
165
|
+
@include media-breakpoint-down($breakpoint) {
|
|
166
|
+
.table-responsive#{$infix} {
|
|
167
|
+
overflow-x: auto;
|
|
168
|
+
-webkit-overflow-scrolling: touch;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
@import "bootstrap/scss/forms";
|
|
2
|
+
// @import "bootstrap/scss/buttons"; we use our own bootstrap based implementation
|
|
3
|
+
|
|
4
|
+
@import "bootstrap/scss/dropdown";
|
|
5
|
+
@import "bootstrap/scss/button-group";
|
|
6
|
+
@import "bootstrap/scss/nav";
|
|
7
|
+
@import "bootstrap/scss/navbar";
|
|
8
|
+
@import "bootstrap/scss/card";
|
|
9
|
+
@import "bootstrap/scss/accordion";
|
|
10
|
+
@import "bootstrap/scss/breadcrumb";
|
|
11
|
+
@import "bootstrap/scss/pagination";
|
|
12
|
+
@import "bootstrap/scss/badge";
|
|
13
|
+
@import "bootstrap/scss/alert";
|
|
14
|
+
@import "bootstrap/scss/progress";
|
|
15
|
+
@import "bootstrap/scss/list-group";
|
|
16
|
+
@import "bootstrap/scss/close";
|
|
17
|
+
@import "bootstrap/scss/toasts";
|
|
18
|
+
@import "bootstrap/scss/modal";
|
|
19
|
+
@import "bootstrap/scss/tooltip";
|
|
20
|
+
@import "bootstrap/scss/popover";
|
|
21
|
+
@import "bootstrap/scss/carousel";
|
|
22
|
+
@import "bootstrap/scss/spinners";
|
|
23
|
+
@import "bootstrap/scss/offcanvas";
|
|
24
|
+
@import "bootstrap/scss/placeholders";
|
|
25
|
+
|
|
26
|
+
@import "react-toastify/scss/main";
|
|
27
|
+
|
|
28
|
+
@import "d-icon";
|
|
29
|
+
@import "d-input";
|
|
30
|
+
@import "d-input-switch";
|
|
31
|
+
@import "d-input-check";
|
|
32
|
+
@import "d-input-select";
|
|
33
|
+
@import "d-input-pin";
|
|
34
|
+
@import "d-button";
|
|
35
|
+
@import "d-quick-action-button";
|
|
36
|
+
@import "d-quick-action-select";
|
|
37
|
+
@import "d-quick-action-check";
|
|
38
|
+
@import "d-quick-action-switch";
|
|
39
|
+
@import "d-progress";
|
|
40
|
+
@import "d-alert";
|
|
41
|
+
@import "d-badge";
|
|
42
|
+
@import "d-chip";
|
|
43
|
+
@import "d-modal";
|
|
44
|
+
@import "d-offcanvas";
|
|
1
45
|
@import "d-collapse";
|
|
2
46
|
@import "d-collapse-icon-text";
|
|
3
47
|
@import "d-datepicker";
|
|
@@ -7,7 +51,8 @@
|
|
|
7
51
|
@import "d-popover";
|
|
8
52
|
@import "d-box-file";
|
|
9
53
|
@import "d-carousel";
|
|
10
|
-
@import "d-stepper";
|
|
54
|
+
@import "d-stepper-desktop";
|
|
55
|
+
@import "d-stepper-mobile";
|
|
11
56
|
@import "d-paginator";
|
|
12
57
|
@import "d-card-account";
|
|
13
58
|
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.alert {
|
|
2
|
+
--#{$prefix}alert-gap: #{$alert-gap};
|
|
3
|
+
--#{$prefix}alert-box-shadow: #{$alert-box-shadow};
|
|
4
|
+
--#{$prefix}alert-icon-color: var(--#{$prefix}alert-component-icon-color, var(--#{$prefix}alert-color));
|
|
5
|
+
--#{$prefix}alert-separator-opacity: var(--#{$prefix}alert-component-separator-opacity);
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
gap: var(--#{$prefix}alert-gap);
|
|
10
|
+
align-items: center;
|
|
11
|
+
box-shadow: var(--#{$prefix}alert-box-shadow);
|
|
12
|
+
|
|
13
|
+
.alert-text {
|
|
14
|
+
flex-grow: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.alert-separator {
|
|
18
|
+
align-self: stretch;
|
|
19
|
+
width: 1px;
|
|
20
|
+
background-color: var(--#{$prefix}alert-icon-color);
|
|
21
|
+
opacity: var(--#{$prefix}alert-separator-opacity);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.btn-close {
|
|
25
|
+
--#{$prefix}btn-close-bg: transparent;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.alert-icon .d-icon {
|
|
29
|
+
--#{$prefix}icon-color: var(--#{$prefix}alert-icon-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.alert-close-icon {
|
|
33
|
+
--#{$prefix}icon-color: var(--#{$prefix}alert-icon-color);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@each $theme, $value in $theme-colors {
|
|
37
|
+
$color: color-contrast-var($value);
|
|
38
|
+
&.alert-#{$theme} {
|
|
39
|
+
--#{$prefix}alert-color: #{$color};
|
|
40
|
+
--#{$prefix}alert-bg: var(--#{$prefix}#{$theme});
|
|
41
|
+
--#{$prefix}alert-border-color: var(--#{$prefix}#{$theme});
|
|
42
|
+
--#{$prefix}alert-link-color: #{$color};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.badge {
|
|
2
|
+
--#{$prefix}badge-bg: #{$badge-bg};
|
|
3
|
+
--#{$prefix}badge-dot-height: #{$badge-dot-height};
|
|
4
|
+
|
|
5
|
+
display: block;
|
|
6
|
+
background-color: var(--#{$prefix}badge-bg);
|
|
7
|
+
|
|
8
|
+
@each $theme, $value in $theme-colors {
|
|
9
|
+
$color: color-contrast-var($value);
|
|
10
|
+
&.badge-#{$theme} {
|
|
11
|
+
--#{$prefix}badge-color: #{$color};
|
|
12
|
+
--#{$prefix}badge-bg: var(--#{$prefix}#{$theme});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.badge-dot {
|
|
17
|
+
min-width: var(--#{$prefix}badge-dot-height);
|
|
18
|
+
height: var(--#{$prefix}badge-dot-height);
|
|
19
|
+
padding: 0;
|
|
20
|
+
border-radius: var(--#{$prefix}badge-border-radius);
|
|
21
|
+
|
|
22
|
+
> span {
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|