@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,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion Component
|
|
3
|
+
*
|
|
4
|
+
* A collapsible content panel for displaying information in a compact way.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Accordion
|
|
9
|
+
* items={[
|
|
10
|
+
* { id: '1', title: 'What is Orion?', content: 'A design system...' },
|
|
11
|
+
* { id: '2', title: 'How do I install?', content: 'Run npm install...' },
|
|
12
|
+
* ]}
|
|
13
|
+
* />
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
import type { AccordionProps } from './Accordion.types';
|
|
17
|
+
export declare const Accordion: import("react").ForwardRefExoticComponent<AccordionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
18
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAsB,MAAM,mBAAmB,CAAC;AAuE5E,eAAO,MAAM,SAAS,2GAqErB,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Accordion component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Accordion visual variants
|
|
9
|
+
*/
|
|
10
|
+
export type AccordionVariant = 'default' | 'bordered' | 'separated';
|
|
11
|
+
/**
|
|
12
|
+
* Single accordion item data
|
|
13
|
+
*/
|
|
14
|
+
export interface AccordionItem {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier for the item
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Title/header of the accordion item
|
|
21
|
+
*/
|
|
22
|
+
title: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Content shown when expanded
|
|
25
|
+
*/
|
|
26
|
+
content: ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the item is disabled
|
|
29
|
+
*/
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Optional icon to display before the title
|
|
33
|
+
*/
|
|
34
|
+
icon?: ReactNode;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Accordion component props
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* <Accordion
|
|
42
|
+
* items={[
|
|
43
|
+
* { id: '1', title: 'Section 1', content: 'Content 1' },
|
|
44
|
+
* { id: '2', title: 'Section 2', content: 'Content 2' },
|
|
45
|
+
* ]}
|
|
46
|
+
* />
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
50
|
+
/**
|
|
51
|
+
* Array of accordion items
|
|
52
|
+
*/
|
|
53
|
+
items: AccordionItem[];
|
|
54
|
+
/**
|
|
55
|
+
* Visual variant of the accordion
|
|
56
|
+
* @default 'default'
|
|
57
|
+
*/
|
|
58
|
+
variant?: AccordionVariant;
|
|
59
|
+
/**
|
|
60
|
+
* Allow multiple items to be expanded at once
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
allowMultiple?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Default expanded item IDs (uncontrolled)
|
|
66
|
+
*/
|
|
67
|
+
defaultExpanded?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Controlled expanded item IDs
|
|
70
|
+
*/
|
|
71
|
+
expanded?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* Callback when expansion state changes
|
|
74
|
+
*/
|
|
75
|
+
onChange?: (expandedIds: string[]) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Whether to animate the expand/collapse
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
animated?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* AccordionItem component props (internal)
|
|
84
|
+
*/
|
|
85
|
+
export interface AccordionItemProps {
|
|
86
|
+
item: AccordionItem;
|
|
87
|
+
isExpanded: boolean;
|
|
88
|
+
onToggle: () => void;
|
|
89
|
+
variant: AccordionVariant;
|
|
90
|
+
animated: boolean;
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=Accordion.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.types.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC;AAEpE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACtF;;OAEG;IACH,KAAK,EAAE,aAAa,EAAE,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAE3B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAgB,MAAM,eAAe,CAAC;AAc9D,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA6DtC,CAAC"}
|
|
@@ -19,10 +19,14 @@
|
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import type { CardProps, CardHeaderProps, CardBodyProps, CardFooterProps } from './Card.types';
|
|
22
|
+
import type { CardProps, CardHeaderProps, CardBodyProps, CardFooterProps, ImageContentProps, ImageTitleProps, ImageDescriptionProps, ImageMetaProps } from './Card.types';
|
|
23
23
|
export declare const Card: React.FC<CardProps> & {
|
|
24
24
|
Header: React.FC<CardHeaderProps>;
|
|
25
25
|
Body: React.FC<CardBodyProps>;
|
|
26
26
|
Footer: React.FC<CardFooterProps>;
|
|
27
|
+
ImageContent: React.FC<ImageContentProps>;
|
|
28
|
+
ImageTitle: React.FC<ImageTitleProps>;
|
|
29
|
+
ImageDescription: React.FC<ImageDescriptionProps>;
|
|
30
|
+
ImageMeta: React.FC<ImageMetaProps>;
|
|
27
31
|
};
|
|
28
32
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,eAAe,EAEf,iBAAiB,EACjB,eAAe,EACf,qBAAqB,EACrB,cAAc,EACf,MAAM,cAAc,CAAC;AActB,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG;IACvC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC;IAC9B,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IAClC,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IACtC,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAAC,CAAC;IAClD,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC;CA8CrC,CAAC"}
|
|
@@ -7,7 +7,11 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
7
7
|
/**
|
|
8
8
|
* Card visual variants
|
|
9
9
|
*/
|
|
10
|
-
export type CardVariant = 'base' | 'glass' | 'elevated' | 'outlined';
|
|
10
|
+
export type CardVariant = 'base' | 'glass' | 'elevated' | 'outlined' | 'image';
|
|
11
|
+
/**
|
|
12
|
+
* Image card content position
|
|
13
|
+
*/
|
|
14
|
+
export type ImageCardPosition = 'top' | 'center' | 'bottom';
|
|
11
15
|
/**
|
|
12
16
|
* Card component props
|
|
13
17
|
*
|
|
@@ -31,6 +35,20 @@ export interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
31
35
|
* @default false
|
|
32
36
|
*/
|
|
33
37
|
interactive?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Background image URL (only for 'image' variant)
|
|
40
|
+
*/
|
|
41
|
+
imageUrl?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Content position for image variant
|
|
44
|
+
* @default 'bottom'
|
|
45
|
+
*/
|
|
46
|
+
imagePosition?: ImageCardPosition;
|
|
47
|
+
/**
|
|
48
|
+
* Aspect ratio for image card (e.g., '16/9', '4/3', '1/1')
|
|
49
|
+
* @default '16/9'
|
|
50
|
+
*/
|
|
51
|
+
aspectRatio?: string;
|
|
34
52
|
/**
|
|
35
53
|
* Card content
|
|
36
54
|
*/
|
|
@@ -63,4 +81,28 @@ export interface CardFooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
63
81
|
*/
|
|
64
82
|
children?: ReactNode;
|
|
65
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Image Card Content wrapper props
|
|
86
|
+
*/
|
|
87
|
+
export interface ImageContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
88
|
+
children?: ReactNode;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Image Card Title props
|
|
92
|
+
*/
|
|
93
|
+
export interface ImageTitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
94
|
+
children?: ReactNode;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Image Card Description props
|
|
98
|
+
*/
|
|
99
|
+
export interface ImageDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
100
|
+
children?: ReactNode;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Image Card Meta props
|
|
104
|
+
*/
|
|
105
|
+
export interface ImageMetaProps extends HTMLAttributes<HTMLSpanElement> {
|
|
106
|
+
children?: ReactNode;
|
|
107
|
+
}
|
|
66
108
|
//# sourceMappingURL=Card.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.types.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.types.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5D;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,kBAAkB,CAAC;IACzE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IACjF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAwC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,wFAyFpB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chip Component
|
|
3
|
+
*
|
|
4
|
+
* A compact element for displaying tags, filters, or selections.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Chip>Default</Chip>
|
|
9
|
+
* <Chip variant="success" icon={<Check size={14} />}>Completed</Chip>
|
|
10
|
+
* <Chip onRemove={() => removeTag(tag)}>{tag}</Chip>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import type { ChipProps } from './Chip.types';
|
|
14
|
+
export declare const Chip: import("react").ForwardRefExoticComponent<ChipProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
15
|
+
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI,sGA0GhB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chip Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Chip/Tag component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Chip visual variants
|
|
9
|
+
*/
|
|
10
|
+
export type ChipVariant = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
11
|
+
/**
|
|
12
|
+
* Chip sizes
|
|
13
|
+
*/
|
|
14
|
+
export type ChipSize = 'sm' | 'md' | 'lg';
|
|
15
|
+
/**
|
|
16
|
+
* Chip component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Chip>Default</Chip>
|
|
21
|
+
* <Chip variant="success">Completed</Chip>
|
|
22
|
+
* <Chip onRemove={() => handleRemove()}>Removable</Chip>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface ChipProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
26
|
+
/**
|
|
27
|
+
* Visual variant of the chip
|
|
28
|
+
* @default 'default'
|
|
29
|
+
*/
|
|
30
|
+
variant?: ChipVariant;
|
|
31
|
+
/**
|
|
32
|
+
* Size of the chip
|
|
33
|
+
* @default 'md'
|
|
34
|
+
*/
|
|
35
|
+
size?: ChipSize;
|
|
36
|
+
/**
|
|
37
|
+
* Icon to display before the label
|
|
38
|
+
*/
|
|
39
|
+
icon?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the chip is clickable
|
|
42
|
+
* @default false
|
|
43
|
+
*/
|
|
44
|
+
clickable?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Click handler (when clickable is true)
|
|
47
|
+
*/
|
|
48
|
+
onClick?: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback to remove the chip (shows X button)
|
|
51
|
+
*/
|
|
52
|
+
onRemove?: () => void;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the chip is disabled
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the chip is selected (for selectable chips)
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
selected?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Chip content
|
|
65
|
+
*/
|
|
66
|
+
children?: ReactNode;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=Chip.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chip.types.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3F;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C;;;;;;;;;GASG;AACH,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IAChF;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/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,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Combobox Component
|
|
3
|
+
*
|
|
4
|
+
* An autocomplete input with searchable dropdown options.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Combobox
|
|
9
|
+
* options={[
|
|
10
|
+
* { value: 'react', label: 'React' },
|
|
11
|
+
* { value: 'vue', label: 'Vue' },
|
|
12
|
+
* ]}
|
|
13
|
+
* value={selected}
|
|
14
|
+
* onChange={setSelected}
|
|
15
|
+
* placeholder="Select a framework..."
|
|
16
|
+
* />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
import type { ComboboxProps } from './Combobox.types';
|
|
20
|
+
export declare const Combobox: import("react").ForwardRefExoticComponent<ComboboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
21
|
+
//# sourceMappingURL=Combobox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAaH,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAetE,eAAO,MAAM,QAAQ,4GAwZpB,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Combobox Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Combobox/Autocomplete component.
|
|
5
|
+
*/
|
|
6
|
+
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Combobox size variants
|
|
9
|
+
*/
|
|
10
|
+
export type ComboboxSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* Combobox option item
|
|
13
|
+
*/
|
|
14
|
+
export interface ComboboxOption {
|
|
15
|
+
/**
|
|
16
|
+
* Unique value for the option
|
|
17
|
+
*/
|
|
18
|
+
value: string;
|
|
19
|
+
/**
|
|
20
|
+
* Display label for the option
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional description
|
|
25
|
+
*/
|
|
26
|
+
description?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional icon/avatar
|
|
29
|
+
*/
|
|
30
|
+
icon?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Whether this option is disabled
|
|
33
|
+
*/
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Group this option belongs to
|
|
37
|
+
*/
|
|
38
|
+
group?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Combobox option group
|
|
42
|
+
*/
|
|
43
|
+
export interface ComboboxGroup {
|
|
44
|
+
/**
|
|
45
|
+
* Group label
|
|
46
|
+
*/
|
|
47
|
+
label: string;
|
|
48
|
+
/**
|
|
49
|
+
* Options in this group
|
|
50
|
+
*/
|
|
51
|
+
options: ComboboxOption[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Combobox component props
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* <Combobox
|
|
59
|
+
* options={[
|
|
60
|
+
* { value: 'react', label: 'React' },
|
|
61
|
+
* { value: 'vue', label: 'Vue' },
|
|
62
|
+
* { value: 'angular', label: 'Angular' },
|
|
63
|
+
* ]}
|
|
64
|
+
* value={selected}
|
|
65
|
+
* onChange={setSelected}
|
|
66
|
+
* placeholder="Select a framework..."
|
|
67
|
+
* />
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export interface ComboboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'onChange'> {
|
|
71
|
+
/**
|
|
72
|
+
* Available options
|
|
73
|
+
*/
|
|
74
|
+
options: ComboboxOption[];
|
|
75
|
+
/**
|
|
76
|
+
* Currently selected value
|
|
77
|
+
*/
|
|
78
|
+
value?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Callback when selection changes
|
|
81
|
+
*/
|
|
82
|
+
onChange?: (value: string | null, option: ComboboxOption | null) => void;
|
|
83
|
+
/**
|
|
84
|
+
* Callback when input value changes (for custom filtering)
|
|
85
|
+
*/
|
|
86
|
+
onInputChange?: (value: string) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Size variant
|
|
89
|
+
* @default 'md'
|
|
90
|
+
*/
|
|
91
|
+
size?: ComboboxSize;
|
|
92
|
+
/**
|
|
93
|
+
* Field label
|
|
94
|
+
*/
|
|
95
|
+
label?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Helper text below the input
|
|
98
|
+
*/
|
|
99
|
+
helperText?: string;
|
|
100
|
+
/**
|
|
101
|
+
* Error message (also sets error state)
|
|
102
|
+
*/
|
|
103
|
+
error?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the combobox is loading
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
loading?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Whether to allow clearing the selection
|
|
111
|
+
* @default true
|
|
112
|
+
*/
|
|
113
|
+
clearable?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Whether to allow free text input (not just selection)
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
allowFreeInput?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Custom filter function
|
|
121
|
+
*/
|
|
122
|
+
filterFn?: (option: ComboboxOption, inputValue: string) => boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Whether to show the dropdown when input is focused
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
openOnFocus?: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Minimum characters before showing options
|
|
130
|
+
* @default 0
|
|
131
|
+
*/
|
|
132
|
+
minChars?: number;
|
|
133
|
+
/**
|
|
134
|
+
* Text to show when no options match
|
|
135
|
+
* @default 'No results found'
|
|
136
|
+
*/
|
|
137
|
+
emptyText?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Custom render function for options
|
|
140
|
+
*/
|
|
141
|
+
renderOption?: (option: ComboboxOption, isSelected: boolean, isHighlighted: boolean) => ReactNode;
|
|
142
|
+
/**
|
|
143
|
+
* Maximum height of the dropdown
|
|
144
|
+
* @default 300
|
|
145
|
+
*/
|
|
146
|
+
maxHeight?: number;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the input is full width
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
fullWidth?: boolean;
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=Combobox.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,CAAC;IAC/G;;OAEG;IACH,OAAO,EAAE,cAAc,EAAE,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IAEzE;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;;OAGG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;IAEnE;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,KAAK,SAAS,CAAC;IAElG;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Divider Component
|
|
3
|
+
*
|
|
4
|
+
* A visual separator for content sections.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Divider />
|
|
9
|
+
* <Divider orientation="vertical" />
|
|
10
|
+
* <Divider variant="dashed" label="OR" />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import type { DividerProps } from './Divider.types';
|
|
14
|
+
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLHRElement>>;
|
|
15
|
+
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,OAAO,wGA2CnB,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Divider Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Divider component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Divider orientation
|
|
9
|
+
*/
|
|
10
|
+
export type DividerOrientation = 'horizontal' | 'vertical';
|
|
11
|
+
/**
|
|
12
|
+
* Divider visual variants
|
|
13
|
+
*/
|
|
14
|
+
export type DividerVariant = 'solid' | 'dashed' | 'dotted';
|
|
15
|
+
/**
|
|
16
|
+
* Divider component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Divider />
|
|
21
|
+
* <Divider orientation="vertical" />
|
|
22
|
+
* <Divider variant="dashed" spacing="lg" />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface DividerProps extends HTMLAttributes<HTMLHRElement> {
|
|
26
|
+
/**
|
|
27
|
+
* Orientation of the divider
|
|
28
|
+
* @default 'horizontal'
|
|
29
|
+
*/
|
|
30
|
+
orientation?: DividerOrientation;
|
|
31
|
+
/**
|
|
32
|
+
* Visual variant of the divider
|
|
33
|
+
* @default 'solid'
|
|
34
|
+
*/
|
|
35
|
+
variant?: DividerVariant;
|
|
36
|
+
/**
|
|
37
|
+
* Spacing around the divider
|
|
38
|
+
* @default 'md'
|
|
39
|
+
*/
|
|
40
|
+
spacing?: 'none' | 'sm' | 'md' | 'lg';
|
|
41
|
+
/**
|
|
42
|
+
* Optional label to display in the center of the divider
|
|
43
|
+
*/
|
|
44
|
+
label?: string;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=Divider.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Divider.types.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3D;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,aAAa,CAAC;IACjE;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAEjC;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer Component
|
|
3
|
+
*
|
|
4
|
+
* A panel that slides in from the edge of the screen.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Drawer open={isOpen} onClose={() => setIsOpen(false)} placement="right">
|
|
9
|
+
* <Drawer.Header>Settings</Drawer.Header>
|
|
10
|
+
* <Drawer.Body>Content here</Drawer.Body>
|
|
11
|
+
* <Drawer.Footer>
|
|
12
|
+
* <Button onClick={() => setIsOpen(false)}>Close</Button>
|
|
13
|
+
* </Drawer.Footer>
|
|
14
|
+
* </Drawer>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
import type { DrawerProps, DrawerHeaderProps, DrawerBodyProps, DrawerFooterProps } from './Drawer.types';
|
|
18
|
+
export declare const Drawer: import("react").ForwardRefExoticComponent<DrawerProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
19
|
+
Header: import("react").ForwardRefExoticComponent<DrawerHeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
20
|
+
Body: import("react").ForwardRefExoticComponent<DrawerBodyProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
Footer: import("react").ForwardRefExoticComponent<DrawerFooterProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAIH,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AA0KxB,eAAO,MAAM,MAAM;;;;CAIjB,CAAC"}
|