@dimasbaguspm/versaur 0.0.30 → 0.0.32

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.
Files changed (35) hide show
  1. package/dist/js/{bottom-sheet-DUcwK0Yd.js → bottom-sheet-DJgcgmgw.js} +146 -160
  2. package/dist/js/{bottom-sheet-input-Bzx0ecmU.js → bottom-sheet-input-lRqhqp7I.js} +7 -7
  3. package/dist/js/forms/index.js +1 -1
  4. package/dist/js/{image-rectangle-BMEGIW-6.js → image-rectangle-BS6j3xEC.js} +429 -618
  5. package/dist/js/index.js +46 -47
  6. package/dist/js/layouts/index.js +1 -1
  7. package/dist/js/navigation/index.js +1 -1
  8. package/dist/js/overlays/index.js +7 -6
  9. package/dist/js/primitive/index.js +21 -22
  10. package/dist/js/{tabs-CIWr5hdb.js → tabs-80jJFJ7W.js} +1 -1
  11. package/dist/js/tooltip-J7r2xoUk.js +81 -0
  12. package/dist/js/{top-bar-BdmaTpTp.js → top-bar-DJNgsR7X.js} +1 -1
  13. package/dist/types/overlays/menu/index.d.ts +1 -1
  14. package/dist/types/overlays/menu/menu.d.ts +4 -1
  15. package/dist/types/overlays/menu/types.d.ts +4 -2
  16. package/dist/types/overlays/menu/use-menu.d.ts +0 -1
  17. package/dist/types/primitive/button-menu-icon/button-menu-icon.d.ts +4 -0
  18. package/dist/types/primitive/button-menu-icon/index.d.ts +2 -0
  19. package/dist/types/primitive/button-menu-icon/types.d.ts +13 -0
  20. package/dist/types/primitive/card/card.atoms.d.ts +3 -0
  21. package/dist/types/primitive/card/card.d.ts +4 -23
  22. package/dist/types/primitive/card/types.d.ts +6 -0
  23. package/dist/types/primitive/index.d.ts +1 -2
  24. package/dist/utils/enforce-subpath-import.js +1 -2
  25. package/package.json +1 -1
  26. package/dist/js/tooltip-IazSAgsg.js +0 -148
  27. package/dist/types/primitive/calendar/calendar.atoms.d.ts +0 -13
  28. package/dist/types/primitive/calendar/calendar.d.ts +0 -8
  29. package/dist/types/primitive/calendar/index.d.ts +0 -2
  30. package/dist/types/primitive/calendar/types.d.ts +0 -54
  31. package/dist/types/primitive/calendar/use-calendar.d.ts +0 -18
  32. package/dist/types/primitive/description-list/description-list.atoms.d.ts +0 -13
  33. package/dist/types/primitive/description-list/description-list.d.ts +0 -6
  34. package/dist/types/primitive/description-list/index.d.ts +0 -2
  35. package/dist/types/primitive/description-list/types.d.ts +0 -46
