@clarlabs/ui 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -157,18 +157,22 @@ export declare type ButtonSize = 'sm' | 'md' | 'lg';
157
157
 
158
158
  export declare type ButtonVariant = 'primary' | 'secondary' | 'success' | 'danger' | 'outline' | 'ghost';
159
159
 
160
- export declare function Calendar({ value, onChange, minDate, maxDate, events, highlightedDates, disabledDates, showWeekNumbers, firstDayOfWeek, variant, className, ...props }: CalendarProps): default_2.JSX.Element;
160
+ export declare function Calendar({ value, onChange, onClick, minDate, maxDate, events, highlightedDates, disabledDates, showWeekNumbers, firstDayOfWeek, variant, className, ...props }: CalendarProps): default_2.JSX.Element;
161
161
 
162
162
  export declare interface CalendarEvent {
163
163
  id: string;
164
164
  date: Date;
165
165
  title: string;
166
166
  color?: string;
167
+ data?: {
168
+ [key: string]: string;
169
+ };
167
170
  }
168
171
 
169
- export declare interface CalendarProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'onChange'> {
172
+ export declare interface CalendarProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onClick'> {
170
173
  value?: Date;
171
174
  onChange?: (date: Date) => void;
175
+ onClick?: (events: CalendarEvent[]) => void;
172
176
  minDate?: Date;
173
177
  maxDate?: Date;
174
178
  events?: CalendarEvent[];
@@ -725,15 +729,15 @@ export declare interface GridItemProps extends Omit<default_2.HTMLAttributes<HTM
725
729
  export declare type GridJustify = 'start' | 'center' | 'end' | 'space-between' | 'space-around' | 'space-evenly';
726
730
 
727
731
  export declare interface GridProps extends Omit<default_2.HTMLAttributes<HTMLDivElement>, 'className'> {
728
- /** Number of columns (1-12) */
732
+ /** Number of columns (1-12). Applies from sm breakpoint (640px) and above. Defaults to 1 column on mobile for automatic stacking. */
729
733
  columns?: GridColumns;
730
- /** Number of columns on small screens (mobile) */
734
+ /** Number of columns on small screens (mobile, <640px). If not specified, defaults to 1 column (stacked). */
731
735
  columnsSm?: GridColumns;
732
- /** Number of columns on medium screens (tablet) */
736
+ /** Number of columns on medium screens (tablet, ≥768px) */
733
737
  columnsMd?: GridColumns;
734
- /** Number of columns on large screens (desktop) */
738
+ /** Number of columns on large screens (desktop, ≥1024px) */
735
739
  columnsLg?: GridColumns;
736
- /** Number of columns on extra large screens */
740
+ /** Number of columns on extra large screens (≥1280px) */
737
741
  columnsXl?: GridColumns;
738
742
  /** Gap between grid items */
739
743
  gap?: GridGap;