@rfdtech/components 1.1.0 → 1.5.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/README.md +192 -447
- package/dist/components/app-switcher/AppSwitcher.d.ts +1 -2
- package/dist/components/app-switcher/AppSwitcher.d.ts.map +1 -1
- package/dist/components/app-switcher/AppSwitcherItem.d.ts.map +1 -1
- package/dist/components/app-switcher/hooks/useAppSwitcher.d.ts.map +1 -1
- package/dist/components/app-switcher/index.d.ts +1 -5
- package/dist/components/app-switcher/index.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/BulkImportModal.d.ts +1 -2
- package/dist/components/bulk-import-modal/BulkImportModal.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/hooks/useBulkImportFlow.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/internal/FieldMappingSelect.d.ts +14 -0
- package/dist/components/bulk-import-modal/internal/FieldMappingSelect.d.ts.map +1 -0
- package/dist/components/bulk-import-modal/steps/MatchColumnsStep.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/steps/SelectHeaderRowStep.d.ts.map +1 -1
- package/dist/components/bulk-import-modal/steps/ValidateDataStep.d.ts +2 -1
- package/dist/components/bulk-import-modal/steps/ValidateDataStep.d.ts.map +1 -1
- package/dist/components/button/Button.d.ts +4 -0
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button/Button.test.d.ts +2 -0
- package/dist/components/button/Button.test.d.ts.map +1 -0
- package/dist/components/button/Spinner.d.ts +8 -0
- package/dist/components/button/Spinner.d.ts.map +1 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +4 -0
- package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/Checkbox.test.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.test.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/dropdown/Dropdown.d.ts +1 -2
- package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/index.d.ts +1 -3
- package/dist/components/dropdown/index.d.ts.map +1 -1
- package/dist/components/popover/Popover.d.ts +10 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/Popover.test.d.ts +2 -0
- package/dist/components/popover/Popover.test.d.ts.map +1 -0
- package/dist/components/popover/index.d.ts +3 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/radio-group/Radio.d.ts +3 -0
- package/dist/components/radio-group/Radio.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +4 -0
- package/dist/components/radio-group/RadioGroup.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroup.test.d.ts +2 -0
- package/dist/components/radio-group/RadioGroup.test.d.ts.map +1 -0
- package/dist/components/radio-group/RadioGroupContext.d.ts +12 -0
- package/dist/components/radio-group/RadioGroupContext.d.ts.map +1 -0
- package/dist/components/radio-group/index.d.ts +4 -0
- package/dist/components/radio-group/index.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +7 -0
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.test.d.ts +2 -0
- package/dist/components/tabs/Tabs.test.d.ts.map +1 -0
- package/dist/components/tabs/TabsContext.d.ts +12 -0
- package/dist/components/tabs/TabsContext.d.ts.map +1 -0
- package/dist/components/tabs/hooks/useTabsLineIndicator.d.ts +8 -0
- package/dist/components/tabs/hooks/useTabsLineIndicator.d.ts.map +1 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/theme/ThemeContext.d.ts +3 -0
- package/dist/components/theme/ThemeContext.d.ts.map +1 -0
- package/dist/components/theme/ThemeProvider.d.ts +3 -0
- package/dist/components/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/components/theme/ThemeProvider.test.d.ts +2 -0
- package/dist/components/theme/ThemeProvider.test.d.ts.map +1 -0
- package/dist/components/theme/index.d.ts +4 -0
- package/dist/components/theme/index.d.ts.map +1 -0
- package/dist/components/theme/resolveTheme.d.ts +3 -0
- package/dist/components/theme/resolveTheme.d.ts.map +1 -0
- package/dist/components/theme/useTheme.d.ts +3 -0
- package/dist/components/theme/useTheme.d.ts.map +1 -0
- package/dist/index.cjs +81 -31
- package/dist/index.css +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6321 -6670
- package/dist/types/app-switcher.d.ts +7 -46
- package/dist/types/app-switcher.d.ts.map +1 -1
- package/dist/types/bulk-import-modal.d.ts +1 -0
- package/dist/types/bulk-import-modal.d.ts.map +1 -1
- package/dist/types/button.d.ts +17 -0
- package/dist/types/button.d.ts.map +1 -0
- package/dist/types/checkbox.d.ts +23 -0
- package/dist/types/checkbox.d.ts.map +1 -0
- package/dist/types/dropdown.d.ts +9 -76
- package/dist/types/dropdown.d.ts.map +1 -1
- package/dist/types/popover.d.ts +8 -0
- package/dist/types/popover.d.ts.map +1 -0
- package/dist/types/radio-group.d.ts +37 -0
- package/dist/types/radio-group.d.ts.map +1 -0
- package/dist/types/tabs.d.ts +35 -0
- package/dist/types/tabs.d.ts.map +1 -0
- package/dist/types/theme.d.ts +18 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +13 -3
- package/dist/components/app-switcher/api/fetchMeApps.d.ts +0 -6
- package/dist/components/app-switcher/api/fetchMeApps.d.ts.map +0 -1
- package/dist/components/app-switcher/api/fetchMeApps.test.d.ts +0 -2
- package/dist/components/app-switcher/api/fetchMeApps.test.d.ts.map +0 -1
- package/dist/components/app-switcher/api/mapMeAppToAppItem.d.ts +0 -4
- package/dist/components/app-switcher/api/mapMeAppToAppItem.d.ts.map +0 -1
- package/dist/components/app-switcher/api/mapMeAppToAppItem.test.d.ts +0 -2
- package/dist/components/app-switcher/api/mapMeAppToAppItem.test.d.ts.map +0 -1
- package/dist/components/app-switcher/api/meAppsClient.d.ts +0 -3
- package/dist/components/app-switcher/api/meAppsClient.d.ts.map +0 -1
- package/dist/components/app-switcher/api/meAppsClient.test.d.ts +0 -2
- package/dist/components/app-switcher/api/meAppsClient.test.d.ts.map +0 -1
- package/dist/components/app-switcher/hooks/useMeApps.d.ts +0 -3
- package/dist/components/app-switcher/hooks/useMeApps.d.ts.map +0 -1
- package/dist/components/app-switcher/hooks/useMeApps.test.d.ts +0 -2
- package/dist/components/app-switcher/hooks/useMeApps.test.d.ts.map +0 -1
- package/dist/components/data-table/DataTable.d.ts +0 -5
- package/dist/components/data-table/DataTable.d.ts.map +0 -1
- package/dist/components/data-table/DataTable.test.d.ts +0 -2
- package/dist/components/data-table/DataTable.test.d.ts.map +0 -1
- package/dist/components/data-table/hooks/useDataTable.d.ts +0 -3
- package/dist/components/data-table/hooks/useDataTable.d.ts.map +0 -1
- package/dist/components/data-table/index.d.ts +0 -3
- package/dist/components/data-table/index.d.ts.map +0 -1
- package/dist/components/data-table/utils/dataTableClient.d.ts +0 -4
- package/dist/components/data-table/utils/dataTableClient.d.ts.map +0 -1
- package/dist/components/data-table/utils/dataTableClient.test.d.ts +0 -2
- package/dist/components/data-table/utils/dataTableClient.test.d.ts.map +0 -1
- package/dist/components/dropdown/Combobox.d.ts +0 -5
- package/dist/components/dropdown/Combobox.d.ts.map +0 -1
- package/dist/components/dropdown/Combobox.test.d.ts +0 -2
- package/dist/components/dropdown/Combobox.test.d.ts.map +0 -1
- package/dist/components/dropdown/DropdownMenu.d.ts +0 -5
- package/dist/components/dropdown/DropdownMenu.d.ts.map +0 -1
- package/dist/components/dropdown/DropdownMenu.test.d.ts +0 -2
- package/dist/components/dropdown/DropdownMenu.test.d.ts.map +0 -1
- package/dist/components/dropdown/hooks/useComboboxSearch.d.ts +0 -3
- package/dist/components/dropdown/hooks/useComboboxSearch.d.ts.map +0 -1
- package/dist/components/dropdown/hooks/useDropdown.d.ts +0 -4
- package/dist/components/dropdown/hooks/useDropdown.d.ts.map +0 -1
- package/dist/components/dropdown/hooks/useDropdownPosition.d.ts +0 -4
- package/dist/components/dropdown/hooks/useDropdownPosition.d.ts.map +0 -1
- package/dist/components/input-mask/InputMask.d.ts +0 -5
- package/dist/components/input-mask/InputMask.d.ts.map +0 -1
- package/dist/components/input-mask/InputMask.test.d.ts +0 -2
- package/dist/components/input-mask/InputMask.test.d.ts.map +0 -1
- package/dist/components/input-mask/hooks/useInputMask.d.ts +0 -18
- package/dist/components/input-mask/hooks/useInputMask.d.ts.map +0 -1
- package/dist/components/input-mask/index.d.ts +0 -5
- package/dist/components/input-mask/index.d.ts.map +0 -1
- package/dist/components/input-mask/presets.d.ts +0 -8
- package/dist/components/input-mask/presets.d.ts.map +0 -1
- package/dist/components/input-mask/utils/maskUtils.d.ts +0 -13
- package/dist/components/input-mask/utils/maskUtils.d.ts.map +0 -1
- package/dist/components/pagination/Pagination.d.ts +0 -5
- package/dist/components/pagination/Pagination.d.ts.map +0 -1
- package/dist/components/pagination/Pagination.test.d.ts +0 -2
- package/dist/components/pagination/Pagination.test.d.ts.map +0 -1
- package/dist/components/pagination/index.d.ts +0 -4
- package/dist/components/pagination/index.d.ts.map +0 -1
- package/dist/components/pagination/utils.d.ts +0 -6
- package/dist/components/pagination/utils.d.ts.map +0 -1
- package/dist/components/pagination/utils.test.d.ts +0 -2
- package/dist/components/pagination/utils.test.d.ts.map +0 -1
- package/dist/test/fixtures.d.ts +0 -4
- package/dist/test/fixtures.d.ts.map +0 -1
- package/dist/types/data-table.d.ts +0 -41
- package/dist/types/data-table.d.ts.map +0 -1
- package/dist/types/input-mask.d.ts +0 -17
- package/dist/types/input-mask.d.ts.map +0 -1
- package/dist/types/pagination.d.ts +0 -14
- package/dist/types/pagination.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useComboboxSearch.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/hooks/useComboboxSearch.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,yBAAyB,CAAC;AAEjC,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,UAAgB,EAChB,eAAmB,EACnB,OAAc,GACf,EAAE,wBAAwB,GAAG,uBAAuB,CAoEpD"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
import type { UseDropdownOptions, UseDropdownReturn } from "../../../types/dropdown";
|
|
3
|
-
export declare function useDropdown<T extends HTMLElement = HTMLElement, U extends HTMLElement = HTMLElement>(options?: UseDropdownOptions, panelRefProp?: RefObject<T | null>, triggerRefProp?: RefObject<U | null>): UseDropdownReturn<T, U>;
|
|
4
|
-
//# sourceMappingURL=useDropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/hooks/useDropdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAErF,wBAAgB,WAAW,CACzB,CAAC,SAAS,WAAW,GAAG,WAAW,EACnC,CAAC,SAAS,WAAW,GAAG,WAAW,EAEnC,OAAO,GAAE,kBAAuB,EAChC,YAAY,CAAC,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EAClC,cAAc,CAAC,EAAE,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,GACnC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAkEzB"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
import type { DropdownPosition } from "../../../types/dropdown";
|
|
3
|
-
export declare function useDropdownPosition(open: boolean, triggerRef: RefObject<HTMLElement | null>): DropdownPosition | null;
|
|
4
|
-
//# sourceMappingURL=useDropdownPosition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDropdownPosition.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/hooks/useDropdownPosition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,OAAO,EACb,UAAU,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,GACxC,gBAAgB,GAAG,IAAI,CAuCzB"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { InputMaskProps } from "../../types/input-mask";
|
|
2
|
-
import "../../styles/theme.css";
|
|
3
|
-
import "./styles/input-mask.css";
|
|
4
|
-
export declare function InputMask({ mask, value, defaultValue, onChange, onValueChange, ariaLabel, placeholder, disabled, id, name, className, style, inputMode, }: InputMaskProps): import("react").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=InputMask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputMask.d.ts","sourceRoot":"","sources":["../../../src/components/input-mask/InputMask.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AAEjC,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,WAAW,EACX,QAAgB,EAChB,EAAE,EACF,IAAI,EACJ,SAAS,EACT,KAAK,EACL,SAAkB,GACnB,EAAE,cAAc,+BAkChB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InputMask.test.d.ts","sourceRoot":"","sources":["../../../src/components/input-mask/InputMask.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type ChangeEvent, type ClipboardEvent, type KeyboardEvent } from "react";
|
|
2
|
-
interface UseInputMaskOptions {
|
|
3
|
-
mask: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
onChange?: (masked: string) => void;
|
|
7
|
-
onValueChange?: (unmasked: string) => void;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare function useInputMask({ mask, value, defaultValue, onChange, onValueChange, disabled, }: UseInputMaskOptions): {
|
|
11
|
-
inputRef: import("react").RefObject<HTMLInputElement | null>;
|
|
12
|
-
maskedValue: string;
|
|
13
|
-
handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
-
handleKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
15
|
-
handlePaste: (event: ClipboardEvent<HTMLInputElement>) => void;
|
|
16
|
-
};
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=useInputMask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useInputMask.d.ts","sourceRoot":"","sources":["../../../../src/components/input-mask/hooks/useInputMask.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AASf,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,KAAK,EACL,YAAiB,EACjB,QAAQ,EACR,aAAa,EACb,QAAgB,GACjB,EAAE,mBAAmB;;;0BA0CV,WAAW,CAAC,gBAAgB,CAAC;2BAwB7B,aAAa,CAAC,gBAAgB,CAAC;yBA+B/B,cAAc,CAAC,gBAAgB,CAAC;EA8B3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/input-mask/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACjD,YAAY,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const INPUT_MASK_PRESETS: {
|
|
2
|
-
readonly phoneGh: "0## ### ####";
|
|
3
|
-
readonly phoneIntlGh: "+233 ## ### ####";
|
|
4
|
-
readonly date: "##/##/####";
|
|
5
|
-
readonly time: "##:##";
|
|
6
|
-
};
|
|
7
|
-
export type InputMaskPreset = (typeof INPUT_MASK_PRESETS)[keyof typeof INPUT_MASK_PRESETS];
|
|
8
|
-
//# sourceMappingURL=presets.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/components/input-mask/presets.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type MaskSlotType = "digit" | "letter" | "alphanumeric" | "literal";
|
|
2
|
-
export interface MaskSlot {
|
|
3
|
-
type: MaskSlotType;
|
|
4
|
-
char?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function parseMask(mask: string): MaskSlot[];
|
|
7
|
-
export declare function applyMask(rawInput: string, mask: string): string;
|
|
8
|
-
export declare function stripMask(masked: string, mask: string): string;
|
|
9
|
-
export declare function maskedIndexForSlotCount(slotCount: number, mask: string): number;
|
|
10
|
-
export declare function getCursorAfterEdit(prevMasked: string, nextMasked: string, prevCursor: number, mask: string): number;
|
|
11
|
-
export declare function getCursorAfterBackspace(masked: string, cursor: number, mask: string): number;
|
|
12
|
-
export declare function deleteAtCursor(masked: string, cursor: number, mask: string): string;
|
|
13
|
-
//# sourceMappingURL=maskUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maskUtils.d.ts","sourceRoot":"","sources":["../../../../src/components/input-mask/utils/maskUtils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAAC;AAE3E,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAMD,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAgBlD;AA6DD,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAuB9D;AAMD,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAsB/E;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,GACX,MAAM,CAiBR;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG5F;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAenF"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { PaginationProps } from "../../types/pagination";
|
|
2
|
-
import "../../styles/theme.css";
|
|
3
|
-
import "./styles/pagination.css";
|
|
4
|
-
export declare function Pagination({ page, pageSize, total, pageSizeOptions, loading, emptySummaryText, onPageChange, onPageSizeChange, className, style, }: PaginationProps): import("react").JSX.Element;
|
|
5
|
-
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/Pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,OAAO,wBAAwB,CAAC;AAChC,OAAO,yBAAyB,CAAC;AAIjC,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,eAA2C,EAC3C,OAAe,EACf,gBAAsC,EACtC,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,KAAK,GACN,EAAE,eAAe,+BAkEjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.test.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/Pagination.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAMpE;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAQhC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.test.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/utils.test.ts"],"names":[],"mappings":""}
|
package/dist/test/fixtures.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../src/test/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,WAAW,EAAE,KAOzB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,cASlC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, ReactNode } from "react";
|
|
2
|
-
export interface DataTableColumn<T = Record<string, unknown>> {
|
|
3
|
-
key: string;
|
|
4
|
-
label: string;
|
|
5
|
-
sortable?: boolean;
|
|
6
|
-
render?: (row: T, value: unknown) => ReactNode;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
}
|
|
9
|
-
export interface DataTableSort {
|
|
10
|
-
key: string;
|
|
11
|
-
direction: "asc" | "desc";
|
|
12
|
-
}
|
|
13
|
-
export interface DataTableProps<T = Record<string, unknown>> {
|
|
14
|
-
columns: DataTableColumn<T>[];
|
|
15
|
-
data: T[];
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
getRowId?: (row: T, index: number) => string | number;
|
|
18
|
-
pageSize?: number;
|
|
19
|
-
pageSizeOptions?: number[];
|
|
20
|
-
emptyText?: string;
|
|
21
|
-
loadingLabel?: string;
|
|
22
|
-
onRowClick?: (row: T) => void;
|
|
23
|
-
className?: string;
|
|
24
|
-
style?: CSSProperties;
|
|
25
|
-
}
|
|
26
|
-
export interface UseDataTableOptions<T> {
|
|
27
|
-
columns: DataTableColumn<T>[];
|
|
28
|
-
data: T[];
|
|
29
|
-
initialPageSize?: number;
|
|
30
|
-
}
|
|
31
|
-
export interface UseDataTableReturn<T> {
|
|
32
|
-
rows: T[];
|
|
33
|
-
total: number;
|
|
34
|
-
page: number;
|
|
35
|
-
pageSize: number;
|
|
36
|
-
sort: DataTableSort | null;
|
|
37
|
-
setPage: (page: number) => void;
|
|
38
|
-
setPageSize: (pageSize: number) => void;
|
|
39
|
-
toggleSort: (columnKey: string) => void;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=data-table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../src/types/data-table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,WAAW,eAAe,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1D,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,OAAO,KAAK,SAAS,CAAC;IAC/C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,aAAa,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, HTMLAttributes } from "react";
|
|
2
|
-
export interface InputMaskProps {
|
|
3
|
-
mask: string;
|
|
4
|
-
value?: string;
|
|
5
|
-
defaultValue?: string;
|
|
6
|
-
onChange?: (masked: string) => void;
|
|
7
|
-
onValueChange?: (unmasked: string) => void;
|
|
8
|
-
ariaLabel: string;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
id?: string;
|
|
12
|
-
name?: string;
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
inputMode?: HTMLAttributes<HTMLInputElement>["inputMode"];
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=input-mask.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-mask.d.ts","sourceRoot":"","sources":["../../src/types/input-mask.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC,WAAW,CAAC,CAAC;CAC3D"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties } from "react";
|
|
2
|
-
export interface PaginationProps {
|
|
3
|
-
page: number;
|
|
4
|
-
pageSize: number;
|
|
5
|
-
total: number;
|
|
6
|
-
pageSizeOptions?: number[];
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
emptySummaryText?: string;
|
|
9
|
-
onPageChange: (page: number) => void;
|
|
10
|
-
onPageSizeChange: (pageSize: number) => void;
|
|
11
|
-
className?: string;
|
|
12
|
-
style?: CSSProperties;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/types/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB"}
|