@orion-ds/react 1.0.0
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/LICENSE +21 -0
- package/README.md +150 -0
- package/dist/ComponentShowcase.d.ts +8 -0
- package/dist/ComponentShowcase.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts +28 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -0
- package/dist/components/Alert/Alert.types.d.ts +53 -0
- package/dist/components/Alert/Alert.types.d.ts.map +1 -0
- package/dist/components/Alert/index.d.ts +6 -0
- package/dist/components/Alert/index.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +17 -0
- package/dist/components/Avatar/Avatar.d.ts.map +1 -0
- package/dist/components/Avatar/Avatar.types.d.ts +54 -0
- package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
- package/dist/components/Avatar/index.d.ts +6 -0
- package/dist/components/Avatar/index.d.ts.map +1 -0
- package/dist/components/Badge/Badge.d.ts +17 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/Badge.types.d.ts +46 -0
- package/dist/components/Badge/Badge.types.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +6 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +34 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +92 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts.map +1 -0
- package/dist/components/Breadcrumb/index.d.ts +6 -0
- package/dist/components/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/Button/Button.d.ts +21 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.types.d.ts +64 -0
- package/dist/components/Button/Button.types.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +6 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Card/Card.d.ts +28 -0
- package/dist/components/Card/Card.d.ts.map +1 -0
- package/dist/components/Card/Card.types.d.ts +66 -0
- package/dist/components/Card/Card.types.d.ts.map +1 -0
- package/dist/components/Card/index.d.ts +6 -0
- package/dist/components/Card/index.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +31 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts +44 -0
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +6 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Field/Field.d.ts +24 -0
- package/dist/components/Field/Field.d.ts.map +1 -0
- package/dist/components/Field/Field.types.d.ts +57 -0
- package/dist/components/Field/Field.types.d.ts.map +1 -0
- package/dist/components/Field/index.d.ts +6 -0
- package/dist/components/Field/index.d.ts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +31 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.types.d.ts +84 -0
- package/dist/components/Modal/Modal.types.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +6 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.d.ts +47 -0
- package/dist/components/Navbar/Navbar.d.ts.map +1 -0
- package/dist/components/Navbar/Navbar.types.d.ts +92 -0
- package/dist/components/Navbar/Navbar.types.d.ts.map +1 -0
- package/dist/components/Navbar/index.d.ts +6 -0
- package/dist/components/Navbar/index.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +17 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +61 -0
- package/dist/components/ProgressBar/ProgressBar.types.d.ts.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +6 -0
- package/dist/components/ProgressBar/index.d.ts.map +1 -0
- package/dist/components/Radio/Radio.d.ts +22 -0
- package/dist/components/Radio/Radio.d.ts.map +1 -0
- package/dist/components/Radio/Radio.types.d.ts +39 -0
- package/dist/components/Radio/Radio.types.d.ts.map +1 -0
- package/dist/components/Radio/index.d.ts +6 -0
- package/dist/components/Radio/index.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +27 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/Select.types.d.ts +71 -0
- package/dist/components/Select/Select.types.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +6 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +16 -0
- package/dist/components/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner/Spinner.types.d.ts +47 -0
- package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +6 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/Switch/Switch.d.ts +25 -0
- package/dist/components/Switch/Switch.d.ts.map +1 -0
- package/dist/components/Switch/Switch.types.d.ts +35 -0
- package/dist/components/Switch/Switch.types.d.ts.map +1 -0
- package/dist/components/Switch/index.d.ts +6 -0
- package/dist/components/Switch/index.d.ts.map +1 -0
- package/dist/components/Table/Table.d.ts +44 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.types.d.ts +141 -0
- package/dist/components/Table/Table.types.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts +6 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +36 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs/Tabs.types.d.ts +77 -0
- package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +6 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +31 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.types.d.ts +63 -0
- package/dist/components/Textarea/Textarea.types.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +6 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/ThemeController/ThemeController.d.ts +24 -0
- package/dist/components/ThemeController/ThemeController.d.ts.map +1 -0
- package/dist/components/ThemeController/ThemeController.types.d.ts +57 -0
- package/dist/components/ThemeController/ThemeController.types.d.ts.map +1 -0
- package/dist/components/ThemeController/index.d.ts +6 -0
- package/dist/components/ThemeController/index.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +20 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts +50 -0
- package/dist/components/Tooltip/Tooltip.types.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +6 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/contexts/ThemeContext.d.ts +68 -0
- package/dist/contexts/ThemeContext.d.ts.map +1 -0
- package/dist/contexts/index.d.ts +8 -0
- package/dist/contexts/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useTheme.d.ts +73 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/index.cjs +18 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +77 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +24559 -0
- package/dist/index.mjs.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/react.css +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/utils/icons.d.ts +79 -0
- package/dist/utils/icons.d.ts.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +94 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navbar.types.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,CAAC;AAE9D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,WAAW,CAAC;IAC9D;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,iBAAiB,CAAC;IACxE,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACxE,QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Navbar/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,YAAY,EACZ,aAAa,GACd,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProgressBar Component
|
|
3
|
+
*
|
|
4
|
+
* Progress indicator with variants, sizes, and labels.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <ProgressBar value={65} />
|
|
9
|
+
* <ProgressBar value={80} variant="success" showLabel />
|
|
10
|
+
* <ProgressBar value={25} size="lg" label="Uploading files..." />
|
|
11
|
+
* <ProgressBar indeterminate label="Loading..." />
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import type { ProgressBarProps } from './ProgressBar.types';
|
|
16
|
+
export declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
17
|
+
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuDlD,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProgressBar Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion ProgressBar component.
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* ProgressBar sizes
|
|
9
|
+
*/
|
|
10
|
+
export type ProgressBarSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* ProgressBar variants
|
|
13
|
+
*/
|
|
14
|
+
export type ProgressBarVariant = 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
15
|
+
/**
|
|
16
|
+
* ProgressBar component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <ProgressBar value={65} />
|
|
21
|
+
* <ProgressBar value={80} variant="success" showLabel />
|
|
22
|
+
* <ProgressBar value={25} size="lg" label="Uploading..." />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
/**
|
|
27
|
+
* Progress value (0-100)
|
|
28
|
+
* Optional when indeterminate is true
|
|
29
|
+
*/
|
|
30
|
+
value?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum value
|
|
33
|
+
* @default 100
|
|
34
|
+
*/
|
|
35
|
+
max?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Progress bar variant (color)
|
|
38
|
+
* @default 'primary'
|
|
39
|
+
*/
|
|
40
|
+
variant?: ProgressBarVariant;
|
|
41
|
+
/**
|
|
42
|
+
* Progress bar size
|
|
43
|
+
* @default 'md'
|
|
44
|
+
*/
|
|
45
|
+
size?: ProgressBarSize;
|
|
46
|
+
/**
|
|
47
|
+
* Show percentage label
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
showLabel?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Custom label text
|
|
53
|
+
*/
|
|
54
|
+
label?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Indeterminate/loading state
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
indeterminate?: boolean;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=ProgressBar.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.types.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/ProgressBar.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtF;;;;;;;;;GASG;AACH,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACtE;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;;OAGG;IACH,IAAI,CAAC,EAAE,eAAe,CAAC;IAEvB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProgressBar/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Radio Component
|
|
3
|
+
*
|
|
4
|
+
* Single-select radio input with label and validation.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Radio name="plan" value="free" label="Free Plan" />
|
|
9
|
+
* <Radio name="plan" value="pro" label="Pro Plan" checked />
|
|
10
|
+
* <Radio name="plan" value="enterprise" label="Enterprise" />
|
|
11
|
+
*
|
|
12
|
+
* <Radio
|
|
13
|
+
* name="size"
|
|
14
|
+
* value="small"
|
|
15
|
+
* label="Small"
|
|
16
|
+
* helperText="Recommended for personal use"
|
|
17
|
+
* />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
import type { RadioProps } from './Radio.types';
|
|
21
|
+
export declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,KAAK,yGAwEjB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Radio Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Radio component.
|
|
5
|
+
*/
|
|
6
|
+
import type { InputHTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Radio sizes
|
|
9
|
+
*/
|
|
10
|
+
export type RadioSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* Radio component props
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Radio name="plan" value="free" label="Free Plan" />
|
|
17
|
+
* <Radio name="plan" value="pro" label="Pro Plan" checked />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
21
|
+
/**
|
|
22
|
+
* Radio label
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Helper text (shown below radio)
|
|
27
|
+
*/
|
|
28
|
+
helperText?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Error message
|
|
31
|
+
*/
|
|
32
|
+
error?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Radio size
|
|
35
|
+
* @default 'md'
|
|
36
|
+
*/
|
|
37
|
+
size?: RadioSize;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=Radio.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.types.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC9F;;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,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select Component
|
|
3
|
+
*
|
|
4
|
+
* A styled dropdown select with label, error states, and custom styling.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Select
|
|
9
|
+
* label="Country"
|
|
10
|
+
* options={[
|
|
11
|
+
* { value: 'us', label: 'United States' },
|
|
12
|
+
* { value: 'uk', label: 'United Kingdom' },
|
|
13
|
+
* { value: 'ca', label: 'Canada' }
|
|
14
|
+
* ]}
|
|
15
|
+
* placeholder="Select a country"
|
|
16
|
+
* />
|
|
17
|
+
*
|
|
18
|
+
* <Select label="Status" error="Please select a status">
|
|
19
|
+
* <option value="">Choose status</option>
|
|
20
|
+
* <option value="active">Active</option>
|
|
21
|
+
* <option value="inactive">Inactive</option>
|
|
22
|
+
* </Select>
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
import type { SelectProps } from './Select.types';
|
|
26
|
+
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
27
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,MAAM,2GA0GlB,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Select component (dropdown).
|
|
5
|
+
*/
|
|
6
|
+
import type { SelectHTMLAttributes, ReactNode } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Select option type
|
|
9
|
+
*/
|
|
10
|
+
export interface SelectOption {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Select component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Select
|
|
21
|
+
* label="Country"
|
|
22
|
+
* options={[
|
|
23
|
+
* { value: 'us', label: 'United States' },
|
|
24
|
+
* { value: 'uk', label: 'United Kingdom' }
|
|
25
|
+
* ]}
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
30
|
+
/**
|
|
31
|
+
* Select label
|
|
32
|
+
*/
|
|
33
|
+
label?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Error message (shows error state when present)
|
|
36
|
+
*/
|
|
37
|
+
error?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Helper text (shown below select)
|
|
40
|
+
*/
|
|
41
|
+
helperText?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Select options
|
|
44
|
+
*/
|
|
45
|
+
options?: SelectOption[];
|
|
46
|
+
/**
|
|
47
|
+
* Placeholder option text
|
|
48
|
+
* @default 'Select an option...'
|
|
49
|
+
*/
|
|
50
|
+
placeholder?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Full width select
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
fullWidth?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Select size
|
|
58
|
+
* @default 'md'
|
|
59
|
+
*/
|
|
60
|
+
size?: 'sm' | 'md' | 'lg';
|
|
61
|
+
/**
|
|
62
|
+
* Optional indicator
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
optional?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Custom children (instead of options prop)
|
|
68
|
+
*/
|
|
69
|
+
children?: ReactNode;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=Select.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACxF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE1B;;;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/Select/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spinner Component
|
|
3
|
+
*
|
|
4
|
+
* Loading indicator with multiple sizes and variants.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Spinner />
|
|
9
|
+
* <Spinner size="lg" variant="primary" />
|
|
10
|
+
* <Spinner label="Loading data..." showLabel />
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import type { SpinnerProps } from './Spinner.types';
|
|
15
|
+
export declare const Spinner: React.FC<SpinnerProps>;
|
|
16
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyB1C,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spinner Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Spinner component (loading indicator).
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Spinner sizes
|
|
9
|
+
*/
|
|
10
|
+
export type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
/**
|
|
12
|
+
* Spinner variants
|
|
13
|
+
*/
|
|
14
|
+
export type SpinnerVariant = 'primary' | 'secondary' | 'neutral';
|
|
15
|
+
/**
|
|
16
|
+
* Spinner component props
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Spinner />
|
|
21
|
+
* <Spinner size="lg" variant="primary" />
|
|
22
|
+
* <Spinner label="Loading..." />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
/**
|
|
27
|
+
* Spinner size
|
|
28
|
+
* @default 'md'
|
|
29
|
+
*/
|
|
30
|
+
size?: SpinnerSize;
|
|
31
|
+
/**
|
|
32
|
+
* Spinner variant (color)
|
|
33
|
+
* @default 'primary'
|
|
34
|
+
*/
|
|
35
|
+
variant?: SpinnerVariant;
|
|
36
|
+
/**
|
|
37
|
+
* Loading label (for accessibility)
|
|
38
|
+
* @default 'Loading...'
|
|
39
|
+
*/
|
|
40
|
+
label?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Show label text below spinner
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
showLabel?: boolean;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=Spinner.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.types.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEjE;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,cAAc,CAAC;IAClE;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Switch Component
|
|
3
|
+
*
|
|
4
|
+
* A toggle switch for boolean settings.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* const [enabled, setEnabled] = useState(false);
|
|
9
|
+
*
|
|
10
|
+
* <Switch
|
|
11
|
+
* checked={enabled}
|
|
12
|
+
* onChange={(e) => setEnabled(e.target.checked)}
|
|
13
|
+
* label="Enable notifications"
|
|
14
|
+
* />
|
|
15
|
+
*
|
|
16
|
+
* <Switch
|
|
17
|
+
* label="Dark mode"
|
|
18
|
+
* helperText="Use dark theme across the app"
|
|
19
|
+
* size="sm"
|
|
20
|
+
* />
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
import type { SwitchProps } from './Switch.types';
|
|
24
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,eAAO,MAAM,MAAM,0GAoClB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Switch Component Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the Orion Switch component (toggle).
|
|
5
|
+
*/
|
|
6
|
+
import type { InputHTMLAttributes } from 'react';
|
|
7
|
+
/**
|
|
8
|
+
* Switch sizes
|
|
9
|
+
*/
|
|
10
|
+
export type SwitchSize = 'sm' | 'md' | 'lg';
|
|
11
|
+
/**
|
|
12
|
+
* Switch component props
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```tsx
|
|
16
|
+
* <Switch checked={enabled} onChange={setEnabled} />
|
|
17
|
+
* <Switch label="Enable notifications" size="sm" />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export interface SwitchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type'> {
|
|
21
|
+
/**
|
|
22
|
+
* Switch label
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Switch size
|
|
27
|
+
* @default 'md'
|
|
28
|
+
*/
|
|
29
|
+
size?: SwitchSize;
|
|
30
|
+
/**
|
|
31
|
+
* Helper text (shown below switch)
|
|
32
|
+
*/
|
|
33
|
+
helperText?: string;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=Switch.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.types.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/Switch.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C;;;;;;;;GAQG;AACH,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/F;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Switch/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table Component
|
|
3
|
+
*
|
|
4
|
+
* Data display table with sorting, customizable columns, and interactive rows.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* interface User {
|
|
9
|
+
* id: number;
|
|
10
|
+
* name: string;
|
|
11
|
+
* email: string;
|
|
12
|
+
* status: 'active' | 'inactive';
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* const columns: TableColumn<User>[] = [
|
|
16
|
+
* { key: 'name', header: 'Name', sortable: true },
|
|
17
|
+
* { key: 'email', header: 'Email', sortable: true },
|
|
18
|
+
* {
|
|
19
|
+
* key: 'status',
|
|
20
|
+
* header: 'Status',
|
|
21
|
+
* cell: (user) => (
|
|
22
|
+
* <Badge variant={user.status === 'active' ? 'success' : 'neutral'}>
|
|
23
|
+
* {user.status}
|
|
24
|
+
* </Badge>
|
|
25
|
+
* ),
|
|
26
|
+
* align: 'center'
|
|
27
|
+
* }
|
|
28
|
+
* ];
|
|
29
|
+
*
|
|
30
|
+
* <Table
|
|
31
|
+
* columns={columns}
|
|
32
|
+
* data={users}
|
|
33
|
+
* striped
|
|
34
|
+
* hoverable
|
|
35
|
+
* onRowClick={(user) => navigate(`/users/${user.id}`)}
|
|
36
|
+
* />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
import type { TableProps } from './Table.types';
|
|
40
|
+
export declare const Table: {
|
|
41
|
+
<T extends Record<string, any>>({ columns, data, size, striped, hoverable, bordered, caption, emptyMessage, onRowClick, onSortChange, sortState, getRowKey, className, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAGH,OAAO,KAAK,EAAE,UAAU,EAA8B,MAAM,eAAe,CAAC;AAG5E,eAAO,MAAM,KAAK;KAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,4IAchD,UAAU,CAAC,CAAC,CAAC;;CAwLf,CAAC"}
|