@zendeskgarden/react-draggable 9.0.0-next.22 → 9.0.0-next.23

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.
@@ -49,7 +49,7 @@ const DropzoneComponent = forwardRef((_ref, ref) => {
49
49
  hasMessage: hasMessage,
50
50
  isVertical: isVertical,
51
51
  ref: ref
52
- }), hasMessage && isDanger && !hasIcon && React__default.createElement(StyledIcon, {
52
+ }), !!(hasMessage && isDanger) && !hasIcon && React__default.createElement(StyledIcon, {
53
53
  "aria-hidden": "true",
54
54
  hasMessage: hasMessage,
55
55
  isVertical: isVertical
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
10
10
  const COMPONENT_ID = 'draggable.content';
11
11
  const StyledContent = styled.div.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0-next.22'
13
+ 'data-garden-version': '9.0.0-next.23'
14
14
  }).withConfig({
15
15
  displayName: "StyledContent",
16
16
  componentId: "sc-15arore-0"
@@ -103,7 +103,7 @@ const getCursor = props => {
103
103
  };
104
104
  const StyledDraggable = styled.div.attrs({
105
105
  'data-garden-id': COMPONENT_ID,
106
- 'data-garden-version': '9.0.0-next.22'
106
+ 'data-garden-version': '9.0.0-next.23'
107
107
  }).withConfig({
108
108
  displayName: "StyledDraggable",
109
109
  componentId: "sc-3lxpf1-0"
@@ -17,7 +17,7 @@ function sizeStyles(_ref) {
17
17
  }
18
18
  const StyledGrip = styled.div.attrs({
19
19
  'data-garden-id': COMPONENT_ID,
20
- 'data-garden-version': '9.0.0-next.22'
20
+ 'data-garden-version': '9.0.0-next.23'
21
21
  }).withConfig({
22
22
  displayName: "StyledGrip",
23
23
  componentId: "sc-13uv9iv-0"
@@ -26,7 +26,7 @@ const sizeStyles = props => {
26
26
  };
27
27
  const StyledDraggableList = styled.ul.attrs({
28
28
  'data-garden-id': COMPONENT_ID,
29
- 'data-garden-version': '9.0.0-next.22'
29
+ 'data-garden-version': '9.0.0-next.23'
30
30
  }).withConfig({
31
31
  displayName: "StyledDraggableList",
32
32
  componentId: "sc-17agksa-0"
@@ -30,7 +30,7 @@ const sizeStyles = props => {
30
30
  };
31
31
  const StyledDropIndicator = styled.li.attrs({
32
32
  'data-garden-id': COMPONENT_ID,
33
- 'data-garden-version': '9.0.0-next.22'
33
+ 'data-garden-version': '9.0.0-next.23'
34
34
  }).withConfig({
35
35
  displayName: "StyledDropIndicator",
36
36
  componentId: "sc-1f1u2lh-0"
@@ -19,7 +19,7 @@ const sizeStyles = props => {
19
19
  };
20
20
  const StyledItem = styled.li.attrs({
21
21
  'data-garden-id': COMPONENT_ID,
22
- 'data-garden-version': '9.0.0-next.22'
22
+ 'data-garden-version': '9.0.0-next.23'
23
23
  }).withConfig({
24
24
  displayName: "StyledItem",
25
25
  componentId: "sc-1nps3s3-0"
@@ -84,7 +84,7 @@ const sizeStyles = props => {
84
84
  };
85
85
  const StyledDropzone = styled.div.attrs({
86
86
  'data-garden-id': COMPONENT_ID,
87
- 'data-garden-version': '9.0.0-next.22'
87
+ 'data-garden-version': '9.0.0-next.23'
88
88
  }).withConfig({
89
89
  displayName: "StyledDropzone",
90
90
  componentId: "sc-1b7zuip-0"
@@ -26,7 +26,7 @@ function sizeStyles(_ref) {
26
26
  }
27
27
  const StyledIcon = styled.div.attrs({
28
28
  'data-garden-id': COMPONENT_ID,
29
- 'data-garden-version': '9.0.0-next.22'
29
+ 'data-garden-version': '9.0.0-next.23'
30
30
  }).withConfig({
31
31
  displayName: "StyledIcon",
32
32
  componentId: "sc-1o12gen-0"
@@ -10,7 +10,7 @@ import { getLineHeight, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskg
10
10
  const COMPONENT_ID = 'dropzone.message';
11
11
  const StyledMessage = styled.p.attrs({
12
12
  'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.0.0-next.22'
13
+ 'data-garden-version': '9.0.0-next.23'
14
14
  }).withConfig({
15
15
  displayName: "StyledMessage",
16
16
  componentId: "sc-5kb2l2-0"
package/dist/index.cjs.js CHANGED
@@ -44,7 +44,7 @@ function sizeStyles$6(_ref) {
44
44
  }
45
45
  const StyledGrip = styled__default.default.div.attrs({
46
46
  'data-garden-id': COMPONENT_ID$8,
47
- 'data-garden-version': '9.0.0-next.22'
47
+ 'data-garden-version': '9.0.0-next.23'
48
48
  }).withConfig({
49
49
  displayName: "StyledGrip",
50
50
  componentId: "sc-13uv9iv-0"
@@ -151,7 +151,7 @@ const getCursor = props => {
151
151
  };
152
152
  const StyledDraggable = styled__default.default.div.attrs({
153
153
  'data-garden-id': COMPONENT_ID$7,
154
- 'data-garden-version': '9.0.0-next.22'
154
+ 'data-garden-version': '9.0.0-next.23'
155
155
  }).withConfig({
156
156
  displayName: "StyledDraggable",
157
157
  componentId: "sc-3lxpf1-0"
@@ -163,7 +163,7 @@ StyledDraggable.defaultProps = {
163
163
  const COMPONENT_ID$6 = 'draggable.content';
164
164
  const StyledContent = styled__default.default.div.attrs({
165
165
  'data-garden-id': COMPONENT_ID$6,
166
- 'data-garden-version': '9.0.0-next.22'
166
+ 'data-garden-version': '9.0.0-next.23'
167
167
  }).withConfig({
168
168
  displayName: "StyledContent",
169
169
  componentId: "sc-15arore-0"
@@ -184,7 +184,7 @@ const sizeStyles$4 = props => {
184
184
  };
185
185
  const StyledItem = styled__default.default.li.attrs({
186
186
  'data-garden-id': COMPONENT_ID$5,
187
- 'data-garden-version': '9.0.0-next.22'
187
+ 'data-garden-version': '9.0.0-next.23'
188
188
  }).withConfig({
189
189
  displayName: "StyledItem",
190
190
  componentId: "sc-1nps3s3-0"
@@ -211,7 +211,7 @@ const sizeStyles$3 = props => {
211
211
  };
212
212
  const StyledDraggableList = styled__default.default.ul.attrs({
213
213
  'data-garden-id': COMPONENT_ID$4,
214
- 'data-garden-version': '9.0.0-next.22'
214
+ 'data-garden-version': '9.0.0-next.23'
215
215
  }).withConfig({
216
216
  displayName: "StyledDraggableList",
217
217
  componentId: "sc-17agksa-0"
@@ -243,7 +243,7 @@ const sizeStyles$2 = props => {
243
243
  };
244
244
  const StyledDropIndicator = styled__default.default.li.attrs({
245
245
  'data-garden-id': COMPONENT_ID$3,
246
- 'data-garden-version': '9.0.0-next.22'
246
+ 'data-garden-version': '9.0.0-next.23'
247
247
  }).withConfig({
248
248
  displayName: "StyledDropIndicator",
249
249
  componentId: "sc-1f1u2lh-0"
@@ -328,7 +328,7 @@ const sizeStyles$1 = props => {
328
328
  };
329
329
  const StyledDropzone = styled__default.default.div.attrs({
330
330
  'data-garden-id': COMPONENT_ID$2,
331
- 'data-garden-version': '9.0.0-next.22'
331
+ 'data-garden-version': '9.0.0-next.23'
332
332
  }).withConfig({
333
333
  displayName: "StyledDropzone",
334
334
  componentId: "sc-1b7zuip-0"
@@ -340,7 +340,7 @@ StyledDropzone.defaultProps = {
340
340
  const COMPONENT_ID$1 = 'dropzone.message';
341
341
  const StyledMessage = styled__default.default.p.attrs({
342
342
  'data-garden-id': COMPONENT_ID$1,
343
- 'data-garden-version': '9.0.0-next.22'
343
+ 'data-garden-version': '9.0.0-next.23'
344
344
  }).withConfig({
345
345
  displayName: "StyledMessage",
346
346
  componentId: "sc-5kb2l2-0"
@@ -368,7 +368,7 @@ function sizeStyles(_ref) {
368
368
  }
369
369
  const StyledIcon = styled__default.default.div.attrs({
370
370
  'data-garden-id': COMPONENT_ID,
371
- 'data-garden-version': '9.0.0-next.22'
371
+ 'data-garden-version': '9.0.0-next.23'
372
372
  }).withConfig({
373
373
  displayName: "StyledIcon",
374
374
  componentId: "sc-1o12gen-0"
@@ -616,7 +616,7 @@ const DropzoneComponent = React.forwardRef((_ref, ref) => {
616
616
  hasMessage: hasMessage,
617
617
  isVertical: isVertical,
618
618
  ref: ref
619
- }), hasMessage && isDanger && !hasIcon && React__namespace.default.createElement(StyledIcon, {
619
+ }), !!(hasMessage && isDanger) && !hasIcon && React__namespace.default.createElement(StyledIcon, {
620
620
  "aria-hidden": "true",
621
621
  hasMessage: hasMessage,
622
622
  isVertical: isVertical
@@ -8,10 +8,12 @@ import React from 'react';
8
8
  import { Content } from './components/Content';
9
9
  import { Grip } from './components/Grip';
10
10
  import { IDraggableProps } from '../../types';
11
+ declare const DraggableComponent: React.ForwardRefExoticComponent<IDraggableProps & React.RefAttributes<HTMLDivElement>>;
11
12
  /**
12
13
  * @extends HTMLAttributes<HTMLDivElement>
13
14
  */
14
- export declare const Draggable: React.ForwardRefExoticComponent<IDraggableProps & React.RefAttributes<HTMLDivElement>> & {
15
+ export declare const Draggable: typeof DraggableComponent & {
15
16
  Grip: typeof Grip;
16
17
  Content: typeof Content;
17
18
  };
19
+ export {};
@@ -8,10 +8,12 @@ import React from 'react';
8
8
  import { DropIndicator } from './components/DropIndicator';
9
9
  import { Item } from './components/Item';
10
10
  import { IDraggableListProps } from '../../types';
11
+ declare const DraggableListComponent: React.ForwardRefExoticComponent<IDraggableListProps & React.RefAttributes<HTMLUListElement>>;
11
12
  /**
12
13
  * @extends HTMLAttributes<HTMLUListElement>
13
14
  */
14
- export declare const DraggableList: React.ForwardRefExoticComponent<IDraggableListProps & React.RefAttributes<HTMLUListElement>> & {
15
+ export declare const DraggableList: typeof DraggableListComponent & {
15
16
  Item: typeof Item;
16
17
  DropIndicator: typeof DropIndicator;
17
18
  };
19
+ export {};
@@ -8,10 +8,12 @@ import React from 'react';
8
8
  import { Message } from './components/Message';
9
9
  import { Icon } from './components/Icon';
10
10
  import { IDropzoneProps } from '../../types';
11
+ declare const DropzoneComponent: React.ForwardRefExoticComponent<IDropzoneProps & React.RefAttributes<HTMLDivElement>>;
11
12
  /**
12
13
  * @extends HTMLAttributes<HTMLDivElement>
13
14
  */
14
- export declare const Dropzone: React.ForwardRefExoticComponent<IDropzoneProps & React.RefAttributes<HTMLDivElement>> & {
15
+ export declare const Dropzone: typeof DropzoneComponent & {
15
16
  Icon: typeof Icon;
16
17
  Message: typeof Message;
17
18
  };
19
+ export {};
@@ -4,7 +4,6 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- /// <reference types="react" />
8
7
  export interface IDraggableListContext {
9
8
  isHorizontal?: boolean;
10
9
  }
@@ -4,7 +4,6 @@
4
4
  * Use of this source code is governed under the Apache License, Version 2.0
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
- /// <reference types="react" />
8
7
  export interface IDropzoneContext {
9
8
  isVertical?: boolean;
10
9
  isDanger?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-draggable",
3
- "version": "9.0.0-next.22",
3
+ "version": "9.0.0-next.23",
4
4
  "description": "Components related to drag and drop in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -26,17 +26,17 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@zendeskgarden/react-theming": ">=9.0.0-next",
29
- "react": ">=16.8.0",
30
- "react-dom": ">=16.8.0",
29
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
30
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
31
31
  "styled-components": "^5.3.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@dnd-kit/core": "6.1.0",
35
35
  "@dnd-kit/sortable": "8.0.0",
36
36
  "@dnd-kit/utilities": "3.2.2",
37
- "@zendeskgarden/react-theming": "^9.0.0-next.22",
38
- "@zendeskgarden/react-typography": "^9.0.0-next.22",
39
- "@zendeskgarden/svg-icons": "7.1.1"
37
+ "@zendeskgarden/react-theming": "^9.0.0-next.23",
38
+ "@zendeskgarden/react-typography": "^9.0.0-next.23",
39
+ "@zendeskgarden/svg-icons": "7.2.0"
40
40
  },
41
41
  "keywords": [
42
42
  "components",
@@ -52,5 +52,5 @@
52
52
  "access": "public"
53
53
  },
54
54
  "zendeskgarden:src": "src/index.ts",
55
- "gitHead": "46309385a1495c2297da23409f4196f662fe418b"
55
+ "gitHead": "5e7d2ed69a1615e09406a3f9285359346bb90cc7"
56
56
  }