@progress/kendo-react-dateinputs 7.3.0 → 7.4.0-develop.10
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/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +122 -102
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/hooks/usePickerFloatingLabel.js +1 -1
- package/hooks/usePickerFloatingLabel.mjs +12 -12
- package/index.d.mts +3 -3
- package/index.d.ts +3 -3
- package/package-metadata.mjs +1 -1
- package/package.json +7 -7
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=require("@progress/kendo-react-labels");function
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=require("@progress/kendo-react-labels");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=s(a),c=e=>{const[n,t]=r.useState(!1),o=()=>{e.current&&t(!!e.current.text)};return r.useEffect(o),{editorValue:n}},i=e=>{const{dateInput:n,...t}=e,o=c(n);return r.createElement(l.FloatingLabel,{...t,...o})};exports.PickerFloatingLabel=i;exports.usePickerFloatingLabel=c;
|
|
@@ -6,26 +6,26 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import * as
|
|
10
|
-
import { FloatingLabel as
|
|
11
|
-
const
|
|
12
|
-
const [t,
|
|
13
|
-
e.current &&
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
import { FloatingLabel as s } from "@progress/kendo-react-labels";
|
|
11
|
+
const a = (e) => {
|
|
12
|
+
const [t, o] = n.useState(!1), r = () => {
|
|
13
|
+
e.current && o(!!e.current.text);
|
|
14
14
|
};
|
|
15
|
-
return
|
|
15
|
+
return n.useEffect(r), {
|
|
16
16
|
editorValue: t
|
|
17
17
|
};
|
|
18
18
|
}, l = (e) => {
|
|
19
|
-
const t =
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
|
|
19
|
+
const { dateInput: t, ...o } = e, r = a(t);
|
|
20
|
+
return /* @__PURE__ */ n.createElement(
|
|
21
|
+
s,
|
|
22
22
|
{
|
|
23
|
-
...
|
|
24
|
-
...
|
|
23
|
+
...o,
|
|
24
|
+
...r
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
29
|
l as PickerFloatingLabel,
|
|
30
|
-
|
|
30
|
+
a as usePickerFloatingLabel
|
|
31
31
|
};
|
package/index.d.mts
CHANGED
|
@@ -1139,7 +1139,7 @@ export declare interface DatePickerOpenEvent {
|
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Represents the props of the [KendoReact DatePicker component]({% slug overview_datepicker %}).
|
|
1141
1141
|
*/
|
|
1142
|
-
export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps {
|
|
1142
|
+
export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps, Omit<(React_2.HTMLAttributes<HTMLElement>), 'defaultValue' | 'onChange' | 'onBlur' | 'onFocus' | 'placeholder'> {
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Sets the default value of the DatePicker ([see example]({% slug default_value_datepicker %})).
|
|
1145
1145
|
*/
|
|
@@ -2106,7 +2106,7 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
|
|
|
2106
2106
|
* Sets the default value of the DateTimePicker
|
|
2107
2107
|
* ([see example]({% slug default_value_datetimepicker %})).
|
|
2108
2108
|
* For more information, refer to the article on
|
|
2109
|
-
* [uncontrolled components in React](https://
|
|
2109
|
+
* [uncontrolled components in React](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
2110
2110
|
*/
|
|
2111
2111
|
defaultValue?: Date | null;
|
|
2112
2112
|
/**
|
|
@@ -2211,7 +2211,7 @@ export declare interface DateTimePickerSettings {
|
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Sets if the calendar popup is opened upon initial render.
|
|
2213
2213
|
* For more information, refer to the article on
|
|
2214
|
-
* [uncontrolled components in React](https://
|
|
2214
|
+
* [uncontrolled components in React](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
2215
2215
|
*/
|
|
2216
2216
|
defaultShow?: boolean;
|
|
2217
2217
|
/**
|
package/index.d.ts
CHANGED
|
@@ -1139,7 +1139,7 @@ export declare interface DatePickerOpenEvent {
|
|
|
1139
1139
|
/**
|
|
1140
1140
|
* Represents the props of the [KendoReact DatePicker component]({% slug overview_datepicker %}).
|
|
1141
1141
|
*/
|
|
1142
|
-
export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps {
|
|
1142
|
+
export declare interface DatePickerProps extends DatePickerSettings, FormComponentProps, Omit<(React_2.HTMLAttributes<HTMLElement>), 'defaultValue' | 'onChange' | 'onBlur' | 'onFocus' | 'placeholder'> {
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Sets the default value of the DatePicker ([see example]({% slug default_value_datepicker %})).
|
|
1145
1145
|
*/
|
|
@@ -2106,7 +2106,7 @@ export declare interface DateTimePickerProps extends DateTimePickerSettings, For
|
|
|
2106
2106
|
* Sets the default value of the DateTimePicker
|
|
2107
2107
|
* ([see example]({% slug default_value_datetimepicker %})).
|
|
2108
2108
|
* For more information, refer to the article on
|
|
2109
|
-
* [uncontrolled components in React](https://
|
|
2109
|
+
* [uncontrolled components in React](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
2110
2110
|
*/
|
|
2111
2111
|
defaultValue?: Date | null;
|
|
2112
2112
|
/**
|
|
@@ -2211,7 +2211,7 @@ export declare interface DateTimePickerSettings {
|
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Sets if the calendar popup is opened upon initial render.
|
|
2213
2213
|
* For more information, refer to the article on
|
|
2214
|
-
* [uncontrolled components in React](https://
|
|
2214
|
+
* [uncontrolled components in React](https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components).
|
|
2215
2215
|
*/
|
|
2216
2216
|
defaultShow?: boolean;
|
|
2217
2217
|
/**
|
package/package-metadata.mjs
CHANGED
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
name: "@progress/kendo-react-dateinputs",
|
|
11
11
|
productName: "KendoReact",
|
|
12
12
|
productCodes: ["KENDOUIREACT", "KENDOUICOMPLETE"],
|
|
13
|
-
publishDate:
|
|
13
|
+
publishDate: 1711700667,
|
|
14
14
|
version: "",
|
|
15
15
|
licensingDocsUrl: "https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-dateinputs",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0-develop.10",
|
|
4
4
|
"description": "React DateInput is a perfect input component for handling quick and efficient date values. KendoReact Date Inputs package",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@progress/kendo-date-math": "^1.4.0",
|
|
26
26
|
"@progress/kendo-licensing": "^1.3.4",
|
|
27
|
-
"@progress/kendo-react-buttons": "7.
|
|
28
|
-
"@progress/kendo-react-common": "7.
|
|
29
|
-
"@progress/kendo-react-intl": "7.
|
|
30
|
-
"@progress/kendo-react-labels": "7.
|
|
31
|
-
"@progress/kendo-react-layout": "7.
|
|
32
|
-
"@progress/kendo-react-popup": "7.
|
|
27
|
+
"@progress/kendo-react-buttons": "7.4.0-develop.10",
|
|
28
|
+
"@progress/kendo-react-common": "7.4.0-develop.10",
|
|
29
|
+
"@progress/kendo-react-intl": "7.4.0-develop.10",
|
|
30
|
+
"@progress/kendo-react-labels": "7.4.0-develop.10",
|
|
31
|
+
"@progress/kendo-react-layout": "7.4.0-develop.10",
|
|
32
|
+
"@progress/kendo-react-popup": "7.4.0-develop.10",
|
|
33
33
|
"@progress/kendo-svg-icons": "^2.1.0",
|
|
34
34
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
35
35
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|