@dynamic-framework/ui-react 2.0.0-dev.9 → 2.1.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/README.md +52 -3
- package/dist/css/dynamic-ui-non-root.css +5952 -4
- 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 +5952 -4
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +5 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +2 -1
- package/dist/types/components/DDatePicker/components/DDatePickerHeaderSelector.d.ts +2 -1
- package/package.json +3 -3
- package/src/style/abstracts/_utilities-hover.scss +55 -0
- package/src/style/components/_d-carousel.scss +4 -3
- package/src/style/components/_d-voucher.scss +0 -1
- package/src/style/dynamic-ui-non-root.scss +2 -0
- package/src/style/dynamic-ui.scss +2 -0
|
@@ -22,7 +22,8 @@ type Props = BaseProps & FamilyIconProps & Omit<DatePickerProps, 'showMonthDropd
|
|
|
22
22
|
valid?: boolean;
|
|
23
23
|
placeholder?: string;
|
|
24
24
|
showHeaderSelectors?: boolean;
|
|
25
|
+
formatHeaderDate?: string;
|
|
25
26
|
locale?: Locale;
|
|
26
27
|
};
|
|
27
|
-
export default function DDatePicker({ inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeInputLabel, minYearSelect, maxYearSelect, iconHeaderSize, iconMaterialStyle, iconInput, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, invalid, valid, renderCustomHeader: renderCustomHeaderProp, className, dateFormatCalendar, style, dataAttributes, placeholder, showHeaderSelectors, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export default function DDatePicker({ inputLabel, inputHint, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeInputLabel, minYearSelect, maxYearSelect, iconHeaderSize, iconMaterialStyle, iconInput, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, invalid, valid, renderCustomHeader: renderCustomHeaderProp, className, dateFormatCalendar, style, dataAttributes, placeholder, showHeaderSelectors, formatHeaderDate, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
28
29
|
export {};
|
|
@@ -21,6 +21,7 @@ type Props = BaseProps & FamilyIconProps & ReactDatePickerCustomHeaderProps & {
|
|
|
21
21
|
nextMonthButtonDisabled: boolean;
|
|
22
22
|
prevYearButtonDisabled: boolean;
|
|
23
23
|
nextYearButtonDisabled: boolean;
|
|
24
|
+
formatHeaderDate?: string;
|
|
24
25
|
iconPrev?: string;
|
|
25
26
|
iconNext?: string;
|
|
26
27
|
prevMonthAriaLabel?: string;
|
|
@@ -34,5 +35,5 @@ type Props = BaseProps & FamilyIconProps & ReactDatePickerCustomHeaderProps & {
|
|
|
34
35
|
monthsShown?: number;
|
|
35
36
|
locale?: Locale;
|
|
36
37
|
} & Omit<ComponentProps<typeof DButton>, 'iconStart' | 'onClick' | 'disabled'>;
|
|
37
|
-
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, pickerType, prevMonthButtonDisabled, nextMonthButtonDisabled, monthsShown, iconPrev, iconNext, prevYearButtonDisabled, nextYearButtonDisabled, prevMonthAriaLabel, nextMonthAriaLabel, prevYearAriaLabel, nextYearAriaLabel, iconSize, style, className, minYearSelect, maxYearSelect, showHeaderSelectors, customHeaderCount, locale, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export default function DDatePickerHeaderSelector({ date, changeYear, changeMonth, decreaseMonth, increaseMonth, decreaseYear, increaseYear, monthDate, formatHeaderDate, pickerType, prevMonthButtonDisabled, nextMonthButtonDisabled, monthsShown, iconPrev, iconNext, prevYearButtonDisabled, nextYearButtonDisabled, prevMonthAriaLabel, nextMonthAriaLabel, prevYearAriaLabel, nextYearAriaLabel, iconSize, style, className, minYearSelect, maxYearSelect, showHeaderSelectors, customHeaderCount, locale, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
38
39
|
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sideEffects": [
|
|
4
4
|
"*.css"
|
|
5
5
|
],
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.1.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": {
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"file-selector": "~2.1.2",
|
|
101
101
|
"google-libphonenumber": "~3.2.43",
|
|
102
102
|
"html2canvas": "^1.4.1",
|
|
103
|
-
"jspdf": "^
|
|
103
|
+
"jspdf": "^4.0.0",
|
|
104
104
|
"lucide-react": "^0.553.0",
|
|
105
105
|
"react-datepicker": "~8.3.0",
|
|
106
106
|
"react-international-phone": "~4.6.0",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"rimraf": "~6.1.0",
|
|
165
165
|
"rollup": "~4.53.1",
|
|
166
166
|
"sass": "~1.69.4",
|
|
167
|
-
"storybook": "
|
|
167
|
+
"storybook": "^9.1.17",
|
|
168
168
|
"stylelint": "^16.16.0",
|
|
169
169
|
"stylelint-config-twbs-bootstrap": "^16.0.0",
|
|
170
170
|
"ts-jest": "~29.2.3",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@mixin generate-hover-utility($utility) {
|
|
2
|
+
$values: map-get($utility, values);
|
|
3
|
+
|
|
4
|
+
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
|
5
|
+
$values: zip($values, $values);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@each $key, $value in $values {
|
|
9
|
+
$properties: map-get($utility, property);
|
|
10
|
+
|
|
11
|
+
@if type-of($properties) == "string" {
|
|
12
|
+
$properties: append((), $properties);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1));
|
|
16
|
+
$property-class: if($property-class == null, "", $property-class);
|
|
17
|
+
$css-variable-name: if(map-has-key($utility, css-variable-name), map-get($utility, css-variable-name), map-get($utility, class));
|
|
18
|
+
$property-class-modifier: if($key, if($property-class == "", "", "-") + $key, "");
|
|
19
|
+
|
|
20
|
+
$is-css-var: map-get($utility, css-var);
|
|
21
|
+
$is-local-vars: map-get($utility, local-vars);
|
|
22
|
+
|
|
23
|
+
@if $value != null {
|
|
24
|
+
$escaped-prefix: "hover\\:";
|
|
25
|
+
$selector: ".#{$escaped-prefix}#{$property-class}#{$property-class-modifier}:hover";
|
|
26
|
+
|
|
27
|
+
@if $is-css-var {
|
|
28
|
+
#{$selector} {
|
|
29
|
+
--#{$prefix}#{$css-variable-name}: #{$value};
|
|
30
|
+
}
|
|
31
|
+
} @else {
|
|
32
|
+
#{$selector} {
|
|
33
|
+
@each $property in $properties {
|
|
34
|
+
@if $is-local-vars {
|
|
35
|
+
@each $local-var, $variable in $is-local-vars {
|
|
36
|
+
--#{$prefix}#{$local-var}: #{$variable};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
#{$property}: $value if($enable-important-utilities, !important, null);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin generate-hover-utilities($utilities-map) {
|
|
48
|
+
@each $name, $utility in $utilities-map {
|
|
49
|
+
@if map-has-key($utility, values) and map-has-key($utility, property) {
|
|
50
|
+
@include generate-hover-utility($utility);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@include generate-hover-utilities($utilities);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@import "node_modules/@splidejs/splide/src/css/template/default/index";
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
.d-carousel {
|
|
4
4
|
// Arrows
|
|
5
5
|
--#{$prefix}carousel-arrow-space: calc(var(--#{$prefix}ref-spacer-4) * -1);
|
|
6
6
|
// Pagination
|
|
7
|
-
--#{$prefix}carousel-pagination-bottom:
|
|
7
|
+
--#{$prefix}carousel-pagination-bottom: auto;
|
|
8
8
|
--#{$prefix}carousel-pagination-page-bg: var(--#{$prefix}secondary-100);
|
|
9
9
|
--#{$prefix}carousel-pagination-active-page-bg: var(--#{$prefix}secondary);
|
|
10
10
|
// :focus
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
// stylelint-disable
|
|
22
23
|
.splide__pagination__page {
|
|
23
24
|
margin: 0;
|
|
24
25
|
}
|
|
@@ -26,7 +27,6 @@
|
|
|
26
27
|
.d-carousel-pagination {
|
|
27
28
|
bottom: var(--#{$prefix}carousel-pagination-bottom);
|
|
28
29
|
position: relative;
|
|
29
|
-
bottom: auto;
|
|
30
30
|
top: -0.5rem;
|
|
31
31
|
width: fit-content;
|
|
32
32
|
background: var(--#{$prefix}gray-25);
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
+
// stylelint-enable
|
|
51
52
|
|
|
52
53
|
&.splide.is-focus-in .d-carousel-arrow:focus,
|
|
53
54
|
&.splide.is-focus-in .d-carousel-pagination-page:focus {
|