@dimasbaguspm/versaur 0.0.29 → 0.0.30

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.
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { ChipMultipleInputProps } from './types';
3
- export declare const ChipMultipleInput: React.ForwardRefExoticComponent<ChipMultipleInputProps & React.RefAttributes<HTMLDivElement>> & {
4
- Option: React.ForwardRefExoticComponent<import('./types').ChipMultipleInputOptionProps & React.RefAttributes<HTMLInputElement>>;
2
+ export declare const ChipMultipleInput: import('react').ForwardRefExoticComponent<ChipMultipleInputProps & import('react').RefAttributes<HTMLDivElement>> & {
3
+ Option: import('react').ForwardRefExoticComponent<import('./types').ChipMultipleInputOptionProps & import('react').RefAttributes<HTMLInputElement>>;
5
4
  };
@@ -17,7 +17,7 @@ export interface ChipMultipleInputProps extends Omit<InputHTMLAttributes<HTMLInp
17
17
  * Semantic variants: success, info, warning, danger
18
18
  * Each variant supports outline form for flexible design expression
19
19
  */
20
- variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
20
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
21
21
  /**
22
22
  * Label text to display above the chip group
23
23
  */
@@ -56,24 +56,4 @@ export interface ChipMultipleInputOptionProps extends Omit<InputHTMLAttributes<H
56
56
  * The value for this chip option
57
57
  */
58
58
  value: string;
59
- /**
60
- * Custom check icon or element. If not provided, no check is rendered unless defaultCheck is true
61
- */
62
- check?: React.ReactNode;
63
- /**
64
- * Show the default check icon if true (default: false). If both check and defaultCheck are provided, check takes precedence
65
- */
66
- defaultCheck?: boolean;
67
- /**
68
- * Disabled state for this option
69
- */
70
- disabled?: boolean;
71
- /**
72
- * Optional id for the input
73
- */
74
- id?: string;
75
- /**
76
- * Additional className for styling
77
- */
78
- className?: string;
79
59
  }
@@ -1,5 +1,4 @@
1
- import { default as React } from 'react';
2
1
  import { ChipSingleInputProps } from './types';
3
- export declare const ChipSingleInput: React.ForwardRefExoticComponent<ChipSingleInputProps & React.RefAttributes<HTMLDivElement>> & {
4
- Option: React.ForwardRefExoticComponent<import('./types').ChipSingleInputOptionProps & React.RefAttributes<HTMLInputElement>>;
2
+ export declare const ChipSingleInput: import('react').ForwardRefExoticComponent<ChipSingleInputProps & import('react').RefAttributes<HTMLDivElement>> & {
3
+ Option: import('react').ForwardRefExoticComponent<import('./types').ChipSingleInputOptionProps & import('react').RefAttributes<HTMLInputElement>>;
5
4
  };
@@ -17,7 +17,7 @@ export interface ChipSingleInputProps extends Omit<InputHTMLAttributes<HTMLInput
17
17
  * Semantic variants: success, info, warning, danger
18
18
  * Each variant supports outline form for flexible design expression
19
19
  */
20
- variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'neutral' | 'success' | 'info' | 'warning' | 'danger';
20
+ variant?: 'primary' | 'secondary' | 'tertiary' | 'ghost';
21
21
  /**
22
22
  * Label text to display above the chip group
23
23
  */
@@ -56,12 +56,4 @@ export interface ChipSingleInputOptionProps extends Omit<InputHTMLAttributes<HTM
56
56
  * The value for this chip option
57
57
  */
58
58
  value: string;
59
- /**
60
- * Custom check icon or element. If not provided, no check is rendered unless defaultCheck is true
61
- */
62
- check?: React.ReactNode;
63
- /**
64
- * Show the default check icon if true (default: false). If both check and defaultCheck are provided, check takes precedence
65
- */
66
- defaultCheck?: boolean;
67
59
  }
@@ -1,4 +1,4 @@
1
- import { PageHeaderTopProps, PageHeaderBreadcrumbsProps, PageHeaderContentProps, PageHeaderBadgesProps, PageHeaderActionsProps, PageHeaderBottomProps } from './types';
1
+ import { PageHeaderTopProps, PageHeaderBreadcrumbsProps, PageHeaderContentProps, PageHeaderBadgesProps, PageHeaderActionsProps, PageHeaderBottomProps, PageHeaderMobileActionsProps } from './types';
2
2
  /**
3
3
  * PageHeaderTop - main header area containing breadcrumbs, content, and actions
4
4
  */
@@ -29,6 +29,7 @@ export declare const PageHeaderBadges: import('react').ForwardRefExoticComponent
29
29
  * PageHeaderActions - actions section for buttons and button groups
30
30
  */
31
31
  export declare const PageHeaderActions: import('react').ForwardRefExoticComponent<PageHeaderActionsProps & import('react').RefAttributes<HTMLDivElement>>;
32
+ export declare const PageHeaderMobileActions: import('react').ForwardRefExoticComponent<PageHeaderMobileActionsProps & import('react').RefAttributes<HTMLDivElement>>;
32
33
  /**
33
34
  * PageHeaderBottom - bottom section for tabs and filters
34
35
  */
@@ -31,6 +31,10 @@ interface PageHeaderRootProps extends Omit<PageHeaderProps, 'title'> {
31
31
  * Simplified API: Action buttons/button groups
32
32
  */
33
33
  actions?: ReactNode;
34
+ /**
35
+ * Simplified API: Mobile action buttons/button groups
36
+ */
37
+ mobileActions?: ReactNode;
34
38
  /**
35
39
  * Simplified API: Bottom content (tabs, filters)
36
40
  */
@@ -44,6 +44,12 @@ export interface PageHeaderBadgesProps extends HTMLAttributes<HTMLDivElement> {
44
44
  export interface PageHeaderActionsProps extends HTMLAttributes<HTMLDivElement> {
45
45
  children: ReactNode;
46
46
  }
47
+ /**
48
+ * Props for PageHeaderMobileActions - mobile actions section
49
+ */
50
+ export interface PageHeaderMobileActionsProps extends HTMLAttributes<HTMLDivElement> {
51
+ children: ReactNode;
52
+ }
47
53
  /**
48
54
  * Props for PageHeaderBottom - bottom section (tabs, filters, etc.)
49
55
  */
@@ -21,4 +21,4 @@ import { CardProps } from './types';
21
21
  * />
22
22
  * ```
23
23
  */
24
- export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
24
+ export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -1,10 +1,10 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import { ButtonHTMLAttributes, ReactNode } from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { cardVariants } from './helpers';
4
4
  /**
5
5
  * Props for the Card component
6
6
  */
7
- export interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'children'>, VariantProps<typeof cardVariants> {
7
+ export interface CardProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'title' | 'children'>, VariantProps<typeof cardVariants> {
8
8
  /**
9
9
  * Size variant affecting padding
10
10
  * @default 'md'
@@ -36,4 +36,9 @@ export interface CardProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'
36
36
  * Usually used for amounts, status, or additional info
37
37
  */
38
38
  supplementaryInfo?: ReactNode;
39
+ /**
40
+ * Whether the card is bordered
41
+ * @default false
42
+ */
43
+ bordered?: boolean;
39
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",