@dynamic-framework/ui-react 1.19.1 → 1.21.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.
@@ -5,6 +5,7 @@ type Props<CustomModifierNames extends string = never, WithRange extends boolean
5
5
  date?: string | null;
6
6
  selectsRange?: boolean;
7
7
  inputLabel?: string;
8
+ inputHint?: string;
8
9
  inputAriaLabel?: string;
9
10
  inputActionAriaLabel?: string;
10
11
  iconInput?: string;
@@ -21,6 +22,8 @@ type Props<CustomModifierNames extends string = never, WithRange extends boolean
21
22
  locale?: Locale;
22
23
  minYearSelect?: number;
23
24
  maxYearSelect?: number;
25
+ invalid?: boolean;
26
+ valid?: boolean;
24
27
  };
25
- export default function DDatePicker<CustomModifierNames extends string = never, WithRange extends boolean | undefined = undefined>({ date, selectsRange, inputLabel, inputAriaLabel, inputActionAriaLabel, inputId, timeId, timeLabel, iconInput: iconInputProp, iconHeaderPrevMonth: iconHeaderPrevMonthProp, iconHeaderNextMonth: iconHeaderNextMonthProp, iconMaterialStyle: iconMaterialStyleProp, iconFamilyClass, iconFamilyPrefix, minYearSelect, maxYearSelect, iconHeaderSize, headerPrevMonthAriaLabel, headerNextMonthAriaLabel, headerButtonVariant, headerButtonTheme, locale, className, formatWeekDay: formatWeekDayProp, style, ...props }: Props<CustomModifierNames, WithRange>): import("react/jsx-runtime").JSX.Element;
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;
26
29
  export {};
@@ -5,6 +5,6 @@ type Props = BaseProps & {
5
5
  value?: string;
6
6
  onClick?: () => void;
7
7
  inputLabel?: string;
8
- } & Omit<ComponentProps<typeof DInput>, 'type' | 'isReadOnly' | 'onIconEndClick' | 'value'>;
8
+ } & Omit<ComponentProps<typeof DInput>, 'type' | 'onIconEndClick' | 'value'>;
9
9
  declare const ForwardedDDatePickerInput: import("react").ForwardRefExoticComponent<Omit<Props, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
10
10
  export default ForwardedDDatePickerInput;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "sideEffects": [
4
4
  "*.css"
5
5
  ],
6
- "version": "1.19.1",
6
+ "version": "1.21.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": "a8a398fe7b2718df5329a1f1ca6d38aa36b8ef02"
152
+ "gitHead": "b56a0d3b750c6e09caa743b3445b49b157704fa1"
153
153
  }
@@ -125,5 +125,12 @@ $utilities: map-merge(
125
125
  responsive: true,
126
126
  )
127
127
  ),
128
+ "body-font-size": (
129
+ class: "fs-body",
130
+ responsive: true,
131
+ css-var: true,
132
+ css-variable-name: fs-body-font-size,
133
+ values: $body-font-sizes
134
+ )
128
135
  )
129
136
  );
@@ -38,12 +38,47 @@ $font-weight-base: $font-weight-normal !default;
38
38
  $line-height-base: 1.5 !default;
39
39
 
40
40
  // custom
