@dynamic-framework/ui-react 1.34.0 → 1.35.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/README.md +1 -1
- package/dist/css/bootstrap-icons.css +3 -3
- package/dist/css/bootstrap-icons.min.css +2 -2
- package/dist/css/bootstrap-icons.scss +1 -1
- package/dist/css/dynamic-ui-non-root.css +722 -962
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +1 -1
- package/dist/css/dynamic-ui-root.min.css +1 -1
- package/dist/css/dynamic-ui.css +722 -962
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/css/fonts/bootstrap-icons.woff +0 -0
- package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
- package/dist/index.esm.js +576 -146
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +573 -143
- package/dist/index.js.map +1 -1
- package/dist/js/bootstrap.bundle.js +19 -18
- package/dist/js/bootstrap.bundle.min.js +3 -3
- package/dist/js/bootstrap.esm.js +19 -16
- package/dist/js/bootstrap.esm.min.js +3 -3
- package/dist/js/bootstrap.js +19 -16
- package/dist/js/bootstrap.min.js +3 -3
- package/dist/types/components/DBoxFile/DBoxFile.d.ts +6 -5
- package/dist/types/components/DBoxFile/useDBoxFile.d.ts +37 -0
- package/dist/types/components/DBoxFile/utils.d.ts +39 -0
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +6 -12
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +38 -0
- package/dist/types/components/{DDatePickerInput → DDatePicker/components}/DDatePickerInput.d.ts +2 -2
- package/dist/types/components/{DDatePickerTime → DDatePicker/components}/DDatePickerTime.d.ts +2 -2
- package/dist/types/components/DInput/DInput.d.ts +1 -1
- package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
- package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +2 -2
- package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +2 -2
- package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
- package/dist/types/components/DInputRange/DInputRange.d.ts +1 -1
- package/dist/types/components/DInputSearch/DInputSearch.d.ts +1 -1
- package/dist/types/components/DPopover/DPopover.d.ts +0 -3
- package/dist/types/utils/attr-accept.d.ts +11 -0
- package/dist/types/utils/getKeyboardFocusableElements.d.ts +1 -0
- package/jest/setup.js +14 -0
- package/package.json +13 -14
- package/src/style/abstracts/variables/_+import.scss +1 -0
- package/src/style/abstracts/variables/_box-file.scss +14 -7
- package/src/style/abstracts/variables/_cards.scss +1 -1
- package/src/style/abstracts/variables/_datepicker.scss +50 -0
- package/src/style/abstracts/variables/_forms.scss +6 -3
- package/src/style/base/_form-switch.scss +23 -2
- package/src/style/base/_input-group.scss +18 -1
- package/src/style/base/_nav.scss +0 -1
- package/src/style/base/_toast.scss +2 -0
- package/src/style/components/_d-box-file.scss +31 -15
- package/src/style/components/_d-button-icon.scss +17 -16
- package/src/style/components/_d-datepicker.scss +582 -243
- package/src/style/components/_d-input-pin.scss +8 -5
- package/src/style/components/_d-quick-action-button.scss +1 -1
- package/src/style/components/_d-quick-action-check.scss +1 -1
- package/src/style/components/_d-select.scss +35 -6
- package/src/style/components/_d-stepper-desktop.scss +1 -1
- package/src/style/helpers/_text-truncate.scss +2 -2
- package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +0 -24
- package/dist/types/components/DDatePickerHeader/index.d.ts +0 -2
- package/dist/types/components/DDatePickerInput/index.d.ts +0 -2
- package/dist/types/components/DDatePickerTime/index.d.ts +0 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
.d-input-pin {
|
|
2
2
|
--#{$prefix}input-pin-form-gap: var(--#{$prefix}ref-spacer-1);
|
|
3
|
-
|
|
4
|
-
--#{$prefix}input-pin-form-control-size: 4rem;
|
|
5
3
|
--#{$prefix}input-pin-form-control-focus-border-color: #{$input-focus-border-color};
|
|
6
4
|
--#{$prefix}input-pin-form-control-focus-box-shadow: #{$input-focus-box-shadow};
|
|
5
|
+
--#{$prefix}input-pin-form-control-min-width: 2rem;
|
|
6
|
+
--#{$prefix}input-pin-form-control-max-width: 4rem;
|
|
7
|
+
|
|
7
8
|
|
|
8
9
|
display: flex;
|
|
9
10
|
flex-direction: column;
|
|
@@ -17,14 +18,16 @@
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.form-control {
|
|
20
|
-
width: var(--#{$prefix}input-pin-form-control-
|
|
21
|
-
|
|
21
|
+
min-width: var(--#{$prefix}input-pin-form-control-min-width);
|
|
22
|
+
max-width: var(--#{$prefix}input-pin-form-control-max-width);
|
|
23
|
+
aspect-ratio: 1;
|
|
22
24
|
text-align: center;
|
|
23
25
|
box-shadow: none;
|
|
24
26
|
|
|
25
27
|
&:has(~ .input-group-text) {
|
|
26
|
-
padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-
|
|
28
|
+
padding: var(--#{$prefix}ref-spacer-3) var(--#{$prefix}ref-spacer-3);
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
.form-control::-webkit-inner-spin-button,
|
|
@@ -13,12 +13,17 @@
|
|
|
13
13
|
--#{$prefix}select-option-is-checkbox-font-weight: var(--#{$prefix}fw-normal);
|
|
14
14
|
--#{$prefix}select-option-is-checkbox-color: var(--#{$prefix}gray-900);
|
|
15
15
|
--#{$prefix}select-option-has-icon-icon-size: var(--#{$prefix}ref-spacer-4);
|
|
16
|
-
--#{$prefix}select-multi-value-padding
|
|
17
|
-
--#{$prefix}select-multi-value-padding-y: 0;
|
|
16
|
+
--#{$prefix}select-multi-value-padding: 0 var(--#{$prefix}ref-spacer-1) 0 var(--#{$prefix}select-gap);
|
|
18
17
|
--#{$prefix}select-multi-value-margin-right: var(--#{$prefix}select-gap);
|
|
19
|
-
--#{$prefix}select-multi-value-background: var(--#{$prefix}
|
|
18
|
+
--#{$prefix}select-multi-value-background: var(--#{$prefix}secondary-100);
|
|
20
19
|
--#{$prefix}select-multi-value-border-radius: #{$spacer-1};
|
|
21
20
|
--#{$prefix}select-multi-value-label-color: var(--#{$prefix}secondary);
|
|
21
|
+
--#{$prefix}select-multi-value-remove-color: var(--#{$prefix}secondary);
|
|
22
|
+
--#{$prefix}select-multi-value-remove-hover-color: var(--#{$prefix}white);
|
|
23
|
+
--#{$prefix}select-multi-value-remove-hover-background: var(--#{$prefix}primary);
|
|
24
|
+
--#{$prefix}select-indicator-separator-width: 1px;
|
|
25
|
+
--#{$prefix}select-indicator-separator-margin: var(--#{$prefix}ref-spacer-0) var(--#{$prefix}ref-spacer-1);
|
|
26
|
+
--#{$prefix}select-indicator-separator-color: var(--#{$prefix}transparent);
|
|
22
27
|
|
|
23
28
|
--#{$prefix}select-indicator-width: var(--#{$prefix}ref-spacer-4);
|
|
24
29
|
--#{$prefix}select-indicator-height: var(--#{$prefix}ref-spacer-4);
|
|
@@ -159,16 +164,27 @@
|
|
|
159
164
|
|
|
160
165
|
// select multi control
|
|
161
166
|
.d-select__multi-value {
|
|
162
|
-
padding: var(--#{$prefix}select-multi-value-padding-y) var(--#{$prefix}select-multi-value-padding-x);
|
|
163
167
|
margin-right: var(--#{$prefix}select-multi-value-margin-right);
|
|
164
168
|
background: var(--#{$prefix}select-multi-value-background);
|
|
165
169
|
border-radius: var(--#{$prefix}select-multi-value-border-radius);
|
|
166
170
|
}
|
|
167
171
|
|
|
168
172
|
.d-select__multi-value__label {
|
|
173
|
+
padding: var(--#{$prefix}select-multi-value-padding);
|
|
169
174
|
color: var(--#{$prefix}select-multi-value-label-color);
|
|
170
175
|
}
|
|
171
176
|
|
|
177
|
+
.d-select__multi-value__remove {
|
|
178
|
+
color: var(--#{$prefix}select-multi-value-remove-color);
|
|
179
|
+
|
|
180
|
+
&:hover {
|
|
181
|
+
color: var(--#{$prefix}select-multi-value-remove-hover-color);
|
|
182
|
+
background-color: var(--#{$prefix}select-multi-value-remove-hover-background);
|
|
183
|
+
border-top-right-radius: inherit;
|
|
184
|
+
border-bottom-right-radius: inherit;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
172
188
|
.d-select__control--has-icon,
|
|
173
189
|
.d-select__option--has-icon {
|
|
174
190
|
display: flex;
|
|
@@ -188,12 +204,25 @@
|
|
|
188
204
|
justify-content: center;
|
|
189
205
|
width: var(--#{$prefix}select-indicator-width);
|
|
190
206
|
height: var(--#{$prefix}select-indicator-height);
|
|
207
|
+
|
|
208
|
+
.d-icon {
|
|
209
|
+
--bs-icon-component-size: var(--#{$prefix}select-indicator-width);
|
|
210
|
+
}
|
|
191
211
|
}
|
|
192
212
|
|
|
193
|
-
.d-
|
|
194
|
-
|
|
213
|
+
.d-select__indicators {
|
|
214
|
+
.d-select__indicator-separator {
|
|
215
|
+
width: var(--#{$prefix}select-indicator-separator-width);
|
|
216
|
+
margin: var(--#{$prefix}select-indicator-separator-margin);
|
|
217
|
+
background-color: var(--#{$prefix}select-indicator-separator-color);
|
|
218
|
+
|
|
219
|
+
&:not(:first-child) {
|
|
220
|
+
--#{$prefix}select-indicator-separator-color: var(--#{$prefix}gray-100);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
195
223
|
}
|
|
196
224
|
|
|
225
|
+
|
|
197
226
|
&.disabled .d-select__control {
|
|
198
227
|
background: var(--#{$prefix}input-disabled-bg);
|
|
199
228
|
}
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
|
|
135
135
|
.d-step-text-container {
|
|
136
136
|
display: flex;
|
|
137
|
-
flex-direction: column;
|
|
138
137
|
flex-grow: 1;
|
|
138
|
+
flex-direction: column;
|
|
139
139
|
align-items: flex-start;
|
|
140
140
|
min-height: var(--#{$prefix}step-label-height);
|
|
141
141
|
padding: var(--#{$prefix}step-vertical-label-padding);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
[class*="text-truncate-"] {
|
|
2
2
|
display: -webkit-box;
|
|
3
|
-
-webkit-line-clamp: var(--#{$prefix}text-truncate);
|
|
4
|
-
-webkit-box-orient: vertical;
|
|
5
3
|
overflow: hidden;
|
|
6
4
|
text-overflow: ellipsis;
|
|
5
|
+
-webkit-line-clamp: var(--#{$prefix}text-truncate);
|
|
6
|
+
-webkit-box-orient: vertical;
|
|
7
7
|
white-space: normal;
|
|
8
8
|
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { ComponentProps } from 'react';
|
|
2
|
-
import DButton from '../DButton';
|
|
3
|
-
import type { BaseProps, ButtonVariant, ComponentSize, FamilyIconProps } from '../interface';
|
|
4
|
-
type Props = BaseProps & FamilyIconProps & {
|
|
5
|
-
locale?: Locale;
|
|
6
|
-
date: Date;
|
|
7
|
-
decreaseMonth: () => void;
|
|
8
|
-
increaseMonth: () => void;
|
|
9
|
-
changeMonth: (monthNumber: number) => void;
|
|
10
|
-
changeYear: (yearNumber: number) => void;
|
|
11
|
-
prevMonthButtonDisabled: boolean;
|
|
12
|
-
nextMonthButtonDisabled: boolean;
|
|
13
|
-
iconPrevMonth: string;
|
|
14
|
-
iconNextMonth: string;
|
|
15
|
-
prevMonthAriaLabel?: string;
|
|
16
|
-
nextMonthAriaLabel?: string;
|
|
17
|
-
iconSize: ComponentSize;
|
|
18
|
-
buttonVariant: ButtonVariant;
|
|
19
|
-
buttonTheme: string;
|
|
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;
|
|
24
|
-
export {};
|