@delightui/components 0.1.111 → 0.1.112
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/cjs/components/molecules/Modal/Modal.types.d.ts +5 -0
- package/dist/cjs/components/molecules/Search/Search.d.ts +1 -1
- package/dist/cjs/components/molecules/Search/Search.types.d.ts +1 -1
- package/dist/cjs/components/organisms/SlideOutPanel/FadeTransition.d.ts +8 -0
- package/dist/cjs/library.css +1691 -81
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/Modal/Modal.types.d.ts +5 -0
- package/dist/esm/components/molecules/Search/Search.d.ts +1 -1
- package/dist/esm/components/molecules/Search/Search.types.d.ts +1 -1
- package/dist/esm/components/organisms/SlideOutPanel/FadeTransition.d.ts +8 -0
- package/dist/esm/library.css +1691 -81
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/docs/components/molecules/Search.md +1 -1
- package/docs/components/utils/RenderStateView.md +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import React__default, { ImgHTMLAttributes, SyntheticEvent, HTMLAttributes, Reac
|
|
|
4
4
|
import { LinkProps } from 'react-router-dom';
|
|
5
5
|
import { Plugin } from 'flatpickr/dist/types/options';
|
|
6
6
|
import FlatPickr from 'react-flatpickr';
|
|
7
|
+
import { ModalTransitionComponent } from 'react-overlays/cjs/Modal';
|
|
7
8
|
import { Offset } from 'react-overlays/usePopper';
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -1461,6 +1462,10 @@ type ModalProps = {
|
|
|
1461
1462
|
* Additional CSS class names to apply to the modal.
|
|
1462
1463
|
*/
|
|
1463
1464
|
className?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* Optional transition component for the modal.
|
|
1467
|
+
*/
|
|
1468
|
+
Transition?: ModalTransitionComponent;
|
|
1464
1469
|
};
|
|
1465
1470
|
|
|
1466
1471
|
/**
|
|
@@ -2047,7 +2052,7 @@ type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
|
|
|
2047
2052
|
/**
|
|
2048
2053
|
* Callback function to handle search with the query string
|
|
2049
2054
|
*/
|
|
2050
|
-
onSearch
|
|
2055
|
+
onSearch?: SearchCallback;
|
|
2051
2056
|
/**
|
|
2052
2057
|
* Debounce delay in milliseconds for auto style
|
|
2053
2058
|
* @default 300
|
|
@@ -2088,7 +2093,7 @@ type SearchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'value'>
|
|
|
2088
2093
|
*/
|
|
2089
2094
|
declare const Search: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "type"> & ControlledFormComponentProps<string> & {
|
|
2090
2095
|
style?: SearchStyleEnum;
|
|
2091
|
-
onSearch
|
|
2096
|
+
onSearch?: SearchCallback;
|
|
2092
2097
|
debounceMs?: number;
|
|
2093
2098
|
minCharacters?: number;
|
|
2094
2099
|
showSubmitButton?: boolean;
|
|
@@ -19,7 +19,7 @@ A versatile search input component that supports both automatic and manual searc
|
|
|
19
19
|
| Prop | Type | Default | Required | Description |
|
|
20
20
|
|------|------|---------|----------|-------------|
|
|
21
21
|
| `mode` | `'Auto' \| 'Manual'` | `'Auto'` | No | Search mode - 'Auto' for debounced search on input, 'Manual' for search on enter/submit |
|
|
22
|
-
| `onSearch` | `SearchCallback` | - |
|
|
22
|
+
| `onSearch` | `SearchCallback` | - | No | Callback function to handle search with the query string |
|
|
23
23
|
| `debounceMs` | `number` | `300` | No | Debounce delay in milliseconds for auto mode |
|
|
24
24
|
| `minCharacters` | `number` | `1` | No | Minimum characters required to trigger search in auto mode |
|
|
25
25
|
| `showSubmitButton` | `boolean` | `true` | No | Show submit button in manual mode |
|
|
@@ -18,7 +18,7 @@ A utility component that manages different rendering states for data-driven comp
|
|
|
18
18
|
| Prop | Type | Default | Required | Description |
|
|
19
19
|
|------|------|---------|----------|-------------|
|
|
20
20
|
| `className` | `string` | - | No | Additional CSS class names |
|
|
21
|
-
| `data` | `T \| null` | - | No | The data to render
|
|
21
|
+
| `data` | `T \| null` | - | No | The data to render. If the data is null, the empty component will be rendered. If the data is not null, the filled component will be rendered. |
|
|
22
22
|
| `isLoading` | `boolean` | - | No | Whether data is currently loading |
|
|
23
23
|
| `errorData` | `Error \| string \| null` | - | No | Error data to trigger error state rendering |
|
|
24
24
|
| `filled` | `React.ComponentType<{ data: T } & P>` | - | No | Component to render when data is present |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delightui/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.112",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "vite",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"react-dropzone": "^14.3.5",
|
|
26
26
|
"react-flatpickr": "^3.10.13",
|
|
27
27
|
"react-overlays": "^5.2.1",
|
|
28
|
-
"react-router-dom": "^6.23.1"
|
|
28
|
+
"react-router-dom": "^6.23.1",
|
|
29
|
+
"react-transition-group": "^4.4.5"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@rollup/plugin-commonjs": "^25.0.8",
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
"@types/react": "^18.3.3",
|
|
51
52
|
"@types/react-dom": "^18.3.0",
|
|
52
53
|
"@types/react-flatpickr": "^3.8.11",
|
|
54
|
+
"@types/react-transition-group": "^4.4.12",
|
|
53
55
|
"@typescript-eslint/eslint-plugin": "^7.13.1",
|
|
54
56
|
"@typescript-eslint/parser": "^7.13.1",
|
|
55
57
|
"@vitejs/plugin-react": "^4.3.1",
|