@dynamic-framework/ui-react 1.34.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +1 -1
  2. package/dist/css/bootstrap-icons.css +3 -3
  3. package/dist/css/bootstrap-icons.min.css +2 -2
  4. package/dist/css/bootstrap-icons.scss +1 -1
  5. package/dist/css/dynamic-ui-non-root.css +720 -963
  6. package/dist/css/dynamic-ui-non-root.min.css +2 -2
  7. package/dist/css/dynamic-ui-root.css +1 -1
  8. package/dist/css/dynamic-ui-root.min.css +1 -1
  9. package/dist/css/dynamic-ui.css +720 -963
  10. package/dist/css/dynamic-ui.min.css +2 -2
  11. package/dist/css/fonts/bootstrap-icons.woff +0 -0
  12. package/dist/css/fonts/bootstrap-icons.woff2 +0 -0
  13. package/dist/index.esm.js +576 -146
  14. package/dist/index.esm.js.map +1 -1
  15. package/dist/index.js +573 -143
  16. package/dist/index.js.map +1 -1
  17. package/dist/js/bootstrap.bundle.js +19 -18
  18. package/dist/js/bootstrap.bundle.min.js +3 -3
  19. package/dist/js/bootstrap.esm.js +19 -16
  20. package/dist/js/bootstrap.esm.min.js +3 -3
  21. package/dist/js/bootstrap.js +19 -16
  22. package/dist/js/bootstrap.min.js +3 -3
  23. package/dist/types/components/DBoxFile/DBoxFile.d.ts +6 -5
  24. package/dist/types/components/DBoxFile/useDBoxFile.d.ts +37 -0
  25. package/dist/types/components/DBoxFile/utils.d.ts +39 -0
  26. package/dist/types/components/DDatePicker/DDatePicker.d.ts +6 -12
  27. package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +38 -0
  28. package/dist/types/components/{DDatePickerInput → DDatePicker/components}/DDatePickerInput.d.ts +2 -2
  29. package/dist/types/components/{DDatePickerTime → DDatePicker/components}/DDatePickerTime.d.ts +2 -2
  30. package/dist/types/components/DInput/DInput.d.ts +1 -1
  31. package/dist/types/components/DInputCounter/DInputCounter.d.ts +2 -2
  32. package/dist/types/components/DInputCurrency/DInputCurrency.d.ts +2 -2
  33. package/dist/types/components/DInputCurrencyBase/DInputCurrencyBase.d.ts +2 -2
  34. package/dist/types/components/DInputMask/DInputMask.d.ts +1 -1
  35. package/dist/types/components/DInputRange/DInputRange.d.ts +1 -1
  36. package/dist/types/components/DInputSearch/DInputSearch.d.ts +1 -1
  37. package/dist/types/components/DPopover/DPopover.d.ts +0 -3
  38. package/dist/types/utils/attr-accept.d.ts +11 -0
  39. package/dist/types/utils/getKeyboardFocusableElements.d.ts +1 -0
  40. package/jest/setup.js +14 -0
  41. package/package.json +13 -14
  42. package/src/style/abstracts/variables/_+import.scss +1 -0
  43. package/src/style/abstracts/variables/_box-file.scss +14 -7
  44. package/src/style/abstracts/variables/_cards.scss +1 -1
  45. package/src/style/abstracts/variables/_datepicker.scss +50 -0
  46. package/src/style/abstracts/variables/_forms.scss +6 -3
  47. package/src/style/base/_form-switch.scss +23 -2
  48. package/src/style/base/_input-group.scss +18 -1
  49. package/src/style/base/_nav.scss +0 -1
  50. package/src/style/base/_toast.scss +2 -0
  51. package/src/style/components/_d-box-file.scss +31 -15
  52. package/src/style/components/_d-button-icon.scss +17 -16
  53. package/src/style/components/_d-datepicker.scss +578 -243
  54. package/src/style/components/_d-input-pin.scss +8 -5
  55. package/src/style/components/_d-quick-action-button.scss +1 -1
  56. package/src/style/components/_d-quick-action-check.scss +1 -1
  57. package/src/style/components/_d-select.scss +35 -6
  58. package/src/style/components/_d-stepper-desktop.scss +1 -1
  59. package/src/style/helpers/_text-truncate.scss +2 -2
  60. package/dist/types/components/DDatePickerHeader/DDatePickerHeader.d.ts +0 -24
  61. package/dist/types/components/DDatePickerHeader/index.d.ts +0 -2
  62. package/dist/types/components/DDatePickerInput/index.d.ts +0 -2
  63. 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-size);
21
- height: var(--#{$prefix}input-pin-form-control-size);
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-4);
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,
@@ -85,8 +85,8 @@
85
85
 
86
86
  .d-quick-action-button-text {
87
87
  display: flex;
88
- flex-direction: column;
89
88
  flex-grow: 1;
89
+ flex-direction: column;
90
90
  }
91
91
 
92
92
  .d-quick-action-button-action-link,
@@ -46,8 +46,8 @@
46
46
 
47
47
  .d-quick-action-check-detail {
48
48
  display: flex;
49
- flex-direction: column;
50
49
  flex-grow: 1;
50
+ flex-direction: column;
51
51
  }
52
52
 
53
53
  .d-quick-action-check-line1 {
@@ -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-x: var(--#{$prefix}select-gap);
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}gray-100);
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-select__indicator-separator {
194
- width: var(--#{$prefix}select-gap);
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 {};
@@ -1,2 +0,0 @@
1
- import DDatePickerHeader from './DDatePickerHeader';
2
- export default DDatePickerHeader;
@@ -1,2 +0,0 @@
1
- import DDatePickerInput from './DDatePickerInput';
2
- export default DDatePickerInput;
@@ -1,2 +0,0 @@
1
- import DDatePickerTime from './DDatePickerTime';
2
- export default DDatePickerTime;