41
- $h1-font-size-value: $font-size-base * 4 !default;
42
- $h2-font-size-value: $font-size-base * 3.5 !default;
43
- $h3-font-size-value: $font-size-base * 3 !default;
44
- $h4-font-size-value: $font-size-base * 2 !default;
45
- $h5-font-size-value: $font-size-base * 1.5 !default;
46
- $h6-font-size-value: $font-size-base * 1.125 !default;
41
+ $body-large-font-size-value: $font-size-base * 1.5 !default; // 24px - 21.525px
42
+ $body-medium-font-size-value: $font-size-base * 1.25 !default; // 20px - 20px
43
+ $body-normal-font-size-value: $font-size-base * 1 !default; // 16px - 16px
44
+ $body-small-font-size-value: $font-size-base * .875 !default; // 14px - 14px
45
+ $body-tiny-font-size-value: $font-size-base * .8125 !default; // 13px - 13px
46
+
47
+ $body-large-font-size: var(--#{$prefix}fs-body-large) !default;
48
+ $body-medium-font-size: var(--#{$prefix}fs-body-medium) !default;
49
+ $body-normal-font-size: var(--#{$prefix}fs-body-normal) !default;
50
+ $body-small-font-size: var(--#{$prefix}fs-body-small) !default;
51
+ $body-tiny-font-size: var(--#{$prefix}fs-body-tiny) !default;
52
+ // end custom
53
+ // scss-docs-end font-variables
54
+
55
+ // scss-docs-start body-font-sizes
56
+ // custom
57
+ $body-font-sizes-value: (
58
+ large: $body-large-font-size-value,
59
+ medium: $body-medium-font-size-value,
60
+ normal: $body-normal-font-size-value,
61
+ small: $body-small-font-size-value,
62
+ tiny: $body-tiny-font-size-value,
63
+ ) !default;
64
+
65
+ $body-font-sizes: (
66
+ large: $body-large-font-size,
67
+ medium: $body-medium-font-size,
68
+ normal: $body-normal-font-size,
69
+ small: $body-small-font-size,
70
+ tiny: $body-tiny-font-size,
71
+ ) !default;
72
+ // end custom
73
+ // scss-docs-end body-font-sizes
74
+
75
+ // custom
76
+ $h1-font-size-value: $font-size-base * 3 !default; // 48px - 30.675px
77
+ $h2-font-size-value: $font-size-base * 2.5 !default; // 40px - 27.625px
78
+ $h3-font-size-value: $font-size-base * 2 !default; // 32px - 25.575px
79
+ $h4-font-size-value: $font-size-base * 1.5 !default; // 24px - 21.525px
80
+ $h5-font-size-value: $font-size-base * 1.25 !default; // 20px - 20px
81
+ $h6-font-size-value: $font-size-base !default; // 16px - 16px
47
82
 
48
83
  $h1-font-size: var(--#{$prefix}fs-1) !default;
49
84
  $h2-font-size: var(--#{$prefix}fs-2) !default;
@@ -85,12 +120,12 @@ $headings-line-height: var(--#{$prefix}heading-line-height) !default;
85
120
 
86
121
  // scss-docs-start display-headings
87
122
  // custom
88
- $display1-font-size-value: 7.5rem !default;
89
- $display2-font-size-value: 4.5rem !default;
90
- $display3-font-size-value: 4rem !default;
91
- $display4-font-size-value: 3.5rem !default;
92
- $display5-font-size-value: 3rem !default;
93
- $display6-font-size-value: 2.5rem !default;
123
+ $display1-font-size-value: $font-size-base * 6 !default; // 96px - 48.975px
124
+ $display2-font-size-value: $font-size-base * 5.5 !default; // 88px - 45.925px
125
+ $display3-font-size-value: $font-size-base * 5 !default; // 80px - 42.875px
126
+ $display4-font-size-value: $font-size-base * 4.5 !default; // 72px - 39.825px
127
+ $display5-font-size-value: $font-size-base * 4 !default; // 64px - 36.775px
128
+ $display6-font-size-value: $font-size-base * 3.5 !default; // 56px - 33.725px
94
129
 
95
130
  $display1-font-size: var(--#{$prefix}fs-display-1) !default;
96
131
  $display2-font-size: var(--#{$prefix}fs-display-2) !default;
@@ -40,6 +40,11 @@
40
40
  line-height: $display-line-height;
41
41
  }
42
42
 
43
+ // Body display classes
44
+ [class*="fs-body-"] {
45
+ font-size: var(--#{$prefix}fs-body-font-size);
46
+ }
47
+
43
48
  //
44
49
  // Emphasis
45
50
  //
@@ -9,7 +9,7 @@
9
9
  flex-direction: column;
10
10
  align-items: flex-start;
11
11
 
12
- form {
12
+ .d-input-pin-group {
13
13
  display: flex;
14
14
  flex-direction: row;
15
15
  gap: var(--#{$prefix}input-pin-form-gap);
@@ -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);
@@ -183,6 +183,11 @@
183
183
  @include rfs($small-font-size-value, --#{$prefix}rfs-fs-small);
184
184
  --#{$prefix}fs-small: var(--#{$prefix}rfs-fs-small);
185
185
 
186
+ @each $level, $value in $body-font-sizes-value {
187
+ @include rfs($value, --#{$prefix}rfs-fs-body-#{$level});
188
+ --#{$prefix}fs-body-#{$level}: var(--#{$prefix}rfs-fs-body-#{$level});
189
+ }
190
+
186
191
  --#{$prefix}fw-lighter: #{$font-weight-lighter-value};
187
192
  --#{$prefix}fw-light: #{$font-weight-light-value};
188
193
  --#{$prefix}fw-normal: #{$font-weight-normal-value};