From 03e94055513210ad6f8f1163397b9b57282a57c4 Mon Sep 17 00:00:00 2001 From: Maharshi Alpesh Date: Fri, 13 Dec 2024 19:50:22 +0530 Subject: [PATCH] chore: updating the dependency --- packages/components/date-input/package.json | 4 ++-- packages/components/date-picker/package.json | 4 ++-- .../date-picker/src/use-date-picker-base.ts | 14 ++------------ packages/components/input/package.json | 4 ++-- packages/components/select/package.json | 4 ++-- 5 files changed, 10 insertions(+), 20 deletions(-) diff --git a/packages/components/date-input/package.json b/packages/components/date-input/package.json index b93da09a42..37eebc1157 100644 --- a/packages/components/date-input/package.json +++ b/packages/components/date-input/package.json @@ -34,8 +34,8 @@ "postpack": "clean-package restore" }, "peerDependencies": { - "@nextui-org/system": ">=2.4.0", - "@nextui-org/theme": ">=2.4.0", + "@nextui-org/system": ">=2.4.3", + "@nextui-org/theme": ">=2.4.5", "react": ">=18 || >=19.0.0-rc.0", "react-dom": ">=18 || >=19.0.0-rc.0" }, diff --git a/packages/components/date-picker/package.json b/packages/components/date-picker/package.json index 10dbe6f3a1..e26f503b0b 100644 --- a/packages/components/date-picker/package.json +++ b/packages/components/date-picker/package.json @@ -34,8 +34,8 @@ "postpack": "clean-package restore" }, "peerDependencies": { - "@nextui-org/system": ">=2.4.0", - "@nextui-org/theme": ">=2.4.0", + "@nextui-org/system": ">=2.4.3", + "@nextui-org/theme": ">=2.4.5", "framer-motion": ">=11.5.6 || >=12.0.0-alpha.1", "react": ">=18 || >=19.0.0-rc.0", "react-dom": ">=18 || >=19.0.0-rc.0" diff --git a/packages/components/date-picker/src/use-date-picker-base.ts b/packages/components/date-picker/src/use-date-picker-base.ts index 2283a40610..8a88836d74 100644 --- a/packages/components/date-picker/src/use-date-picker-base.ts +++ b/packages/components/date-picker/src/use-date-picker-base.ts @@ -10,12 +10,7 @@ import type {ValueBase} from "@react-types/shared"; import {dataAttr} from "@nextui-org/shared-utils"; import {dateInput, DatePickerVariantProps} from "@nextui-org/theme"; import {useCallback} from "react"; -import { - HTMLNextUIProps, - mapPropsVariants, - useLabelPlacement, - useProviderContext, -} from "@nextui-org/system"; +import {HTMLNextUIProps, mapPropsVariants, useProviderContext} from "@nextui-org/system"; import {mergeProps} from "@react-aria/utils"; import {useDOMRef} from "@nextui-org/react-utils"; import {useLocalizedStringFormatter} from "@react-aria/i18n"; @@ -239,15 +234,10 @@ export function useDatePickerBase(originalProps: UseDatePic "data-invalid": dataAttr(originalProps?.isInvalid), } as DateInputProps; - const labelPlacement = useLabelPlacement({ - labelPlacement: originalProps.labelPlacement, - label, - }); - const timeInputProps = { ...userTimeInputProps, size: "sm", - labelPlacement, + labelPlacement: "outside-left", label: userTimeInputProps?.label || stringFormatter.format("time"), placeholderValue: timePlaceholder, hourCycle: props.hourCycle, diff --git a/packages/components/input/package.json b/packages/components/input/package.json index 5ad2742260..49805572a9 100644 --- a/packages/components/input/package.json +++ b/packages/components/input/package.json @@ -36,8 +36,8 @@ "peerDependencies": { "react": ">=18 || >=19.0.0-rc.0", "react-dom": ">=18 || >=19.0.0-rc.0", - "@nextui-org/theme": ">=2.4.0", - "@nextui-org/system": ">=2.4.0" + "@nextui-org/system": ">=2.4.3", + "@nextui-org/theme": ">=2.4.5" }, "dependencies": { "@nextui-org/form": "workspace:*", diff --git a/packages/components/select/package.json b/packages/components/select/package.json index 15b46ce305..4e9df4c346 100644 --- a/packages/components/select/package.json +++ b/packages/components/select/package.json @@ -34,8 +34,8 @@ "postpack": "clean-package restore" }, "peerDependencies": { - "@nextui-org/system": ">=2.4.0", - "@nextui-org/theme": ">=2.4.0", + "@nextui-org/system": ">=2.4.3", + "@nextui-org/theme": ">=2.4.5", "framer-motion": ">=11.5.6 || >=12.0.0-alpha.1", "react": ">=18 || >=19.0.0-rc.0", "react-dom": ">=18 || >=19.0.0-rc.0"