@dhis2-ui/transfer 8.15.0-alpha.2 → 8.15.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.
Files changed (2) hide show
  1. package/package.json +9 -11
  2. package/types/index.d.ts +0 -83
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/transfer",
3
- "version": "8.15.0-alpha.2",
3
+ "version": "8.15.0",
4
4
  "description": "UI Transfer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,23 +32,21 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@dhis2/prop-types": "^3.1.2",
35
- "@dhis2-ui/button": "8.15.0-alpha.2",
36
- "@dhis2-ui/field": "8.15.0-alpha.2",
37
- "@dhis2-ui/input": "8.15.0-alpha.2",
38
- "@dhis2-ui/intersection-detector": "8.15.0-alpha.2",
39
- "@dhis2-ui/loader": "8.15.0-alpha.2",
40
- "@dhis2/ui-constants": "8.15.0-alpha.2",
35
+ "@dhis2-ui/button": "8.15.0",
36
+ "@dhis2-ui/field": "8.15.0",
37
+ "@dhis2-ui/input": "8.15.0",
38
+ "@dhis2-ui/intersection-detector": "8.15.0",
39
+ "@dhis2-ui/loader": "8.15.0",
40
+ "@dhis2/ui-constants": "8.15.0",
41
41
  "classnames": "^2.3.1",
42
42
  "prop-types": "^15.7.2"
43
43
  },
44
44
  "files": [
45
- "build",
46
- "types"
45
+ "build"
47
46
  ],
48
47
  "devDependencies": {
49
48
  "react": "16.13",
50
49
  "react-dom": "16.13",
51
50
  "styled-jsx": "^4.0.1"
52
- },
53
- "types": "types"
51
+ }
54
52
  }
package/types/index.d.ts DELETED
@@ -1,83 +0,0 @@
1
- import * as React from 'react'
2
- import { InputChangeHandler, InputEventHandler } from '@dhis2-ui/input'
3
-
4
- export interface TransferProps {
5
- options: TransferOption[]
6
- onChange: (payload: { selected: string[] }) => void
7
- addAllText?: string
8
- addIndividualText?: string
9
- className?: string
10
- dataTest?: string
11
- disabled?: boolean
12
- enableOrderChange?: boolean
13
- filterCallback?: (
14
- options: TransferOption[],
15
- filter: string
16
- ) => TransferOption[]
17
- filterCallbackPicked?: (
18
- options: TransferOption[],
19
- filter: string
20
- ) => TransferOption[]
21
- filterLabel?: string
22
- filterLabelPicked?: string
23
- filterPlaceholder?: string
24
- filterPlaceholderPicked?: string
25
- filterable?: boolean
26
- filterablePicked?: boolean
27
- height?: string
28
- hideFilterInput?: boolean
29
- hideFilterInputPicked?: boolean
30
- initialSearchTerm?: string
31
- initialSearchTermPicked?: string
32
- leftFooter?: React.ReactNode
33
- leftHeader?: React.ReactNode
34
- loading?: boolean
35
- loadingPicked?: boolean
36
- maxSelections?: number
37
- optionsWidth?: string
38
- removeAllText?: string
39
- removeIndividualText?: string
40
- renderOption?: (props: TransferOptionRenderProps) => JSX.Element
41
- rightFooter?: React.ReactNode
42
- rightHeader?: React.ReactNode
43
- searchTerm?: string
44
- searchTermPicked?: string
45
- selected?: string[]
46
- selectedEmptyComponent?: React.ReactNode
47
- selectedWidth?: string
48
- sourceEmptyPlaceholder?: React.ReactNode
49
- onEndReached?: () => void
50
- onEndReachedPicked?: () => void
51
- onFilterChange?: InputChangeHandler
52
- onFilterChangePicked?: InputChangeHandler
53
- }
54
-
55
- export const Transfer: React.FC<TransferProps>
56
-
57
- export type TransferOptionOnClickProp = (payload: { value: string }) => void
58
-
59
- export interface TransferOptionRenderProps extends TransferOption {
60
- highlighted: boolean
61
- selected: boolean
62
- onClick: TransferOptionOnClickProp
63
- onDoubleClick: TransferOptionOnClickProp
64
- }
65
-
66
- export interface TransferOptionProps {
67
- label: React.ReactNode
68
- value: string
69
- onClick: TransferOptionOnClickProp
70
- onDoubleClick: TransferOptionOnClickProp
71
- className?: string
72
- dataTest?: string
73
- disabled?: boolean
74
- highlighted?: boolean
75
- }
76
-
77
- export const TransferOption: React.FC<TransferOptionProps>
78
-
79
- export interface TransferOption {
80
- label: string
81
- value: string
82
- disabled?: boolean
83
- }