@okshaun/components 0.5.7 → 0.5.8
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 +77 -0
- package/dist/index.js +559 -44
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +11 -0
- package/dist/preset.js +254 -4
- package/dist/preset.js.map +1 -1
- package/dist/sprite.symbol.html +1 -1
- package/dist/{transitions-D5SjakQu.js → transitions-DUgH88VW.js} +30 -1
- package/dist/transitions-DUgH88VW.js.map +1 -0
- package/package.json +1 -1
- package/dist/transitions-D5SjakQu.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { LabelVariantProps } from '../../../styled-system/recipes';
|
|
|
27
27
|
import { LinkVariantProps } from '../../../styled-system/recipes';
|
|
28
28
|
import { menu } from '../../../styled-system/recipes';
|
|
29
29
|
import { MenuVariantProps } from '../../../styled-system/recipes';
|
|
30
|
+
import { ModalVariantProps } from '../../../styled-system/recipes';
|
|
30
31
|
import { NumericSizeToken } from '../../../styled-system/tokens';
|
|
31
32
|
import { Placement } from '@floating-ui/react';
|
|
32
33
|
import { RadioInputVariantProps } from '../../../styled-system/recipes';
|
|
@@ -34,6 +35,10 @@ import { RadioVariantProps } from '../../../styled-system/recipes';
|
|
|
34
35
|
import * as React_2 from 'react';
|
|
35
36
|
import { ReactNode } from 'react';
|
|
36
37
|
import { RefObject } from 'react';
|
|
38
|
+
import { SelectContextValue } from './types';
|
|
39
|
+
import { SelectOptionProps } from './types';
|
|
40
|
+
import { SelectProps } from './types';
|
|
41
|
+
import { SelectTriggerProps } from './types';
|
|
37
42
|
import { SpinnerVariantProps } from '../../../styled-system/recipes';
|
|
38
43
|
import { SVGAttributes } from 'react';
|
|
39
44
|
import { SystemStyleObject } from '../../../styled-system/types';
|
|
@@ -869,6 +874,55 @@ export declare type MenuTriggerProps = Omit<BoxProps, 'children'> & {
|
|
|
869
874
|
disabled?: boolean;
|
|
870
875
|
};
|
|
871
876
|
|
|
877
|
+
export declare const Modal: default_2.FC<ModalProps>;
|
|
878
|
+
|
|
879
|
+
export declare const ModalBody: default_2.FC<ModalBodyProps>;
|
|
880
|
+
|
|
881
|
+
export declare type ModalBodyProps = Omit<BoxProps, 'children'> & {
|
|
882
|
+
/** Body content */
|
|
883
|
+
children: React.ReactNode;
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
declare interface ModalContextValue {
|
|
887
|
+
/** Whether the modal is open */
|
|
888
|
+
open: boolean;
|
|
889
|
+
/** Callback to close the modal */
|
|
890
|
+
onClose: () => void;
|
|
891
|
+
/** Whether overlay clicks should close the modal */
|
|
892
|
+
preventOverlayClose?: boolean;
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export declare const ModalFooter: default_2.FC<ModalFooterProps>;
|
|
896
|
+
|
|
897
|
+
export declare type ModalFooterProps = Omit<BoxProps, 'children'> & {
|
|
898
|
+
/** Footer content (typically action buttons) */
|
|
899
|
+
children: React.ReactNode;
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
export declare const ModalHeader: default_2.FC<ModalHeaderProps>;
|
|
903
|
+
|
|
904
|
+
export declare type ModalHeaderProps = Omit<BoxProps, 'children'> & {
|
|
905
|
+
/** Title text */
|
|
906
|
+
title?: string | React.ReactNode;
|
|
907
|
+
/** Whether to show the close button */
|
|
908
|
+
showCloseButton?: boolean;
|
|
909
|
+
/** Children (custom header content) */
|
|
910
|
+
children?: React.ReactNode;
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
export declare type ModalProps = Omit<BoxProps, keyof ModalVariantProps> & ModalVariantProps & {
|
|
914
|
+
/** Controlled open state (REQUIRED) */
|
|
915
|
+
open: boolean;
|
|
916
|
+
/** Callback when open state should change (REQUIRED) */
|
|
917
|
+
onOpenChange: (open: boolean) => void;
|
|
918
|
+
/** Whether clicking the overlay should close the modal */
|
|
919
|
+
preventOverlayClose?: boolean;
|
|
920
|
+
/** Children (ModalHeader, ModalBody, ModalFooter) */
|
|
921
|
+
children: React.ReactNode;
|
|
922
|
+
/** Optional ID for ARIA attributes */
|
|
923
|
+
id?: string;
|
|
924
|
+
};
|
|
925
|
+
|
|
872
926
|
declare const numericSizes: {
|
|
873
927
|
'0': {
|
|
874
928
|
value: string;
|
|
@@ -1051,8 +1105,27 @@ export declare type RadioProps = Omit<BoxProps, keyof RadioVariantProps> & Radio
|
|
|
1051
1105
|
error?: boolean;
|
|
1052
1106
|
};
|
|
1053
1107
|
|
|
1108
|
+
export declare const Select: default_2.FC<SelectProps>;
|
|
1109
|
+
|
|
1110
|
+
export { SelectContextValue }
|
|
1111
|
+
|
|
1054
1112
|
export declare type SelectionIndicator = 'checkmark' | 'checkbox';
|
|
1055
1113
|
|
|
1114
|
+
/**
|
|
1115
|
+
* SelectOption component used within Select
|
|
1116
|
+
* Note: This component doesn't render directly - the Select parent component
|
|
1117
|
+
* converts SelectOption instances to MenuItem components for actual rendering.
|
|
1118
|
+
*/
|
|
1119
|
+
export declare const SelectOption: default_2.FC<SelectOptionProps>;
|
|
1120
|
+
|
|
1121
|
+
export { SelectOptionProps }
|
|
1122
|
+
|
|
1123
|
+
export { SelectProps }
|
|
1124
|
+
|
|
1125
|
+
export declare const SelectTrigger: default_2.FC<SelectTriggerProps>;
|
|
1126
|
+
|
|
1127
|
+
export { SelectTriggerProps }
|
|
1128
|
+
|
|
1056
1129
|
export declare const Spinner: React.FC<SpinnerProps>;
|
|
1057
1130
|
|
|
1058
1131
|
export declare type SpinnerProps = Omit<BoxProps, keyof SpinnerVariantProps> & SpinnerVariantProps & {
|
|
@@ -1186,6 +1259,10 @@ export declare function useMediaQuery(breakpoint: BreakpointKey, direction?: Que
|
|
|
1186
1259
|
|
|
1187
1260
|
export declare const useMenuContext: () => MenuContextValue;
|
|
1188
1261
|
|
|
1262
|
+
export declare const useModalContext: () => ModalContextValue;
|
|
1263
|
+
|
|
1264
|
+
export declare const useSelectContext: () => SelectContextValue;
|
|
1265
|
+
|
|
1189
1266
|
export declare function useTheme(): ThemeContextType;
|
|
1190
1267
|
|
|
1191
1268
|
export { }
|