@teja-app/ui 0.0.11 → 0.0.13
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/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useSidebar.d.ts +32 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.cjs +0 -4879
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4863
- package/dist/index.js.map +1 -1
- package/dist/theme/components/Accordion.d.ts +75 -0
- package/dist/theme/components/Accordion.d.ts.map +1 -0
- package/dist/theme/components/Badge.d.ts +21 -1
- package/dist/theme/components/Badge.d.ts.map +1 -1
- package/dist/theme/components/Breadcrumbs.d.ts +53 -0
- package/dist/theme/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/theme/components/Card.d.ts +37 -2
- package/dist/theme/components/Card.d.ts.map +1 -1
- package/dist/theme/components/Checkbox.d.ts +6 -1
- package/dist/theme/components/Checkbox.d.ts.map +1 -1
- package/dist/theme/components/DarkScope.d.ts +54 -0
- package/dist/theme/components/DarkScope.d.ts.map +1 -0
- package/dist/theme/components/Menu.d.ts +84 -0
- package/dist/theme/components/Menu.d.ts.map +1 -0
- package/dist/theme/components/OTPInput.d.ts +58 -0
- package/dist/theme/components/OTPInput.d.ts.map +1 -0
- package/dist/theme/components/PasswordInput.d.ts +48 -0
- package/dist/theme/components/PasswordInput.d.ts.map +1 -0
- package/dist/{components/PillSelector/PillSelector.types.d.ts → theme/components/PillSelector.d.ts} +21 -2
- package/dist/theme/components/PillSelector.d.ts.map +1 -0
- package/dist/theme/components/Radio.d.ts +89 -0
- package/dist/theme/components/Radio.d.ts.map +1 -0
- package/dist/theme/components/SegmentedControl.d.ts.map +1 -1
- package/dist/theme/components/SelectableCard.d.ts +34 -0
- package/dist/theme/components/SelectableCard.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNav.d.ts +20 -0
- package/dist/theme/components/SidebarNav/SidebarNav.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNavDivider.d.ts +8 -0
- package/dist/theme/components/SidebarNav/SidebarNavDivider.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNavGroupRow.d.ts +8 -0
- package/dist/theme/components/SidebarNav/SidebarNavGroupRow.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/SidebarNavItemRow.d.ts +8 -0
- package/dist/theme/components/SidebarNav/SidebarNavItemRow.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/index.d.ts +12 -0
- package/dist/theme/components/SidebarNav/index.d.ts.map +1 -0
- package/dist/theme/components/SidebarNav/types.d.ts +157 -0
- package/dist/theme/components/SidebarNav/types.d.ts.map +1 -0
- package/dist/theme/components/Table.d.ts +70 -0
- package/dist/theme/components/Table.d.ts.map +1 -0
- package/dist/theme/components/Toast.d.ts +79 -0
- package/dist/theme/components/Toast.d.ts.map +1 -0
- package/dist/theme/components/ToggleChip.d.ts +38 -0
- package/dist/theme/components/ToggleChip.d.ts.map +1 -0
- package/dist/theme/components/Tooltip.d.ts +40 -0
- package/dist/theme/components/Tooltip.d.ts.map +1 -0
- package/dist/theme/components/index.d.ts +16 -1
- package/dist/theme/components/index.d.ts.map +1 -1
- package/dist/theme/index.cjs +15555 -2528
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.js +17345 -4334
- package/dist/theme/index.js.map +1 -1
- package/dist/ui.css +159 -159
- package/dist/useSidebar-BWe09WbE.js.map +1 -1
- package/dist/useSidebar-d1VZFhxd.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/components/Alert/Alert.d.ts +0 -13
- package/dist/components/Alert/Alert.d.ts.map +0 -1
- package/dist/components/Alert/Alert.types.d.ts +0 -17
- package/dist/components/Alert/Alert.types.d.ts.map +0 -1
- package/dist/components/Alert/index.d.ts +0 -3
- package/dist/components/Alert/index.d.ts.map +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -13
- package/dist/components/Avatar/Avatar.d.ts.map +0 -1
- package/dist/components/Avatar/Avatar.types.d.ts +0 -18
- package/dist/components/Avatar/Avatar.types.d.ts.map +0 -1
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Avatar/index.d.ts.map +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -13
- package/dist/components/Badge/Badge.d.ts.map +0 -1
- package/dist/components/Badge/Badge.types.d.ts +0 -14
- package/dist/components/Badge/Badge.types.d.ts.map +0 -1
- package/dist/components/Badge/index.d.ts +0 -3
- package/dist/components/Badge/index.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +0 -18
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -22
- package/dist/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +0 -1
- package/dist/components/Breadcrumbs/index.d.ts +0 -3
- package/dist/components/Breadcrumbs/index.d.ts.map +0 -1
- package/dist/components/Button/Button.d.ts +0 -13
- package/dist/components/Button/Button.d.ts.map +0 -1
- package/dist/components/Button/Button.types.d.ts +0 -18
- package/dist/components/Button/Button.types.d.ts.map +0 -1
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Button/index.d.ts.map +0 -1
- package/dist/components/Card/Card.d.ts +0 -18
- package/dist/components/Card/Card.d.ts.map +0 -1
- package/dist/components/Card/Card.types.d.ts +0 -16
- package/dist/components/Card/Card.types.d.ts.map +0 -1
- package/dist/components/Card/index.d.ts +0 -3
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -13
- package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
- package/dist/components/Checkbox/Checkbox.types.d.ts +0 -21
- package/dist/components/Checkbox/Checkbox.types.d.ts.map +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -3
- package/dist/components/Checkbox/index.d.ts.map +0 -1
- package/dist/components/Combobox/Combobox.d.ts +0 -24
- package/dist/components/Combobox/Combobox.d.ts.map +0 -1
- package/dist/components/Combobox/Combobox.types.d.ts +0 -43
- package/dist/components/Combobox/Combobox.types.d.ts.map +0 -1
- package/dist/components/Combobox/index.d.ts +0 -3
- package/dist/components/Combobox/index.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +0 -23
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/ConfirmDialog.types.d.ts +0 -24
- package/dist/components/ConfirmDialog/ConfirmDialog.types.d.ts.map +0 -1
- package/dist/components/ConfirmDialog/index.d.ts +0 -3
- package/dist/components/ConfirmDialog/index.d.ts.map +0 -1
- package/dist/components/DateInput/DateInput.d.ts +0 -14
- package/dist/components/DateInput/DateInput.d.ts.map +0 -1
- package/dist/components/DateInput/DateInput.types.d.ts +0 -39
- package/dist/components/DateInput/DateInput.types.d.ts.map +0 -1
- package/dist/components/DateInput/index.d.ts +0 -3
- package/dist/components/DateInput/index.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.d.ts +0 -27
- package/dist/components/Drawer/Drawer.d.ts.map +0 -1
- package/dist/components/Drawer/Drawer.types.d.ts +0 -25
- package/dist/components/Drawer/Drawer.types.d.ts.map +0 -1
- package/dist/components/Drawer/index.d.ts +0 -3
- package/dist/components/Drawer/index.d.ts.map +0 -1
- package/dist/components/EmptyState/EmptyState.d.ts +0 -34
- package/dist/components/EmptyState/EmptyState.d.ts.map +0 -1
- package/dist/components/EmptyState/EmptyState.types.d.ts +0 -19
- package/dist/components/EmptyState/EmptyState.types.d.ts.map +0 -1
- package/dist/components/EmptyState/index.d.ts +0 -3
- package/dist/components/EmptyState/index.d.ts.map +0 -1
- package/dist/components/Input/Input.d.ts +0 -13
- package/dist/components/Input/Input.d.ts.map +0 -1
- package/dist/components/Input/Input.types.d.ts +0 -20
- package/dist/components/Input/Input.types.d.ts.map +0 -1
- package/dist/components/Input/index.d.ts +0 -3
- package/dist/components/Input/index.d.ts.map +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -28
- package/dist/components/Modal/Modal.d.ts.map +0 -1
- package/dist/components/Modal/Modal.types.d.ts +0 -29
- package/dist/components/Modal/Modal.types.d.ts.map +0 -1
- package/dist/components/Modal/index.d.ts +0 -3
- package/dist/components/Modal/index.d.ts.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +0 -26
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.types.d.ts +0 -51
- package/dist/components/MultiSelect/MultiSelect.types.d.ts.map +0 -1
- package/dist/components/MultiSelect/index.d.ts +0 -3
- package/dist/components/MultiSelect/index.d.ts.map +0 -1
- package/dist/components/OTPInput/OTPInput.d.ts +0 -22
- package/dist/components/OTPInput/OTPInput.d.ts.map +0 -1
- package/dist/components/OTPInput/OTPInput.types.d.ts +0 -19
- package/dist/components/OTPInput/OTPInput.types.d.ts.map +0 -1
- package/dist/components/OTPInput/index.d.ts +0 -3
- package/dist/components/OTPInput/index.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -35
- package/dist/components/Pagination/Pagination.d.ts.map +0 -1
- package/dist/components/Pagination/Pagination.types.d.ts +0 -31
- package/dist/components/Pagination/Pagination.types.d.ts.map +0 -1
- package/dist/components/Pagination/index.d.ts +0 -3
- package/dist/components/Pagination/index.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +0 -12
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +0 -1
- package/dist/components/PasswordInput/PasswordInput.types.d.ts +0 -16
- package/dist/components/PasswordInput/PasswordInput.types.d.ts.map +0 -1
- package/dist/components/PasswordInput/index.d.ts +0 -3
- package/dist/components/PasswordInput/index.d.ts.map +0 -1
- package/dist/components/PillSelector/PillSelector.d.ts +0 -16
- package/dist/components/PillSelector/PillSelector.d.ts.map +0 -1
- package/dist/components/PillSelector/PillSelector.types.d.ts.map +0 -1
- package/dist/components/PillSelector/index.d.ts +0 -3
- package/dist/components/PillSelector/index.d.ts.map +0 -1
- package/dist/components/Radio/Radio.d.ts +0 -12
- package/dist/components/Radio/Radio.d.ts.map +0 -1
- package/dist/components/Radio/Radio.types.d.ts +0 -49
- package/dist/components/Radio/Radio.types.d.ts.map +0 -1
- package/dist/components/Radio/RadioGroup.d.ts +0 -23
- package/dist/components/Radio/RadioGroup.d.ts.map +0 -1
- package/dist/components/Radio/index.d.ts +0 -4
- package/dist/components/Radio/index.d.ts.map +0 -1
- package/dist/components/Select/Select.d.ts +0 -22
- package/dist/components/Select/Select.d.ts.map +0 -1
- package/dist/components/Select/Select.types.d.ts +0 -42
- package/dist/components/Select/Select.types.d.ts.map +0 -1
- package/dist/components/Select/index.d.ts +0 -3
- package/dist/components/Select/index.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.d.ts +0 -36
- package/dist/components/Sidebar/Sidebar.d.ts.map +0 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts +0 -200
- package/dist/components/Sidebar/Sidebar.types.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarDivider.d.ts +0 -12
- package/dist/components/Sidebar/SidebarDivider.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarGroup.d.ts +0 -26
- package/dist/components/Sidebar/SidebarGroup.d.ts.map +0 -1
- package/dist/components/Sidebar/SidebarItem.d.ts +0 -23
- package/dist/components/Sidebar/SidebarItem.d.ts.map +0 -1
- package/dist/components/Sidebar/index.d.ts +0 -9
- package/dist/components/Sidebar/index.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.d.ts +0 -22
- package/dist/components/Skeleton/Skeleton.d.ts.map +0 -1
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -19
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +0 -1
- package/dist/components/Skeleton/index.d.ts +0 -3
- package/dist/components/Skeleton/index.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.d.ts +0 -13
- package/dist/components/Spinner/Spinner.d.ts.map +0 -1
- package/dist/components/Spinner/Spinner.types.d.ts +0 -14
- package/dist/components/Spinner/Spinner.types.d.ts.map +0 -1
- package/dist/components/Spinner/index.d.ts +0 -3
- package/dist/components/Spinner/index.d.ts.map +0 -1
- package/dist/components/Table/Table.d.ts +0 -44
- package/dist/components/Table/Table.d.ts.map +0 -1
- package/dist/components/Table/Table.types.d.ts +0 -33
- package/dist/components/Table/Table.types.d.ts.map +0 -1
- package/dist/components/Table/index.d.ts +0 -3
- package/dist/components/Table/index.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -43
- package/dist/components/Tabs/Tabs.d.ts.map +0 -1
- package/dist/components/Tabs/Tabs.types.d.ts +0 -42
- package/dist/components/Tabs/Tabs.types.d.ts.map +0 -1
- package/dist/components/Tabs/index.d.ts +0 -3
- package/dist/components/Tabs/index.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.d.ts +0 -13
- package/dist/components/Textarea/Textarea.d.ts.map +0 -1
- package/dist/components/Textarea/Textarea.types.d.ts +0 -22
- package/dist/components/Textarea/Textarea.types.d.ts.map +0 -1
- package/dist/components/Textarea/index.d.ts +0 -3
- package/dist/components/Textarea/index.d.ts.map +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -20
- package/dist/components/Toggle/Toggle.d.ts.map +0 -1
- package/dist/components/Toggle/Toggle.types.d.ts +0 -22
- package/dist/components/Toggle/Toggle.types.d.ts.map +0 -1
- package/dist/components/Toggle/index.d.ts +0 -3
- package/dist/components/Toggle/index.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -32
- package/dist/components/index.d.ts.map +0 -1
- package/dist/style-D6av97Pw.cjs +0 -10406
- package/dist/style-D6av97Pw.cjs.map +0 -1
- package/dist/style-DyXPy-7b.js +0 -10392
- package/dist/style-DyXPy-7b.js.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export interface ComboboxOption {
|
|
2
|
-
/** Option value */
|
|
3
|
-
value: string;
|
|
4
|
-
/** Option display label */
|
|
5
|
-
label: string;
|
|
6
|
-
/** Disable this option */
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface ComboboxProps {
|
|
10
|
-
/** Available options */
|
|
11
|
-
options: ComboboxOption[];
|
|
12
|
-
/** Currently selected value */
|
|
13
|
-
value?: string | null;
|
|
14
|
-
/** Callback when selection changes */
|
|
15
|
-
onChange?: (value: string | null) => void;
|
|
16
|
-
/** Placeholder text when no selection */
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
/** Field label */
|
|
19
|
-
label?: string;
|
|
20
|
-
/** Error message */
|
|
21
|
-
error?: string;
|
|
22
|
-
/** Helper text */
|
|
23
|
-
helperText?: string;
|
|
24
|
-
/** Disabled state */
|
|
25
|
-
disabled?: boolean;
|
|
26
|
-
/** Required field indicator */
|
|
27
|
-
required?: boolean;
|
|
28
|
-
/** Full width mode */
|
|
29
|
-
fullWidth?: boolean;
|
|
30
|
-
/** Additional class name */
|
|
31
|
-
className?: string;
|
|
32
|
-
/** Shows loading spinner and disables combobox */
|
|
33
|
-
isLoading?: boolean;
|
|
34
|
-
/** Text to show while loading (default: "Loading...") */
|
|
35
|
-
loadingText?: string;
|
|
36
|
-
/** Text to show when no results (default: "No results found") */
|
|
37
|
-
emptyText?: string;
|
|
38
|
-
/** Callback for server-side search (called when query changes) */
|
|
39
|
-
onSearch?: (query: string) => void;
|
|
40
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
41
|
-
testId?: string;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=Combobox.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.types.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/Combobox.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,wBAAwB;IACxB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { ConfirmDialogProps } from './ConfirmDialog.types';
|
|
2
|
-
/**
|
|
3
|
-
* ConfirmDialog component for confirmation prompts.
|
|
4
|
-
* Built on Modal for consistent styling and accessibility.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <ConfirmDialog
|
|
9
|
-
* isOpen={isOpen}
|
|
10
|
-
* onClose={() => setIsOpen(false)}
|
|
11
|
-
* onConfirm={handleDelete}
|
|
12
|
-
* title="Delete this note?"
|
|
13
|
-
* description="This will permanently delete the note. This action cannot be undone."
|
|
14
|
-
* variant="destructive"
|
|
15
|
-
* confirmText="Delete"
|
|
16
|
-
* />
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare function ConfirmDialog({ isOpen, onClose, onConfirm, title, description, variant, cancelText, confirmText, loading, testId, }: ConfirmDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare namespace ConfirmDialog {
|
|
21
|
-
var displayName: string;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmDialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAwB,MAAM,uBAAuB,CAAC;AAUtF;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,WAAW,EACX,OAAmB,EACnB,UAAqB,EACrB,WAAuB,EACvB,OAAe,EACf,MAAM,GACP,EAAE,kBAAkB,2CAuCpB;yBAlDe,aAAa"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type ConfirmDialogVariant = 'destructive' | 'neutral' | 'caution';
|
|
2
|
-
export interface ConfirmDialogProps {
|
|
3
|
-
/** Controls whether the dialog is open */
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
/** Callback when the dialog should close */
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
/** Callback when user confirms the action */
|
|
8
|
-
onConfirm: () => void;
|
|
9
|
-
/** Dialog title - should be a clear question (e.g., "Delete this note?") */
|
|
10
|
-
title: string;
|
|
11
|
-
/** Description explaining consequences of the action */
|
|
12
|
-
description?: string;
|
|
13
|
-
/** Dialog variant affecting confirm button styling */
|
|
14
|
-
variant?: ConfirmDialogVariant;
|
|
15
|
-
/** Text for cancel button */
|
|
16
|
-
cancelText?: string;
|
|
17
|
-
/** Text for confirm button - should be action verb (e.g., "Delete", "Save") */
|
|
18
|
-
confirmText?: string;
|
|
19
|
-
/** Loading state for confirm button */
|
|
20
|
-
loading?: boolean;
|
|
21
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
22
|
-
testId?: string;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=ConfirmDialog.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.types.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmDialog/ConfirmDialog.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAEzE,MAAM,WAAW,kBAAkB;IACjC,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,4EAA4E;IAC5E,KAAK,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,6BAA6B;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ConfirmDialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import 'react-day-picker/style.css';
|
|
2
|
-
import type { DateInputProps } from './DateInput.types';
|
|
3
|
-
/**
|
|
4
|
-
* DateInput component with a calendar popup for date selection.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* const [date, setDate] = useState<string | null>(null);
|
|
9
|
-
* <DateInput value={date} onChange={setDate} label="Birth Date" />
|
|
10
|
-
* <DateInput value={date} onChange={setDate} error="Date is required" />
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
export declare const DateInput: import("react").ForwardRefExoticComponent<DateInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
|
-
//# sourceMappingURL=DateInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/DateInput.tsx"],"names":[],"mappings":"AAWA,OAAO,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA+JxD;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,6GAicrB,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export interface DateInputProps {
|
|
2
|
-
/** Current date value in YYYY-MM-DD format */
|
|
3
|
-
value: string | null;
|
|
4
|
-
/** Called when the date changes */
|
|
5
|
-
onChange: (value: string | null) => void;
|
|
6
|
-
/** Label for the input */
|
|
7
|
-
label?: string;
|
|
8
|
-
/** Error message to display */
|
|
9
|
-
error?: string;
|
|
10
|
-
/** Helper text to display below the input */
|
|
11
|
-
helperText?: string;
|
|
12
|
-
/** Whether the input should take full width */
|
|
13
|
-
fullWidth?: boolean;
|
|
14
|
-
/** Whether the input is disabled */
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
/** Whether the field is required */
|
|
17
|
-
required?: boolean;
|
|
18
|
-
/** Minimum date in YYYY-MM-DD format */
|
|
19
|
-
min?: string;
|
|
20
|
-
/** Maximum date in YYYY-MM-DD format */
|
|
21
|
-
max?: string;
|
|
22
|
-
/** Additional CSS class for the input element */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** HTML id attribute */
|
|
25
|
-
id?: string;
|
|
26
|
-
/** Test ID following teja-ui suffix pattern */
|
|
27
|
-
testId?: string;
|
|
28
|
-
/** Placeholder text (default: "Select date") */
|
|
29
|
-
placeholder?: string;
|
|
30
|
-
/** Custom function to disable specific dates */
|
|
31
|
-
disabledDate?: (date: Date) => boolean;
|
|
32
|
-
/** Show clear button when value is set (default: true) */
|
|
33
|
-
allowClear?: boolean;
|
|
34
|
-
/** Locale for the calendar (import from "react-day-picker/locale") */
|
|
35
|
-
locale?: Partial<import('react-day-picker').Locale>;
|
|
36
|
-
/** Format function to display the date in the input. Receives the Date and locale. Default: YYYY-MM-DD */
|
|
37
|
-
formatDisplayValue?: (date: Date, locale?: Partial<import('react-day-picker').Locale>) => string;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=DateInput.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/DateInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,mCAAmC;IACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wBAAwB;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACvC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,MAAM,CAAC,EAAE,OAAO,CAAC,OAAO,kBAAkB,EAAE,MAAM,CAAC,CAAC;IACpD,0GAA0G;IAC1G,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,OAAO,kBAAkB,EAAE,MAAM,CAAC,KAAK,MAAM,CAAC;CAClG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DateInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { DrawerProps } from './Drawer.types';
|
|
2
|
-
/**
|
|
3
|
-
* Drawer component for slide-in panels without losing page context.
|
|
4
|
-
* Built on Headless UI Dialog for accessibility.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <Drawer
|
|
9
|
-
* isOpen={isOpen}
|
|
10
|
-
* onClose={() => setIsOpen(false)}
|
|
11
|
-
* title="New Client"
|
|
12
|
-
* footer={
|
|
13
|
-
* <div className="flex justify-end gap-3">
|
|
14
|
-
* <Button variant="secondary" onClick={() => setIsOpen(false)}>Cancel</Button>
|
|
15
|
-
* <Button onClick={handleSave}>Save</Button>
|
|
16
|
-
* </div>
|
|
17
|
-
* }
|
|
18
|
-
* >
|
|
19
|
-
* <form>...</form>
|
|
20
|
-
* </Drawer>
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
export declare function Drawer({ isOpen, onClose, title, children, size, showCloseButton, footer, className, isLoading, testId, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare namespace Drawer {
|
|
25
|
-
var displayName: string;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAc,MAAM,gBAAgB,CAAC;AA2B9D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAW,EACX,eAAsB,EACtB,MAAM,EACN,SAAS,EACT,SAAiB,EACjB,MAAM,GACP,EAAE,WAAW,2CAqGb;yBAhHe,MAAM"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type DrawerSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export interface DrawerProps {
|
|
4
|
-
/** Controls whether the drawer is open */
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
/** Callback when the drawer should close */
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
/** Drawer title displayed in header */
|
|
9
|
-
title?: string;
|
|
10
|
-
/** Drawer content (scrollable) */
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/** Drawer size: sm (400px), md (560px), lg (720px) */
|
|
13
|
-
size?: DrawerSize;
|
|
14
|
-
/** Show close button in header */
|
|
15
|
-
showCloseButton?: boolean;
|
|
16
|
-
/** Footer content (typically action buttons) */
|
|
17
|
-
footer?: ReactNode;
|
|
18
|
-
/** Additional class name for the drawer panel */
|
|
19
|
-
className?: string;
|
|
20
|
-
/** Shows loading spinner overlay on content */
|
|
21
|
-
isLoading?: boolean;
|
|
22
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
23
|
-
testId?: string;
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=Drawer.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.types.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,WAAW;IAC1B,0CAA0C;IAC1C,MAAM,EAAE,OAAO,CAAC;IAChB,4CAA4C;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,sDAAsD;IACtD,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,kCAAkC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { EmptyStateProps } from './EmptyState.types';
|
|
2
|
-
/**
|
|
3
|
-
* EmptyState component for displaying empty, no-results, or error states.
|
|
4
|
-
* Commonly used in tables, lists, and search results.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* // No data state
|
|
9
|
-
* <EmptyState
|
|
10
|
-
* type="no-data"
|
|
11
|
-
* title="No clients yet"
|
|
12
|
-
* description="Get started by adding your first client."
|
|
13
|
-
* action={<Button>Add Client</Button>}
|
|
14
|
-
* />
|
|
15
|
-
*
|
|
16
|
-
* // No search results
|
|
17
|
-
* <EmptyState
|
|
18
|
-
* type="no-results"
|
|
19
|
-
* title="No matching results"
|
|
20
|
-
* description="Try adjusting your search or filters."
|
|
21
|
-
* action={<Button variant="ghost" onClick={clearFilters}>Clear filters</Button>}
|
|
22
|
-
* />
|
|
23
|
-
*
|
|
24
|
-
* // Error state
|
|
25
|
-
* <EmptyState
|
|
26
|
-
* type="error"
|
|
27
|
-
* title="Something went wrong"
|
|
28
|
-
* description="We couldn't load the data. Please try again."
|
|
29
|
-
* action={<Button onClick={retry}>Retry</Button>}
|
|
30
|
-
* />
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare const EmptyState: import("react").ForwardRefExoticComponent<EmptyStateProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
34
|
-
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,oBAAoB,CAAC;AAiF1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,UAAU,4GAgEtB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export type EmptyStateType = 'no-data' | 'no-results' | 'error';
|
|
3
|
-
export interface EmptyStateProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/** Type of empty state */
|
|
5
|
-
type?: EmptyStateType;
|
|
6
|
-
/** Title text */
|
|
7
|
-
title: string;
|
|
8
|
-
/** Description text */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Custom icon (overrides default type icon) */
|
|
11
|
-
icon?: ReactNode;
|
|
12
|
-
/** Action button or link */
|
|
13
|
-
action?: ReactNode;
|
|
14
|
-
/** Size variant */
|
|
15
|
-
size?: 'sm' | 'md' | 'lg';
|
|
16
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
17
|
-
testId?: string;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=EmptyState.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.types.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/EmptyState.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACrE,0BAA0B;IAC1B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,mBAAmB;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/EmptyState/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { InputProps } from './Input.types';
|
|
2
|
-
/**
|
|
3
|
-
* Input component with label, error states, icons, and helper text.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```tsx
|
|
7
|
-
* <Input label="Email" placeholder="you@example.com" />
|
|
8
|
-
* <Input label="Search" leftIcon={<SearchIcon />} />
|
|
9
|
-
* <Input label="Password" error="Password is required" />
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
13
|
-
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;GASG;AACH,eAAO,MAAM,KAAK,yGA0GjB,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
|
-
/** Input label displayed above the field */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** Error message - displays in red below the field */
|
|
6
|
-
error?: string;
|
|
7
|
-
/** Helper text - displays below the field (hidden when error is present) */
|
|
8
|
-
helperText?: string;
|
|
9
|
-
/** Icon displayed on the left side of the input */
|
|
10
|
-
leftIcon?: ReactNode;
|
|
11
|
-
/** Icon displayed on the right side of the input */
|
|
12
|
-
rightIcon?: ReactNode;
|
|
13
|
-
/** Makes input take full width of container */
|
|
14
|
-
fullWidth?: boolean;
|
|
15
|
-
/** Shows loading spinner in right position */
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
18
|
-
testId?: string;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=Input.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Input.types.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC3D,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ModalProps } from './Modal.types';
|
|
2
|
-
/**
|
|
3
|
-
* Modal component for focused tasks requiring attention.
|
|
4
|
-
* Built on Headless UI Dialog for accessibility.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <Modal
|
|
9
|
-
* isOpen={isOpen}
|
|
10
|
-
* onClose={() => setIsOpen(false)}
|
|
11
|
-
* title="Delete Note?"
|
|
12
|
-
* description="This action cannot be undone."
|
|
13
|
-
* footer={
|
|
14
|
-
* <div className="flex justify-end gap-3">
|
|
15
|
-
* <Button variant="secondary" onClick={() => setIsOpen(false)}>Cancel</Button>
|
|
16
|
-
* <Button variant="danger" onClick={handleDelete}>Delete</Button>
|
|
17
|
-
* </div>
|
|
18
|
-
* }
|
|
19
|
-
* >
|
|
20
|
-
* <p>Are you sure you want to delete this note?</p>
|
|
21
|
-
* </Modal>
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
export declare function Modal({ isOpen, onClose, title, description, children, size, showCloseButton, footer, closeOnOverlay, className, isLoading, testId, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export declare namespace Modal {
|
|
26
|
-
var displayName: string;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AA2B3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,KAAK,CAAC,EACpB,MAAM,EACN,OAAO,EACP,KAAK,EACL,WAAW,EACX,QAAQ,EACR,IAAW,EACX,eAAsB,EACtB,MAAM,EACN,cAAqB,EACrB,SAAS,EACT,SAAiB,EACjB,MAAM,GACP,EAAE,UAAU,2CAmHZ;yBAhIe,KAAK"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type ModalSize = 'sm' | 'md' | 'lg';
|
|
3
|
-
export interface ModalProps {
|
|
4
|
-
/** Controls whether the modal is open */
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
/** Callback when the modal should close */
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
/** Modal title displayed in header */
|
|
9
|
-
title?: string;
|
|
10
|
-
/** Description text displayed below title */
|
|
11
|
-
description?: string;
|
|
12
|
-
/** Modal content */
|
|
13
|
-
children?: ReactNode;
|
|
14
|
-
/** Modal size: sm (400px), md (560px), lg (720px) */
|
|
15
|
-
size?: ModalSize;
|
|
16
|
-
/** Show close button in header */
|
|
17
|
-
showCloseButton?: boolean;
|
|
18
|
-
/** Footer content (typically action buttons) */
|
|
19
|
-
footer?: ReactNode;
|
|
20
|
-
/** Allow closing by clicking overlay */
|
|
21
|
-
closeOnOverlay?: boolean;
|
|
22
|
-
/** Additional class name for the modal panel */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** Shows loading spinner overlay on content */
|
|
25
|
-
isLoading?: boolean;
|
|
26
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
27
|
-
testId?: string;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=Modal.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.types.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,yCAAyC;IACzC,MAAM,EAAE,OAAO,CAAC;IAChB,2CAA2C;IAC3C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qDAAqD;IACrD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kCAAkC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,wCAAwC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { MultiSelectProps } from './MultiSelect.types';
|
|
2
|
-
/**
|
|
3
|
-
* MultiSelect component for selecting multiple values with chips display.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```tsx
|
|
7
|
-
* const [selected, setSelected] = useState<string[]>([]);
|
|
8
|
-
*
|
|
9
|
-
* <MultiSelect
|
|
10
|
-
* options={[
|
|
11
|
-
* { value: '1', label: 'Option 1' },
|
|
12
|
-
* { value: '2', label: 'Option 2' },
|
|
13
|
-
* ]}
|
|
14
|
-
* value={selected}
|
|
15
|
-
* onChange={setSelected}
|
|
16
|
-
* label="Select tags"
|
|
17
|
-
* searchable
|
|
18
|
-
* showSelectAll
|
|
19
|
-
* />
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare function MultiSelect({ options, value, onChange, searchable, onSearch, showSelectAll, selectAllLabel, placeholder, maxDisplayedItems, isLoading, loadingText, emptyText, label, error, helperText, required, disabled, fullWidth, className, testId, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare namespace MultiSelect {
|
|
24
|
-
var displayName: string;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=MultiSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AA8B5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,QAAQ,EACR,UAAkB,EAClB,QAAQ,EACR,aAAqB,EACrB,cAA6B,EAC7B,WAAyB,EACzB,iBAAqB,EACrB,SAAiB,EACjB,WAA0B,EAC1B,SAA8B,EAC9B,KAAK,EACL,KAAK,EACL,UAAU,EACV,QAAgB,EAChB,QAAgB,EAChB,SAAiB,EACjB,SAAS,EACT,MAAM,GACP,EAAE,gBAAgB,2CAkTlB;yBAvUe,WAAW"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export interface MultiSelectOption {
|
|
2
|
-
/** Option value */
|
|
3
|
-
value: string;
|
|
4
|
-
/** Option display label */
|
|
5
|
-
label: string;
|
|
6
|
-
/** Disable this option */
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
}
|
|
9
|
-
export interface MultiSelectProps {
|
|
10
|
-
/** Available options */
|
|
11
|
-
options: MultiSelectOption[];
|
|
12
|
-
/** Currently selected values */
|
|
13
|
-
value: string[];
|
|
14
|
-
/** Callback when selection changes */
|
|
15
|
-
onChange: (values: string[]) => void;
|
|
16
|
-
/** Enable search filtering */
|
|
17
|
-
searchable?: boolean;
|
|
18
|
-
/** Callback for server-side search */
|
|
19
|
-
onSearch?: (query: string) => void;
|
|
20
|
-
/** Show select all option */
|
|
21
|
-
showSelectAll?: boolean;
|
|
22
|
-
/** Label for select all option */
|
|
23
|
-
selectAllLabel?: string;
|
|
24
|
-
/** Placeholder text */
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
/** Max chips to display before collapsing */
|
|
27
|
-
maxDisplayedItems?: number;
|
|
28
|
-
/** Loading state */
|
|
29
|
-
isLoading?: boolean;
|
|
30
|
-
/** Loading text */
|
|
31
|
-
loadingText?: string;
|
|
32
|
-
/** Empty results text */
|
|
33
|
-
emptyText?: string;
|
|
34
|
-
/** Label above the field */
|
|
35
|
-
label?: string;
|
|
36
|
-
/** Error message */
|
|
37
|
-
error?: string;
|
|
38
|
-
/** Helper text */
|
|
39
|
-
helperText?: string;
|
|
40
|
-
/** Required field */
|
|
41
|
-
required?: boolean;
|
|
42
|
-
/** Disabled state */
|
|
43
|
-
disabled?: boolean;
|
|
44
|
-
/** Full width */
|
|
45
|
-
fullWidth?: boolean;
|
|
46
|
-
/** Additional class name */
|
|
47
|
-
className?: string;
|
|
48
|
-
/** Optional test ID for e2e testing. Applied to root element with child elements suffixed. */
|
|
49
|
-
testId?: string;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=MultiSelect.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MultiSelect.types.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/MultiSelect.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,mBAAmB;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,wBAAwB;IACxB,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,gCAAgC;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,sCAAsC;IACtC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sCAAsC;IACtC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,6BAA6B;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,kCAAkC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,oBAAoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8FAA8F;IAC9F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelect/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
2
|
-
import type { OTPInputProps } from './OTPInput.types';
|
|
3
|
-
/**
|
|
4
|
-
* OTPInput - A multi-digit code input for MFA verification
|
|
5
|
-
*
|
|
6
|
-
* Features:
|
|
7
|
-
* - Auto-focus to next input on digit entry
|
|
8
|
-
* - Backspace moves to previous input
|
|
9
|
-
* - Arrow keys navigate between inputs
|
|
10
|
-
* - Paste handling distributes digits across inputs
|
|
11
|
-
* - Full keyboard and screen reader accessibility
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* const [code, setCode] = useState('');
|
|
16
|
-
* <OTPInput value={code} onChange={setCode} />
|
|
17
|
-
* <OTPInput value={code} onChange={setCode} length={4} error="Invalid code" />
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare const OTPInput: FC<OTPInputProps>;
|
|
21
|
-
export default OTPInput;
|
|
22
|
-
//# sourceMappingURL=OTPInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OTPInput.d.ts","sourceRoot":"","sources":["../../../src/components/OTPInput/OTPInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,EAAE,EAIR,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA2KtC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface OTPInputProps {
|
|
2
|
-
/** Number of digits (default: 6) */
|
|
3
|
-
length?: number;
|
|
4
|
-
/** Current value */
|
|
5
|
-
value: string;
|
|
6
|
-
/** Called when value changes */
|
|
7
|
-
onChange: (value: string) => void;
|
|
8
|
-
/** Error message to display */
|
|
9
|
-
error?: string;
|
|
10
|
-
/** Disable the input */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/** Auto-focus first input on mount */
|
|
13
|
-
autoFocus?: boolean;
|
|
14
|
-
/** Label for screen readers */
|
|
15
|
-
label?: string;
|
|
16
|
-
/** Additional class name for the container */
|
|
17
|
-
className?: string;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=OTPInput.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OTPInput.types.d.ts","sourceRoot":"","sources":["../../../src/components/OTPInput/OTPInput.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|