Skip to content

Commit

Permalink
chore: updating the dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
macci001 committed Dec 13, 2024
1 parent db5d31c commit 03e9405
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 20 deletions.
4 changes: 2 additions & 2 deletions packages/components/date-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/components/date-picker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 2 additions & 12 deletions packages/components/date-picker/src/use-date-picker-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -239,15 +234,10 @@ export function useDatePickerBase<T extends DateValue>(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,
Expand Down
4 changes: 2 additions & 2 deletions packages/components/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/components/select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 03e9405

Please sign in to comment.