@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.
Files changed (148) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +150 -0
  3. package/dist/ComponentShowcase.d.ts +8 -0
  4. package/dist/ComponentShowcase.d.ts.map +1 -0
  5. package/dist/components/Alert/Alert.d.ts +28 -0
  6. package/dist/components/Alert/Alert.d.ts.map +1 -0
  7. package/dist/components/Alert/Alert.types.d.ts +53 -0
  8. package/dist/components/Alert/Alert.types.d.ts.map +1 -0
  9. package/dist/components/Alert/index.d.ts +6 -0
  10. package/dist/components/Alert/index.d.ts.map +1 -0
  11. package/dist/components/Avatar/Avatar.d.ts +17 -0
  12. package/dist/components/Avatar/Avatar.d.ts.map +1 -0
  13. package/dist/components/Avatar/Avatar.types.d.ts +54 -0
  14. package/dist/components/Avatar/Avatar.types.d.ts.map +1 -0
  15. package/dist/components/Avatar/index.d.ts +6 -0
  16. package/dist/components/Avatar/index.d.ts.map +1 -0
  17. package/dist/components/Badge/Badge.d.ts +17 -0
  18. package/dist/components/Badge/Badge.d.ts.map +1 -0
  19. package/dist/components/Badge/Badge.types.d.ts +46 -0
  20. package/dist/components/Badge/Badge.types.d.ts.map +1 -0
  21. package/dist/components/Badge/index.d.ts +6 -0
  22. package/dist/components/Badge/index.d.ts.map +1 -0
  23. package/dist/components/Breadcrumb/Breadcrumb.d.ts +34 -0
  24. package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  25. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +92 -0
  26. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts.map +1 -0
  27. package/dist/components/Breadcrumb/index.d.ts +6 -0
  28. package/dist/components/Breadcrumb/index.d.ts.map +1 -0
  29. package/dist/components/Button/Button.d.ts +21 -0
  30. package/dist/components/Button/Button.d.ts.map +1 -0
  31. package/dist/components/Button/Button.types.d.ts +64 -0
  32. package/dist/components/Button/Button.types.d.ts.map +1 -0
  33. package/dist/components/Button/index.d.ts +6 -0
  34. package/dist/components/Button/index.d.ts.map +1 -0
  35. package/dist/components/Card/Card.d.ts +28 -0
  36. package/dist/components/Card/Card.d.ts.map +1 -0
  37. package/dist/components/Card/Card.types.d.ts +66 -0
  38. package/dist/components/Card/Card.types.d.ts.map +1 -0
  39. package/dist/components/Card/index.d.ts +6 -0
  40. package/dist/components/Card/index.d.ts.map +1 -0
  41. package/dist/components/Checkbox/Checkbox.d.ts +31 -0
  42. package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
  43. package/dist/components/Checkbox/Checkbox.types.d.ts +44 -0
  44. package/dist/components/Checkbox/Checkbox.types.d.ts.map +1 -0
  45. package/dist/components/Checkbox/index.d.ts +6 -0
  46. package/dist/components/Checkbox/index.d.ts.map +1 -0
  47. package/dist/components/Field/Field.d.ts +24 -0
  48. package/dist/components/Field/Field.d.ts.map +1 -0
  49. package/dist/components/Field/Field.types.d.ts +57 -0
  50. package/dist/components/Field/Field.types.d.ts.map +1 -0
  51. package/dist/components/Field/index.d.ts +6 -0
  52. package/dist/components/Field/index.d.ts.map +1 -0
  53. package/dist/components/Modal/Modal.d.ts +31 -0
  54. package/dist/components/Modal/Modal.d.ts.map +1 -0
  55. package/dist/components/Modal/Modal.types.d.ts +84 -0
  56. package/dist/components/Modal/Modal.types.d.ts.map +1 -0
  57. package/dist/components/Modal/index.d.ts +6 -0
  58. package/dist/components/Modal/index.d.ts.map +1 -0
  59. package/dist/components/Navbar/Navbar.d.ts +47 -0
  60. package/dist/components/Navbar/Navbar.d.ts.map +1 -0
  61. package/dist/components/Navbar/Navbar.types.d.ts +92 -0
  62. package/dist/components/Navbar/Navbar.types.d.ts.map +1 -0
  63. package/dist/components/Navbar/index.d.ts +6 -0
  64. package/dist/components/Navbar/index.d.ts.map +1 -0
  65. package/dist/components/ProgressBar/ProgressBar.d.ts +17 -0
  66. package/dist/components/ProgressBar/ProgressBar.d.ts.map +1 -0
  67. package/dist/components/ProgressBar/ProgressBar.types.d.ts +61 -0
  68. package/dist/components/ProgressBar/ProgressBar.types.d.ts.map +1 -0
  69. package/dist/components/ProgressBar/index.d.ts +6 -0
  70. package/dist/components/ProgressBar/index.d.ts.map +1 -0
  71. package/dist/components/Radio/Radio.d.ts +22 -0
  72. package/dist/components/Radio/Radio.d.ts.map +1 -0
  73. package/dist/components/Radio/Radio.types.d.ts +39 -0
  74. package/dist/components/Radio/Radio.types.d.ts.map +1 -0
  75. package/dist/components/Radio/index.d.ts +6 -0
  76. package/dist/components/Radio/index.d.ts.map +1 -0
  77. package/dist/components/Select/Select.d.ts +27 -0
  78. package/dist/components/Select/Select.d.ts.map +1 -0
  79. package/dist/components/Select/Select.types.d.ts +71 -0
  80. package/dist/components/Select/Select.types.d.ts.map +1 -0
  81. package/dist/components/Select/index.d.ts +6 -0
  82. package/dist/components/Select/index.d.ts.map +1 -0
  83. package/dist/components/Spinner/Spinner.d.ts +16 -0
  84. package/dist/components/Spinner/Spinner.d.ts.map +1 -0
  85. package/dist/components/Spinner/Spinner.types.d.ts +47 -0
  86. package/dist/components/Spinner/Spinner.types.d.ts.map +1 -0
  87. package/dist/components/Spinner/index.d.ts +6 -0
  88. package/dist/components/Spinner/index.d.ts.map +1 -0
  89. package/dist/components/Switch/Switch.d.ts +25 -0
  90. package/dist/components/Switch/Switch.d.ts.map +1 -0
  91. package/dist/components/Switch/Switch.types.d.ts +35 -0
  92. package/dist/components/Switch/Switch.types.d.ts.map +1 -0
  93. package/dist/components/Switch/index.d.ts +6 -0
  94. package/dist/components/Switch/index.d.ts.map +1 -0
  95. package/dist/components/Table/Table.d.ts +44 -0
  96. package/dist/components/Table/Table.d.ts.map +1 -0
  97. package/dist/components/Table/Table.types.d.ts +141 -0
  98. package/dist/components/Table/Table.types.d.ts.map +1 -0
  99. package/dist/components/Table/index.d.ts +6 -0
  100. package/dist/components/Table/index.d.ts.map +1 -0
  101. package/dist/components/Tabs/Tabs.d.ts +36 -0
  102. package/dist/components/Tabs/Tabs.d.ts.map +1 -0
  103. package/dist/components/Tabs/Tabs.types.d.ts +77 -0
  104. package/dist/components/Tabs/Tabs.types.d.ts.map +1 -0
  105. package/dist/components/Tabs/index.d.ts +6 -0
  106. package/dist/components/Tabs/index.d.ts.map +1 -0
  107. package/dist/components/Textarea/Textarea.d.ts +31 -0
  108. package/dist/components/Textarea/Textarea.d.ts.map +1 -0
  109. package/dist/components/Textarea/Textarea.types.d.ts +63 -0
  110. package/dist/components/Textarea/Textarea.types.d.ts.map +1 -0
  111. package/dist/components/Textarea/index.d.ts +6 -0
  112. package/dist/components/Textarea/index.d.ts.map +1 -0
  113. package/dist/components/ThemeController/ThemeController.d.ts +24 -0
  114. package/dist/components/ThemeController/ThemeController.d.ts.map +1 -0
  115. package/dist/components/ThemeController/ThemeController.types.d.ts +57 -0
  116. package/dist/components/ThemeController/ThemeController.types.d.ts.map +1 -0
  117. package/dist/components/ThemeController/index.d.ts +6 -0
  118. package/dist/components/ThemeController/index.d.ts.map +1 -0
  119. package/dist/components/Tooltip/Tooltip.d.ts +20 -0
  120. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
  121. package/dist/components/Tooltip/Tooltip.types.d.ts +50 -0
  122. package/dist/components/Tooltip/Tooltip.types.d.ts.map +1 -0
  123. package/dist/components/Tooltip/index.d.ts +6 -0
  124. package/dist/components/Tooltip/index.d.ts.map +1 -0
  125. package/dist/contexts/ThemeContext.d.ts +68 -0
  126. package/dist/contexts/ThemeContext.d.ts.map +1 -0
  127. package/dist/contexts/index.d.ts +8 -0
  128. package/dist/contexts/index.d.ts.map +1 -0
  129. package/dist/hooks/index.d.ts +6 -0
  130. package/dist/hooks/index.d.ts.map +1 -0
  131. package/dist/hooks/useTheme.d.ts +73 -0
  132. package/dist/hooks/useTheme.d.ts.map +1 -0
  133. package/dist/index.cjs +18 -0
  134. package/dist/index.cjs.map +1 -0
  135. package/dist/index.d.ts +77 -0
  136. package/dist/index.d.ts.map +1 -0
  137. package/dist/index.mjs +24559 -0
  138. package/dist/index.mjs.map +1 -0
  139. package/dist/main.d.ts +2 -0
  140. package/dist/main.d.ts.map +1 -0
  141. package/dist/react.css +1 -0
  142. package/dist/test/setup.d.ts +2 -0
  143. package/dist/test/setup.d.ts.map +1 -0
  144. package/dist/utils/icons.d.ts +79 -0
  145. package/dist/utils/icons.d.ts.map +1 -0
  146. package/dist/utils/index.d.ts +7 -0
  147. package/dist/utils/index.d.ts.map +1 -0
  148. package/package.json +94 -0
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Table Component Types
3
+ *
4
+ * Type definitions for the Orion Table component.
5
+ */
6
+ import type { ReactNode, ThHTMLAttributes, TdHTMLAttributes } from 'react';
7
+ /**
8
+ * Table sizes
9
+ */
10
+ export type TableSize = 'sm' | 'md' | 'lg';
11
+ /**
12
+ * Sort direction
13
+ */
14
+ export type SortDirection = 'asc' | 'desc' | null;
15
+ /**
16
+ * Column definition
17
+ */
18
+ export interface TableColumn<T = any> {
19
+ /**
20
+ * Column unique key (used as accessor for data)
21
+ */
22
+ key: string;
23
+ /**
24
+ * Column header label
25
+ */
26
+ header: ReactNode;
27
+ /**
28
+ * Custom cell renderer
29
+ * @param row - Row data
30
+ * @param rowIndex - Row index
31
+ * @returns Rendered cell content
32
+ */
33
+ cell?: (row: T, rowIndex: number) => ReactNode;
34
+ /**
35
+ * Column width (CSS value)
36
+ */
37
+ width?: string;
38
+ /**
39
+ * Enable sorting for this column
40
+ * @default false
41
+ */
42
+ sortable?: boolean;
43
+ /**
44
+ * Align cell content
45
+ * @default 'left'
46
+ */
47
+ align?: 'left' | 'center' | 'right';
48
+ /**
49
+ * Additional props for header cell
50
+ */
51
+ headerProps?: ThHTMLAttributes<HTMLTableCellElement>;
52
+ /**
53
+ * Additional props for data cells
54
+ */
55
+ cellProps?: TdHTMLAttributes<HTMLTableCellElement>;
56
+ }
57
+ /**
58
+ * Table component props
59
+ *
60
+ * @example
61
+ * ```tsx
62
+ * const columns: TableColumn<User>[] = [
63
+ * { key: 'name', header: 'Name', sortable: true },
64
+ * { key: 'email', header: 'Email' },
65
+ * {
66
+ * key: 'status',
67
+ * header: 'Status',
68
+ * cell: (user) => <Badge>{user.status}</Badge>
69
+ * }
70
+ * ];
71
+ *
72
+ * <Table
73
+ * columns={columns}
74
+ * data={users}
75
+ * onRowClick={(user) => console.log(user)}
76
+ * />
77
+ * ```
78
+ */
79
+ export interface TableProps<T = any> {
80
+ /**
81
+ * Column definitions
82
+ */
83
+ columns: TableColumn<T>[];
84
+ /**
85
+ * Table data
86
+ */
87
+ data: T[];
88
+ /**
89
+ * Table size
90
+ * @default 'md'
91
+ */
92
+ size?: TableSize;
93
+ /**
94
+ * Striped rows
95
+ * @default false
96
+ */
97
+ striped?: boolean;
98
+ /**
99
+ * Hoverable rows
100
+ * @default true
101
+ */
102
+ hoverable?: boolean;
103
+ /**
104
+ * Show borders
105
+ * @default false
106
+ */
107
+ bordered?: boolean;
108
+ /**
109
+ * Table caption
110
+ */
111
+ caption?: ReactNode;
112
+ /**
113
+ * Empty state message
114
+ */
115
+ emptyMessage?: ReactNode;
116
+ /**
117
+ * Row click handler
118
+ */
119
+ onRowClick?: (row: T, rowIndex: number) => void;
120
+ /**
121
+ * Sort change handler
122
+ */
123
+ onSortChange?: (columnKey: string, direction: SortDirection) => void;
124
+ /**
125
+ * Current sort state (for controlled sorting)
126
+ */
127
+ sortState?: {
128
+ columnKey: string;
129
+ direction: SortDirection;
130
+ };
131
+ /**
132
+ * Row key extractor (for React keys)
133
+ * @default (row, index) => index
134
+ */
135
+ getRowKey?: (row: T, index: number) => string | number;
136
+ /**
137
+ * Additional CSS class
138
+ */
139
+ className?: string;
140
+ }
141
+ //# sourceMappingURL=Table.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Table.types.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;IAElB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IAE/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEpC;;OAEG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAErD;;OAEG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;CACpD;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,GAAG;IACjC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,CAAC,EAAE,CAAC;IAEV;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAEhD;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAErE;;OAEG;IACH,SAAS,CAAC,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,aAAa,CAAC;KAC1B,CAAC;IAEF;;;OAGG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;IAEvD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Table Component Exports
3
+ */
4
+ export { Table } from './Table';
5
+ export type { TableProps, TableColumn, TableSize, SortDirection } from './Table.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Tabs Component
3
+ *
4
+ * Navigation tabs for switching between content sections.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <Tabs
9
+ * tabs={[
10
+ * {
11
+ * id: 'profile',
12
+ * label: 'Profile',
13
+ * content: <ProfileContent />,
14
+ * icon: <UserIcon />
15
+ * },
16
+ * {
17
+ * id: 'settings',
18
+ * label: 'Settings',
19
+ * content: <SettingsContent />,
20
+ * badge: 3
21
+ * },
22
+ * {
23
+ * id: 'billing',
24
+ * label: 'Billing',
25
+ * content: <BillingContent />,
26
+ * disabled: true
27
+ * }
28
+ * ]}
29
+ * defaultTab="profile"
30
+ * />
31
+ * ```
32
+ */
33
+ import React from 'react';
34
+ import type { TabsProps } from './Tabs.types';
35
+ export declare const Tabs: React.FC<TabsProps>;
36
+ //# sourceMappingURL=Tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0FpC,CAAC"}
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Tabs Component Types
3
+ *
4
+ * Type definitions for the Orion Tabs component.
5
+ */
6
+ import type { ReactNode } from 'react';
7
+ /**
8
+ * Tab item
9
+ */
10
+ export interface TabItem {
11
+ /**
12
+ * Unique tab identifier
13
+ */
14
+ id: string;
15
+ /**
16
+ * Tab label
17
+ */
18
+ label: string;
19
+ /**
20
+ * Tab content
21
+ */
22
+ content: ReactNode;
23
+ /**
24
+ * Optional icon
25
+ */
26
+ icon?: ReactNode;
27
+ /**
28
+ * Disabled state
29
+ * @default false
30
+ */
31
+ disabled?: boolean;
32
+ /**
33
+ * Badge/count indicator
34
+ */
35
+ badge?: string | number;
36
+ }
37
+ /**
38
+ * Tabs component props
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * <Tabs
43
+ * tabs={[
44
+ * { id: 'tab1', label: 'Profile', content: <Profile /> },
45
+ * { id: 'tab2', label: 'Settings', content: <Settings /> }
46
+ * ]}
47
+ * />
48
+ * ```
49
+ */
50
+ export interface TabsProps {
51
+ /**
52
+ * Array of tabs
53
+ */
54
+ tabs: TabItem[];
55
+ /**
56
+ * Default active tab ID
57
+ */
58
+ defaultTab?: string;
59
+ /**
60
+ * Controlled active tab ID
61
+ */
62
+ activeTab?: string;
63
+ /**
64
+ * Callback when tab changes
65
+ */
66
+ onChange?: (tabId: string) => void;
67
+ /**
68
+ * Full width tabs
69
+ * @default false
70
+ */
71
+ fullWidth?: boolean;
72
+ /**
73
+ * Additional class name
74
+ */
75
+ className?: string;
76
+ }
77
+ //# sourceMappingURL=Tabs.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tabs.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,OAAO,EAAE,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tabs Component Exports
3
+ */
4
+ export { Tabs } from './Tabs';
5
+ export type { TabsProps, TabItem } from './Tabs.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Textarea Component
3
+ *
4
+ * Multi-line text input with label, error states, and character counter.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <Textarea
9
+ * label="Description"
10
+ * placeholder="Enter description..."
11
+ * helperText="Provide detailed information"
12
+ * />
13
+ *
14
+ * <Textarea
15
+ * label="Bio"
16
+ * maxLength={500}
17
+ * showCounter
18
+ * resize="vertical"
19
+ * />
20
+ *
21
+ * <Textarea
22
+ * label="Comments"
23
+ * error="This field is required"
24
+ * size="lg"
25
+ * />
26
+ * ```
27
+ */
28
+ import React from 'react';
29
+ import type { TextareaProps } from './Textarea.types';
30
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
31
+ //# sourceMappingURL=Textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGtD,eAAO,MAAM,QAAQ,2FAiIpB,CAAC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Textarea Component Types
3
+ *
4
+ * Type definitions for the Orion Textarea component.
5
+ */
6
+ import type { TextareaHTMLAttributes } from 'react';
7
+ /**
8
+ * Textarea sizes
9
+ */
10
+ export type TextareaSize = 'sm' | 'md' | 'lg';
11
+ /**
12
+ * Textarea resize behavior
13
+ */
14
+ export type TextareaResize = 'none' | 'vertical' | 'horizontal' | 'both';
15
+ /**
16
+ * Textarea component props
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * <Textarea label="Description" placeholder="Enter description..." />
21
+ * <Textarea
22
+ * label="Bio"
23
+ * helperText="Tell us about yourself"
24
+ * maxLength={500}
25
+ * showCounter
26
+ * />
27
+ * ```
28
+ */
29
+ export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> {
30
+ /**
31
+ * Textarea label
32
+ */
33
+ label?: string;
34
+ /**
35
+ * Helper text (shown below textarea)
36
+ */
37
+ helperText?: string;
38
+ /**
39
+ * Error message
40
+ */
41
+ error?: string;
42
+ /**
43
+ * Textarea size
44
+ * @default 'md'
45
+ */
46
+ size?: TextareaSize;
47
+ /**
48
+ * Resize behavior
49
+ * @default 'vertical'
50
+ */
51
+ resize?: TextareaResize;
52
+ /**
53
+ * Show character counter
54
+ * @default false
55
+ */
56
+ showCounter?: boolean;
57
+ /**
58
+ * Maximum character length
59
+ * (required if showCounter is true)
60
+ */
61
+ maxLength?: number;
62
+ }
63
+ //# sourceMappingURL=Textarea.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Textarea.types.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;AAEzE;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,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,YAAY,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Textarea Component Exports
3
+ */
4
+ export { Textarea } from './Textarea';
5
+ export type { TextareaProps, TextareaSize, TextareaResize } from './Textarea.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * ThemeController Component
3
+ *
4
+ * Interactive controls for theme and brand switching.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <ThemeController
9
+ * showBrandSelector
10
+ * showThemeToggle
11
+ * showSummary
12
+ * />
13
+ *
14
+ * <ThemeController
15
+ * compact
16
+ * onThemeChange={(theme) => console.log('Theme changed:', theme)}
17
+ * onBrandChange={(brand) => console.log('Brand changed:', brand)}
18
+ * />
19
+ * ```
20
+ */
21
+ import React from 'react';
22
+ import type { ThemeControllerProps } from './ThemeController.types';
23
+ export declare const ThemeController: React.FC<ThemeControllerProps>;
24
+ //# sourceMappingURL=ThemeController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeController.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeController/ThemeController.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAmCpE,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6Q1D,CAAC"}
@@ -0,0 +1,57 @@
1
+ /**
2
+ * ThemeController Component Types
3
+ *
4
+ * Type definitions for the Orion ThemeController component.
5
+ */
6
+ import type { CSSProperties } from 'react';
7
+ import type { Theme, Brand } from '../../hooks/useTheme';
8
+ /**
9
+ * ThemeController component props
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * <ThemeController
14
+ * showBrandSelector
15
+ * showSummary
16
+ * />
17
+ * ```
18
+ */
19
+ export interface ThemeControllerProps {
20
+ /**
21
+ * Show brand selector
22
+ * @default true
23
+ */
24
+ showBrandSelector?: boolean;
25
+ /**
26
+ * Show theme toggle
27
+ * @default true
28
+ */
29
+ showThemeToggle?: boolean;
30
+ /**
31
+ * Show current settings summary
32
+ * @default true
33
+ */
34
+ showSummary?: boolean;
35
+ /**
36
+ * Compact mode (horizontal layout)
37
+ * @default false
38
+ */
39
+ compact?: boolean;
40
+ /**
41
+ * Additional CSS class
42
+ */
43
+ className?: string;
44
+ /**
45
+ * Inline styles
46
+ */
47
+ style?: CSSProperties;
48
+ /**
49
+ * Theme change callback
50
+ */
51
+ onThemeChange?: (theme: Theme) => void;
52
+ /**
53
+ * Brand change callback
54
+ */
55
+ onBrandChange?: (brand: Brand) => void;
56
+ }
57
+ //# sourceMappingURL=ThemeController.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeController.types.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeController/ThemeController.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAEzD;;;;;;;;;;GAUG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * ThemeController Component Exports
3
+ */
4
+ export { ThemeController } from './ThemeController';
5
+ export type { ThemeControllerProps } from './ThemeController.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ThemeController/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Tooltip Component
3
+ *
4
+ * Hover information tooltip with multiple placements.
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * <Tooltip content="Click to edit">
9
+ * <Button icon={<EditIcon />} />
10
+ * </Tooltip>
11
+ *
12
+ * <Tooltip content="Delete item" placement="right">
13
+ * <Button variant="danger" icon={<TrashIcon />} />
14
+ * </Tooltip>
15
+ * ```
16
+ */
17
+ import React from 'react';
18
+ import type { TooltipProps } from './Tooltip.types';
19
+ export declare const Tooltip: React.FC<TooltipProps>;
20
+ //# sourceMappingURL=Tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA6D1C,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Tooltip Component Types
3
+ *
4
+ * Type definitions for the Orion Tooltip component.
5
+ */
6
+ import type { ReactNode } from 'react';
7
+ /**
8
+ * Tooltip placement
9
+ */
10
+ export type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
11
+ /**
12
+ * Tooltip component props
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <Tooltip content="Click to edit">
17
+ * <Button icon={<EditIcon />} />
18
+ * </Tooltip>
19
+ * ```
20
+ */
21
+ export interface TooltipProps {
22
+ /**
23
+ * Tooltip content
24
+ */
25
+ content: ReactNode;
26
+ /**
27
+ * Tooltip placement
28
+ * @default 'top'
29
+ */
30
+ placement?: TooltipPlacement;
31
+ /**
32
+ * Delay before showing (ms)
33
+ * @default 200
34
+ */
35
+ delay?: number;
36
+ /**
37
+ * Element to attach tooltip to
38
+ */
39
+ children: ReactNode;
40
+ /**
41
+ * Disable tooltip
42
+ * @default false
43
+ */
44
+ disabled?: boolean;
45
+ /**
46
+ * Additional class name
47
+ */
48
+ className?: string;
49
+ }
50
+ //# sourceMappingURL=Tooltip.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.types.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/Tooltip.types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEnE;;;;;;;;;GASG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE7B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Tooltip Component Exports
3
+ */
4
+ export { Tooltip } from './Tooltip';
5
+ export type { TooltipProps, TooltipPlacement } from './Tooltip.types';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Theme Context
3
+ *
4
+ * Provides global theme and brand state to all components.
5
+ * This ensures consistent theming across the entire application.
6
+ *
7
+ * @example
8
+ * ```tsx
9
+ * // App.tsx
10
+ * import { ThemeProvider } from '@orion/react';
11
+ *
12
+ * export default function App() {
13
+ * return (
14
+ * <ThemeProvider>
15
+ * <YourComponents />
16
+ * </ThemeProvider>
17
+ * );
18
+ * }
19
+ *
20
+ * // Inside any component
21
+ * import { useTheme } from '@orion/react';
22
+ *
23
+ * function MyComponent() {
24
+ * const { theme, brand } = useTheme();
25
+ * return <div>Current: {theme} / {brand}</div>;
26
+ * }
27
+ * ```
28
+ */
29
+ import { ReactNode } from 'react';
30
+ import { UseThemeOptions, UseThemeReturn } from '../hooks/useTheme';
31
+ /**
32
+ * Theme Provider Props
33
+ */
34
+ export interface ThemeProviderProps {
35
+ /**
36
+ * Child components
37
+ */
38
+ children: ReactNode;
39
+ /**
40
+ * Theme options (see useTheme for full options)
41
+ */
42
+ options?: UseThemeOptions;
43
+ }
44
+ /**
45
+ * ThemeProvider Component
46
+ *
47
+ * Wraps your application to provide global theme and brand state.
48
+ * Must be placed near the root of your application.
49
+ */
50
+ export declare function ThemeProvider({ children, options }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
51
+ /**
52
+ * Hook to access global theme state
53
+ *
54
+ * ⚠️ IMPORTANT: Must be used inside a ThemeProvider
55
+ *
56
+ * @throws Error if used outside ThemeProvider
57
+ *
58
+ * @example
59
+ * ```tsx
60
+ * function MyComponent() {
61
+ * const { theme, brand, setTheme, setBrand } = useTheme();
62
+ * // Components automatically inherit theme/brand from <html> attributes
63
+ * // DO NOT pass brand prop to components - it's applied globally!
64
+ * }
65
+ * ```
66
+ */
67
+ export declare function useThemeContext(): UseThemeReturn;
68
+ //# sourceMappingURL=ThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../src/contexts/ThemeContext.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAA4B,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAO9F;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,2CAItE;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,IAAI,cAAc,CAmBhD"}