@@ -1,54 +0,0 @@
1
- /**
2
- * CalendarProps defines the props for the Calendar component
3
- * @property value - The selected date
4
- * @property onChange - Callback when a date is selected
5
- * @property className - Custom class for the calendar container
6
- */
7
- /**
8
- * Calendar selection type
9
- * - 'single': single date selection
10
- * - 'range': date range selection (start and end)
11
- */
12
- export type CalendarType = 'single' | 'range';
13
- /**
14
- * Calendar value type
15
- * - Date for single
16
- * - [Date | null, Date | null] for range
17
- */
18
- export type CalendarValue = Date | [Date | null, Date | null];
19
- /**
20
- * CalendarProps defines the props for the Calendar component
21
- * @property value - The selected date or range
22
- * @property onChange - Callback when a date or range is selected
23
- * @property className - Custom class for the calendar container
24
- * @property type - Selection type: 'single' or 'range'
25
- */
26
- export interface CalendarProps {
27
- /**
28
- * The selected date or range
29
- */
30
- value?: CalendarValue;
31
- /**
32
- * Callback when a date or range is selected
33
- */
34
- onChange?: (value: CalendarValue) => void;
35
- /**
36
- * Custom class for the calendar container
37
- */
38
- className?: string;
39
- /**
40
- * Selection type: 'single' or 'range'
41
- */
42
- type?: CalendarType;
43
- }
44
- /**
45
- * Props for CalendarHeader atom
46
- */
47
- export interface CalendarHeaderProps {
48
- value?: CalendarValue;
49
- year: number;
50
- month: number;
51
- onPrevMonth: () => void;
52
- onNextMonth: () => void;
53
- className?: string;
54
- }
@@ -1,18 +0,0 @@
1
- import { CalendarType, CalendarValue } from './types';
2
- export interface UseCalendarProps {
3
- value?: CalendarValue;
4
- type: CalendarType;
5
- onChange?: (value: CalendarValue) => void;
6
- initialYear: number;
7
- initialMonth: number;
8
- }
9
- export declare function useCalendar({ value: controlledValue, type, onChange, initialYear, initialMonth, }: UseCalendarProps): {
10
- year: number;
11
- month: number;
12
- value: CalendarValue | undefined;
13
- setMonth: import('react').Dispatch<import('react').SetStateAction<number>>;
14
- setYear: import('react').Dispatch<import('react').SetStateAction<number>>;
15
- onChange: (val: CalendarValue) => void;
16
- handlePrevMonth: () => void;
17
- handleNextMonth: () => void;
18
- };
@@ -1,13 +0,0 @@
1
- import { DescriptionListItemProps, DescriptionListTermProps, DescriptionListDetailsProps } from './types';
2
- /**
3
- * DescriptionList.Item atom
4
- */
5
- export declare const DescriptionListItem: import('react').ForwardRefExoticComponent<DescriptionListItemProps & import('react').RefAttributes<HTMLDivElement>>;
6
- /**
7
- * DescriptionList.Term atom
8
- */
9
- export declare const DescriptionListTerm: import('react').ForwardRefExoticComponent<DescriptionListTermProps & import('react').RefAttributes<HTMLElement>>;
10
- /**
11
- * DescriptionList.Details atom
12
- */
13
- export declare const DescriptionListDetails: import('react').ForwardRefExoticComponent<DescriptionListDetailsProps & import('react').RefAttributes<HTMLElement>>;
@@ -1,6 +0,0 @@
1
- import { DescriptionListProps } from './types';
2
- export declare const DescriptionList: import('react').ForwardRefExoticComponent<DescriptionListProps & import('react').RefAttributes<HTMLDListElement>> & {
3
- Item: import('react').ForwardRefExoticComponent<import('./types').DescriptionListItemProps & import('react').RefAttributes<HTMLDivElement>>;
4
- Term: import('react').ForwardRefExoticComponent<import('./types').DescriptionListTermProps & import('react').RefAttributes<HTMLElement>>;
5
- Details: import('react').ForwardRefExoticComponent<import('./types').DescriptionListDetailsProps & import('react').RefAttributes<HTMLElement>>;
6
- };
@@ -1,2 +0,0 @@
1
- export { DescriptionList } from './description-list';
2
- export * from './types';
@@ -1,46 +0,0 @@
1
- import { ReactNode, HTMLAttributes } from 'react';
2
- import { TextProps } from '../text';
3
- /**
4
- * Props for the DescriptionList root component
5
- */
6
- export interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
7
- /**
8
- * Children should be DescriptionList.Item elements
9
- */
10
- children: ReactNode;
11
- }
12
- /**
13
- * Props for DescriptionList.Item
14
- */
15
- export interface DescriptionListItemProps extends HTMLAttributes<HTMLDivElement> {
16
- /**
17
- * Children should be DescriptionList.Term and DescriptionList.Details
18
- */
19
- children: ReactNode;
20
- /**
21
- * Number of grid columns to span (default: 4)
22
- */
23
- span?: number;
24
- }
25
- /**
26
- * Props for DescriptionList.Term
27
- */
28
- export interface DescriptionListTermProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
29
- /**
30
- * Term label (required, string only)
31
- */
32
- children: string;
33
- }
34
- /**
35
- * Props for DescriptionList.Details
36
- */
37
- export interface DescriptionListDetailsProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
38
- /**
39
- * Details value (required, string only)
40
- */
41
- children: string;
42
- /**
43
- * Text Color (default: 'black')
44
- */
45
- color?: TextProps['color'];
46
- }