@dynamic-framework/ui-react 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/dynamic-ui-non-root.css +293 -172
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +2 -2
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +294 -173
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +217 -195
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +214 -194
- package/dist/index.js.map +1 -1
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +8 -4
- package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +5 -4
- package/dist/types/components/DDatePickerInput/DDatePickerInput.d.ts +2 -1
- package/dist/types/contexts/index.d.ts +1 -1
- package/dist/types/hooks/useStackState.d.ts +1 -1
- package/package.json +2 -2
- package/src/style/abstracts/_utilities.scss +12 -0
- package/src/style/abstracts/variables/_forms.scss +2 -1
- package/src/style/components/_+import.scss +0 -1
- package/src/style/components/_d-datepicker.scss +89 -39
- package/src/style/components/_d-icon.scss +1 -1
- package/src/style/components/_d-input-pin.scss +6 -1
- package/src/style/components/_d-select.scss +1 -0
- package/src/style/helpers/_+import.scss +2 -1
- package/src/style/helpers/_colored-links.scss +70 -0
- package/src/style/root/_root.scss +1 -1
- package/dist/types/components/DMonthPicker/DMonthPicker.d.ts +0 -12
- package/dist/types/components/DMonthPicker/index.d.ts +0 -2
- package/src/style/components/_d-monthpicker.scss +0 -98
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Locale } from 'date-fns';
|
|
2
2
|
import type { ReactDatePickerProps } from 'react-datepicker';
|
|
3
3
|
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
|
-
type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps &
|
|
4
|
+
type Props<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined> = BaseProps & FamilyIconProps & Pick<ReactDatePickerProps<CustomModifierNames, WithRange>, 'formatWeekDay' | 'onChange' | 'autoFocus' | 'inline' | 'withPortal' | 'minDate' | 'showTimeInput' | 'calendarStartDay' | 'dateFormat' | 'selectsStart' | 'selectsEnd' | 'startDate' | 'endDate' | 'fixedHeight'> & {
|
|
5
5
|
date?: string | null;
|
|
6
|
-
withMonthSelector?: boolean;
|
|
7
6
|
selectsRange?: boolean;
|
|
8
7
|
inputLabel?: string;
|
|
8
|
+
inputHint?: string;
|
|
9
9
|
inputAriaLabel?: string;
|
|
10
10
|
inputActionAriaLabel?: string;
|
|
11
11
|
iconInput?: string;
|
|
@@ -14,12 +14,16 @@ type Props<CustomModifierNames extends string = never, WithRange extends boolean
|
|
|
14
14
|
timeLabel?: string;
|
|
15
15
|
iconHeaderPrevMonth?: string;
|
|
16
16
|
iconHeaderNextMonth?: string;
|
|
17
|
+
iconHeaderSize?: ComponentSize;
|
|
17
18
|
headerPrevMonthAriaLabel?: string;
|
|
18
19
|
headerNextMonthAriaLabel?: string;
|
|
19
|
-
headerIconSize?: ComponentSize;
|
|
20
20
|
headerButtonVariant?: ButtonVariant;
|
|
21
21
|
headerButtonTheme?: string;
|
|
22
22
|
locale?: Locale;
|
|
23
|
+
minYearSelect?: number;
|
|
24
|
+
maxYearSelect?: number;
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
valid?: boolean;
|
|
23
27
|
};
|
|
24
|
-
export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange,
|
|
28
|
+
export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, invalid, valid, locale, className, formatWeekDay: formatWeekDayProp, style, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
|
|
25
29
|
export {};
|
|
@@ -3,14 +3,13 @@ import DButton from '../DButton';
|
|
|
3
3
|
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
4
|
type Props = BaseProps & FamilyIconProps & {
|
|
5
5
|
locale?: Locale;
|
|
6
|
-
|
|
6
|
+
date: Date;
|
|
7
7
|
decreaseMonth: () => void;
|
|
8
8
|
increaseMonth: () => void;
|
|
9
9
|
changeMonth: (monthNumber: number) => void;
|
|
10
10
|
changeYear: (yearNumber: number) => void;
|
|
11
11
|
prevMonthButtonDisabled: boolean;
|
|
12
12
|
nextMonthButtonDisabled: boolean;
|
|
13
|
-
withMonthSelector: boolean;
|
|
14
13
|
iconPrevMonth: string;
|
|
15
14
|
iconNextMonth: string;
|
|
16
15
|
prevMonthAriaLabel?: string;
|
|
@@ -18,6 +17,8 @@ type Props = BaseProps & FamilyIconProps & {
|
|
|
18
17
|
iconSize: ComponentSize;
|
|
19
18
|
buttonVariant: ButtonVariant;
|
|
20
19
|
buttonTheme: string;
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
minYearSelect: number;
|
|
21
|
+
maxYearSelect: number;
|
|
22
|
+
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onClick' | 'disabled'>;
|
|
23
|
+
export default function DDatePickerHeader({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, iconPrevMonth, iconNextMonth, iconFamilyClass, iconFamilyPrefix, iconMaterialStyle, prevMonthAriaLabel, nextMonthAriaLabel, iconSize, buttonVariant, buttonTheme, locale, style, className, minYearSelect, maxYearSelect, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export {};
|
|
@@ -4,6 +4,7 @@ import type { BaseProps } from '../interface';
|
|
|
4
4
|
type Props = BaseProps & {
|
|
5
5
|
value?: string;
|
|
6
6
|
onClick?: () => void;
|
|
7
|
-
|
|
7
|
+
inputLabel?: string;
|
|
8
|
+
} & Omit<ComponentProps<typeof DInput>, 'type' | 'onIconEndClick' | 'value'>;
|
|
8
9
|
declare const ForwardedDDatePickerInput: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
9
10
|
export default ForwardedDDatePickerInput;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './DContext';
|
|
2
|
-
export
|
|
2
|
+
export { useDPortalContext, PortalProps } from './DPortalContext';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @returns The list and controls to modify the stack
|
|
7
7
|
* @see https://react-hooks.org/docs/useStackState
|
|
8
8
|
*/
|
|
9
|
-
export default function useStackState<T>(initialList
|
|
9
|
+
export default function useStackState<T>(initialList?: T[]): [
|
|
10
10
|
T[],
|
|
11
11
|
{
|
|
12
12
|
clear: () => void;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.20.0",
|
|
7
7
|
"description": "React Dynamic Framework",
|
|
8
8
|
"license": "https://github.com/dynamic-framework/dynamic-ui/blob/master/libraries/dynamic-ui-react/LICENSE.md",
|
|
9
9
|
"repository": {
|
|
@@ -149,5 +149,5 @@
|
|
|
149
149
|
"react-dom": "^18.2.0",
|
|
150
150
|
"react-i18next": "^13.3.1"
|
|
151
151
|
},
|
|
152
|
-
"gitHead": "
|
|
152
|
+
"gitHead": "390121896cb0178e9faf24aef8f1da30a55fa6bf"
|
|
153
153
|
}
|
|
@@ -113,5 +113,17 @@ $utilities: map-merge(
|
|
|
113
113
|
css-variable-name: display-font-size,
|
|
114
114
|
values: $display-font-sizes
|
|
115
115
|
),
|
|
116
|
+
"height": map-merge(
|
|
117
|
+
map-get($utilities, "height"),
|
|
118
|
+
(
|
|
119
|
+
responsive: true,
|
|
120
|
+
)
|
|
121
|
+
),
|
|
122
|
+
"width": map-merge(
|
|
123
|
+
map-get($utilities, "width"),
|
|
124
|
+
(
|
|
125
|
+
responsive: true,
|
|
126
|
+
)
|
|
127
|
+
),
|
|
116
128
|
)
|
|
117
129
|
);
|
|
@@ -27,9 +27,10 @@ $input-disabled-color: var(--#{$prefix}gray-300) !default;
|
|
|
27
27
|
$input-disabled-bg: var(--#{$prefix}gray-100) !default;
|
|
28
28
|
$input-disabled-border-color: var(--#{$prefix}gray-300) !default;
|
|
29
29
|
|
|
30
|
-
$input-color: var(--#{$prefix}gray) !default;
|
|
30
|
+
$input-color: var(--#{$prefix}gray-900) !default;
|
|
31
31
|
$input-box-shadow: 0 0 0 transparent !default; // to avoid the none in the bootstrap box-shadow calculation
|
|
32
32
|
|
|
33
|
+
$input-border-color: var(--#{$prefix}gray-300) !default;
|
|
33
34
|
$input-border-radius: var(--#{$prefix}border-radius-sm) !default;
|
|
34
35
|
$input-border-radius-sm: var(--#{$prefix}border-radius-sm) !default;
|
|
35
36
|
$input-border-radius-lg: var(--#{$prefix}border-radius-sm) !default;
|
|
@@ -10,36 +10,43 @@
|
|
|
10
10
|
|
|
11
11
|
// Header variables
|
|
12
12
|
--#{$prefix}datepicker-header-gap: var(--#{$prefix}ref-spacer-4);
|
|
13
|
-
--#{$prefix}datepicker-header-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-
|
|
13
|
+
--#{$prefix}datepicker-header-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-7);
|
|
14
14
|
--#{$prefix}datepicker-header-background-color: var(--#{$prefix}secondary-soft);
|
|
15
15
|
--#{$prefix}datepicker-header-border: 0;
|
|
16
16
|
--#{$prefix}datepicker-header-font-size: var(--#{$prefix}fs-6);
|
|
17
|
+
--#{$prefix}datepicker-header-button-padding: 0;
|
|
18
|
+
--#{$prefix}datepicker-header-select-padding: 0 var(--#{$prefix}ref-spacer-1);
|
|
19
|
+
--#{$prefix}datepicker-header-select-font-weight: var(--#{$prefix}fw-bold);
|
|
20
|
+
--#{$prefix}datepicker-header-select-menu-width: fit-content;
|
|
17
21
|
|
|
18
22
|
--#{$prefix}datepicker-day-names-margin: 0;
|
|
19
23
|
--#{$prefix}datepicker-day-names-font-size: var(--#{$prefix}ref-spacer-4);
|
|
20
24
|
|
|
21
25
|
--#{$prefix}datepicker-day-name-weight: var(--#{$prefix}fw-bold);
|
|
22
26
|
--#{$prefix}datepicker-day-name-margin: 0;
|
|
23
|
-
--#{$prefix}datepicker-day-name-
|
|
27
|
+
--#{$prefix}datepicker-day-name-padding: 0;
|
|
28
|
+
--#{$prefix}datepicker-day-name-size: var(--#{$prefix}ref-spacer-5);
|
|
24
29
|
--#{$prefix}datepicker-day-name-color: var(--#{$prefix}gray-500);
|
|
25
30
|
|
|
26
31
|
// Calendar variables
|
|
27
|
-
--#{$prefix}datepicker-month-gap:
|
|
28
|
-
--#{$prefix}datepicker-month-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-
|
|
32
|
+
--#{$prefix}datepicker-month-gap: .875rem;
|
|
33
|
+
--#{$prefix}datepicker-month-padding: var(--#{$prefix}ref-spacer-4) var(--#{$prefix}ref-spacer-7) var(--#{$prefix}ref-spacer-6);
|
|
29
34
|
--#{$prefix}datepicker-month-margin: 0;
|
|
30
35
|
--#{$prefix}datepicker-month-color: var(--#{$prefix}white);
|
|
31
36
|
|
|
32
|
-
--#{$prefix}datepicker-week-gap: var(--#{$prefix}ref-spacer-
|
|
37
|
+
--#{$prefix}datepicker-week-gap: var(--#{$prefix}ref-spacer-8);
|
|
33
38
|
|
|
34
39
|
// Day variables
|
|
35
40
|
--#{$prefix}datepicker-day-margin: 0;
|
|
36
41
|
--#{$prefix}datepicker-day-font-size: var(--#{$prefix}fs-small);
|
|
37
|
-
--#{$prefix}datepicker-day-size: var(--#{$prefix}ref-spacer-
|
|
38
|
-
--#{$prefix}datepicker-day-padding:
|
|
42
|
+
--#{$prefix}datepicker-day-size: var(--#{$prefix}ref-spacer-5);
|
|
43
|
+
--#{$prefix}datepicker-day-padding: 0;
|
|
39
44
|
--#{$prefix}datepicker-day-radius: 100%;
|
|
45
|
+
--#{$prefix}datepicker-day-color: var(--#{$prefix}gray-900);
|
|
46
|
+
--#{$prefix}datepicker-day-disabled-color: var(--#{$prefix}gray-300);
|
|
40
47
|
|
|
41
|
-
--#{$prefix}datepicker-day-
|
|
42
|
-
--#{$prefix}datepicker-day-
|
|
48
|
+
--#{$prefix}datepicker-day-color-hover: var(--#{$prefix}gray-900);
|
|
49
|
+
--#{$prefix}datepicker-day-bg-hover: var(--#{$prefix}info-100);
|
|
43
50
|
|
|
44
51
|
--#{$prefix}datepicker-day-selected-color: var(--#{$prefix}white);
|
|
45
52
|
--#{$prefix}datepicker-day-selected-bg: var(--#{$prefix}secondary-500);
|
|
@@ -50,7 +57,7 @@
|
|
|
50
57
|
--#{$prefix}datepicker-day-outside-month-color: var(--#{$prefix}gray-400);
|
|
51
58
|
|
|
52
59
|
--#{$prefix}datepicker-day-today-font-weight: var(--#{$prefix}fw-normal);
|
|
53
|
-
--#{$prefix}datepicker-day-today-box-shadow: 0 0 0 2px
|
|
60
|
+
--#{$prefix}datepicker-day-today-box-shadow: 0 0 0 2px var(--#{$prefix}secondary);
|
|
54
61
|
|
|
55
62
|
// Time variables
|
|
56
63
|
--#{$prefix}datepicker-time-container-margin: 0;
|
|
@@ -81,17 +88,14 @@
|
|
|
81
88
|
|
|
82
89
|
.react-datepicker__day-names {
|
|
83
90
|
display: flex;
|
|
84
|
-
gap: var(--#{$prefix}ref-spacer-
|
|
91
|
+
gap: var(--#{$prefix}ref-spacer-8);
|
|
85
92
|
margin: var(--#{$prefix}datepicker-day-names-margin);
|
|
86
93
|
font-size: var(--#{$prefix}datepicker-day-names-font-size);
|
|
87
94
|
}
|
|
88
95
|
.react-datepicker__day-name {
|
|
89
|
-
display: flex;
|
|
90
|
-
align-items: center;
|
|
91
|
-
justify-content: center;
|
|
92
96
|
width: var(--#{$prefix}datepicker-day-name-size);
|
|
93
97
|
height: var(--#{$prefix}datepicker-day-name-size);
|
|
94
|
-
padding: var(--#{$prefix}datepicker-day-padding);
|
|
98
|
+
padding: var(--#{$prefix}datepicker-day-name-padding);
|
|
95
99
|
margin: var(--#{$prefix}datepicker-day-name-margin);
|
|
96
100
|
font-weight: var(--#{$prefix}datepicker-day-name-weight);
|
|
97
101
|
line-height: var(--#{$prefix}datepicker-day-name-size);
|
|
@@ -114,21 +118,29 @@
|
|
|
114
118
|
padding: var(--#{$prefix}datepicker-month-padding);
|
|
115
119
|
margin: var(--#{$prefix}datepicker-month-margin);
|
|
116
120
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
+
}
|
|
122
|
+
.react-datepicker__week {
|
|
123
|
+
display: flex;
|
|
124
|
+
gap: var(--#{$prefix}datepicker-week-gap);
|
|
125
|
+
}
|
|
121
126
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
.react-datepicker__day {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
width: var(--#{$prefix}datepicker-day-size);
|
|
132
|
+
height: var(--#{$prefix}datepicker-day-size);
|
|
133
|
+
padding: var(--#{$prefix}datepicker-day-padding);
|
|
134
|
+
margin: var(--#{$prefix}datepicker-day-margin);
|
|
135
|
+
font-size: var(--#{$prefix}datepicker-day-font-size);
|
|
136
|
+
line-height: var(--#{$prefix}datepicker-day-size);
|
|
137
|
+
color: var(--#{$prefix}datepicker-day-color);
|
|
138
|
+
|
|
139
|
+
&.react-datepicker__day--in-range.react-datepicker__day--range-end,
|
|
140
|
+
&.react-datepicker__day--in-selecting-range.react-datepicker__day--selecting-range-end {
|
|
141
|
+
color: var(--#{$prefix}datepicker-day-selected-color);
|
|
142
|
+
background-color: var(--#{$prefix}datepicker-day-selected-bg);
|
|
143
|
+
box-shadow: 0 0 0 2px var(--#{$prefix}datepicker-day-selected-bg);
|
|
132
144
|
}
|
|
133
145
|
}
|
|
134
146
|
|
|
@@ -142,12 +154,17 @@
|
|
|
142
154
|
.react-datepicker__month-text--selected,
|
|
143
155
|
.react-datepicker__quarter-text--selected,
|
|
144
156
|
.react-datepicker__year-text--selected):hover {
|
|
145
|
-
color: var(--#{$prefix}datepicker-day-
|
|
146
|
-
background-color: var(--#{$prefix}datepicker-day-
|
|
157
|
+
color: var(--#{$prefix}datepicker-day-color-hover);
|
|
158
|
+
background-color: var(--#{$prefix}datepicker-day-bg-hover);
|
|
147
159
|
border-radius: var(--#{$prefix}datepicker-day-radius);
|
|
160
|
+
box-shadow: 0 0 0 2px var(--#{$prefix}datepicker-day-bg-hover);
|
|
148
161
|
}
|
|
149
162
|
}
|
|
150
163
|
|
|
164
|
+
.react-datepicker__day--disabled {
|
|
165
|
+
color: var(--#{$prefix}datepicker-day-disabled-color);
|
|
166
|
+
}
|
|
167
|
+
|
|
151
168
|
// Selected single item
|
|
152
169
|
.react-datepicker__day--selected,
|
|
153
170
|
.react-datepicker__month--selected,
|
|
@@ -156,6 +173,7 @@
|
|
|
156
173
|
color: var(--#{$prefix}datepicker-day-selected-color);
|
|
157
174
|
background-color: var(--#{$prefix}datepicker-day-selected-bg);
|
|
158
175
|
border-radius: var(--#{$prefix}datepicker-day-radius);
|
|
176
|
+
box-shadow: 0 0 0 2px var(--#{$prefix}datepicker-day-selected-bg);
|
|
159
177
|
}
|
|
160
178
|
|
|
161
179
|
.react-datepicker__day--selected {
|
|
@@ -163,13 +181,7 @@
|
|
|
163
181
|
&.react-datepicker__day--in-selecting-range.react-datepicker__day--selecting-range-start {
|
|
164
182
|
color: var(--#{$prefix}datepicker-day-selected-color);
|
|
165
183
|
background-color: var(--#{$prefix}datepicker-day-selected-bg);
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
.react-datepicker__day {
|
|
169
|
-
&.react-datepicker__day--in-range.react-datepicker__day--range-end,
|
|
170
|
-
&.react-datepicker__day--in-selecting-range.react-datepicker__day--selecting-range-end {
|
|
171
|
-
color: var(--#{$prefix}datepicker-day-selected-color);
|
|
172
|
-
background-color: var(--#{$prefix}datepicker-day-selected-bg);
|
|
184
|
+
box-shadow: 0 0 0 2px var(--#{$prefix}datepicker-day-selected-bg);
|
|
173
185
|
}
|
|
174
186
|
}
|
|
175
187
|
|
|
@@ -239,7 +251,45 @@
|
|
|
239
251
|
}
|
|
240
252
|
}
|
|
241
253
|
.d-datepicker-header {
|
|
242
|
-
font-size: var(--#{$prefix}
|
|
254
|
+
font-size: var(--#{$prefix}datepicker-header-font-size);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.header-button {
|
|
258
|
+
--#{$prefix}btn-padding-y: var(--#{$prefix}datepicker-header-button-padding);
|
|
259
|
+
--#{$prefix}btn-padding-x: var(--#{$prefix}datepicker-header-button-padding);
|
|
260
|
+
&:hover,
|
|
261
|
+
&:active {
|
|
262
|
+
color: inherit;
|
|
263
|
+
background-color: inherit;
|
|
264
|
+
}
|
|
265
|
+
&:focus {
|
|
266
|
+
--#{$prefix}btn-focus-outline-offset: 8px;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.d-select {
|
|
271
|
+
&:focus-within .input-group {
|
|
272
|
+
border-color: transparent;
|
|
273
|
+
box-shadow: none;
|
|
274
|
+
}
|
|
275
|
+
.input-group {
|
|
276
|
+
--#{$prefix}input-border-width: 0;
|
|
277
|
+
}
|
|
278
|
+
.d-select__indicators {
|
|
279
|
+
display: none;
|
|
280
|
+
}
|
|
281
|
+
.d-select__control {
|
|
282
|
+
padding: var(--#{$prefix}datepicker-header-select-padding);
|
|
283
|
+
background-color: transparent;
|
|
284
|
+
}
|
|
285
|
+
.d-select__single-value {
|
|
286
|
+
font-weight: var(--#{$prefix}datepicker-header-select-font-weight);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
.d-select__menu {
|
|
290
|
+
left: 50%;
|
|
291
|
+
min-width: var(--#{$prefix}datepicker-header-select-menu-width);
|
|
292
|
+
translate: -50%;
|
|
243
293
|
}
|
|
244
294
|
}
|
|
245
295
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.d-icon {
|
|
2
2
|
--#{$prefix}icon-color: var(--#{$prefix}icon-component-color, inherit);
|
|
3
3
|
--#{$prefix}icon-bg-color: var(--#{$prefix}icon-component-bg-color, inherit);
|
|
4
|
-
--#{$prefix}icon-size: var(--#{$prefix}icon-component-size, $spacer-6);
|
|
4
|
+
--#{$prefix}icon-size: var(--#{$prefix}icon-component-size, var(--#{$prefix}ref-spacer-6));
|
|
5
5
|
--#{$prefix}icon-padding: var(--#{$prefix}icon-component-padding, 0);
|
|
6
6
|
--#{$prefix}icon-loading-duration: var(--#{$prefix}icon-component-loading-duration, 1.8);
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
flex-direction: column;
|
|
10
10
|
align-items: flex-start;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
.d-input-pin-group {
|
|
13
13
|
display: flex;
|
|
14
14
|
flex-direction: row;
|
|
15
15
|
gap: var(--#{$prefix}input-pin-form-gap);
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
height: var(--#{$prefix}input-pin-form-control-size);
|
|
22
22
|
text-align: center;
|
|
23
23
|
box-shadow: none;
|
|
24
|
+
|
|
25
|
+
&:has(~ .input-group-text) {
|
|
26
|
+
padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-4);
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
.form-control::-webkit-inner-spin-button,
|
|
@@ -64,5 +68,6 @@
|
|
|
64
68
|
|
|
65
69
|
.input-group-text {
|
|
66
70
|
padding-left: var(--#{$prefix}input-pin-form-gap);
|
|
71
|
+
background-color: transparent;
|
|
67
72
|
}
|
|
68
73
|
}
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
// select menu
|
|
102
102
|
.d-select__menu-list {
|
|
103
103
|
top: calc(var(--#{$prefix}input-border-width) * 2);
|
|
104
|
+
margin: calc(var(--#{$prefix}input-border-width) * -1);
|
|
104
105
|
background: $input-bg;
|
|
105
106
|
border-radius: var(--#{$prefix}input-border-radius);
|
|
106
107
|
box-shadow: var(--#{$prefix}select-menu-shadow);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@import "bootstrap/scss/helpers/clearfix";
|
|
2
2
|
// @import "bootstrap/scss/helpers/color-bg";
|
|
3
3
|
@import "color-bg";
|
|
4
|
-
|
|
4
|
+
//@import "bootstrap/scss/helpers/colored-links";
|
|
5
|
+
@import "colored-links";
|
|
5
6
|
@import "bootstrap/scss/helpers/focus-ring";
|
|
6
7
|
@import "bootstrap/scss/helpers/icon-link";
|
|
7
8
|
@import "bootstrap/scss/helpers/ratio";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// All-caps `RGBA()` function used because of this Sass bug: https://github.com/sass/node-sass/issues/2251
|
|
2
|
+
@each $color-name, $value in map-remove($theme-colors, "light", "dark") {
|
|
3
|
+
$color: rgba(var(--#{$prefix}#{$color-name}-500-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
4
|
+
$text-underline-color: rgba(var(--#{$prefix}#{$color-name}-500-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
5
|
+
$hover-color: rgba(var(--#{$prefix}#{$color-name}-600-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
6
|
+
$hover-text-decoration-color: rgba(var(--#{$prefix}#{$color-name}-600-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
7
|
+
|
|
8
|
+
.link-#{$color-name} {
|
|
9
|
+
color: $color;
|
|
10
|
+
text-decoration-color: $text-underline-color;
|
|
11
|
+
|
|
12
|
+
@if $link-shade-percentage != 0 {
|
|
13
|
+
&:hover,
|
|
14
|
+
&:focus {
|
|
15
|
+
color: $hover-color;
|
|
16
|
+
text-decoration-color: $hover-text-decoration-color;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.link-light {
|
|
23
|
+
$color: rgba(var(--#{$prefix}light-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
24
|
+
$text-underline-color: rgba(var(--#{$prefix}light-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
25
|
+
$hover-color: rgba(var(--#{$prefix}gray-300-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
26
|
+
$hover-text-decoration-color: rgba(var(--#{$prefix}gray-300-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
27
|
+
|
|
28
|
+
color: $color;
|
|
29
|
+
text-decoration-color: $text-underline-color;
|
|
30
|
+
|
|
31
|
+
@if $link-shade-percentage != 0 {
|
|
32
|
+
&:hover,
|
|
33
|
+
&:focus {
|
|
34
|
+
color: $hover-color;
|
|
35
|
+
text-decoration-color: $hover-text-decoration-color;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.link-dark {
|
|
41
|
+
$color: rgba(var(--#{$prefix}dark-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
42
|
+
$text-underline-color: rgba(var(--#{$prefix}dark-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
43
|
+
$hover-color: rgba(var(--#{$prefix}gray-700-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
44
|
+
$hover-text-decoration-color: rgba(var(--#{$prefix}gray-700-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
45
|
+
|
|
46
|
+
color: $color;
|
|
47
|
+
text-decoration-color: $text-underline-color;
|
|
48
|
+
|
|
49
|
+
@if $link-shade-percentage != 0 {
|
|
50
|
+
&:hover,
|
|
51
|
+
&:focus {
|
|
52
|
+
color: $hover-color;
|
|
53
|
+
text-decoration-color: $hover-text-decoration-color;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// One-off special link helper as a bridge until v6
|
|
59
|
+
.link-body-emphasis {
|
|
60
|
+
color: rgba(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
61
|
+
text-decoration-color: rgba(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-underline-opacity, 1)) if($enable-important-utilities, !important, null);
|
|
62
|
+
|
|
63
|
+
@if $link-shade-percentage != 0 {
|
|
64
|
+
&:hover,
|
|
65
|
+
&:focus {
|
|
66
|
+
color: rgba(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-opacity, .75)) if($enable-important-utilities, !important, null);
|
|
67
|
+
text-decoration-color: rgba(var(--#{$prefix}emphasis-color-rgb), var(--#{$prefix}link-underline-opacity, .75)) if($enable-important-utilities, !important, null);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
--#{$prefix}label-padding-y: var(--#{$prefix}ref-spacer-0);
|
|
194
194
|
--#{$prefix}label-padding-x: var(--#{$prefix}ref-spacer-2);
|
|
195
195
|
--#{$prefix}label-font-size: var(--#{$prefix}fs-small);
|
|
196
|
-
--#{$prefix}label-font-weight: var(--#{$prefix}fw-
|
|
196
|
+
--#{$prefix}label-font-weight: var(--#{$prefix}fw-normal);
|
|
197
197
|
--#{$prefix}label-color: var(--#{$prefix}gray);
|
|
198
198
|
|
|
199
199
|
--#{$prefix}btn-border-radius: #{$btn-border-radius};
|
|
@@ -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,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}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}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}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}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
|