@dreamtree-org/twreact-ui 1.1.25 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/core/Accordion.d.ts +21 -0
- package/dist/components/core/Accordion.d.ts.map +1 -0
- package/dist/components/core/Button.d.ts +4 -0
- package/dist/components/core/Button.d.ts.map +1 -0
- package/dist/components/core/Checkbox.d.ts +4 -0
- package/dist/components/core/Checkbox.d.ts.map +1 -0
- package/dist/components/core/ColorPicker.d.ts +2 -0
- package/dist/components/core/ColorPicker.d.ts.map +1 -0
- package/dist/components/core/DatePicker.d.ts +4 -0
- package/dist/components/core/DatePicker.d.ts.map +1 -0
- package/dist/components/core/DateRangePicker.d.ts +21 -0
- package/dist/components/core/DateRangePicker.d.ts.map +1 -0
- package/dist/components/core/Form.d.ts +16 -0
- package/dist/components/core/Form.d.ts.map +1 -0
- package/dist/components/core/Input.d.ts +4 -0
- package/dist/components/core/Input.d.ts.map +1 -0
- package/dist/components/core/Loader.d.ts +4 -0
- package/dist/components/core/Loader.d.ts.map +1 -0
- package/dist/components/core/LocationPicker.d.ts +10 -0
- package/dist/components/core/LocationPicker.d.ts.map +1 -0
- package/dist/components/core/PriceRangePicker.d.ts +52 -0
- package/dist/components/core/PriceRangePicker.d.ts.map +1 -0
- package/dist/components/core/ProgressBar.d.ts +17 -0
- package/dist/components/core/ProgressBar.d.ts.map +1 -0
- package/dist/components/core/Radio.d.ts +4 -0
- package/dist/components/core/Radio.d.ts.map +1 -0
- package/dist/components/core/Rate.d.ts +18 -0
- package/dist/components/core/Rate.d.ts.map +1 -0
- package/dist/components/core/RoundedTag.d.ts +16 -0
- package/dist/components/core/RoundedTag.d.ts.map +1 -0
- package/dist/components/core/Select.d.ts +4 -0
- package/dist/components/core/Select.d.ts.map +1 -0
- package/dist/components/core/Skeleton.d.ts +15 -0
- package/dist/components/core/Skeleton.d.ts.map +1 -0
- package/dist/components/core/SpeechToText.d.ts +4 -0
- package/dist/components/core/SpeechToText.d.ts.map +1 -0
- package/dist/components/core/Switch.d.ts +2 -0
- package/dist/components/core/Switch.d.ts.map +1 -0
- package/dist/components/core/Table/ActionMenu.d.ts +11 -0
- package/dist/components/core/Table/ActionMenu.d.ts.map +1 -0
- package/dist/components/core/Table/ColumnMenu.d.ts +11 -0
- package/dist/components/core/Table/ColumnMenu.d.ts.map +1 -0
- package/dist/components/core/Table/MobileCard.d.ts +35 -0
- package/dist/components/core/Table/MobileCard.d.ts.map +1 -0
- package/dist/components/core/Table/MobileFilters.d.ts +17 -0
- package/dist/components/core/Table/MobileFilters.d.ts.map +1 -0
- package/dist/components/core/Table/Pagination.d.ts +19 -0
- package/dist/components/core/Table/Pagination.d.ts.map +1 -0
- package/dist/components/core/Table/Table.d.ts +48 -0
- package/dist/components/core/Table/Table.d.ts.map +1 -0
- package/dist/components/core/Table/TableRow.d.ts +35 -0
- package/dist/components/core/Table/TableRow.d.ts.map +1 -0
- package/dist/components/core/Table/constants.d.ts +7 -0
- package/dist/components/core/Table/constants.d.ts.map +1 -0
- package/dist/components/core/Table/helpers.d.ts +2 -0
- package/dist/components/core/Table/helpers.d.ts.map +1 -0
- package/dist/components/core/Table/index.d.ts +11 -0
- package/dist/components/core/Table/index.d.ts.map +1 -0
- package/dist/components/core/Table/useClickOutside.d.ts +9 -0
- package/dist/components/core/Table/useClickOutside.d.ts.map +1 -0
- package/dist/components/core/TableOld.d.ts +41 -0
- package/dist/components/core/TableOld.d.ts.map +1 -0
- package/dist/components/core/Tabs.d.ts +42 -0
- package/dist/components/core/Tabs.d.ts.map +1 -0
- package/dist/components/core/TextToSpeech.d.ts +9 -0
- package/dist/components/core/TextToSpeech.d.ts.map +1 -0
- package/dist/components/core/ThreeDotPopover.d.ts +37 -0
- package/dist/components/core/ThreeDotPopover.d.ts.map +1 -0
- package/dist/components/core/Tooltip.d.ts +36 -0
- package/dist/components/core/Tooltip.d.ts.map +1 -0
- package/dist/components/feedback/Alert.d.ts +11 -0
- package/dist/components/feedback/Alert.d.ts.map +1 -0
- package/dist/components/feedback/Dialog.d.ts +33 -0
- package/dist/components/feedback/Dialog.d.ts.map +1 -0
- package/dist/components/feedback/Loader.d.ts +21 -0
- package/dist/components/feedback/Loader.d.ts.map +1 -0
- package/dist/components/feedback/Toast.d.ts +28 -0
- package/dist/components/feedback/Toast.d.ts.map +1 -0
- package/dist/components/feedback/Tooltip.d.ts +11 -0
- package/dist/components/feedback/Tooltip.d.ts.map +1 -0
- package/dist/components/navigation/Breadcrumbs.d.ts +11 -0
- package/dist/components/navigation/Breadcrumbs.d.ts.map +1 -0
- package/dist/components/navigation/Dropdown.d.ts +9 -0
- package/dist/components/navigation/Dropdown.d.ts.map +1 -0
- package/dist/components/navigation/FootNav.d.ts +7 -0
- package/dist/components/navigation/FootNav.d.ts.map +1 -0
- package/dist/components/navigation/Navbar.d.ts +31 -0
- package/dist/components/navigation/Navbar.d.ts.map +1 -0
- package/dist/components/navigation/Sidebar.d.ts +29 -0
- package/dist/components/navigation/Sidebar.d.ts.map +1 -0
- package/dist/components/utility/Accordion.d.ts +10 -0
- package/dist/components/utility/Accordion.d.ts.map +1 -0
- package/dist/components/utility/Avatar.d.ts +12 -0
- package/dist/components/utility/Avatar.d.ts.map +1 -0
- package/dist/components/utility/Badge.d.ts +10 -0
- package/dist/components/utility/Badge.d.ts.map +1 -0
- package/dist/components/utility/Card.d.ts +40 -0
- package/dist/components/utility/Card.d.ts.map +1 -0
- package/dist/components/utility/Carousel.d.ts +3 -0
- package/dist/components/utility/Carousel.d.ts.map +1 -0
- package/dist/components/utility/Condition.d.ts +7 -0
- package/dist/components/utility/Condition.d.ts.map +1 -0
- package/dist/components/utility/FileUpload.d.ts +13 -0
- package/dist/components/utility/FileUpload.d.ts.map +1 -0
- package/dist/components/utility/Pagination.d.ts +12 -0
- package/dist/components/utility/Pagination.d.ts.map +1 -0
- package/dist/components/utility/Stepper.d.ts +11 -0
- package/dist/components/utility/Stepper.d.ts.map +1 -0
- package/dist/components/utility/Tabs.d.ts +11 -0
- package/dist/components/utility/Tabs.d.ts.map +1 -0
- package/dist/components/utility/VideoStreamPlayer.d.ts +7 -0
- package/dist/components/utility/VideoStreamPlayer.d.ts.map +1 -0
- package/dist/hooks/useApi.d.ts +28 -0
- package/dist/hooks/useApi.d.ts.map +1 -0
- package/dist/hooks/useMixins.d.ts +24 -0
- package/dist/hooks/useMixins.d.ts.map +1 -0
- package/dist/hooks/useTheme.d.ts +17 -0
- package/dist/hooks/useTheme.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.css +1 -1
- package/dist/index.esm.js +3765 -3241
- package/dist/index.js +3773 -3249
- package/dist/store/index.d.ts +9 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/store.d.ts +11 -0
- package/dist/store/store.d.ts.map +1 -0
- package/dist/store/storeSlice.d.ts +15 -0
- package/dist/store/storeSlice.d.ts.map +1 -0
- package/dist/types/index.d.ts +596 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/emitter.d.ts +28 -0
- package/dist/utils/emitter.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +53 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/package.json +21 -5
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* item.leftIcon may be:
|
|
3
|
+
* - ReactNode (e.g. <svg/>)
|
|
4
|
+
* - (index: number, item: any) => ReactNode
|
|
5
|
+
*/
|
|
6
|
+
export default function Accordion({ items, allowMultiple, defaultOpenIndexes, onChange, className, headerClassName, contentClassName, chevronPosition, chevronIcon, bordered, rounded, size, transitionDuration, }: {
|
|
7
|
+
items?: never[] | undefined;
|
|
8
|
+
allowMultiple?: boolean | undefined;
|
|
9
|
+
defaultOpenIndexes?: never[] | undefined;
|
|
10
|
+
onChange: any;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
headerClassName?: string | undefined;
|
|
13
|
+
contentClassName?: string | undefined;
|
|
14
|
+
chevronPosition?: string | undefined;
|
|
15
|
+
chevronIcon?: null | undefined;
|
|
16
|
+
bordered?: boolean | undefined;
|
|
17
|
+
rounded?: string | undefined;
|
|
18
|
+
size?: string | undefined;
|
|
19
|
+
transitionDuration?: number | undefined;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/core/Accordion.jsx"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH;;;;;;;;;;;;;;4CAyOC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/core/Button.jsx"],"names":[],"mappings":";AAIA,gFAgDG;kBApD+B,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/core/Checkbox.jsx"],"names":[],"mappings":";AAgBA,kFAwJE;kBAjKK,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/ColorPicker.jsx"],"names":[],"mappings":"AAoJA,yFAsJC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/DatePicker.jsx"],"names":[],"mappings":";AA6BA,oFA2bE;kBAjdK,OAAO"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default DateRangePicker;
|
|
2
|
+
declare function DateRangePicker({ value, onChange, placeholder, label, error, disabled, required, minDate, maxDate, className, weekStartsOn, portal, displayFormat, locale, showClear, closeOnSelect, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
value: any;
|
|
5
|
+
onChange: any;
|
|
6
|
+
placeholder?: string | undefined;
|
|
7
|
+
label: any;
|
|
8
|
+
error: any;
|
|
9
|
+
disabled: any;
|
|
10
|
+
required: any;
|
|
11
|
+
minDate: any;
|
|
12
|
+
maxDate: any;
|
|
13
|
+
className: any;
|
|
14
|
+
weekStartsOn?: number | undefined;
|
|
15
|
+
portal?: boolean | undefined;
|
|
16
|
+
displayFormat?: string | undefined;
|
|
17
|
+
locale?: undefined;
|
|
18
|
+
showClear?: boolean | undefined;
|
|
19
|
+
closeOnSelect?: boolean | undefined;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
//# sourceMappingURL=DateRangePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/DateRangePicker.jsx"],"names":[],"mappings":";AA+CA;;;;;;;;;;;;;;;;;;4CAqcC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default Form;
|
|
2
|
+
declare function Form({ fields, onSubmit, defaultValues, validationSchema, className, submitText, resetText, submitButtonClass, resetButtonClass, showReset, submitDisabled, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
fields?: never[] | undefined;
|
|
5
|
+
onSubmit: any;
|
|
6
|
+
defaultValues?: {} | undefined;
|
|
7
|
+
validationSchema: any;
|
|
8
|
+
className: any;
|
|
9
|
+
submitText?: string | undefined;
|
|
10
|
+
resetText?: string | undefined;
|
|
11
|
+
submitButtonClass: any;
|
|
12
|
+
resetButtonClass: any;
|
|
13
|
+
showReset?: boolean | undefined;
|
|
14
|
+
submitDisabled?: boolean | undefined;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../src/components/core/Form.jsx"],"names":[],"mappings":";AASA;;;;;;;;;;;;;4CAqbC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/core/Input.jsx"],"names":[],"mappings":";AAIA,+EAsNG;kBA1NmE,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/components/core/Loader.jsx"],"names":[],"mappings":";AAkBA,gFAwIG;kBAzJ+B,OAAO"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default function LocationPicker({ value, onChange, inputProps, icon, iconProps, iconPosition, placeholder, }: {
|
|
2
|
+
value?: null | undefined;
|
|
3
|
+
onChange: any;
|
|
4
|
+
inputProps?: {} | undefined;
|
|
5
|
+
icon?: null | undefined;
|
|
6
|
+
iconProps?: {} | undefined;
|
|
7
|
+
iconPosition?: string | undefined;
|
|
8
|
+
placeholder?: string | undefined;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=LocationPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LocationPicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/LocationPicker.jsx"],"names":[],"mappings":"AAGA;;;;;;;;4CA0JC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PriceRangeSlider - UI library component (Tailwind)
|
|
3
|
+
*
|
|
4
|
+
* Props
|
|
5
|
+
* - min: number (default 0)
|
|
6
|
+
* - max: number (default 1000)
|
|
7
|
+
* - step: number (default 1)
|
|
8
|
+
* - minGap: number (minimum distance between thumbs, default 5)
|
|
9
|
+
* - value: { min: number, max: number } | null (controlled)
|
|
10
|
+
* - defaultValue: { min: number, max: number } (uncontrolled initial)
|
|
11
|
+
* - onChange: (value) => void
|
|
12
|
+
* - onFinalChange: (value) => void // called on mouseup/touchend or Enter in inputs
|
|
13
|
+
* - showInputs: boolean (default true)
|
|
14
|
+
* - showTooltips: boolean (default true)
|
|
15
|
+
* - disabled: boolean
|
|
16
|
+
* - presets: Array<{ id: string|number, label: string, value: {min:number,max:number} }>
|
|
17
|
+
* - formatValue: (n) => string (formatting callback, default: n => n)
|
|
18
|
+
* - className: string (container custom classes)
|
|
19
|
+
* - size: 'sm' | 'md' | 'lg' (affects thumb size & spacing)
|
|
20
|
+
* - colorClass: Tailwind class for active track/thumb, default 'bg-pink-500'
|
|
21
|
+
* - ariaLabel: string
|
|
22
|
+
*
|
|
23
|
+
* Usage notes
|
|
24
|
+
* - Controlled mode: pass `value` and handle updates via onChange.
|
|
25
|
+
* - Uncontrolled mode: omit `value` and use `defaultValue`.
|
|
26
|
+
*
|
|
27
|
+
* Accessibility
|
|
28
|
+
* - Inputs are labelled and thumbs are keyboard-focusable
|
|
29
|
+
*/
|
|
30
|
+
export default function PriceRangePicker({ min, max, step, minGap, value, defaultValue, onChange, onFinalChange, showInputs, showTooltips, disabled, presets, formatValue, className, size, colorClass, ariaLabel, }: {
|
|
31
|
+
min?: number | undefined;
|
|
32
|
+
max?: number | undefined;
|
|
33
|
+
step?: number | undefined;
|
|
34
|
+
minGap?: number | undefined;
|
|
35
|
+
value?: null | undefined;
|
|
36
|
+
defaultValue?: {
|
|
37
|
+
min: number;
|
|
38
|
+
max: number;
|
|
39
|
+
} | undefined;
|
|
40
|
+
onChange?: (() => void) | undefined;
|
|
41
|
+
onFinalChange?: (() => void) | undefined;
|
|
42
|
+
showInputs?: boolean | undefined;
|
|
43
|
+
showTooltips?: boolean | undefined;
|
|
44
|
+
disabled?: boolean | undefined;
|
|
45
|
+
presets?: never[] | undefined;
|
|
46
|
+
formatValue?: ((n: any) => string) | undefined;
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
size?: string | undefined;
|
|
49
|
+
colorClass?: string | undefined;
|
|
50
|
+
ariaLabel?: string | undefined;
|
|
51
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
//# sourceMappingURL=PriceRangePicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceRangePicker.d.ts","sourceRoot":"","sources":["../../../src/components/core/PriceRangePicker.jsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;;;;;;;;;;;;;;;;;;4CAsTC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default function ProgressBar({ value, max, size, showValue, rounded, color, bgColor, valueColor, striped, animated, label, ariaLabel, className, style, }: {
|
|
2
|
+
value?: number | undefined;
|
|
3
|
+
max?: number | undefined;
|
|
4
|
+
size?: string | undefined;
|
|
5
|
+
showValue?: boolean | undefined;
|
|
6
|
+
rounded?: boolean | undefined;
|
|
7
|
+
color?: string | undefined;
|
|
8
|
+
bgColor?: string | undefined;
|
|
9
|
+
valueColor?: undefined;
|
|
10
|
+
striped?: boolean | undefined;
|
|
11
|
+
animated?: boolean | undefined;
|
|
12
|
+
label?: string | undefined;
|
|
13
|
+
ariaLabel?: string | undefined;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
style?: {} | undefined;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../../src/components/core/ProgressBar.jsx"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;4CA0FC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/core/Radio.jsx"],"names":[],"mappings":";AAYA,+EA8HG;kBAzI2D,OAAO"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export default function Rate({ count, value, defaultValue, readOnly, icon, toggledIcon, activeColor, inactiveColor, size, onChange, onClick, text, className, id, name, }: {
|
|
2
|
+
count?: number | undefined;
|
|
3
|
+
value: any;
|
|
4
|
+
defaultValue?: number | undefined;
|
|
5
|
+
readOnly?: boolean | undefined;
|
|
6
|
+
icon: any;
|
|
7
|
+
toggledIcon: any;
|
|
8
|
+
activeColor?: string | undefined;
|
|
9
|
+
inactiveColor?: string | undefined;
|
|
10
|
+
size?: number | undefined;
|
|
11
|
+
onChange: any;
|
|
12
|
+
onClick: any;
|
|
13
|
+
text: any;
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
id: any;
|
|
16
|
+
name: any;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=Rate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rate.d.ts","sourceRoot":"","sources":["../../../src/components/core/Rate.jsx"],"names":[],"mappings":"AAyCA;;;;;;;;;;;;;;;;4CA+IC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default function RoundedTag({ label, avatarSrc, avatarAlt, initials, size, onRemove, onClick, className, closeClass, ariaLabel, avatarPosition, avatarClassname, initialClassname, }: {
|
|
2
|
+
label: any;
|
|
3
|
+
avatarSrc?: null | undefined;
|
|
4
|
+
avatarAlt?: string | undefined;
|
|
5
|
+
initials?: string | undefined;
|
|
6
|
+
size?: string | undefined;
|
|
7
|
+
onRemove?: null | undefined;
|
|
8
|
+
onClick?: null | undefined;
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
closeClass?: string | undefined;
|
|
11
|
+
ariaLabel?: string | undefined;
|
|
12
|
+
avatarPosition?: string | undefined;
|
|
13
|
+
avatarClassname?: string | undefined;
|
|
14
|
+
initialClassname?: string | undefined;
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=RoundedTag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RoundedTag.d.ts","sourceRoot":"","sources":["../../../src/components/core/RoundedTag.jsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;4CA0HC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/core/Select.jsx"],"names":[],"mappings":";AAiDA,gFA6kBE;kBAxnBK,OAAO"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default function Skeleton({ count, circle, height, width, rounded, animated, active, gap, inline, className, children, style, }: {
|
|
2
|
+
count?: number | undefined;
|
|
3
|
+
circle?: boolean | undefined;
|
|
4
|
+
height?: number | undefined;
|
|
5
|
+
width: any;
|
|
6
|
+
rounded?: boolean | undefined;
|
|
7
|
+
animated?: boolean | undefined;
|
|
8
|
+
active?: boolean | undefined;
|
|
9
|
+
gap?: string | undefined;
|
|
10
|
+
inline?: boolean | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
children?: null | undefined;
|
|
13
|
+
style?: {} | undefined;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/core/Skeleton.jsx"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;4CAkFC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpeechToText.d.ts","sourceRoot":"","sources":["../../../src/components/core/SpeechToText.jsx"],"names":[],"mappings":";AAcA,sFAiPE;kBAxPK,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../src/components/core/Switch.jsx"],"names":[],"mappings":"AAqBA,oFA4JC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default function ActionMenu({ actions, row, onAction, onClose, menuRef, anchorEl, theme, }: {
|
|
2
|
+
actions?: never[] | undefined;
|
|
3
|
+
row: any;
|
|
4
|
+
onAction: any;
|
|
5
|
+
onClose: any;
|
|
6
|
+
menuRef: any;
|
|
7
|
+
anchorEl: any;
|
|
8
|
+
theme: any;
|
|
9
|
+
}): React.ReactPortal;
|
|
10
|
+
import React from "react";
|
|
11
|
+
//# sourceMappingURL=ActionMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/ActionMenu.jsx"],"names":[],"mappings":"AAOA;;;;;;;;sBAkMC;kBAzMgD,OAAO"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default ColumnMenu;
|
|
2
|
+
/**
|
|
3
|
+
* Column visibility toggle menu
|
|
4
|
+
*/
|
|
5
|
+
declare function ColumnMenu({ columns, onToggle, menuRef, theme }: {
|
|
6
|
+
columns: any;
|
|
7
|
+
onToggle: any;
|
|
8
|
+
menuRef: any;
|
|
9
|
+
theme: any;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=ColumnMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColumnMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/ColumnMenu.jsx"],"names":[],"mappings":";AAKA;;GAEG;AACH;;;;;4CAgCC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default MobileCard;
|
|
2
|
+
/**
|
|
3
|
+
* Mobile card view for a single table row
|
|
4
|
+
*/
|
|
5
|
+
declare function MobileCard({ row, rowIndexInPage, startIndex, selectedRows, expandedRows, rowClass, stripedRows, stripedColors, theme, onRowClick, hasDetails, selectable, showSerial, withAction, visibleColumns, cellClass, DetailsComponent, actionsToUse, activeActionRowKey, activeAnchorEl, actionButtonRefs, actionMenuRef, toggleExpandRow, handleSelectRow, toggleActions, handleOnAction, closeActionMenu, renderCell, }: {
|
|
6
|
+
row: any;
|
|
7
|
+
rowIndexInPage: any;
|
|
8
|
+
startIndex: any;
|
|
9
|
+
selectedRows: any;
|
|
10
|
+
expandedRows: any;
|
|
11
|
+
rowClass: any;
|
|
12
|
+
stripedRows: any;
|
|
13
|
+
stripedColors: any;
|
|
14
|
+
theme: any;
|
|
15
|
+
onRowClick: any;
|
|
16
|
+
hasDetails: any;
|
|
17
|
+
selectable: any;
|
|
18
|
+
showSerial: any;
|
|
19
|
+
withAction: any;
|
|
20
|
+
visibleColumns: any;
|
|
21
|
+
cellClass: any;
|
|
22
|
+
DetailsComponent: any;
|
|
23
|
+
actionsToUse: any;
|
|
24
|
+
activeActionRowKey: any;
|
|
25
|
+
activeAnchorEl: any;
|
|
26
|
+
actionButtonRefs: any;
|
|
27
|
+
actionMenuRef: any;
|
|
28
|
+
toggleExpandRow: any;
|
|
29
|
+
handleSelectRow: any;
|
|
30
|
+
toggleActions: any;
|
|
31
|
+
handleOnAction: any;
|
|
32
|
+
closeActionMenu: any;
|
|
33
|
+
renderCell: any;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=MobileCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileCard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/MobileCard.jsx"],"names":[],"mappings":";AAMA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2KC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default MobileFilters;
|
|
2
|
+
/**
|
|
3
|
+
* Mobile-specific filters panel
|
|
4
|
+
*/
|
|
5
|
+
declare function MobileFilters({ showMobileFilters, setShowMobileFilters, globalSearch, searchInput, setSearchInput, onGlobalKeyDown, filterable, visibleColumns, filters, handleFilter, }: {
|
|
6
|
+
showMobileFilters: any;
|
|
7
|
+
setShowMobileFilters: any;
|
|
8
|
+
globalSearch: any;
|
|
9
|
+
searchInput: any;
|
|
10
|
+
setSearchInput: any;
|
|
11
|
+
onGlobalKeyDown: any;
|
|
12
|
+
filterable: any;
|
|
13
|
+
visibleColumns: any;
|
|
14
|
+
filters: any;
|
|
15
|
+
handleFilter: any;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=MobileFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MobileFilters.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/MobileFilters.jsx"],"names":[],"mappings":";AAGA;;GAEG;AACH;;;;;;;;;;;4CA2DC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function PaginationHeader({ currentPage, totalPages, onPageChange, theme, }: {
|
|
2
|
+
currentPage: any;
|
|
3
|
+
totalPages: any;
|
|
4
|
+
onPageChange: any;
|
|
5
|
+
theme: any;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export function PaginationFooter({ currentPage, totalPages, onPageChange, isMobileView, theme, }: {
|
|
8
|
+
currentPage: any;
|
|
9
|
+
totalPages: any;
|
|
10
|
+
onPageChange: any;
|
|
11
|
+
isMobileView: any;
|
|
12
|
+
theme: any;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare namespace _default {
|
|
15
|
+
export { PaginationHeader };
|
|
16
|
+
export { PaginationFooter };
|
|
17
|
+
}
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/Pagination.jsx"],"names":[],"mappings":"AAiBA;;;;;4CAkDC;AAGD;;;;;;4CA4HC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export default Table;
|
|
2
|
+
declare function Table({ data: initialData, columns: initialColumns, sortable, filterable, selectable, pagination, pageSize, onSort, onFilter, onFetch, onFilterChange, onSelectionChange, onRowClick, hasDetails, DetailsComponent, className, withAction, onAction, actions, showSerial, cellClass, rowClass, globalSearch, limitOptions, showLimitSelector, onLimitChange, showReloadButton, renderReloadButton, onReload, stripedRows, theme, responsiveBreakpoint, serverSide, totalRecords, pageNumber, TheadComponent, TfootComponent, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
data?: any[] | undefined;
|
|
5
|
+
columns?: any[] | undefined;
|
|
6
|
+
sortable?: boolean | undefined;
|
|
7
|
+
filterable?: boolean | undefined;
|
|
8
|
+
selectable?: boolean | undefined;
|
|
9
|
+
pagination?: boolean | undefined;
|
|
10
|
+
pageSize?: number | undefined;
|
|
11
|
+
onSort: any;
|
|
12
|
+
onFilter: any;
|
|
13
|
+
onFetch: any;
|
|
14
|
+
onFilterChange: any;
|
|
15
|
+
onSelectionChange: any;
|
|
16
|
+
onRowClick: any;
|
|
17
|
+
hasDetails?: boolean | undefined;
|
|
18
|
+
DetailsComponent?: null | undefined;
|
|
19
|
+
className: any;
|
|
20
|
+
withAction?: boolean | undefined;
|
|
21
|
+
onAction: any;
|
|
22
|
+
actions: any;
|
|
23
|
+
showSerial?: boolean | undefined;
|
|
24
|
+
cellClass: any;
|
|
25
|
+
rowClass: any;
|
|
26
|
+
globalSearch?: boolean | undefined;
|
|
27
|
+
limitOptions?: number[] | undefined;
|
|
28
|
+
showLimitSelector?: boolean | undefined;
|
|
29
|
+
onLimitChange: any;
|
|
30
|
+
showReloadButton?: boolean | undefined;
|
|
31
|
+
renderReloadButton: any;
|
|
32
|
+
onReload: any;
|
|
33
|
+
stripedRows?: boolean | undefined;
|
|
34
|
+
theme?: {
|
|
35
|
+
stripedColors: string[];
|
|
36
|
+
rowHover: string;
|
|
37
|
+
accentColor: string;
|
|
38
|
+
menuBg: string;
|
|
39
|
+
menuItemHover: string;
|
|
40
|
+
} | undefined;
|
|
41
|
+
responsiveBreakpoint?: number | undefined;
|
|
42
|
+
serverSide?: boolean | undefined;
|
|
43
|
+
totalRecords?: number | undefined;
|
|
44
|
+
pageNumber: any;
|
|
45
|
+
TheadComponent?: null | undefined;
|
|
46
|
+
TfootComponent?: null | undefined;
|
|
47
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/Table.jsx"],"names":[],"mappings":";AAqCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA2vBC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default TableRow;
|
|
2
|
+
/**
|
|
3
|
+
* Desktop table row component
|
|
4
|
+
*/
|
|
5
|
+
declare function TableRow({ row, rowIndexInPage, startIndex, selectedRows, expandedRows, rowClass, stripedRows, theme, onRowClick, hasDetails, showSerial, selectable, visibleColumns, cellClass, withAction, visibleCount, DetailsComponent, actionsToUse, activeActionRowKey, activeAnchorEl, actionButtonRefs, actionMenuRef, toggleExpandRow, handleSelectRow, toggleActions, handleOnAction, closeActionMenu, renderCell, }: {
|
|
6
|
+
row: any;
|
|
7
|
+
rowIndexInPage: any;
|
|
8
|
+
startIndex: any;
|
|
9
|
+
selectedRows: any;
|
|
10
|
+
expandedRows: any;
|
|
11
|
+
rowClass: any;
|
|
12
|
+
stripedRows: any;
|
|
13
|
+
theme: any;
|
|
14
|
+
onRowClick: any;
|
|
15
|
+
hasDetails: any;
|
|
16
|
+
showSerial: any;
|
|
17
|
+
selectable: any;
|
|
18
|
+
visibleColumns: any;
|
|
19
|
+
cellClass: any;
|
|
20
|
+
withAction: any;
|
|
21
|
+
visibleCount: any;
|
|
22
|
+
DetailsComponent: any;
|
|
23
|
+
actionsToUse: any;
|
|
24
|
+
activeActionRowKey: any;
|
|
25
|
+
activeAnchorEl: any;
|
|
26
|
+
actionButtonRefs: any;
|
|
27
|
+
actionMenuRef: any;
|
|
28
|
+
toggleExpandRow: any;
|
|
29
|
+
handleSelectRow: any;
|
|
30
|
+
toggleActions: any;
|
|
31
|
+
handleOnAction: any;
|
|
32
|
+
closeActionMenu: any;
|
|
33
|
+
renderCell: any;
|
|
34
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=TableRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableRow.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/TableRow.jsx"],"names":[],"mappings":";AAMA;;GAEG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CA4KC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/constants.jsx"],"names":[],"mappings":"AAGA;;;;;IAmBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/helpers.js"],"names":[],"mappings":"AAGO,8DAKN"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as ActionMenu } from "./ActionMenu.jsx";
|
|
2
|
+
export { default as ColumnMenu } from "./ColumnMenu.jsx";
|
|
3
|
+
export { default as MobileCard } from "./MobileCard.jsx";
|
|
4
|
+
export { default as MobileFilters } from "./MobileFilters.jsx";
|
|
5
|
+
export { default as TableRow } from "./TableRow.jsx";
|
|
6
|
+
export { getRowKey } from "./helpers.js";
|
|
7
|
+
export { useClickOutside } from "./useClickOutside.js";
|
|
8
|
+
export { DEFAULT_ACTIONS } from "./constants.jsx";
|
|
9
|
+
export { default, default as Table } from "./Table.jsx";
|
|
10
|
+
export { PaginationHeader, PaginationFooter } from "./Pagination.jsx";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook to detect clicks outside of specified refs
|
|
3
|
+
* @param {Array} refs - Array of React refs to check
|
|
4
|
+
* @param {boolean} isActive - Whether the hook should be active
|
|
5
|
+
* @param {Function} onClickOutside - Callback when click is detected outside
|
|
6
|
+
*/
|
|
7
|
+
export function useClickOutside(refs: any[], isActive: boolean, onClickOutside: Function): void;
|
|
8
|
+
export default useClickOutside;
|
|
9
|
+
//# sourceMappingURL=useClickOutside.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../../../src/components/core/Table/useClickOutside.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,uDAHW,OAAO,kCAiBjB"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export default TableOld;
|
|
2
|
+
declare function TableOld({ data, columns, sortable, filterable, selectable, pagination, pageSize, onSort, onFilter, onFetch, onFilterChange, onSelectionChange, onRowClick, hasDetails, DetailsComponent, className, withAction, onAction, actions, showSerial, cellClass, rowClass, globalSearch, limitOptions, showLimitSelector, onLimitChange, showReloadButton, renderReloadButton, onReload, stripedRows, stripedColors, responsiveBreakpoint, serverSide, totalRecords, pageNumber, onPageChange, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
data?: never[] | undefined;
|
|
5
|
+
columns?: never[] | undefined;
|
|
6
|
+
sortable?: boolean | undefined;
|
|
7
|
+
filterable?: boolean | undefined;
|
|
8
|
+
selectable?: boolean | undefined;
|
|
9
|
+
pagination?: boolean | undefined;
|
|
10
|
+
pageSize?: number | undefined;
|
|
11
|
+
onSort: any;
|
|
12
|
+
onFilter: any;
|
|
13
|
+
onFetch: any;
|
|
14
|
+
onFilterChange: any;
|
|
15
|
+
onSelectionChange: any;
|
|
16
|
+
onRowClick: any;
|
|
17
|
+
hasDetails?: boolean | undefined;
|
|
18
|
+
DetailsComponent?: null | undefined;
|
|
19
|
+
className: any;
|
|
20
|
+
withAction?: boolean | undefined;
|
|
21
|
+
onAction: any;
|
|
22
|
+
actions: any;
|
|
23
|
+
showSerial?: boolean | undefined;
|
|
24
|
+
cellClass: any;
|
|
25
|
+
rowClass: any;
|
|
26
|
+
globalSearch?: boolean | undefined;
|
|
27
|
+
limitOptions?: number[] | undefined;
|
|
28
|
+
showLimitSelector?: boolean | undefined;
|
|
29
|
+
onLimitChange: any;
|
|
30
|
+
showReloadButton?: boolean | undefined;
|
|
31
|
+
renderReloadButton: any;
|
|
32
|
+
onReload: any;
|
|
33
|
+
stripedRows?: boolean | undefined;
|
|
34
|
+
stripedColors?: string[] | undefined;
|
|
35
|
+
responsiveBreakpoint?: number | undefined;
|
|
36
|
+
serverSide?: boolean | undefined;
|
|
37
|
+
totalRecords?: number | undefined;
|
|
38
|
+
pageNumber: any;
|
|
39
|
+
onPageChange: any;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
//# sourceMappingURL=TableOld.d.ts.map
|