@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.
- package/dist/js/{bottom-sheet-BKd7WCCS.js → bottom-sheet-DUcwK0Yd.js} +1 -1
- package/dist/js/{bottom-sheet-input-DrbGhcXv.js → bottom-sheet-input-Bzx0ecmU.js} +629 -722
- package/dist/js/forms/index.js +1 -1
- package/dist/js/{image-rectangle-CF656HIm.js → image-rectangle-BMEGIW-6.js} +96 -90
- package/dist/js/index.js +6 -6
- package/dist/js/layouts/index.js +1 -1
- package/dist/js/navigation/index.js +1 -1
- package/dist/js/overlays/index.js +2 -2
- package/dist/js/primitive/index.js +1 -1
- package/dist/js/{tabs-DoiqKzR9.js → tabs-CIWr5hdb.js} +1 -1
- package/dist/js/{tooltip-D1-q8Ars.js → tooltip-IazSAgsg.js} +1 -1
- package/dist/js/{top-bar-B4SZ2YZC.js → top-bar-BdmaTpTp.js} +176 -163
- package/dist/types/forms/chip-multiple-input/chip-multiple-input.d.ts +2 -3
- package/dist/types/forms/chip-multiple-input/types.d.ts +1 -21
- package/dist/types/forms/chip-single-input/chip-single-input.d.ts +2 -3
- package/dist/types/forms/chip-single-input/types.d.ts +1 -9
- package/dist/types/layouts/page-header/page-header.atoms.d.ts +2 -1
- package/dist/types/layouts/page-header/page-header.d.ts +4 -0
- package/dist/types/layouts/page-header/types.d.ts +6 -0
- package/dist/types/primitive/card/card.d.ts +1 -1
- package/dist/types/primitive/card/types.d.ts +7 -2
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { ChipMultipleInputProps } from './types';
|
|
3
|
-
export declare const ChipMultipleInput:
|
|
4
|
-
Option:
|
|
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'
|
|
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:
|
|
4
|
-
Option:
|
|
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'
|
|
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<
|
|
24
|
+
export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
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
|
}
|