@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.
- package/dist/css/dynamic-ui-non-root.css +102 -2
- package/dist/css/dynamic-ui-non-root.min.css +2 -2
- package/dist/css/dynamic-ui-root.css +34 -24
- package/dist/css/dynamic-ui-root.min.css +2 -2
- package/dist/css/dynamic-ui.css +135 -25
- package/dist/css/dynamic-ui.min.css +2 -2
- package/dist/index.esm.js +43 -27
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +43 -27
- package/dist/index.js.map +1 -1
- package/dist/types/components/DDatePicker/DDatePicker.d.ts +4 -1
- package/dist/types/components/DDatePickerInput/DDatePickerInput.d.ts +1 -1
- package/package.json +2 -2
- package/src/style/abstracts/_utilities.scss +7 -0
- package/src/style/abstracts/variables/_typography.scss +47 -12
- package/src/style/base/_type.scss +5 -0
- package/src/style/components/_d-input-pin.scss +1 -1
- package/src/style/components/_d-select.scss +1 -0
- package/src/style/root/_root.scss +5 -0
|
@@ -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' | '
|
|
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.
|
|
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": "
|
|
152
|
+
"gitHead": "b56a0d3b750c6e09caa743b3445b49b157704fa1"
|
|
153
153
|
}
|
|
@@ -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
|
-
$
|
|
42
|
-
$
|
|
43
|
-
$
|
|
44
|
-
$
|
|
45
|
-
$
|
|
46
|
-
|
|
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:
|
|
89
|
-
$display2-font-size-value:
|
|
90
|
-
$display3-font-size-value:
|
|
91
|
-
$display4-font-size-value:
|
|
92
|
-
$display5-font-size-value:
|
|
93
|
-
$display6-font-size-value:
|
|
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;
|
|
@@ -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};
|