@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@performant-software/semantic-components",
3
- "version": "1.0.24",
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.24",
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",
@@ -271,7 +271,3 @@ export {
271
271
  SORT_ASCENDING,
272
272
  SORT_DESCENDING
273
273
  };
274
-
275
- export type {
276
- Props
277
- };
@@ -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 === 0 && range.max === 0, [range.min, range.max]);
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
  }
@@ -131,7 +131,3 @@ ListTable.defaultProps = {
131
131
  };
132
132
 
133
133
  export default ListTable;
134
-
135
- export type {
136
- Props
137
- };
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
@@ -271,7 +271,3 @@ export {
271
271
  SORT_ASCENDING,
272
272
  SORT_DESCENDING
273
273
  };
274
-
275
- export type {
276
- Props
277
- };
@@ -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 === 0 && range.max === 0, [range.min, range.max]);
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
  }
@@ -131,7 +131,3 @@ ListTable.defaultProps = {
131
131
  };
132
132
 
133
133
  export default ListTable;
134
-
135
- export type {
136
- Props
137
- };
@@ -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