@performant-software/semantic-components 1.0.24 → 1.0.25
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/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/EmbeddedList.js +0 -4
- package/src/components/FacetSlider.js +1 -1
- package/src/components/FileUploadModal.js +0 -9
- package/src/components/ListTable.js +0 -4
- package/src/index.js +0 -2
- package/types/components/EmbeddedList.js.flow +0 -4
- package/types/components/FacetSlider.js.flow +1 -1
- package/types/components/FileUploadModal.js.flow +0 -9
- package/types/components/ListTable.js.flow +0 -4
- package/types/index.js.flow +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@performant-software/semantic-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"description": "A package of shared components based on the Semantic UI Framework.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "webpack --mode production && flow-copy-source -v src types"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@performant-software/shared-components": "^1.0.
|
|
15
|
+
"@performant-software/shared-components": "^1.0.25",
|
|
16
16
|
"@react-google-maps/api": "^2.8.1",
|
|
17
17
|
"axios": "^0.26.1",
|
|
18
18
|
"i18next": "^19.4.4",
|
|
@@ -32,7 +32,7 @@ const FacetSlider = forwardRef(({ useRangeSlider, ...props }: Props, ref: HTMLEl
|
|
|
32
32
|
*
|
|
33
33
|
* @type {unknown}
|
|
34
34
|
*/
|
|
35
|
-
const visible = useMemo(() => range.min
|
|
35
|
+
const visible = useMemo(() => range.min !== 0 && range.max !== 0, [range.min, range.max]);
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Resets the value and valueView when the current refinement is cleared.
|
|
@@ -48,11 +48,6 @@ type Props = {
|
|
|
48
48
|
*/
|
|
49
49
|
onClose: () => void,
|
|
50
50
|
|
|
51
|
-
/**
|
|
52
|
-
* Callback fired when the upload has completed.
|
|
53
|
-
*/
|
|
54
|
-
onComplete: () => void,
|
|
55
|
-
|
|
56
51
|
/**
|
|
57
52
|
* Callback fired when the save button is clicked. See <code>strategy</code> prop.
|
|
58
53
|
*/
|
|
@@ -156,10 +151,6 @@ const FileUploadModal: ComponentType<any> = (props: Props) => {
|
|
|
156
151
|
const onComplete = useCallback(() => {
|
|
157
152
|
setUploading(false);
|
|
158
153
|
|
|
159
|
-
if (props.onComplete) {
|
|
160
|
-
props.onComplete();
|
|
161
|
-
}
|
|
162
|
-
|
|
163
154
|
if (props.closeOnComplete) {
|
|
164
155
|
props.onClose();
|
|
165
156
|
}
|
package/src/index.js
CHANGED
|
@@ -109,10 +109,8 @@ export { default as BatchEdit } from './hooks/BatchEdit';
|
|
|
109
109
|
|
|
110
110
|
// Types
|
|
111
111
|
export type { EditPageProps } from './components/EditPage';
|
|
112
|
-
export type { Props as EmbeddedListProps } from './components/EmbeddedList';
|
|
113
112
|
export type { FileUploadProps } from './components/FileUploadModal';
|
|
114
113
|
export type { Props as ListProps } from './components/List';
|
|
115
|
-
export type { Props as ListTableProps } from './components/ListTable';
|
|
116
114
|
export type { BatchEditProps } from './hooks/BatchEdit';
|
|
117
115
|
|
|
118
116
|
// Constants
|
|
@@ -32,7 +32,7 @@ const FacetSlider = forwardRef(({ useRangeSlider, ...props }: Props, ref: HTMLEl
|
|
|
32
32
|
*
|
|
33
33
|
* @type {unknown}
|
|
34
34
|
*/
|
|
35
|
-
const visible = useMemo(() => range.min
|
|
35
|
+
const visible = useMemo(() => range.min !== 0 && range.max !== 0, [range.min, range.max]);
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Resets the value and valueView when the current refinement is cleared.
|
|
@@ -48,11 +48,6 @@ type Props = {
|
|
|
48
48
|
*/
|
|
49
49
|
onClose: () => void,
|
|
50
50
|
|
|
51
|
-
/**
|
|
52
|
-
* Callback fired when the upload has completed.
|
|
53
|
-
*/
|
|
54
|
-
onComplete: () => void,
|
|
55
|
-
|
|
56
51
|
/**
|
|
57
52
|
* Callback fired when the save button is clicked. See <code>strategy</code> prop.
|
|
58
53
|
*/
|
|
@@ -156,10 +151,6 @@ const FileUploadModal: ComponentType<any> = (props: Props) => {
|
|
|
156
151
|
const onComplete = useCallback(() => {
|
|
157
152
|
setUploading(false);
|
|
158
153
|
|
|
159
|
-
if (props.onComplete) {
|
|
160
|
-
props.onComplete();
|
|
161
|
-
}
|
|
162
|
-
|
|
163
154
|
if (props.closeOnComplete) {
|
|
164
155
|
props.onClose();
|
|
165
156
|
}
|
package/types/index.js.flow
CHANGED
|
@@ -109,10 +109,8 @@ export { default as BatchEdit } from './hooks/BatchEdit';
|
|
|
109
109
|
|
|
110
110
|
// Types
|
|
111
111
|
export type { EditPageProps } from './components/EditPage';
|
|
112
|
-
export type { Props as EmbeddedListProps } from './components/EmbeddedList';
|
|
113
112
|
export type { FileUploadProps } from './components/FileUploadModal';
|
|
114
113
|
export type { Props as ListProps } from './components/List';
|
|
115
|
-
export type { Props as ListTableProps } from './components/ListTable';
|
|
116
114
|
export type { BatchEditProps } from './hooks/BatchEdit';
|
|
117
115
|
|
|
118
116
|
// Constants
|