update rc-picker
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
"@monaco-editor/react": "4.7.0",
|
||||
"@popperjs/core": "2.11.8",
|
||||
"@rc-component/drawer": "1.3.0",
|
||||
"@rc-component/picker": "1.7.1",
|
||||
"@rc-component/slider": "1.0.1",
|
||||
"@rc-component/tooltip": "1.4.0",
|
||||
"@react-aria/dialog": "3.5.31",
|
||||
@@ -105,7 +106,6 @@
|
||||
"ol": "10.7.0",
|
||||
"prismjs": "1.30.0",
|
||||
"rc-cascader": "3.34.0",
|
||||
"rc-picker": "4.11.3",
|
||||
"react-calendar": "^6.0.0",
|
||||
"react-colorful": "5.6.1",
|
||||
"react-custom-scrollbars-2": "4.5.0",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { css, cx } from '@emotion/css';
|
||||
import RcPicker, { PickerProps } from '@rc-component/picker';
|
||||
import generateConfig from '@rc-component/picker/lib/generate/moment';
|
||||
import locale from '@rc-component/picker/lib/locale/en_US';
|
||||
import { Moment } from 'moment';
|
||||
import RcPicker, { PickerProps } from 'rc-picker';
|
||||
import generateConfig from 'rc-picker/lib/generate/moment';
|
||||
import locale from 'rc-picker/lib/locale/en_US';
|
||||
|
||||
import { dateTime, DateTime, dateTimeAsMoment, GrafanaTheme2, isDateTimeInput } from '@grafana/data';
|
||||
|
||||
@@ -11,7 +11,7 @@ import { getFocusStyles } from '../../themes/mixins';
|
||||
import { inputSizes } from '../Forms/commonStyles';
|
||||
import { FormInputSize } from '../Forms/types';
|
||||
import { Icon } from '../Icon/Icon';
|
||||
import 'rc-picker/assets/index.css';
|
||||
import '@rc-component/picker/assets/index.css';
|
||||
|
||||
interface BaseProps {
|
||||
onChange: (value: DateTime) => void | ((value?: DateTime) => void);
|
||||
@@ -74,7 +74,9 @@ export const TimeOfDayPicker = ({
|
||||
}
|
||||
className={cx(inputSizes()[size], styles.input)}
|
||||
classNames={{
|
||||
popup: cx(styles.picker, POPUP_CLASS_NAME),
|
||||
popup: {
|
||||
container: cx(styles.picker, POPUP_CLASS_NAME),
|
||||
},
|
||||
}}
|
||||
defaultValue={restProps.allowEmpty ? undefined : dateTimeAsMoment()}
|
||||
disabled={disabled}
|
||||
|
||||
@@ -1473,7 +1473,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.1, @babel/runtime@npm:^7.11.1, @babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.16.3, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.18.0, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.20.7, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.24.5, @babel/runtime@npm:^7.24.7, @babel/runtime@npm:^7.25.0, @babel/runtime@npm:^7.25.6, @babel/runtime@npm:^7.25.7, @babel/runtime@npm:^7.26.10, @babel/runtime@npm:^7.26.7, @babel/runtime@npm:^7.27.0, @babel/runtime@npm:^7.27.6, @babel/runtime@npm:^7.28.4, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.7":
|
||||
"@babel/runtime@npm:^7.0.0, @babel/runtime@npm:^7.1.2, @babel/runtime@npm:^7.10.1, @babel/runtime@npm:^7.11.1, @babel/runtime@npm:^7.12.0, @babel/runtime@npm:^7.12.1, @babel/runtime@npm:^7.12.13, @babel/runtime@npm:^7.12.5, @babel/runtime@npm:^7.13.10, @babel/runtime@npm:^7.16.3, @babel/runtime@npm:^7.17.8, @babel/runtime@npm:^7.18.0, @babel/runtime@npm:^7.18.3, @babel/runtime@npm:^7.20.0, @babel/runtime@npm:^7.20.7, @babel/runtime@npm:^7.23.2, @babel/runtime@npm:^7.24.5, @babel/runtime@npm:^7.25.0, @babel/runtime@npm:^7.25.6, @babel/runtime@npm:^7.25.7, @babel/runtime@npm:^7.26.10, @babel/runtime@npm:^7.26.7, @babel/runtime@npm:^7.27.0, @babel/runtime@npm:^7.27.6, @babel/runtime@npm:^7.28.4, @babel/runtime@npm:^7.5.5, @babel/runtime@npm:^7.7.6, @babel/runtime@npm:^7.8.7":
|
||||
version: 7.28.4
|
||||
resolution: "@babel/runtime@npm:7.28.4"
|
||||
checksum: 10/6c9a70452322ea80b3c9b2a412bcf60771819213a67576c8cec41e88a95bb7bf01fc983754cda35dc19603eef52df22203ccbf7777b9d6316932f9fb77c25163
|
||||
@@ -3783,6 +3783,7 @@ __metadata:
|
||||
"@monaco-editor/react": "npm:4.7.0"
|
||||
"@popperjs/core": "npm:2.11.8"
|
||||
"@rc-component/drawer": "npm:1.3.0"
|
||||
"@rc-component/picker": "npm:1.7.1"
|
||||
"@rc-component/slider": "npm:1.0.1"
|
||||
"@rc-component/tooltip": "npm:1.4.0"
|
||||
"@react-aria/dialog": "npm:3.5.31"
|
||||
@@ -3866,7 +3867,6 @@ __metadata:
|
||||
prismjs: "npm:1.30.0"
|
||||
process: "npm:^0.11.10"
|
||||
rc-cascader: "npm:3.34.0"
|
||||
rc-picker: "npm:4.11.3"
|
||||
react: "npm:18.3.1"
|
||||
react-calendar: "npm:^6.0.0"
|
||||
react-colorful: "npm:5.6.1"
|
||||
@@ -6817,6 +6817,35 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rc-component/picker@npm:1.7.1":
|
||||
version: 1.7.1
|
||||
resolution: "@rc-component/picker@npm:1.7.1"
|
||||
dependencies:
|
||||
"@rc-component/resize-observer": "npm:^1.0.0"
|
||||
"@rc-component/trigger": "npm:^3.6.15"
|
||||
"@rc-component/util": "npm:^1.3.0"
|
||||
clsx: "npm:^2.1.1"
|
||||
rc-overflow: "npm:^1.3.2"
|
||||
peerDependencies:
|
||||
date-fns: ">= 2.x"
|
||||
dayjs: ">= 1.x"
|
||||
luxon: ">= 3.x"
|
||||
moment: ">= 2.x"
|
||||
react: ">=16.9.0"
|
||||
react-dom: ">=16.9.0"
|
||||
peerDependenciesMeta:
|
||||
date-fns:
|
||||
optional: true
|
||||
dayjs:
|
||||
optional: true
|
||||
luxon:
|
||||
optional: true
|
||||
moment:
|
||||
optional: true
|
||||
checksum: 10/dd52cc7492071b5f609d712db2c66a9b4a807112d1bcad4561ad385f7597bb853b79263dc863416fa70f91da6c2c7e1b738fd649487a1e3783f1b6f96c0b8073
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rc-component/portal@npm:^1.1.0":
|
||||
version: 1.1.1
|
||||
resolution: "@rc-component/portal@npm:1.1.1"
|
||||
@@ -6883,7 +6912,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rc-component/trigger@npm:^2.0.0, @rc-component/trigger@npm:^2.1.1":
|
||||
"@rc-component/trigger@npm:^2.1.1":
|
||||
version: 2.2.0
|
||||
resolution: "@rc-component/trigger@npm:2.2.0"
|
||||
dependencies:
|
||||
@@ -6900,7 +6929,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@rc-component/trigger@npm:^3.7.1":
|
||||
"@rc-component/trigger@npm:^3.6.15, @rc-component/trigger@npm:^3.7.1":
|
||||
version: 3.7.1
|
||||
resolution: "@rc-component/trigger@npm:3.7.1"
|
||||
dependencies:
|
||||
@@ -28077,37 +28106,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rc-picker@npm:4.11.3":
|
||||
version: 4.11.3
|
||||
resolution: "rc-picker@npm:4.11.3"
|
||||
dependencies:
|
||||
"@babel/runtime": "npm:^7.24.7"
|
||||
"@rc-component/trigger": "npm:^2.0.0"
|
||||
classnames: "npm:^2.2.1"
|
||||
rc-overflow: "npm:^1.3.2"
|
||||
rc-resize-observer: "npm:^1.4.0"
|
||||
rc-util: "npm:^5.43.0"
|
||||
peerDependencies:
|
||||
date-fns: ">= 2.x"
|
||||
dayjs: ">= 1.x"
|
||||
luxon: ">= 3.x"
|
||||
moment: ">= 2.x"
|
||||
react: ">=16.9.0"
|
||||
react-dom: ">=16.9.0"
|
||||
peerDependenciesMeta:
|
||||
date-fns:
|
||||
optional: true
|
||||
dayjs:
|
||||
optional: true
|
||||
luxon:
|
||||
optional: true
|
||||
moment:
|
||||
optional: true
|
||||
checksum: 10/e1e3236338e2ff0d0fa6fcde568457f7dd6ad13a88d870db8fca1de39f452463c26be71a565c1ee7557a2a109bb4737816b8a729f404169403daec8f8a014fff
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"rc-resize-observer@npm:^1.0.0, rc-resize-observer@npm:^1.3.1, rc-resize-observer@npm:^1.4.0":
|
||||
"rc-resize-observer@npm:^1.0.0, rc-resize-observer@npm:^1.3.1":
|
||||
version: 1.4.3
|
||||
resolution: "rc-resize-observer@npm:1.4.3"
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user