@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.
- package/dist/css/dynamic-ui-non-root.css +1634 -1019
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +493 -29
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +2126 -1047
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +290 -318
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +288 -321
- package/dist/index.js.map +1 -1
- package/dist/types/components/DAvatar/DAvatar.d.ts +9 -0
- package/dist/types/components/DAvatar/index.d.ts +2 -0
- package/dist/types/components/DCarousel/DCarousel.d.ts +5 -4
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +5 -4
- package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +5 -4
- package/dist/types/components/DDatePickerInput/DDatePickerInput.d.ts +1 -0
- package/dist/types/components/DToastContainer/DToastContainer.d.ts +9 -7
- package/dist/types/components/DToastContainer/index.d.ts +1 -1
- package/dist/types/components/DToastContainer/{useToast.d.ts → useDToast.d.ts} +7 -4
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/interface.d.ts +1 -0
- package/dist/types/contexts/DContext.d.ts +8 -7
- package/dist/types/contexts/DPortalContext.d.ts +29 -0
- package/dist/types/contexts/index.d.ts +1 -2
- package/dist/types/hooks/useStackState.d.ts +1 -1
- package/package.json +3 -3
- package/src/style/abstracts/_mixins.scss +110 -94
- package/src/style/abstracts/_utilities.scss +46 -1
- package/src/style/abstracts/variables/_+import.scss +2 -0
- package/src/style/abstracts/variables/_accordion.scss +2 -2
- package/src/style/abstracts/variables/_alerts.scss +1 -1
- package/src/style/abstracts/variables/_cards.scss +2 -0
- package/src/style/abstracts/variables/_collapse-icon-text.scss +2 -2
- package/src/style/abstracts/variables/_forms.scss +7 -8
- package/src/style/abstracts/variables/_navs.scss +2 -2
- package/src/style/abstracts/variables/_pagination.scss +4 -4
- package/src/style/abstracts/variables/_progress.scss +2 -2
- package/src/style/abstracts/variables/_quick-action-button.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-check.scss +4 -4
- package/src/style/abstracts/variables/_quick-action-select.scss +3 -3
- package/src/style/abstracts/variables/_quick-action-switch.scss +2 -2
- package/src/style/abstracts/variables/_tooltip.scss +16 -0
- package/src/style/abstracts/variables/_typography.scss +76 -20
- package/src/style/abstracts/variables/_z-index.scss +11 -0
- package/src/style/base/_+import.scss +7 -2
- package/src/style/base/_avatar.scss +61 -0
- package/src/style/base/_backdrop.scss +9 -0
- package/src/style/base/_button-group.scss +13 -0
- package/src/style/base/{_button.scss → _buttons.scss} +14 -48
- package/src/style/base/_form-check.scss +2 -1
- package/src/style/base/_input-group.scss +11 -6
- package/src/style/base/_tooltip.scss +23 -0
- package/src/style/base/_type.scss +104 -0
- package/src/style/components/_+import.scss +0 -2
- package/src/style/components/_d-datepicker.scss +95 -45
- package/src/style/components/_d-icon.scss +1 -1
- package/src/style/components/_d-input-pin.scss +5 -0
- package/src/style/components/_d-quick-action-button.scss +8 -0
- package/src/style/components/_d-quick-action-select.scss +2 -0
- package/src/style/components/_d-quick-action-switch.scss +4 -4
- package/src/style/components/_d-select.scss +1 -1
- package/src/style/components/_d-stepper-mobile.scss +3 -3
- package/src/style/helpers/_+import.scss +3 -1
- package/src/style/helpers/_colored-links.scss +70 -0
- package/src/style/helpers/_text-truncate.scss +8 -0
- package/src/style/root/_root.scss +98 -21
- package/dist/types/components/DMonthPicker/DMonthPicker.d.ts +0 -12
- package/dist/types/components/DMonthPicker/index.d.ts +0 -2
- package/dist/types/contexts/DModalContext.d.ts +0 -31
- package/dist/types/contexts/DOffcanvasContext.d.ts +0 -31
- package/src/style/components/_d-monthpicker.scss +0 -98
- package/src/style/components/_d-tooltip.scss +0 -35
|
@@ -31,10 +31,6 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
|
35
|
-
--#{$prefix}btn-lg-border-radius: #{$btn-border-radius-lg};
|
|
36
|
-
--#{$prefix}btn-sm-border-radius: #{$btn-border-radius-sm};
|
|
37
|
-
|
|
38
34
|
@each $color, $value in $colors {
|
|
39
35
|
// custom
|
|
40
36
|
--#{$prefix}#{$color}: rgb(var(--#{$prefix}#{$color}-rgb));
|
|
@@ -173,32 +169,113 @@
|
|
|
173
169
|
--#{$prefix}form-invalid-border-color: #{$form-invalid-border-color};
|
|
174
170
|
// scss-docs-end root-form-validation-variables
|
|
175
171
|
|
|
176
|
-
|
|
172
|
+
--#{$prefix}heading-line-height: #{$headings-line-height-value};
|
|
177
173
|
|
|
178
|
-
@each $level, $value in $
|
|
179
|
-
--#{$prefix}
|
|
174
|
+
@each $level, $value in $display-font-size-values {
|
|
175
|
+
@include rfs($value, --#{$prefix}rfs-display-#{$level});
|
|
176
|
+
--#{$prefix}fs-display-#{$level}: var(--#{$prefix}rfs-display-#{$level});
|
|
180
177
|
}
|
|
181
178
|
|
|
182
|
-
@each $level, $value in $
|
|
183
|
-
--#{$prefix}
|
|
184
|
-
|
|
185
|
-
@each $level, $value in $font-sizes {
|
|
186
|
-
--#{$prefix}ref-fs-#{$level}: #{$value};
|
|
179
|
+
@each $level, $value in $font-size-values {
|
|
180
|
+
@include rfs($value, --#{$prefix}rfs-fs-#{$level});
|
|
181
|
+
--#{$prefix}fs-#{$level}: var(--#{$prefix}rfs-fs-#{$level});
|
|
187
182
|
}
|
|
188
|
-
--#{$prefix}
|
|
183
|
+
@include rfs($small-font-size-value, --#{$prefix}rfs-fs-small);
|
|
184
|
+
--#{$prefix}fs-small: var(--#{$prefix}rfs-fs-small);
|
|
189
185
|
|
|
190
|
-
--#{$prefix}
|
|
191
|
-
--#{$prefix}
|
|
192
|
-
--#{$prefix}
|
|
193
|
-
--#{$prefix}
|
|
194
|
-
--#{$prefix}
|
|
195
|
-
--#{$prefix}
|
|
186
|
+
--#{$prefix}fw-lighter: #{$font-weight-lighter-value};
|
|
187
|
+
--#{$prefix}fw-light: #{$font-weight-light-value};
|
|
188
|
+
--#{$prefix}fw-normal: #{$font-weight-normal-value};
|
|
189
|
+
--#{$prefix}fw-semibold: #{$font-weight-semibold-value};
|
|
190
|
+
--#{$prefix}fw-bold: #{$font-weight-bold-value};
|
|
191
|
+
--#{$prefix}fw-bolder: #{$font-weight-bolder-value};
|
|
196
192
|
|
|
197
193
|
--#{$prefix}label-padding-y: var(--#{$prefix}ref-spacer-0);
|
|
198
194
|
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-2);
|
|
199
|
-
--#{$prefix}label-font-size: var(--#{$prefix}
|
|
200
|
-
--#{$prefix}label-font-weight: var(--#{$prefix}
|
|
195
|
+
--#{$prefix}label-font-size: var(--#{$prefix}fs-small);
|
|
196
|
+
--#{$prefix}label-font-weight: var(--#{$prefix}fw-normal);
|
|
201
197
|
--#{$prefix}label-color: var(--#{$prefix}gray);
|
|
198
|
+
|
|
199
|
+
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
|
200
|
+
--#{$prefix}btn-lg-border-radius: #{$btn-border-radius-lg};
|
|
201
|
+
--#{$prefix}btn-sm-border-radius: #{$btn-border-radius-sm};
|
|
202
|
+
|
|
203
|
+
@each $color, $value in $theme-colors {
|
|
204
|
+
@if $color == "light" {
|
|
205
|
+
@include df-button-variant-variables(
|
|
206
|
+
"light",
|
|
207
|
+
$default-color: var(--#{$prefix}light),
|
|
208
|
+
$hover-color: var(--#{$prefix}gray-200),
|
|
209
|
+
$focus-color: var(--#{$prefix}light),
|
|
210
|
+
$active-color: var(--#{$prefix}gray-300),
|
|
211
|
+
$default-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
212
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
213
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-200)),
|
|
214
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-300)),
|
|
215
|
+
$disabled-opacity: .5
|
|
216
|
+
);
|
|
217
|
+
@include df-button-outline-variant-variables(
|
|
218
|
+
"light",
|
|
219
|
+
$default-color: var(--#{$prefix}light),
|
|
220
|
+
$hover-bg-color: var(--#{$prefix}light),
|
|
221
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
222
|
+
$focus-text-color: var(--#{$prefix}light),
|
|
223
|
+
$active-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
224
|
+
$active-bg-color: var(--#{$prefix}gray-300),
|
|
225
|
+
$active-border-color: var(--#{$prefix}gray-300)
|
|
226
|
+
);
|
|
227
|
+
@include df-button-link-variant-variables(
|
|
228
|
+
"light",
|
|
229
|
+
$default-color: var(--#{$prefix}light),
|
|
230
|
+
$hover-bg-color: var(--#{$prefix}light),
|
|
231
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
232
|
+
$focus-text-color: var(--#{$prefix}light),
|
|
233
|
+
$active-text-color: color-contrast-var(map-get($all-colors, light)),
|
|
234
|
+
$active-bg-color: var(--#{$prefix}gray-300)
|
|
235
|
+
);
|
|
236
|
+
} @else if $color == "dark" {
|
|
237
|
+
@include df-button-variant-variables(
|
|
238
|
+
"dark",
|
|
239
|
+
$default-color: var(--#{$prefix}dark),
|
|
240
|
+
$hover-color: var(--#{$prefix}gray-800),
|
|
241
|
+
$focus-color: var(--#{$prefix}dark),
|
|
242
|
+
$active-color: var(--#{$prefix}gray-700),
|
|
243
|
+
$default-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
244
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
245
|
+
$focus-text-color: color-contrast-var(map-get($all-colors, gray-800)),
|
|
246
|
+
$active-text-color: color-contrast-var(map-get($all-colors, gray-700)),
|
|
247
|
+
$disabled-opacity: .5
|
|
248
|
+
);
|
|
249
|
+
@include df-button-outline-variant-variables(
|
|
250
|
+
"dark",
|
|
251
|
+
$default-color: var(--#{$prefix}dark),
|
|
252
|
+
$hover-bg-color: var(--#{$prefix}dark),
|
|
253
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
254
|
+
$focus-text-color: var(--#{$prefix}dark),
|
|
255
|
+
$active-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
256
|
+
$active-bg-color: var(--#{$prefix}gray-700),
|
|
257
|
+
$active-border-color: var(--#{$prefix}gray-700)
|
|
258
|
+
);
|
|
259
|
+
@include df-button-link-variant-variables(
|
|
260
|
+
"dark",
|
|
261
|
+
$default-color: var(--#{$prefix}dark),
|
|
262
|
+
$hover-bg-color: var(--#{$prefix}dark),
|
|
263
|
+
$hover-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
264
|
+
$focus-text-color: var(--#{$prefix}dark),
|
|
265
|
+
$active-text-color: color-contrast-var(map-get($all-colors, dark)),
|
|
266
|
+
$active-bg-color: var(--#{$prefix}gray-700)
|
|
267
|
+
);
|
|
268
|
+
} @else {
|
|
269
|
+
@include df-button-variant-variables($color);
|
|
270
|
+
@include df-button-outline-variant-variables($color);
|
|
271
|
+
@include df-button-link-variant-variables($color);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
// only reference root variables
|
|
276
|
+
@each $level, $value in $spacers {
|
|
277
|
+
--#{$prefix}ref-spacer-#{$level}: #{$value};
|
|
278
|
+
}
|
|
202
279
|
}
|
|
203
280
|
|
|
204
281
|
@if $enable-dark-mode {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
2
|
-
import type { BaseProps, FamilyIconProps } from '../interface';
|
|
3
|
-
type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps & Omit<ReactDatePickerProps<CustomModifierNames, WithRange>, 'selectsRange' | 'locale'> & {
|
|
4
|
-
date: string;
|
|
5
|
-
locale?: Locale;
|
|
6
|
-
headerPrevYearAriaLabel?: string;
|
|
7
|
-
headerNextYearAriaLabel?: string;
|
|
8
|
-
iconPrevMonth?: string;
|
|
9
|
-
iconNextMonth?: string;
|
|
10
|
-
};
|
|
11
|
-
export default function DMonthPicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ onChange, date, locale, className, calendarClassName, headerPrevYearAriaLabel, headerNextYearAriaLabel, iconFamilyClass, iconFamilyPrefix, iconPrevMonth: iconPrevMonthProp, iconNextMonth: iconNextMonthProp, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren, FC } from 'react';
|
|
2
|
-
type ModalComponent<P = any> = FC<ModalProps<P>>;
|
|
3
|
-
type ModalAvailableList<T extends Record<string, unknown>> = {
|
|
4
|
-
[K in keyof T]: ModalComponent<T[K]>;
|
|
5
|
-
};
|
|
6
|
-
type Props<T extends Record<string, unknown>> = PropsWithChildren<{
|
|
7
|
-
portalName: string;
|
|
8
|
-
availableModals: ModalAvailableList<T>;
|
|
9
|
-
}>;
|
|
10
|
-
type ModalStackItem<N extends string = string, P = any> = {
|
|
11
|
-
modalName: N;
|
|
12
|
-
Component: ModalComponent<P>;
|
|
13
|
-
payload: P;
|
|
14
|
-
};
|
|
15
|
-
type OpenModalFunction<P = unknown> = (name: string, payload: P) => void;
|
|
16
|
-
type CloseModalFunction = () => void;
|
|
17
|
-
type ModalContextType<T extends Record<string, unknown>> = {
|
|
18
|
-
stack: ModalStackItem<string, T[keyof T]>[];
|
|
19
|
-
openModal: OpenModalFunction<T[keyof T]>;
|
|
20
|
-
closeModal: CloseModalFunction;
|
|
21
|
-
};
|
|
22
|
-
export type ModalProps<P = unknown> = {
|
|
23
|
-
name: string;
|
|
24
|
-
payload: P;
|
|
25
|
-
openModal: OpenModalFunction<P>;
|
|
26
|
-
closeModal: CloseModalFunction;
|
|
27
|
-
};
|
|
28
|
-
export declare const DModalContext: import("react").Context<ModalContextType<any> | undefined>;
|
|
29
|
-
export declare function DModalContextProvider<T extends Record<string, unknown>>({ portalName, children, availableModals, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare function useDModalContext<T extends Record<string, unknown>>(): ModalContextType<T>;
|
|
31
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren, FC } from 'react';
|
|
2
|
-
type OffcanvasComponent<P = any> = FC<OffcanvasProps<P>>;
|
|
3
|
-
type OffcanvasAvailableList<T extends Record<string, unknown>> = {
|
|
4
|
-
[K in keyof T]: OffcanvasComponent<T[K]>;
|
|
5
|
-
};
|
|
6
|
-
type Props<T extends Record<string, unknown>> = PropsWithChildren<{
|
|
7
|
-
portalName: string;
|
|
8
|
-
availableOffcanvas: OffcanvasAvailableList<T>;
|
|
9
|
-
}>;
|
|
10
|
-
type OffcanvasStackItem<N extends string = string, P = any> = {
|
|
11
|
-
offcanvasName: N;
|
|
12
|
-
Component: OffcanvasComponent<P>;
|
|
13
|
-
payload: P;
|
|
14
|
-
};
|
|
15
|
-
type OpenOffcanvasFunction<P = unknown> = (name: string, payload: P) => void;
|
|
16
|
-
type CloseOffcanvasFunction = () => void;
|
|
17
|
-
type OffcanvasContextType<T extends Record<string, unknown>> = {
|
|
18
|
-
stack: OffcanvasStackItem<string, T[keyof T]>[];
|
|
19
|
-
openOffcanvas: OpenOffcanvasFunction<T[keyof T]>;
|
|
20
|
-
closeOffcanvas: CloseOffcanvasFunction;
|
|
21
|
-
};
|
|
22
|
-
export type OffcanvasProps<P = any> = {
|
|
23
|
-
name: string;
|
|
24
|
-
payload: P;
|
|
25
|
-
openOffcanvas: OpenOffcanvasFunction<P>;
|
|
26
|
-
closeOffcanvas: CloseOffcanvasFunction;
|
|
27
|
-
};
|
|
28
|
-
export declare const DOffcanvasContext: import("react").Context<OffcanvasContextType<any> | undefined>;
|
|
29
|
-
export declare function DOffcanvasContextProvider<T extends Record<string, unknown>>({ portalName, children, availableOffcanvas, }: Props<T>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export declare function useDOffcanvasContext<T extends Record<string, unknown>>(): OffcanvasContextType<T>;
|
|
31
|
-
export {};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// stylelint-disable selector-class-pattern
|
|
2
|
-
|
|
3
|
-
.react-datepicker.d-month-picker {
|
|
4
|
-
// Month variables
|
|
5
|
-
--#{$prefix}monthpicker-header-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-2) 0;
|
|
6
|
-
--#{$prefix}monthpicker-font-weight: var(--#{$prefix}ref-fw-normal);
|
|
7
|
-
--#{$prefix}monthpicker-header-color: var(--#{$prefix}white);
|
|
8
|
-
--#{$prefix}monthpicker-header-bg: var(--#{$prefix}dark);
|
|
9
|
-
|
|
10
|
-
--#{$prefix}monthpicker-month-gap: 0;
|
|
11
|
-
--#{$prefix}monthpicker-month-padding: var(--#{$prefix}ref-spacer-2) var(--#{$prefix}ref-spacer-6) var(--#{$prefix}ref-spacer-4);
|
|
12
|
-
--#{$prefix}monthpicker-month-color: var(--#{$prefix}white);
|
|
13
|
-
--#{$prefix}monthpicker-month-bg: var(--#{$prefix}dark);
|
|
14
|
-
|
|
15
|
-
--#{$prefix}monthpicker-month-today-color: var(--#{$prefix}white);
|
|
16
|
-
--#{$prefix}monthpicker-month-selected-bg: var(--#{$prefix}gray-500);
|
|
17
|
-
--#{$prefix}monthpicker-month-selected-box-shadow: 0 0 0 1px inset var(--#{$prefix}gray-100);
|
|
18
|
-
|
|
19
|
-
--#{$prefix}monthpicker-month-hover-bg: var(--#{$prefix}gray-700);
|
|
20
|
-
|
|
21
|
-
--#{$prefix}monthpicker-month-wrapper-gap: var(--#{$prefix}ref-spacer-2);
|
|
22
|
-
--#{$prefix}monthpicker-month-wrapper-font-size: var(--#{$prefix}ref-fs-small);
|
|
23
|
-
|
|
24
|
-
--#{$prefix}monthpicker-single-month-width: 46px;
|
|
25
|
-
--#{$prefix}monthpicker-single-month-padding: var(--#{$prefix}ref-spacer-2);
|
|
26
|
-
--#{$prefix}monthpicker-single-month-margin: 0;
|
|
27
|
-
--#{$prefix}monthpicker-single-month-text-transform: capitalize;
|
|
28
|
-
--#{$prefix}monthpicker-single-month-radius: var(--#{$prefix}ref-spacer-6);
|
|
29
|
-
--#{$prefix}monthpicker-single-month-line-height: var(--#{$prefix}ref-fs-6);
|
|
30
|
-
|
|
31
|
-
--#{$prefix}monthpicker-single-month-after-display: inline;
|
|
32
|
-
--#{$prefix}monthpicker-single-month-after-content: ".";
|
|
33
|
-
|
|
34
|
-
--#{$prefix}datepicker-triangle-color: var(--#{$prefix}dark);
|
|
35
|
-
|
|
36
|
-
font-family: var(--#{$prefix}datepicker-font-family);
|
|
37
|
-
border: var(--#{$prefix}datepicker-border);
|
|
38
|
-
box-shadow: var(--#{$prefix}datepicker-box-shadow);
|
|
39
|
-
|
|
40
|
-
.react-datepicker__header {
|
|
41
|
-
padding: var(--#{$prefix}monthpicker-header-padding);
|
|
42
|
-
font-weight: var(--#{$prefix}monthpicker-font-weight);
|
|
43
|
-
color: var(--#{$prefix}monthpicker-header-color);
|
|
44
|
-
background-color: var(--#{$prefix}monthpicker-header-bg);
|
|
45
|
-
|
|
46
|
-
.btn-sm {
|
|
47
|
-
--#{$prefix}btn-padding-x: 0;
|
|
48
|
-
--#{$prefix}btn-padding-y: 0;
|
|
49
|
-
--#{$prefix}btn-font-size: var(--#{$prefix}ref-fs-5);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.react-datepicker__month.react-datepicker__monthPicker,
|
|
54
|
-
.react-datepicker__header.react-datepicker-year-header {
|
|
55
|
-
gap: var(--#{$prefix}monthpicker-month-gap);
|
|
56
|
-
padding: var(--#{$prefix}monthpicker-month-padding);
|
|
57
|
-
color: var(--#{$prefix}monthpicker-month-color);
|
|
58
|
-
background-color: var(--#{$prefix}monthpicker-month-bg);
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
.react-datepicker__month--selected,
|
|
62
|
-
.react-datepicker__month-text--in-range,
|
|
63
|
-
.react-datepicker__month-text--in-selecting-range,
|
|
64
|
-
.react-datepicker__month-text--keyboard-selected {
|
|
65
|
-
color: var(--#{$prefix}monthpicker-month-today-color);
|
|
66
|
-
background-color: var(--#{$prefix}monthpicker-month-selected-bg);
|
|
67
|
-
box-shadow: var(--#{$prefix}monthpicker-month-selected-box-shadow);
|
|
68
|
-
}
|
|
69
|
-
.react-datepicker__month-text:hover {
|
|
70
|
-
background-color: var(--#{$prefix}monthpicker-month-hover-bg);
|
|
71
|
-
}
|
|
72
|
-
.react-datepicker__month-wrapper {
|
|
73
|
-
display: flex;
|
|
74
|
-
gap: var(--#{$prefix}monthpicker-month-wrapper-gap);
|
|
75
|
-
font-size: var(--#{$prefix}monthpicker-month-wrapper-font-size);
|
|
76
|
-
.react-datepicker__month-text {
|
|
77
|
-
width: var(--#{$prefix}monthpicker-single-month-width);
|
|
78
|
-
padding: var(--#{$prefix}monthpicker-single-month-padding);
|
|
79
|
-
margin: var(--#{$prefix}monthpicker-single-month-margin);
|
|
80
|
-
line-height: var(--#{$prefix}monthpicker-single-month-line-height);
|
|
81
|
-
text-transform: var(--#{$prefix}monthpicker-single-month-text-transform);
|
|
82
|
-
border-radius: var(--#{$prefix}monthpicker-single-month-radius);
|
|
83
|
-
&::after {
|
|
84
|
-
display: var(--#{$prefix}monthpicker-single-month-after-display);
|
|
85
|
-
content: var(--#{$prefix}monthpicker-single-month-after-content);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
.react-datepicker__triangle {
|
|
90
|
-
&::after,
|
|
91
|
-
&::before {
|
|
92
|
-
top: 0;
|
|
93
|
-
border-bottom-color: var(--#{$prefix}datepicker-triangle-color);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// stylelint-enable selector-class-pattern
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
.d-tooltip {
|
|
2
|
-
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-component-font-size, var(--#{$prefix}body-font-size));
|
|
3
|
-
--#{$prefix}tooltip-sm-font-size: var(--#{$prefix}ref-fs-small);
|
|
4
|
-
--#{$prefix}tooltip-lg-font-size: var(--#{$prefix}ref-fs-6);
|
|
5
|
-
--#{$prefix}tooltip-bg: var(--#{$prefix}tooltip-component-bg, transparent);
|
|
6
|
-
--#{$prefix}tooltip-border-radius: var(--#{$prefix}tooltip-component-border-radius, var(--#{$prefix}border-radius));
|
|
7
|
-
--#{$prefix}tooltip-color: var(--#{$prefix}tooltip-component-color, var(--#{$prefix}body-color));
|
|
8
|
-
--#{$prefix}tooltip-padding: var(--#{$prefix}tooltip-component-padding, var(--#{$prefix}ref-spacer-2));
|
|
9
|
-
--#{$prefix}tooltip-max-width: var(--#{$prefix}tooltip-component-max-width, 300px);
|
|
10
|
-
max-width: var(--#{$prefix}tooltip-max-width);
|
|
11
|
-
padding: var(--#{$prefix}tooltip-padding);
|
|
12
|
-
|
|
13
|
-
font-size: var(--#{$prefix}tooltip-font-size);
|
|
14
|
-
color: var(--#{$prefix}tooltip-color);
|
|
15
|
-
background: var(--#{$prefix}tooltip-bg);
|
|
16
|
-
border-radius: var(--#{$prefix}tooltip-border-radius);
|
|
17
|
-
fill: var(--#{$prefix}tooltip-bg);
|
|
18
|
-
|
|
19
|
-
&.d-tooltip-sm {
|
|
20
|
-
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-sm-font-size);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.d-tooltip-lg {
|
|
24
|
-
--#{$prefix}tooltip-font-size: var(--#{$prefix}tooltip-lg-font-size);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@each $theme, $value in $theme-colors {
|
|
28
|
-
$color: color-contrast-var($value);
|
|
29
|
-
|
|
30
|
-
&.d-tooltip-#{$theme} {
|
|
31
|
-
--#{$prefix}tooltip-color: var(--#{$prefix}tooltip-component-color, #{$color});
|
|
32
|
-
--#{$prefix}tooltip-bg: var(--#{$prefix}tooltip-component-bg, var(--#{$prefix}#{$theme}));
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|