@orion-ds/react 1.0.0 → 1.0.2
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/components/Accordion/Accordion.d.ts +18 -0
- package/dist/components/Accordion/Accordion.d.ts.map +1 -0
- package/dist/components/Accordion/Accordion.types.d.ts +92 -0
- package/dist/components/Accordion/Accordion.types.d.ts.map +1 -0
- package/dist/components/Accordion/index.d.ts +6 -0
- package/dist/components/Accordion/index.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +1 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +5 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.types.d.ts +43 -1
- package/dist/components/Card/Card.types.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Chip/Chip.d.ts +15 -0
- package/dist/components/Chip/Chip.d.ts.map +1 -0
- package/dist/components/Chip/Chip.types.d.ts +68 -0
- package/dist/components/Chip/Chip.types.d.ts.map +1 -0
- package/dist/components/Chip/index.d.ts +6 -0
- package/dist/components/Chip/index.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +21 -0
- package/dist/components/Combobox/Combobox.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.types.d.ts +153 -0
- package/dist/components/Combobox/Combobox.types.d.ts.map +1 -0
- package/dist/components/Combobox/index.d.ts +6 -0
- package/dist/components/Combobox/index.d.ts.map +1 -0
- package/dist/components/Divider/Divider.d.ts +15 -0
- package/dist/components/Divider/Divider.d.ts.map +1 -0
- package/dist/components/Divider/Divider.types.d.ts +46 -0
- package/dist/components/Divider/Divider.types.d.ts.map +1 -0
- package/dist/components/Divider/index.d.ts +6 -0
- package/dist/components/Divider/index.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.d.ts +23 -0
- package/dist/components/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/Drawer/Drawer.types.d.ts +83 -0
- package/dist/components/Drawer/Drawer.types.d.ts.map +1 -0
- package/dist/components/Drawer/index.d.ts +6 -0
- package/dist/components/Drawer/index.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.d.ts +19 -0
- package/dist/components/Dropdown/Dropdown.d.ts.map +1 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts +119 -0
- package/dist/components/Dropdown/Dropdown.types.d.ts.map +1 -0
- package/dist/components/Dropdown/index.d.ts +6 -0
- package/dist/components/Dropdown/index.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +18 -0
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts +51 -0
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +1 -0
- package/dist/components/EmptyState/index.d.ts +6 -0
- package/dist/components/EmptyState/index.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +37 -0
- package/dist/components/Icon/Icon.d.ts.map +1 -0
- package/dist/components/Icon/Icon.types.d.ts +102 -0
- package/dist/components/Icon/Icon.types.d.ts.map +1 -0
- package/dist/components/Icon/index.d.ts +6 -0
- package/dist/components/Icon/index.d.ts.map +1 -0
- package/dist/components/IconGallery/IconGallery.d.ts +15 -0
- package/dist/components/IconGallery/IconGallery.d.ts.map +1 -0
- package/dist/components/IconGallery/IconGallery.types.d.ts +39 -0
- package/dist/components/IconGallery/IconGallery.types.d.ts.map +1 -0
- package/dist/components/IconGallery/index.d.ts +6 -0
- package/dist/components/IconGallery/index.d.ts.map +1 -0
- package/dist/components/Link/Link.d.ts +15 -0
- package/dist/components/Link/Link.d.ts.map +1 -0
- package/dist/components/Link/Link.types.d.ts +59 -0
- package/dist/components/Link/Link.types.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +6 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/List/List.d.ts +19 -0
- package/dist/components/List/List.d.ts.map +1 -0
- package/dist/components/List/List.types.d.ts +117 -0
- package/dist/components/List/List.types.d.ts.map +1 -0
- package/dist/components/List/index.d.ts +6 -0
- package/dist/components/List/index.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +17 -0
- package/dist/components/Pagination/Pagination.d.ts.map +1 -0
- package/dist/components/Pagination/Pagination.types.d.ts +62 -0
- package/dist/components/Pagination/Pagination.types.d.ts.map +1 -0
- package/dist/components/Pagination/index.d.ts +6 -0
- package/dist/components/Pagination/index.d.ts.map +1 -0
- package/dist/components/Popover/Popover.d.ts +17 -0
- package/dist/components/Popover/Popover.d.ts.map +1 -0
- package/dist/components/Popover/Popover.types.d.ts +100 -0
- package/dist/components/Popover/Popover.types.d.ts.map +1 -0
- package/dist/components/Popover/index.d.ts +6 -0
- package/dist/components/Popover/index.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +18 -0
- package/dist/components/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/SearchInput/SearchInput.types.d.ts +73 -0
- package/dist/components/SearchInput/SearchInput.types.d.ts.map +1 -0
- package/dist/components/SearchInput/index.d.ts +6 -0
- package/dist/components/SearchInput/index.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +15 -0
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +56 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -0
- package/dist/components/Skeleton/index.d.ts +6 -0
- package/dist/components/Skeleton/index.d.ts.map +1 -0
- package/dist/components/Slider/Slider.d.ts +18 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/Slider.types.d.ts +98 -0
- package/dist/components/Slider/Slider.types.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +6 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.d.ts +20 -0
- package/dist/components/Stepper/Stepper.d.ts.map +1 -0
- package/dist/components/Stepper/Stepper.types.d.ts +135 -0
- package/dist/components/Stepper/Stepper.types.d.ts.map +1 -0
- package/dist/components/Stepper/index.d.ts +6 -0
- package/dist/components/Stepper/index.d.ts.map +1 -0
- package/dist/components/Table/Table.types.d.ts +2 -2
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts +33 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/Toast.types.d.ts +126 -0
- package/dist/components/Toast/Toast.types.d.ts.map +1 -0
- package/dist/components/Toast/index.d.ts +6 -0
- package/dist/components/Toast/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +48 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +14 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useClickOutside.d.ts +31 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useCopyToClipboard.d.ts +72 -0
- package/dist/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/hooks/useDebounce.d.ts +58 -0
- package/dist/hooks/useDebounce.d.ts.map +1 -0
- package/dist/hooks/useDisclosure.d.ts +74 -0
- package/dist/hooks/useDisclosure.d.ts.map +1 -0
- package/dist/hooks/useKeyboard.d.ts +101 -0
- package/dist/hooks/useKeyboard.d.ts.map +1 -0
- package/dist/hooks/useLocalStorage.d.ts +48 -0
- package/dist/hooks/useLocalStorage.d.ts.map +1 -0
- package/dist/hooks/useMediaQuery.d.ts +43 -0
- package/dist/hooks/useMediaQuery.d.ts.map +1 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +54 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +16458 -12654
- package/dist/index.mjs.map +1 -1
- package/dist/react.css +1 -1
- package/dist/sections/AppDownload/AppDownload.d.ts +12 -0
- package/dist/sections/AppDownload/AppDownload.d.ts.map +1 -0
- package/dist/sections/AppDownload/AppDownload.types.d.ts +118 -0
- package/dist/sections/AppDownload/AppDownload.types.d.ts.map +1 -0
- package/dist/sections/AppDownload/index.d.ts +3 -0
- package/dist/sections/AppDownload/index.d.ts.map +1 -0
- package/dist/sections/Banner/Banner.d.ts +12 -0
- package/dist/sections/Banner/Banner.d.ts.map +1 -0
- package/dist/sections/Banner/Banner.types.d.ts +105 -0
- package/dist/sections/Banner/Banner.types.d.ts.map +1 -0
- package/dist/sections/Banner/index.d.ts +3 -0
- package/dist/sections/Banner/index.d.ts.map +1 -0
- package/dist/sections/Blog/Blog.d.ts +12 -0
- package/dist/sections/Blog/Blog.d.ts.map +1 -0
- package/dist/sections/Blog/Blog.types.d.ts +143 -0
- package/dist/sections/Blog/Blog.types.d.ts.map +1 -0
- package/dist/sections/Blog/index.d.ts +3 -0
- package/dist/sections/Blog/index.d.ts.map +1 -0
- package/dist/sections/CTA/CTA.d.ts +24 -0
- package/dist/sections/CTA/CTA.d.ts.map +1 -0
- package/dist/sections/CTA/CTA.types.d.ts +74 -0
- package/dist/sections/CTA/CTA.types.d.ts.map +1 -0
- package/dist/sections/CTA/index.d.ts +6 -0
- package/dist/sections/CTA/index.d.ts.map +1 -0
- package/dist/sections/Carousel/Carousel.d.ts +36 -0
- package/dist/sections/Carousel/Carousel.d.ts.map +1 -0
- package/dist/sections/Carousel/Carousel.types.d.ts +160 -0
- package/dist/sections/Carousel/Carousel.types.d.ts.map +1 -0
- package/dist/sections/Carousel/CarouselCard.d.ts +12 -0
- package/dist/sections/Carousel/CarouselCard.d.ts.map +1 -0
- package/dist/sections/Carousel/index.d.ts +7 -0
- package/dist/sections/Carousel/index.d.ts.map +1 -0
- package/dist/sections/Comparison/Comparison.d.ts +12 -0
- package/dist/sections/Comparison/Comparison.d.ts.map +1 -0
- package/dist/sections/Comparison/Comparison.types.d.ts +124 -0
- package/dist/sections/Comparison/Comparison.types.d.ts.map +1 -0
- package/dist/sections/Comparison/index.d.ts +3 -0
- package/dist/sections/Comparison/index.d.ts.map +1 -0
- package/dist/sections/Contact/Contact.d.ts +29 -0
- package/dist/sections/Contact/Contact.d.ts.map +1 -0
- package/dist/sections/Contact/Contact.types.d.ts +137 -0
- package/dist/sections/Contact/Contact.types.d.ts.map +1 -0
- package/dist/sections/Contact/index.d.ts +6 -0
- package/dist/sections/Contact/index.d.ts.map +1 -0
- package/dist/sections/Container/Container.d.ts +17 -0
- package/dist/sections/Container/Container.d.ts.map +1 -0
- package/dist/sections/Container/Container.types.d.ts +47 -0
- package/dist/sections/Container/Container.types.d.ts.map +1 -0
- package/dist/sections/Container/index.d.ts +6 -0
- package/dist/sections/Container/index.d.ts.map +1 -0
- package/dist/sections/FAQ/FAQ.d.ts +29 -0
- package/dist/sections/FAQ/FAQ.d.ts.map +1 -0
- package/dist/sections/FAQ/FAQ.types.d.ts +121 -0
- package/dist/sections/FAQ/FAQ.types.d.ts.map +1 -0
- package/dist/sections/FAQ/FAQItemCard.d.ts +12 -0
- package/dist/sections/FAQ/FAQItemCard.d.ts.map +1 -0
- package/dist/sections/FAQ/index.d.ts +7 -0
- package/dist/sections/FAQ/index.d.ts.map +1 -0
- package/dist/sections/Features/FeatureCard.d.ts +11 -0
- package/dist/sections/Features/FeatureCard.d.ts.map +1 -0
- package/dist/sections/Features/Features.d.ts +24 -0
- package/dist/sections/Features/Features.d.ts.map +1 -0
- package/dist/sections/Features/Features.types.d.ts +104 -0
- package/dist/sections/Features/Features.types.d.ts.map +1 -0
- package/dist/sections/Features/index.d.ts +7 -0
- package/dist/sections/Features/index.d.ts.map +1 -0
- package/dist/sections/Footer/Footer.d.ts +24 -0
- package/dist/sections/Footer/Footer.d.ts.map +1 -0
- package/dist/sections/Footer/Footer.types.d.ts +133 -0
- package/dist/sections/Footer/Footer.types.d.ts.map +1 -0
- package/dist/sections/Footer/index.d.ts +6 -0
- package/dist/sections/Footer/index.d.ts.map +1 -0
- package/dist/sections/Gallery/Gallery.d.ts +12 -0
- package/dist/sections/Gallery/Gallery.d.ts.map +1 -0
- package/dist/sections/Gallery/Gallery.types.d.ts +118 -0
- package/dist/sections/Gallery/Gallery.types.d.ts.map +1 -0
- package/dist/sections/Gallery/index.d.ts +3 -0
- package/dist/sections/Gallery/index.d.ts.map +1 -0
- package/dist/sections/Hero/Hero.d.ts +22 -0
- package/dist/sections/Hero/Hero.d.ts.map +1 -0
- package/dist/sections/Hero/Hero.types.d.ts +83 -0
- package/dist/sections/Hero/Hero.types.d.ts.map +1 -0
- package/dist/sections/Hero/index.d.ts +6 -0
- package/dist/sections/Hero/index.d.ts.map +1 -0
- package/dist/sections/LogoCloud/LogoCloud.d.ts +26 -0
- package/dist/sections/LogoCloud/LogoCloud.d.ts.map +1 -0
- package/dist/sections/LogoCloud/LogoCloud.types.d.ts +105 -0
- package/dist/sections/LogoCloud/LogoCloud.types.d.ts.map +1 -0
- package/dist/sections/LogoCloud/index.d.ts +6 -0
- package/dist/sections/LogoCloud/index.d.ts.map +1 -0
- package/dist/sections/Newsletter/Newsletter.d.ts +22 -0
- package/dist/sections/Newsletter/Newsletter.d.ts.map +1 -0
- package/dist/sections/Newsletter/Newsletter.types.d.ts +101 -0
- package/dist/sections/Newsletter/Newsletter.types.d.ts.map +1 -0
- package/dist/sections/Newsletter/index.d.ts +6 -0
- package/dist/sections/Newsletter/index.d.ts.map +1 -0
- package/dist/sections/Pricing/Pricing.d.ts +35 -0
- package/dist/sections/Pricing/Pricing.d.ts.map +1 -0
- package/dist/sections/Pricing/Pricing.types.d.ts +133 -0
- package/dist/sections/Pricing/Pricing.types.d.ts.map +1 -0
- package/dist/sections/Pricing/PricingCard.d.ts +11 -0
- package/dist/sections/Pricing/PricingCard.d.ts.map +1 -0
- package/dist/sections/Pricing/index.d.ts +7 -0
- package/dist/sections/Pricing/index.d.ts.map +1 -0
- package/dist/sections/Section/Section.d.ts +19 -0
- package/dist/sections/Section/Section.d.ts.map +1 -0
- package/dist/sections/Section/Section.types.d.ts +68 -0
- package/dist/sections/Section/Section.types.d.ts.map +1 -0
- package/dist/sections/Section/index.d.ts +6 -0
- package/dist/sections/Section/index.d.ts.map +1 -0
- package/dist/sections/SocialProof/SocialProof.d.ts +12 -0
- package/dist/sections/SocialProof/SocialProof.d.ts.map +1 -0
- package/dist/sections/SocialProof/SocialProof.types.d.ts +142 -0
- package/dist/sections/SocialProof/SocialProof.types.d.ts.map +1 -0
- package/dist/sections/SocialProof/index.d.ts +3 -0
- package/dist/sections/SocialProof/index.d.ts.map +1 -0
- package/dist/sections/Stats/StatItemCard.d.ts +11 -0
- package/dist/sections/Stats/StatItemCard.d.ts.map +1 -0
- package/dist/sections/Stats/Stats.d.ts +25 -0
- package/dist/sections/Stats/Stats.d.ts.map +1 -0
- package/dist/sections/Stats/Stats.types.d.ts +125 -0
- package/dist/sections/Stats/Stats.types.d.ts.map +1 -0
- package/dist/sections/Stats/index.d.ts +7 -0
- package/dist/sections/Stats/index.d.ts.map +1 -0
- package/dist/sections/Team/Team.d.ts +31 -0
- package/dist/sections/Team/Team.d.ts.map +1 -0
- package/dist/sections/Team/Team.types.d.ts +135 -0
- package/dist/sections/Team/Team.types.d.ts.map +1 -0
- package/dist/sections/Team/TeamMemberCard.d.ts +11 -0
- package/dist/sections/Team/TeamMemberCard.d.ts.map +1 -0
- package/dist/sections/Team/index.d.ts +7 -0
- package/dist/sections/Team/index.d.ts.map +1 -0
- package/dist/sections/Testimonials/TestimonialCard.d.ts +11 -0
- package/dist/sections/Testimonials/TestimonialCard.d.ts.map +1 -0
- package/dist/sections/Testimonials/Testimonials.d.ts +31 -0
- package/dist/sections/Testimonials/Testimonials.d.ts.map +1 -0
- package/dist/sections/Testimonials/Testimonials.types.d.ts +130 -0
- package/dist/sections/Testimonials/Testimonials.types.d.ts.map +1 -0
- package/dist/sections/Testimonials/index.d.ts +7 -0
- package/dist/sections/Testimonials/index.d.ts.map +1 -0
- package/dist/sections/Timeline/Timeline.d.ts +12 -0
- package/dist/sections/Timeline/Timeline.d.ts.map +1 -0
- package/dist/sections/Timeline/Timeline.types.d.ts +102 -0
- package/dist/sections/Timeline/Timeline.types.d.ts.map +1 -0
- package/dist/sections/Timeline/index.d.ts +3 -0
- package/dist/sections/Timeline/index.d.ts.map +1 -0
- package/dist/sections/index.d.ts +80 -0
- package/dist/sections/index.d.ts.map +1 -0
- package/dist/utils/icons.d.ts +47 -46
- package/dist/utils/icons.d.ts.map +1 -1
- package/package.json +5 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Link/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List Component
|
|
3
|
+
*
|
|
4
|
+
* A flexible list component for displaying items with various layouts.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <List
|
|
9
|
+
* items={[
|
|
10
|
+
* { id: '1', primary: 'Item 1', secondary: 'Description' },
|
|
11
|
+
* { id: '2', primary: 'Item 2', leading: <UserIcon /> },
|
|
12
|
+
* ]}
|
|
13
|
+
* interactive
|
|
14
|
+
* />
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import type { ListProps } from './List.types';
|
|
18
|
+
export declare const List: import("react").ForwardRefExoticComponent<ListProps & import("react").RefAttributes<HTMLUListElement>>;
|
|
19
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EAAE,SAAS,EAA2B,MAAM,cAAc,CAAC;AAgFvE,eAAO,MAAM,IAAI,wGAmEhB,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion List component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* List size variants
|
|
9
|
+
*/
|
|
10
|
+
export type ListSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* List variant
|
|
13
|
+
*/
|
|
14
|
+
export type ListVariant = 'default' | 'bordered' | 'divided';
|
|
15
|
+
/**
|
|
16
|
+
* List item
|
|
17
|
+
*/
|
|
18
|
+
export interface ListItem {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* Primary content (text or element)
|
|
25
|
+
*/
|
|
26
|
+
primary: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Secondary content (smaller text below primary)
|
|
29
|
+
*/
|
|
30
|
+
secondary?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Icon or avatar on the left
|
|
33
|
+
*/
|
|
34
|
+
leading?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Content on the right (icon, badge, etc.)
|
|
37
|
+
*/
|
|
38
|
+
trailing?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Whether this item is disabled
|
|
41
|
+
*/
|
|
42
|
+
disabled?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether this item is selected (for selectable lists)
|
|
45
|
+
*/
|
|
46
|
+
selected?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Click handler for the item
|
|
49
|
+
*/
|
|
50
|
+
onClick?: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Additional class name for the item
|
|
53
|
+
*/
|
|
54
|
+
className?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* List component props
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* <List
|
|
62
|
+
* items={[
|
|
63
|
+
* { id: '1', primary: 'Item 1', secondary: 'Description' },
|
|
64
|
+
* { id: '2', primary: 'Item 2', leading: <UserIcon /> },
|
|
65
|
+
* ]}
|
|
66
|
+
* />
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
export interface ListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'onSelect'> {
|
|
70
|
+
/**
|
|
71
|
+
* List items
|
|
72
|
+
*/
|
|
73
|
+
items: ListItem[];
|
|
74
|
+
/**
|
|
75
|
+
* Size variant
|
|
76
|
+
* @default 'md'
|
|
77
|
+
*/
|
|
78
|
+
size?: ListSize;
|
|
79
|
+
/**
|
|
80
|
+
* Visual variant
|
|
81
|
+
* @default 'default'
|
|
82
|
+
*/
|
|
83
|
+
variant?: ListVariant;
|
|
84
|
+
/**
|
|
85
|
+
* Whether the list items are interactive (hoverable/clickable)
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
interactive?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Whether items can be selected
|
|
91
|
+
* @default false
|
|
92
|
+
*/
|
|
93
|
+
selectable?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Callback when an item is selected
|
|
96
|
+
*/
|
|
97
|
+
onSelect?: (item: ListItem) => void;
|
|
98
|
+
/**
|
|
99
|
+
* Render custom list item content
|
|
100
|
+
*/
|
|
101
|
+
renderItem?: (item: ListItem, index: number) => ReactNode;
|
|
102
|
+
/**
|
|
103
|
+
* Custom empty state when no items
|
|
104
|
+
*/
|
|
105
|
+
emptyContent?: ReactNode;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* List Item component props (internal)
|
|
109
|
+
*/
|
|
110
|
+
export interface ListItemProps {
|
|
111
|
+
item: ListItem;
|
|
112
|
+
size: ListSize;
|
|
113
|
+
interactive: boolean;
|
|
114
|
+
selectable: boolean;
|
|
115
|
+
onClick?: () => void;
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=List.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.types.d.ts","sourceRoot":"","sources":["../../../src/components/List/List.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IACnF;;OAEG;IACH,KAAK,EAAE,QAAQ,EAAE,CAAC;IAElB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAE1D;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/List/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination Component
|
|
3
|
+
*
|
|
4
|
+
* Navigation control for paginated content.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Pagination
|
|
9
|
+
* currentPage={currentPage}
|
|
10
|
+
* totalPages={totalPages}
|
|
11
|
+
* onPageChange={setCurrentPage}
|
|
12
|
+
* />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
import type { PaginationProps } from './Pagination.types';
|
|
16
|
+
export declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<HTMLElement>>;
|
|
17
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AA0D1D,eAAO,MAAM,UAAU,yGAkJtB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Pagination component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Pagination sizes
|
|
9
|
+
*/
|
|
10
|
+
export type PaginationSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* Pagination component props
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Pagination
|
|
17
|
+
* currentPage={1}
|
|
18
|
+
* totalPages={10}
|
|
19
|
+
* onPageChange={(page) => setPage(page)}
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
|
|
24
|
+
/**
|
|
25
|
+
* Current active page (1-indexed)
|
|
26
|
+
*/
|
|
27
|
+
currentPage: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total number of pages
|
|
30
|
+
*/
|
|
31
|
+
totalPages: number;
|
|
32
|
+
/**
|
|
33
|
+
* Callback when page changes
|
|
34
|
+
*/
|
|
35
|
+
onPageChange: (page: number) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Number of sibling pages to show on each side of current page
|
|
38
|
+
* @default 1
|
|
39
|
+
*/
|
|
40
|
+
siblingCount?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Whether to show first/last page buttons
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
showFirstLast?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to show previous/next buttons
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
showPrevNext?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Size variant
|
|
53
|
+
* @default 'md'
|
|
54
|
+
*/
|
|
55
|
+
size?: PaginationSize;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the pagination is disabled
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=Pagination.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.types.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/Pagination.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACpF;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAErC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Pagination/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popover Component
|
|
3
|
+
*
|
|
4
|
+
* A floating panel anchored to a trigger element.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Popover
|
|
9
|
+
* trigger={<Button>Click me</Button>}
|
|
10
|
+
* content={<div>Popover content here</div>}
|
|
11
|
+
* placement="bottom-start"
|
|
12
|
+
* />
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
import type { PopoverProps } from './Popover.types';
|
|
16
|
+
export declare const Popover: import("react").ForwardRefExoticComponent<PopoverProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAaH,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iBAAiB,CAAC;AAsFtE,eAAO,MAAM,OAAO,yGA8NnB,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Popover Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Popover component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Popover placement options
|
|
9
|
+
*/
|
|
10
|
+
export type PopoverPlacement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
11
|
+
/**
|
|
12
|
+
* Popover trigger types
|
|
13
|
+
*/
|
|
14
|
+
export type PopoverTrigger = 'click' | 'hover' | 'focus' | 'manual';
|
|
15
|
+
/**
|
|
16
|
+
* Popover component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Popover
|
|
21
|
+
* trigger={<Button>Open</Button>}
|
|
22
|
+
* content={<div>Popover content</div>}
|
|
23
|
+
* />
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export interface PopoverProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'> {
|
|
27
|
+
/**
|
|
28
|
+
* The trigger element that opens the popover
|
|
29
|
+
*/
|
|
30
|
+
trigger: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The content to display in the popover
|
|
33
|
+
*/
|
|
34
|
+
content: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Placement of the popover relative to the trigger
|
|
37
|
+
* @default 'bottom'
|
|
38
|
+
*/
|
|
39
|
+
placement?: PopoverPlacement;
|
|
40
|
+
/**
|
|
41
|
+
* How to trigger the popover
|
|
42
|
+
* @default 'click'
|
|
43
|
+
*/
|
|
44
|
+
triggerType?: PopoverTrigger;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the popover is open (controlled mode)
|
|
47
|
+
*/
|
|
48
|
+
open?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Default open state (uncontrolled mode)
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
defaultOpen?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Callback when open state changes
|
|
56
|
+
*/
|
|
57
|
+
onOpenChange?: (open: boolean) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to show an arrow pointing to the trigger
|
|
60
|
+
* @default true
|
|
61
|
+
*/
|
|
62
|
+
showArrow?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Offset from the trigger in pixels
|
|
65
|
+
* @default 8
|
|
66
|
+
*/
|
|
67
|
+
offset?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Whether to close when clicking outside
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
closeOnClickOutside?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to close when pressing Escape
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
closeOnEscape?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Delay before showing (for hover trigger)
|
|
80
|
+
* @default 0
|
|
81
|
+
*/
|
|
82
|
+
openDelay?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Delay before hiding (for hover trigger)
|
|
85
|
+
* @default 150
|
|
86
|
+
*/
|
|
87
|
+
closeDelay?: number;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Internal hook return type
|
|
91
|
+
*/
|
|
92
|
+
export interface UsePopoverReturn {
|
|
93
|
+
isOpen: boolean;
|
|
94
|
+
setIsOpen: (open: boolean) => void;
|
|
95
|
+
triggerRef: RefObject<HTMLDivElement | null>;
|
|
96
|
+
popoverRef: RefObject<HTMLDivElement | null>;
|
|
97
|
+
triggerProps: Record<string, unknown>;
|
|
98
|
+
popoverProps: Record<string, unknown>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=Popover.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.types.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/Popover.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEpE;;;;;;;;;;GAUG;AACH,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACnF;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAEvC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,UAAU,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,cAAc,GACf,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchInput Component
|
|
3
|
+
*
|
|
4
|
+
* An input field optimized for search with icon and clear button.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <SearchInput
|
|
9
|
+
* placeholder="Search..."
|
|
10
|
+
* value={query}
|
|
11
|
+
* onChange={(e) => setQuery(e.target.value)}
|
|
12
|
+
* onClear={() => setQuery('')}
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import type { SearchInputProps } from './SearchInput.types';
|
|
17
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<SearchInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
18
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,eAAO,MAAM,WAAW,+GAgHvB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchInput Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion SearchInput component.
|
|
5
|
+
*/
|
|
6
|
+
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* SearchInput size variants
|
|
9
|
+
*/
|
|
10
|
+
export type SearchInputSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* SearchInput component props
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <SearchInput
|
|
17
|
+
* placeholder="Search..."
|
|
18
|
+
* value={query}
|
|
19
|
+
* onChange={(e) => setQuery(e.target.value)}
|
|
20
|
+
* onClear={() => setQuery('')}
|
|
21
|
+
* />
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export interface SearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
25
|
+
/**
|
|
26
|
+
* Size variant
|
|
27
|
+
* @default 'md'
|
|
28
|
+
*/
|
|
29
|
+
size?: SearchInputSize;
|
|
30
|
+
/**
|
|
31
|
+
* Callback when the clear button is clicked
|
|
32
|
+
*/
|
|
33
|
+
onClear?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Callback when search is triggered (Enter key or search button)
|
|
36
|
+
*/
|
|
37
|
+
onSearch?: (value: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Whether to show the clear button when there's a value
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
showClear?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to show a search button
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
showSearchButton?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Custom search icon
|
|
50
|
+
*/
|
|
51
|
+
searchIcon?: ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Label for the clear button (accessibility)
|
|
54
|
+
* @default 'Clear search'
|
|
55
|
+
*/
|
|
56
|
+
clearLabel?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Label for the search button (accessibility)
|
|
59
|
+
* @default 'Search'
|
|
60
|
+
*/
|
|
61
|
+
searchLabel?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Whether the input is in a loading state
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
loading?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Make the input take full width
|
|
69
|
+
* @default false
|
|
70
|
+
*/
|
|
71
|
+
fullWidth?: boolean;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=SearchInput.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/SearchInput.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpG;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;OAEG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchInput/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton Component
|
|
3
|
+
*
|
|
4
|
+
* A loading placeholder that mimics content structure.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Skeleton width={200} height={20} />
|
|
9
|
+
* <Skeleton variant="circular" width={40} height={40} />
|
|
10
|
+
* <Skeleton variant="text" lines={3} />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import type { SkeletonProps } from './Skeleton.types';
|
|
14
|
+
export declare const Skeleton: import("react").ForwardRefExoticComponent<SkeletonProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,0GA6DpB,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skeleton Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Skeleton component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Skeleton shape variants
|
|
9
|
+
*/
|
|
10
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'rounded';
|
|
11
|
+
/**
|
|
12
|
+
* Skeleton animation types
|
|
13
|
+
*/
|
|
14
|
+
export type SkeletonAnimation = 'pulse' | 'wave' | 'none';
|
|
15
|
+
/**
|
|
16
|
+
* Skeleton component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Skeleton width={200} height={20} />
|
|
21
|
+
* <Skeleton variant="circular" width={40} height={40} />
|
|
22
|
+
* <Skeleton variant="rectangular" width="100%" height={200} />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface SkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
/**
|
|
27
|
+
* Shape variant of the skeleton
|
|
28
|
+
* @default 'text'
|
|
29
|
+
*/
|
|
30
|
+
variant?: SkeletonVariant;
|
|
31
|
+
/**
|
|
32
|
+
* Animation type
|
|
33
|
+
* @default 'pulse'
|
|
34
|
+
*/
|
|
35
|
+
animation?: SkeletonAnimation;
|
|
36
|
+
/**
|
|
37
|
+
* Width of the skeleton
|
|
38
|
+
* Can be a number (pixels) or string (e.g., '100%', '10rem')
|
|
39
|
+
*/
|
|
40
|
+
width?: number | string;
|
|
41
|
+
/**
|
|
42
|
+
* Height of the skeleton
|
|
43
|
+
* Can be a number (pixels) or string (e.g., '100%', '2rem')
|
|
44
|
+
*/
|
|
45
|
+
height?: number | string;
|
|
46
|
+
/**
|
|
47
|
+
* Number of skeleton lines to render (for text variant)
|
|
48
|
+
* @default 1
|
|
49
|
+
*/
|
|
50
|
+
lines?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Border radius override
|
|
53
|
+
*/
|
|
54
|
+
borderRadius?: number | string;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=Skeleton.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.types.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D;;;;;;;;;GASG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE;;;OAGG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B;;;OAGG;IACH,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Skeleton/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Slider Component
|
|
3
|
+
*
|
|
4
|
+
* A range input for selecting numeric values.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Slider
|
|
9
|
+
* value={50}
|
|
10
|
+
* onChange={(value) => setValue(value)}
|
|
11
|
+
* min={0}
|
|
12
|
+
* max={100}
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import type { SliderProps } from './Slider.types';
|
|
17
|
+
export declare const Slider: import("react").ForwardRefExoticComponent<SliderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,MAAM,wGA6IlB,CAAC"}
|