The Open Standard for Generative UI
width full on calendar root and add class name calendar-container (#57)
subham924d0c3dad87
diff --git a/js/packages/react-ui/package.json b/js/packages/react-ui/package.jsonindex e0c716aff..b37304c8b 100644--- a/js/packages/react-ui/package.json+++ b/js/packages/react-ui/package.json@@ -2,7 +2,7 @@"type": "module","name": "@crayonai/react-ui","license": "MIT",- "version": "0.5.6",+ "version": "0.5.7","description": "Component library for Generative UI SDK","main": "dist/index.js","types": "dist/index.d.ts",diff --git a/js/packages/react-ui/src/components/Calendar/Calendar.tsx b/js/packages/react-ui/src/components/Calendar/Calendar.tsxindex a386ac325..aaea52842 100644--- a/js/packages/react-ui/src/components/Calendar/Calendar.tsx+++ b/js/packages/react-ui/src/components/Calendar/Calendar.tsx@@ -1,10 +1,10 @@+import clsx from "clsx";import React, { forwardRef, useRef } from "react";import { DayPicker } from "react-day-picker";import { useLayoutContext } from "../../context/LayoutContext";import { useMultipleRefs } from "../../hooks/useMultipleRefs";import { MonthsDropdown, YearsDropdown } from "./components/helperComponents";import { getDayPickerStyles } from "./utils/styles";-export type CalendarProps = React.ComponentProps<typeof DayPicker>;export const Calendar = forwardRef<HTMLDivElement, CalendarProps>(@@ -27,7 +27,7 @@ export const Calendar = forwardRef<HTMLDivElement, CalendarProps>(};return (- <div ref={assignRef} className={className}>+ <div ref={assignRef} className={clsx("crayon-calendar-container", className)}><DayPicker{...commonProps}{...props}diff --git a/js/packages/react-ui/src/components/Calendar/calendar.scss b/js/packages/react-ui/src/components/Calendar/calendar.scssindex c256b8e93..e64f6c3f4 100644--- a/js/packages/react-ui/src/components/Calendar/calendar.scss+++ b/js/packages/react-ui/src/components/Calendar/calendar.scss@@ -1,2 +1,3 @@+@use "../../cssUtils" as cssUtils;@forward "./components/calendarHelperComponents.scss";@forward "./utils/calendarBaseStyle.scss";diff --git a/js/packages/react-ui/src/components/Calendar/utils/calendarBaseStyle.scss b/js/packages/react-ui/src/components/Calendar/utils/calendarBaseStyle.scssindex 0430d67c8..880aa10c0 100644--- a/js/packages/react-ui/src/components/Calendar/utils/calendarBaseStyle.scss+++ b/js/packages/react-ui/src/components/Calendar/utils/calendarBaseStyle.scss@@ -15,6 +15,7 @@justify-content: center;border-radius: cssUtils.$rounded-xl;border: 1px solid cssUtils.$stroke-default;+ width: 100%;}.crayon-calendar-nav {