@dynamic-framework/ui-react 2.0.0 → 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.
@@ -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.0.0",
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": "^3.0.3",
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": "~9.0.17",
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);
@@ -10,4 +10,6 @@
10
10
 
11
11
  @import "node_modules/bootstrap/scss/utilities/api";
12
12
 
13
+ @import "abstracts/utilities-hover";
14
+
13
15
  @import "shame";
@@ -12,4 +12,6 @@
12
12
 
13
13
  @import "node_modules/bootstrap/scss/utilities/api";
14
14
 
15
+ @import "abstracts/utilities-hover";
16
+
15
17
  @import "shame";