@donotdev/expo 0.0.1
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/__tests__/components/atomic.test.d.ts +10 -0
- package/dist/__tests__/components/atomic.test.d.ts.map +1 -0
- package/dist/__tests__/providers/ExpoAppProviders.test.d.ts +10 -0
- package/dist/__tests__/providers/ExpoAppProviders.test.d.ts.map +1 -0
- package/dist/__tests__/setup.d.ts +10 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/__tests__/test-utils.d.ts +22 -0
- package/dist/__tests__/test-utils.d.ts.map +1 -0
- package/dist/atomic/Accordion/index.d.ts +65 -0
- package/dist/atomic/Accordion/index.d.ts.map +1 -0
- package/dist/atomic/Alert/index.d.ts +69 -0
- package/dist/atomic/Alert/index.d.ts.map +1 -0
- package/dist/atomic/AlertDialog/index.d.ts +83 -0
- package/dist/atomic/AlertDialog/index.d.ts.map +1 -0
- package/dist/atomic/Avatar/index.d.ts +53 -0
- package/dist/atomic/Avatar/index.d.ts.map +1 -0
- package/dist/atomic/Badge/index.d.ts +61 -0
- package/dist/atomic/Badge/index.d.ts.map +1 -0
- package/dist/atomic/Blockquote/index.d.ts +70 -0
- package/dist/atomic/Blockquote/index.d.ts.map +1 -0
- package/dist/atomic/Button/index.d.ts +117 -0
- package/dist/atomic/Button/index.d.ts.map +1 -0
- package/dist/atomic/Calendar/index.d.ts +55 -0
- package/dist/atomic/Calendar/index.d.ts.map +1 -0
- package/dist/atomic/CallToAction/index.d.ts +56 -0
- package/dist/atomic/CallToAction/index.d.ts.map +1 -0
- package/dist/atomic/Card/index.d.ts +102 -0
- package/dist/atomic/Card/index.d.ts.map +1 -0
- package/dist/atomic/Checkbox/index.d.ts +79 -0
- package/dist/atomic/Checkbox/index.d.ts.map +1 -0
- package/dist/atomic/Collapsible/index.d.ts +56 -0
- package/dist/atomic/Collapsible/index.d.ts.map +1 -0
- package/dist/atomic/Combobox/index.d.ts +137 -0
- package/dist/atomic/Combobox/index.d.ts.map +1 -0
- package/dist/atomic/Command/index.d.ts +94 -0
- package/dist/atomic/Command/index.d.ts.map +1 -0
- package/dist/atomic/CommandDialog/index.d.ts +62 -0
- package/dist/atomic/CommandDialog/index.d.ts.map +1 -0
- package/dist/atomic/ContextMenu/index.d.ts +60 -0
- package/dist/atomic/ContextMenu/index.d.ts.map +1 -0
- package/dist/atomic/CopyToClipboard/index.d.ts +78 -0
- package/dist/atomic/CopyToClipboard/index.d.ts.map +1 -0
- package/dist/atomic/DescriptionList/index.d.ts +60 -0
- package/dist/atomic/DescriptionList/index.d.ts.map +1 -0
- package/dist/atomic/Dialog/index.d.ts +105 -0
- package/dist/atomic/Dialog/index.d.ts.map +1 -0
- package/dist/atomic/DropdownMenu/index.d.ts +85 -0
- package/dist/atomic/DropdownMenu/index.d.ts.map +1 -0
- package/dist/atomic/DualCard/index.d.ts +101 -0
- package/dist/atomic/DualCard/index.d.ts.map +1 -0
- package/dist/atomic/FeatureFallback/index.d.ts +75 -0
- package/dist/atomic/FeatureFallback/index.d.ts.map +1 -0
- package/dist/atomic/FileButton/index.d.ts +55 -0
- package/dist/atomic/FileButton/index.d.ts.map +1 -0
- package/dist/atomic/Grid/index.d.ts +93 -0
- package/dist/atomic/Grid/index.d.ts.map +1 -0
- package/dist/atomic/HeroSection/index.d.ts +72 -0
- package/dist/atomic/HeroSection/index.d.ts.map +1 -0
- package/dist/atomic/HoverCard/index.d.ts +70 -0
- package/dist/atomic/HoverCard/index.d.ts.map +1 -0
- package/dist/atomic/Icons/index.d.ts +55 -0
- package/dist/atomic/Icons/index.d.ts.map +1 -0
- package/dist/atomic/InfiniteScroll/index.d.ts +62 -0
- package/dist/atomic/InfiniteScroll/index.d.ts.map +1 -0
- package/dist/atomic/Input/index.d.ts +100 -0
- package/dist/atomic/Input/index.d.ts.map +1 -0
- package/dist/atomic/Label/index.d.ts +49 -0
- package/dist/atomic/Label/index.d.ts.map +1 -0
- package/dist/atomic/List/index.d.ts +62 -0
- package/dist/atomic/List/index.d.ts.map +1 -0
- package/dist/atomic/NavigationMenu/index.d.ts +81 -0
- package/dist/atomic/NavigationMenu/index.d.ts.map +1 -0
- package/dist/atomic/Pagination/index.d.ts +86 -0
- package/dist/atomic/Pagination/index.d.ts.map +1 -0
- package/dist/atomic/PasswordInput/index.d.ts +95 -0
- package/dist/atomic/PasswordInput/index.d.ts.map +1 -0
- package/dist/atomic/Popover/index.d.ts +98 -0
- package/dist/atomic/Popover/index.d.ts.map +1 -0
- package/dist/atomic/Portal/index.d.ts +41 -0
- package/dist/atomic/Portal/index.d.ts.map +1 -0
- package/dist/atomic/PortalButton/index.d.ts +54 -0
- package/dist/atomic/PortalButton/index.d.ts.map +1 -0
- package/dist/atomic/Progress/index.d.ts +59 -0
- package/dist/atomic/Progress/index.d.ts.map +1 -0
- package/dist/atomic/RadioGroup/index.d.ts +91 -0
- package/dist/atomic/RadioGroup/index.d.ts.map +1 -0
- package/dist/atomic/RangeInput/index.d.ts +117 -0
- package/dist/atomic/RangeInput/index.d.ts.map +1 -0
- package/dist/atomic/Rating/index.d.ts +74 -0
- package/dist/atomic/Rating/index.d.ts.map +1 -0
- package/dist/atomic/ScrollArea/index.d.ts +59 -0
- package/dist/atomic/ScrollArea/index.d.ts.map +1 -0
- package/dist/atomic/Section/index.d.ts +83 -0
- package/dist/atomic/Section/index.d.ts.map +1 -0
- package/dist/atomic/Select/index.d.ts +116 -0
- package/dist/atomic/Select/index.d.ts.map +1 -0
- package/dist/atomic/Separator/index.d.ts +58 -0
- package/dist/atomic/Separator/index.d.ts.map +1 -0
- package/dist/atomic/Sheet/index.d.ts +106 -0
- package/dist/atomic/Sheet/index.d.ts.map +1 -0
- package/dist/atomic/Skeleton/index.d.ts +59 -0
- package/dist/atomic/Skeleton/index.d.ts.map +1 -0
- package/dist/atomic/Slider/index.d.ts +101 -0
- package/dist/atomic/Slider/index.d.ts.map +1 -0
- package/dist/atomic/Slot/index.d.ts +28 -0
- package/dist/atomic/Slot/index.d.ts.map +1 -0
- package/dist/atomic/Spinner/index.d.ts +52 -0
- package/dist/atomic/Spinner/index.d.ts.map +1 -0
- package/dist/atomic/Stack/index.d.ts +123 -0
- package/dist/atomic/Stack/index.d.ts.map +1 -0
- package/dist/atomic/Stepper/index.d.ts +102 -0
- package/dist/atomic/Stepper/index.d.ts.map +1 -0
- package/dist/atomic/Switch/index.d.ts +88 -0
- package/dist/atomic/Switch/index.d.ts.map +1 -0
- package/dist/atomic/Table/index.d.ts +107 -0
- package/dist/atomic/Table/index.d.ts.map +1 -0
- package/dist/atomic/Tabs/index.d.ts +91 -0
- package/dist/atomic/Tabs/index.d.ts.map +1 -0
- package/dist/atomic/Tag/index.d.ts +78 -0
- package/dist/atomic/Tag/index.d.ts.map +1 -0
- package/dist/atomic/Text/index.d.ts +81 -0
- package/dist/atomic/Text/index.d.ts.map +1 -0
- package/dist/atomic/Textarea/index.d.ts +66 -0
- package/dist/atomic/Textarea/index.d.ts.map +1 -0
- package/dist/atomic/Toaster/index.d.ts +69 -0
- package/dist/atomic/Toaster/index.d.ts.map +1 -0
- package/dist/atomic/Toggle/index.d.ts +76 -0
- package/dist/atomic/Toggle/index.d.ts.map +1 -0
- package/dist/atomic/ToggleGroup/index.d.ts +82 -0
- package/dist/atomic/ToggleGroup/index.d.ts.map +1 -0
- package/dist/atomic/Tooltip/index.d.ts +68 -0
- package/dist/atomic/Tooltip/index.d.ts.map +1 -0
- package/dist/atomic/VideoPlayer/index.d.ts +68 -0
- package/dist/atomic/VideoPlayer/index.d.ts.map +1 -0
- package/dist/atomic/VisuallyHidden/index.d.ts +33 -0
- package/dist/atomic/VisuallyHidden/index.d.ts.map +1 -0
- package/dist/atomic/index.d.ts +146 -0
- package/dist/atomic/index.d.ts.map +1 -0
- package/dist/crud/components/DateFilter.d.ts +29 -0
- package/dist/crud/components/DateFilter.d.ts.map +1 -0
- package/dist/crud/components/DisplayFieldRenderer.d.ts +29 -0
- package/dist/crud/components/DisplayFieldRenderer.d.ts.map +1 -0
- package/dist/crud/components/EntityCardList.d.ts +25 -0
- package/dist/crud/components/EntityCardList.d.ts.map +1 -0
- package/dist/crud/components/EntityDisplayRenderer.d.ts +26 -0
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -0
- package/dist/crud/components/EntityFilters.d.ts +40 -0
- package/dist/crud/components/EntityFilters.d.ts.map +1 -0
- package/dist/crud/components/EntityFormRenderer.d.ts +66 -0
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -0
- package/dist/crud/components/EntityList.d.ts +23 -0
- package/dist/crud/components/EntityList.d.ts.map +1 -0
- package/dist/crud/components/FormFieldRenderer.d.ts +38 -0
- package/dist/crud/components/FormFieldRenderer.d.ts.map +1 -0
- package/dist/crud/components/FormLayout.d.ts +33 -0
- package/dist/crud/components/FormLayout.d.ts.map +1 -0
- package/dist/crud/components/index.d.ts +27 -0
- package/dist/crud/components/index.d.ts.map +1 -0
- package/dist/crud/contexts/UploadContext.d.ts +22 -0
- package/dist/crud/contexts/UploadContext.d.ts.map +1 -0
- package/dist/crud/forms/hooks/useEntityForm.d.ts +11 -0
- package/dist/crud/forms/hooks/useEntityForm.d.ts.map +1 -0
- package/dist/crud/hooks/useUnsavedChangesWarning.d.ts +23 -0
- package/dist/crud/hooks/useUnsavedChangesWarning.d.ts.map +1 -0
- package/dist/crud/index.d.ts +17 -0
- package/dist/crud/index.d.ts.map +1 -0
- package/dist/crud/stores/index.d.ts +11 -0
- package/dist/crud/stores/index.d.ts.map +1 -0
- package/dist/features/auth/components/AuthPartnerButton.d.ts +31 -0
- package/dist/features/auth/components/AuthPartnerButton.d.ts.map +1 -0
- package/dist/features/auth/components/ConfirmDeleteDialog.d.ts +30 -0
- package/dist/features/auth/components/ConfirmDeleteDialog.d.ts.map +1 -0
- package/dist/features/auth/components/FeatureGuard.d.ts +53 -0
- package/dist/features/auth/components/FeatureGuard.d.ts.map +1 -0
- package/dist/features/auth/components/GoogleOneTap.d.ts +19 -0
- package/dist/features/auth/components/GoogleOneTap.d.ts.map +1 -0
- package/dist/features/auth/components/LoginModal.d.ts +18 -0
- package/dist/features/auth/components/LoginModal.d.ts.map +1 -0
- package/dist/features/auth/components/MultipleAuthProviders.d.ts +37 -0
- package/dist/features/auth/components/MultipleAuthProviders.d.ts.map +1 -0
- package/dist/features/auth/components/ReauthDialog.d.ts +30 -0
- package/dist/features/auth/components/ReauthDialog.d.ts.map +1 -0
- package/dist/features/auth/components/index.d.ts +22 -0
- package/dist/features/auth/components/index.d.ts.map +1 -0
- package/dist/features/auth/hooks/index.d.ts +14 -0
- package/dist/features/auth/hooks/index.d.ts.map +1 -0
- package/dist/features/auth/hooks/useAuthState.d.ts +29 -0
- package/dist/features/auth/hooks/useAuthState.d.ts.map +1 -0
- package/dist/features/auth/hooks/useCanAccess.d.ts +25 -0
- package/dist/features/auth/hooks/useCanAccess.d.ts.map +1 -0
- package/dist/features/auth/hooks/useHasRole.d.ts +26 -0
- package/dist/features/auth/hooks/useHasRole.d.ts.map +1 -0
- package/dist/features/auth/hooks/useUserRole.d.ts +25 -0
- package/dist/features/auth/hooks/useUserRole.d.ts.map +1 -0
- package/dist/features/auth/index.d.ts +16 -0
- package/dist/features/auth/index.d.ts.map +1 -0
- package/dist/features/billing/components/ProductCard.d.ts +37 -0
- package/dist/features/billing/components/ProductCard.d.ts.map +1 -0
- package/dist/features/billing/components/SecurityNotice.d.ts +26 -0
- package/dist/features/billing/components/SecurityNotice.d.ts.map +1 -0
- package/dist/features/billing/components/StripeCheckoutButton.d.ts +41 -0
- package/dist/features/billing/components/StripeCheckoutButton.d.ts.map +1 -0
- package/dist/features/billing/components/SubscriptionManager.d.ts +29 -0
- package/dist/features/billing/components/SubscriptionManager.d.ts.map +1 -0
- package/dist/features/billing/components/index.d.ts +17 -0
- package/dist/features/billing/components/index.d.ts.map +1 -0
- package/dist/features/billing/index.d.ts +12 -0
- package/dist/features/billing/index.d.ts.map +1 -0
- package/dist/features/index.d.ts +12 -0
- package/dist/features/index.d.ts.map +1 -0
- package/dist/features/oauth/components/MultipleOAuthProviders.d.ts +42 -0
- package/dist/features/oauth/components/MultipleOAuthProviders.d.ts.map +1 -0
- package/dist/features/oauth/components/OAuthConnectionModal.d.ts +21 -0
- package/dist/features/oauth/components/OAuthConnectionModal.d.ts.map +1 -0
- package/dist/features/oauth/components/OAuthFallback.d.ts +22 -0
- package/dist/features/oauth/components/OAuthFallback.d.ts.map +1 -0
- package/dist/features/oauth/components/OAuthPartnerButton.d.ts +35 -0
- package/dist/features/oauth/components/OAuthPartnerButton.d.ts.map +1 -0
- package/dist/features/oauth/components/index.d.ts +17 -0
- package/dist/features/oauth/components/index.d.ts.map +1 -0
- package/dist/features/oauth/index.d.ts +11 -0
- package/dist/features/oauth/index.d.ts.map +1 -0
- package/dist/firebase/authPersistence.d.ts +23 -0
- package/dist/firebase/authPersistence.d.ts.map +1 -0
- package/dist/firebase/index.d.ts +10 -0
- package/dist/firebase/index.d.ts.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/providers/ExpoAppProviders.d.ts +46 -0
- package/dist/providers/ExpoAppProviders.d.ts.map +1 -0
- package/dist/routing/components.d.ts +26 -0
- package/dist/routing/components.d.ts.map +1 -0
- package/dist/routing/hooks.d.ts +87 -0
- package/dist/routing/hooks.d.ts.map +1 -0
- package/dist/routing/index.d.ts +11 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/utils/useFormStoreSafe.d.ts +15 -0
- package/dist/routing/utils/useFormStoreSafe.d.ts.map +1 -0
- package/dist/storage/AsyncStorageStrategy.d.ts +55 -0
- package/dist/storage/AsyncStorageStrategy.d.ts.map +1 -0
- package/dist/storage/zustandAsyncStorage.d.ts +22 -0
- package/dist/storage/zustandAsyncStorage.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +111 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/tokens.d.ts +152 -0
- package/dist/theme/tokens.d.ts.map +1 -0
- package/dist/utils/constants.d.ts +73 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +39 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/theme-helpers.d.ts +29 -0
- package/dist/utils/theme-helpers.d.ts.map +1 -0
- package/dist/utils/useAuthSafe.d.ts +8 -0
- package/dist/utils/useAuthSafe.d.ts.map +1 -0
- package/dist/utils/variants.d.ts +25 -0
- package/dist/utils/variants.d.ts.map +1 -0
- package/package.json +85 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atomic.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/components/atomic.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview ExpoAppProviders tests
|
|
3
|
+
* @description Tests for ExpoAppProviders to ensure proper setup
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ExpoAppProviders.test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoAppProviders.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/providers/ExpoAppProviders.test.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/__tests__/setup.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Test utilities for Expo package
|
|
3
|
+
* @description Shared utilities for testing Expo components and utilities
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.2
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
10
|
+
/**
|
|
11
|
+
* Create a mock AsyncStorage with in-memory storage
|
|
12
|
+
*/
|
|
13
|
+
export declare function createMockAsyncStorage(): typeof AsyncStorage;
|
|
14
|
+
/**
|
|
15
|
+
* Clear all mocks and reset state
|
|
16
|
+
*/
|
|
17
|
+
export declare function resetMocks(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Wait for async operations
|
|
20
|
+
*/
|
|
21
|
+
export declare function waitFor(ms: number): Promise<unknown>;
|
|
22
|
+
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../src/__tests__/test-utils.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,YAAY,MAAM,2CAA2C,CAAC;AAErE;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,YAAY,CAyB5D;AAED;;GAEG;AACH,wBAAgB,UAAU,SAIzB;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,MAAM,oBAEjC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Accordion component
|
|
3
|
+
* @description Accessible accordion component
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Accordion item interface
|
|
13
|
+
*/
|
|
14
|
+
export interface AccordionItemType {
|
|
15
|
+
/** The unique value for the accordion item */
|
|
16
|
+
value: string;
|
|
17
|
+
/** The content to be displayed in the trigger/header */
|
|
18
|
+
trigger: string | ReactNode;
|
|
19
|
+
/** The content to be displayed when expanded */
|
|
20
|
+
content: string | ReactNode;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Accordion component props interface
|
|
24
|
+
*/
|
|
25
|
+
export interface AccordionProps {
|
|
26
|
+
/**
|
|
27
|
+
* The type of accordion
|
|
28
|
+
* @default 'single'
|
|
29
|
+
*/
|
|
30
|
+
type?: 'single' | 'multiple';
|
|
31
|
+
/**
|
|
32
|
+
* Whether an accordion item can be collapsed after opening (only for type="single")
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
/** The default active value(s) */
|
|
37
|
+
defaultValue?: string | string[];
|
|
38
|
+
/** The controlled active value(s) */
|
|
39
|
+
value?: string | string[];
|
|
40
|
+
/** Callback when value changes */
|
|
41
|
+
onValueChange?: (value: string | string[]) => void;
|
|
42
|
+
/** The list of items to render */
|
|
43
|
+
items: AccordionItemType[];
|
|
44
|
+
/** Additional style */
|
|
45
|
+
style?: ViewStyle;
|
|
46
|
+
/** Test ID for testing */
|
|
47
|
+
testID?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A vertically stacked set of interactive headings that each reveal a section of content.
|
|
51
|
+
*
|
|
52
|
+
* @component
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <Accordion
|
|
56
|
+
* items={[
|
|
57
|
+
* { value: '1', trigger: 'Item 1', content: 'Content 1' },
|
|
58
|
+
* { value: '2', trigger: 'Item 2', content: 'Content 2' }
|
|
59
|
+
* ]}
|
|
60
|
+
* />
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
declare const Accordion: ({ type, collapsible, defaultValue, value: controlledValue, onValueChange, items, style, testID, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export default Accordion;
|
|
65
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Accordion/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAA0B,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,gDAAgD;IAChD,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACjC,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,kCAAkC;IAClC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IACnD,kCAAkC;IAClC,KAAK,EAAE,iBAAiB,EAAE,CAAC;IAC3B,uBAAuB;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,SAAS,GAAI,mGAShB,cAAc,4CAwGhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Alert component
|
|
3
|
+
* @description Attention-grabbing alert component with semantic variants
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Alert variant constants - THEME_VARIANT + Alert-specific semantic names
|
|
13
|
+
*/
|
|
14
|
+
export declare const ALERT_VARIANT: {
|
|
15
|
+
readonly DEFAULT: "muted";
|
|
16
|
+
readonly ERROR: "error";
|
|
17
|
+
readonly WARNING: "warning";
|
|
18
|
+
readonly SUCCESS: "success";
|
|
19
|
+
readonly INFO: "info";
|
|
20
|
+
};
|
|
21
|
+
export type AlertVariant = (typeof ALERT_VARIANT)[keyof typeof ALERT_VARIANT];
|
|
22
|
+
/**
|
|
23
|
+
* Alert component props interface
|
|
24
|
+
*/
|
|
25
|
+
export interface AlertProps {
|
|
26
|
+
/**
|
|
27
|
+
* The visual style of the alert
|
|
28
|
+
* @default 'default'
|
|
29
|
+
*/
|
|
30
|
+
variant?: AlertVariant;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to hide the variant icon
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
hideIcon?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* The title of the alert
|
|
38
|
+
*/
|
|
39
|
+
title?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* The main content/description of the alert
|
|
42
|
+
*/
|
|
43
|
+
description?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Custom content (alternative to title/description)
|
|
46
|
+
*/
|
|
47
|
+
children?: ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Additional style
|
|
50
|
+
*/
|
|
51
|
+
style?: ViewStyle;
|
|
52
|
+
/**
|
|
53
|
+
* Test ID for testing
|
|
54
|
+
*/
|
|
55
|
+
testID?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Attention-grabbing alert component with semantic variants.
|
|
59
|
+
*
|
|
60
|
+
* @component
|
|
61
|
+
* @example
|
|
62
|
+
* ```tsx
|
|
63
|
+
* <Alert variant="error" title="Error" description="Something went wrong" />
|
|
64
|
+
* <Alert variant="success" title="Success" description="Operation completed" />
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare const Alert: ({ variant, hideIcon, title, description, children, style, testID, }: AlertProps) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
export default Alert;
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Alert/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAQpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2DD;;;;;;;;;GASG;AACH,QAAA,MAAM,KAAK,GAAI,qEAQZ,UAAU,4CA+BZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview AlertDialog component
|
|
3
|
+
* @description Accessible alert dialog component
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* AlertDialog component props interface
|
|
13
|
+
*/
|
|
14
|
+
export interface AlertDialogProps {
|
|
15
|
+
/**
|
|
16
|
+
* The element that triggers the dialog to open
|
|
17
|
+
*/
|
|
18
|
+
trigger?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* The title of the alert dialog
|
|
21
|
+
*/
|
|
22
|
+
title: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* The description content of the alert dialog
|
|
25
|
+
*/
|
|
26
|
+
description?: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Text for the cancel button
|
|
29
|
+
* @default 'Cancel'
|
|
30
|
+
*/
|
|
31
|
+
cancelLabel?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Text for the action/confirm button (alias for actionLabel)
|
|
34
|
+
* @default 'Confirm'
|
|
35
|
+
*/
|
|
36
|
+
confirmLabel?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Text for the action button
|
|
39
|
+
* @default 'Confirm'
|
|
40
|
+
*/
|
|
41
|
+
actionLabel?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Cancel button handler
|
|
44
|
+
*/
|
|
45
|
+
onCancel?: () => void;
|
|
46
|
+
/**
|
|
47
|
+
* Action button handler
|
|
48
|
+
*/
|
|
49
|
+
onAction?: () => void;
|
|
50
|
+
/**
|
|
51
|
+
* Controlled open state
|
|
52
|
+
*/
|
|
53
|
+
open?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Callback when open state changes
|
|
56
|
+
*/
|
|
57
|
+
onOpenChange?: (open: boolean) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Additional style
|
|
60
|
+
*/
|
|
61
|
+
style?: ViewStyle;
|
|
62
|
+
/**
|
|
63
|
+
* Test ID for testing
|
|
64
|
+
*/
|
|
65
|
+
testID?: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Accessible alert dialog component.
|
|
69
|
+
*
|
|
70
|
+
* @component
|
|
71
|
+
* @example
|
|
72
|
+
* ```tsx
|
|
73
|
+
* <AlertDialog
|
|
74
|
+
* trigger={<Button>Delete</Button>}
|
|
75
|
+
* title="Are you sure?"
|
|
76
|
+
* description="This action cannot be undone."
|
|
77
|
+
* onAction={handleDelete}
|
|
78
|
+
* />
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare const AlertDialog: ({ trigger, title, description, cancelLabel, confirmLabel, actionLabel, onCancel, onAction, open: controlledOpen, onOpenChange, style, testID, }: AlertDialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
export default AlertDialog;
|
|
83
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/AlertDialog/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmBD;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,WAAW,GAAI,iJAalB,gBAAgB,4CA0GlB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Avatar component
|
|
3
|
+
* @description Accessible avatar component with image and fallback support
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Avatar component props interface
|
|
13
|
+
*/
|
|
14
|
+
export interface AvatarProps {
|
|
15
|
+
/**
|
|
16
|
+
* The URL of the avatar image
|
|
17
|
+
*/
|
|
18
|
+
src?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The initials or text to display when image fails to load
|
|
21
|
+
*/
|
|
22
|
+
fallback: string;
|
|
23
|
+
/**
|
|
24
|
+
* Size of the avatar (in pixels)
|
|
25
|
+
* @default 40
|
|
26
|
+
*/
|
|
27
|
+
size?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Custom content overlay (e.g. status badge)
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Additional style
|
|
34
|
+
*/
|
|
35
|
+
style?: ViewStyle;
|
|
36
|
+
/**
|
|
37
|
+
* Test ID for testing
|
|
38
|
+
*/
|
|
39
|
+
testID?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Accessible avatar component with image and fallback support.
|
|
43
|
+
*
|
|
44
|
+
* @component
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <Avatar src="https://github.com/user.png" fallback="JD" />
|
|
48
|
+
* <Avatar fallback="AB" size={60} />
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
declare const Avatar: ({ src, fallback, size, children, style, testID }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export default Avatar;
|
|
53
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Avatar/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,QAAA,MAAM,MAAM,GAAI,kDAAuD,WAAW,4CAyDjF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Badge component
|
|
3
|
+
* @description Status indicator component with semantic variants
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Badge variant constants - THEME_VARIANT + Badge-specific variants
|
|
13
|
+
*/
|
|
14
|
+
export declare const BADGE_VARIANT: {
|
|
15
|
+
readonly OUTLINE: "outline";
|
|
16
|
+
readonly DEFAULT: "default";
|
|
17
|
+
readonly MUTED: "muted";
|
|
18
|
+
readonly PRIMARY: "primary";
|
|
19
|
+
readonly SECONDARY: "secondary";
|
|
20
|
+
readonly ACCENT: "accent";
|
|
21
|
+
readonly SUCCESS: "success";
|
|
22
|
+
readonly WARNING: "warning";
|
|
23
|
+
readonly DESTRUCTIVE: "destructive";
|
|
24
|
+
};
|
|
25
|
+
export type BadgeVariant = (typeof BADGE_VARIANT)[keyof typeof BADGE_VARIANT];
|
|
26
|
+
/**
|
|
27
|
+
* Badge component props interface
|
|
28
|
+
*/
|
|
29
|
+
export interface BadgeProps {
|
|
30
|
+
/**
|
|
31
|
+
* Badge content
|
|
32
|
+
*/
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Variant style
|
|
36
|
+
* @default 'default'
|
|
37
|
+
*/
|
|
38
|
+
variant?: BadgeVariant;
|
|
39
|
+
/**
|
|
40
|
+
* Additional style
|
|
41
|
+
*/
|
|
42
|
+
style?: ViewStyle;
|
|
43
|
+
/**
|
|
44
|
+
* Test ID for testing
|
|
45
|
+
*/
|
|
46
|
+
testID?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Status indicator component with semantic variants.
|
|
50
|
+
*
|
|
51
|
+
* @component
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* <Badge variant="primary">New</Badge>
|
|
55
|
+
* <Badge variant="success">Active</Badge>
|
|
56
|
+
* <Badge variant="outline">Draft</Badge>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare const Badge: ({ children, variant, style, testID, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
export default Badge;
|
|
61
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Badge/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;CAGhB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsCD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,GAAI,uCAKZ,UAAU,4CAiBZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Blockquote component
|
|
3
|
+
* @description Semantic blockquote component for quotes and testimonials
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Blockquote variant constants
|
|
13
|
+
*/
|
|
14
|
+
export declare const BLOCKQUOTE_VARIANT: {
|
|
15
|
+
readonly DEFAULT: "default";
|
|
16
|
+
readonly EDITORIAL: "editorial";
|
|
17
|
+
readonly TESTIMONIAL: "testimonial";
|
|
18
|
+
};
|
|
19
|
+
export type BlockquoteVariant = (typeof BLOCKQUOTE_VARIANT)[keyof typeof BLOCKQUOTE_VARIANT];
|
|
20
|
+
/**
|
|
21
|
+
* Blockquote component props interface
|
|
22
|
+
*/
|
|
23
|
+
export interface BlockquoteProps {
|
|
24
|
+
/**
|
|
25
|
+
* The quote text content
|
|
26
|
+
*/
|
|
27
|
+
children: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Author name
|
|
30
|
+
*/
|
|
31
|
+
author?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Source or context (e.g., book title, company)
|
|
34
|
+
*/
|
|
35
|
+
source?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Citation URL or reference for the quote
|
|
38
|
+
*/
|
|
39
|
+
cite?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Visual variant
|
|
42
|
+
* @default 'default'
|
|
43
|
+
*/
|
|
44
|
+
variant?: BlockquoteVariant;
|
|
45
|
+
/**
|
|
46
|
+
* Additional style
|
|
47
|
+
*/
|
|
48
|
+
style?: ViewStyle;
|
|
49
|
+
/**
|
|
50
|
+
* Test ID for testing
|
|
51
|
+
*/
|
|
52
|
+
testID?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Semantic blockquote component for quotes and testimonials.
|
|
56
|
+
*
|
|
57
|
+
* @component
|
|
58
|
+
* @example
|
|
59
|
+
* ```tsx
|
|
60
|
+
* <Blockquote variant="default">
|
|
61
|
+
* This is a quote
|
|
62
|
+
* </Blockquote>
|
|
63
|
+
* <Blockquote variant="testimonial" author="John Doe" source="Company Inc.">
|
|
64
|
+
* Great product!
|
|
65
|
+
* </Blockquote>
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
declare const Blockquote: ({ children, author, source, cite, variant, style, testID, }: BlockquoteProps) => import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export default Blockquote;
|
|
70
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Blockquote/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAOpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,UAAU,GAAI,6DAQjB,eAAe,4CAwEjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Button component
|
|
3
|
+
* @description Accessible, type-safe button component with behavioral variants
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
import type { ReactNode } from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Button variant constants - THEME_VARIANT + Button-specific variants
|
|
13
|
+
*/
|
|
14
|
+
export declare const BUTTON_VARIANT: {
|
|
15
|
+
readonly GHOST: "ghost";
|
|
16
|
+
readonly OUTLINE: "outline";
|
|
17
|
+
readonly LINK: "link";
|
|
18
|
+
readonly DEFAULT: "default";
|
|
19
|
+
readonly MUTED: "muted";
|
|
20
|
+
readonly PRIMARY: "primary";
|
|
21
|
+
readonly SECONDARY: "secondary";
|
|
22
|
+
readonly ACCENT: "accent";
|
|
23
|
+
readonly SUCCESS: "success";
|
|
24
|
+
readonly WARNING: "warning";
|
|
25
|
+
readonly DESTRUCTIVE: "destructive";
|
|
26
|
+
};
|
|
27
|
+
export type ButtonVariant = (typeof BUTTON_VARIANT)[keyof typeof BUTTON_VARIANT];
|
|
28
|
+
/**
|
|
29
|
+
* Button component props interface
|
|
30
|
+
*/
|
|
31
|
+
export interface ButtonProps {
|
|
32
|
+
/**
|
|
33
|
+
* Button content
|
|
34
|
+
*/
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
/**
|
|
37
|
+
* Variant style
|
|
38
|
+
* @default 'default'
|
|
39
|
+
*/
|
|
40
|
+
variant?: ButtonVariant;
|
|
41
|
+
/**
|
|
42
|
+
* Icon element rendered before children
|
|
43
|
+
*/
|
|
44
|
+
icon?: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Place icon after children instead of before
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
iconEnd?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Whether button is disabled
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Whether button is loading
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
loading?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Text to display while loading (replaces children)
|
|
62
|
+
*/
|
|
63
|
+
loadingText?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Upload/operation progress (0-100)
|
|
66
|
+
*/
|
|
67
|
+
progress?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Whether button takes full width
|
|
70
|
+
* @default false
|
|
71
|
+
*/
|
|
72
|
+
fullWidth?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Press handler
|
|
75
|
+
*/
|
|
76
|
+
onPress?: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Additional container style
|
|
79
|
+
*/
|
|
80
|
+
style?: ViewStyle;
|
|
81
|
+
/**
|
|
82
|
+
* Test ID for testing
|
|
83
|
+
*/
|
|
84
|
+
testID?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Form name attribute (for API parity with web)
|
|
87
|
+
*/
|
|
88
|
+
name?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Button type (for API parity with web)
|
|
91
|
+
*/
|
|
92
|
+
type?: 'button' | 'submit' | 'reset';
|
|
93
|
+
/**
|
|
94
|
+
* Form value attribute (for API parity with web)
|
|
95
|
+
*/
|
|
96
|
+
value?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Accessible button component with behavioral variants.
|
|
100
|
+
*
|
|
101
|
+
* @component
|
|
102
|
+
* @example
|
|
103
|
+
* ```tsx
|
|
104
|
+
* <Button variant="primary" onPress={() => console.log('Pressed')}>
|
|
105
|
+
* Click me
|
|
106
|
+
* </Button>
|
|
107
|
+
* <Button variant="outline" disabled>
|
|
108
|
+
* Disabled
|
|
109
|
+
* </Button>
|
|
110
|
+
* <Button variant="primary" loading>
|
|
111
|
+
* Loading...
|
|
112
|
+
* </Button>
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
declare const Button: ({ children, variant, icon, iconEnd, disabled, loading, loadingText, progress, fullWidth, onPress, style, testID, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
export default Button;
|
|
117
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Button/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,EAKL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAQtB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,aAAa,GACvB,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,MAAM,GAAI,oHAab,WAAW,4CA2Fb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Calendar component
|
|
3
|
+
* @description Calendar date picker component
|
|
4
|
+
*
|
|
5
|
+
* @version 0.0.1
|
|
6
|
+
* @since 0.0.1
|
|
7
|
+
* @author AMBROISE PARK Consulting
|
|
8
|
+
*/
|
|
9
|
+
import { type ViewStyle } from 'react-native';
|
|
10
|
+
/**
|
|
11
|
+
* Calendar component props interface
|
|
12
|
+
*/
|
|
13
|
+
export interface CalendarProps {
|
|
14
|
+
/**
|
|
15
|
+
* Selected date
|
|
16
|
+
*/
|
|
17
|
+
value?: Date;
|
|
18
|
+
/**
|
|
19
|
+
* Change handler
|
|
20
|
+
*/
|
|
21
|
+
onSelect?: (date: Date) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Minimum date
|
|
24
|
+
*/
|
|
25
|
+
minDate?: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum date
|
|
28
|
+
*/
|
|
29
|
+
maxDate?: Date;
|
|
30
|
+
/**
|
|
31
|
+
* Mode
|
|
32
|
+
* @default 'date'
|
|
33
|
+
*/
|
|
34
|
+
mode?: 'date' | 'time' | 'datetime';
|
|
35
|
+
/**
|
|
36
|
+
* Additional style
|
|
37
|
+
*/
|
|
38
|
+
style?: ViewStyle;
|
|
39
|
+
/**
|
|
40
|
+
* Test ID for testing
|
|
41
|
+
*/
|
|
42
|
+
testID?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Calendar date picker component.
|
|
46
|
+
*
|
|
47
|
+
* @component
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* <Calendar value={date} onSelect={setDate} />
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
declare const Calendar: ({ value, onSelect, minDate, maxDate, mode, style, testID, }: CalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export default Calendar;
|
|
55
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Calendar/index.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAGH,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAQtB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAChC;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,QAAQ,GAAI,6DAQf,aAAa,4CAgCf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|