From 567f79ba460bf3e73ba80d41ec5228e7d7f95e1d Mon Sep 17 00:00:00 2001 From: Melloware Date: Sat, 9 Dec 2023 07:50:33 -0500 Subject: [PATCH] Fix Calendar input PT docs (#5565) --- components/doc/calendar/theming/tailwinddoc.js | 6 +++--- components/lib/passthrough/tailwind/index.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/doc/calendar/theming/tailwinddoc.js b/components/doc/calendar/theming/tailwinddoc.js index d04c51ee13..dbe344dbfb 100644 --- a/components/doc/calendar/theming/tailwinddoc.js +++ b/components/doc/calendar/theming/tailwinddoc.js @@ -25,10 +25,10 @@ const Tailwind = { }) }), input: { - root: ({ props }) => ({ + root: ({ parent }) => ({ className: classNames('font-sans text-base text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none', 'hover:border-blue-500', { - 'rounded-lg': !props.showIcon, - 'border-r-0 rounded-l-lg': props.showIcon + 'rounded-lg': !parent.props.showIcon, + 'border-r-0 rounded-l-lg': parent.props.showIcon }) }) }, diff --git a/components/lib/passthrough/tailwind/index.js b/components/lib/passthrough/tailwind/index.js index 067ee29610..5dc053482f 100644 --- a/components/lib/passthrough/tailwind/index.js +++ b/components/lib/passthrough/tailwind/index.js @@ -1133,10 +1133,10 @@ const Tailwind = { }) }), input: { - root: ({ props }) => ({ + root: ({ parent }) => ({ className: classNames('font-sans text-base text-gray-600 dark:text-white/80 bg-white dark:bg-gray-900 p-3 border border-gray-300 dark:border-blue-900/40 transition-colors duration-200 appearance-none', 'hover:border-blue-500', { - 'rounded-lg': !props.showIcon, - 'border-r-0 rounded-l-lg': props.showIcon + 'rounded-lg': !parent.props.showIcon, + 'border-r-0 rounded-l-lg': parent.props.showIcon }) }) },