@contentful/f36-drag-handle 4.0.1-beta.2543 → 4.0.1-beta.2590

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/main.js CHANGED
@@ -1,6 +1,7 @@
1
1
  var $9zqHf$emotion = require("emotion");
2
2
  var $9zqHf$react = require("react");
3
3
  var $9zqHf$contentfulf36icons = require("@contentful/f36-icons");
4
+ var $9zqHf$reactjsxruntime = require("react/jsx-runtime");
4
5
  var $9zqHf$contentfulf36tokens = require("@contentful/f36-tokens");
5
6
 
6
7
  function $parcel$export(e, n, v, s) {
@@ -17,6 +18,7 @@ $parcel$export(module.exports, "DragHandle", () => $7340ff11beb99de7$export$a0c2
17
18
 
18
19
 
19
20
 
21
+
20
22
  const $590c5f6da3a22459$export$ffd58b7f6f099a57 = ()=>({
21
23
  label: /*#__PURE__*/ $9zqHf$emotion.css({
22
24
  name: "1b512s9",
@@ -77,7 +79,7 @@ const $7340ff11beb99de7$export$a0c24614540b0efb = /*#__PURE__*/ $9zqHf$react.for
77
79
  }, [
78
80
  onMouseLeave
79
81
  ]);
80
- return(/*#__PURE__*/ $parcel$interopDefault($9zqHf$react).createElement("button", {
82
+ return(/*#__PURE__*/ $9zqHf$reactjsxruntime.jsxs("button", {
81
83
  type: "button",
82
84
  ...otherProps,
83
85
  className: $9zqHf$emotion.cx(styles.root({
@@ -91,12 +93,17 @@ const $7340ff11beb99de7$export$a0c24614540b0efb = /*#__PURE__*/ $9zqHf$react.for
91
93
  onMouseLeave: handleMouseLeave,
92
94
  "data-test-id": testId,
93
95
  ref: forwardedRef,
94
- style: style
95
- }, /*#__PURE__*/ $parcel$interopDefault($9zqHf$react).createElement($9zqHf$contentfulf36icons.DragIcon, {
96
- variant: "muted"
97
- }), /*#__PURE__*/ $parcel$interopDefault($9zqHf$react).createElement("span", {
98
- className: styles.label
99
- }, label)));
96
+ style: style,
97
+ children: [
98
+ /*#__PURE__*/ $9zqHf$reactjsxruntime.jsx($9zqHf$contentfulf36icons.DragIcon, {
99
+ variant: "muted"
100
+ }),
101
+ /*#__PURE__*/ $9zqHf$reactjsxruntime.jsx("span", {
102
+ className: styles.label,
103
+ children: label
104
+ })
105
+ ]
106
+ }));
100
107
  });
101
108
  $7340ff11beb99de7$export$a0c24614540b0efb.displayName = 'DragHandle';
102
109
 
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;AEGO,KAAA,CAAMW,yCAAS,QAAU,CAAhC;QACEK,KAAK,EAAA,EAAE,AAAF,SAAE,AAAF,EAAE,CAAA,kBAAPA,CAAAA,CAAAA;YAAO,IAAA,EAAA,CAAA;YAAA,MAAA,EAAA,CAAA;QAAA,CAAA;QAUPqB,IAAI,GAAG,CAAPA,WACExB,QADK,cAELC,SAFK,cAGLC,SAAAA,EACC,CAJG,GAQA,CAJH;YAKD,MAAA,CAAO,iBAAA,CAAA,EACL,AADK,SACL,AADK,EACL,CAAA,kBAAA,CAAI,CADN;gBAEIyB,UAAU,EAAE,CADV;gBAEFC,eAAe,EAAEF,kDAAM,CAACG,OAFtB;gBAGFC,MAAM,EAAE,CAHN;gBAIFC,sBAAsB,EAAEL,kDAAM,CAACM,kBAJ7B;gBAKFC,WAAW,GAAG,UAAA,EAAYP,kDAAM,CAACQ,OAAQ;gBACzCC,mBAAmB,EAAET,kDAAM,CAACM,kBAN1B;gBAOFI,SAAS,EAAE,CAPT;gBAQFC,OAAO,EAAE,CARP;gBASFC,cAAc,EAAE,CATd;gBAUFC,OAAO,EAAE,CAVP;gBAWFC,QAAQ,EAAE,CAXR;gBAYFC,UAAU,GAAG,iBAAA,EAAmBf,kDAAM,CAACgB,yBAA0B,CAAA,CAAA,EAAGhB,kDAAM,CAACiB,uBAAwB;gBACnGC,KAAK,EAAElB,kDAAM,CAACmB,QAbZ;gBAcF,CAAA,mBAAoB,CAApB;oBACEjB,eAAe,EAAEF,kDAAM,CAACoB,iBAAxBlB;gBADkB,CA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AC,IAAD;QAEZ,EAAA,EAAIR,YAAJ,EACEA,YAAY,CAACU,KAAD;IAEf,CAPiC,EAQlC,CAACV;QAAAA,YAAD;IAAA,CARkC;IAWpC,KAAA,CAAMa,gBAAgB,GAAGhC,wBAAW,EACjC6B,KAAD,GAAW,CADb;QAEIF,YAAY,CAAC,KAAD;QAEZ,EAAA,EAAIP,YAAJ,EACEA,YAAY,CAACS,KAAD;IAEf,CAPiC,EAQlC,CAACT;QAAAA,YAAD;IAAA,CARkC;IAWpC,MAAA,kEACG,CAAD;QACE,IAAA,EAAK,CADP;WAEMG,UAAJ;QACA,SAAA,EAAW,iBAAA,CACTE,MAAM,CAACQ,IAAP,CAAY,CALlB;sBAKoBxB,QAAF;uBAAYC,SAAZ;uBAAuBC,SAAAA;QAAvB,CAAZ,GACAG,SAFS;QAIX,MAAA,EAAQgB,UAAD;QACP,OAAA,EAASF,WAAD;QACR,YAAA,EAAcG,gBAAD;QACb,YAAA,EAAcC,gBAAD;QACb,CAAA,eAAcX,MAAD;QACb,GAAA,EAAKG,YAAD;QACJ,KAAA,EAAOF,KAAD;wEAEL,kCAAD;QAAU,OAAA,EAAQ,CAAlB;yEACC,CAAD;QAAM,SAAA,EAAWG,MAAM,CAACb,KAAR;OAAgBA,KAAD;AAGpC,CAtFiC;AAyFpChB,yCAAU,CAACsC,WAAX,GAAyB,CAAzB","sources":["packages/components/drag-handle/src/index.ts","packages/components/drag-handle/src/DragHandle.tsx","packages/components/drag-handle/src/DragHandle.styles.ts"],"sourcesContent":["export { DragHandle } from './DragHandle';\nexport type { DragHandleProps } from './DragHandle';\n","import React, {\n forwardRef,\n useCallback,\n useState,\n FocusEventHandler,\n MouseEventHandler,\n} from 'react';\nimport { cx } from 'emotion';\nimport type { PropsWithHTMLElement } from '@contentful/f36-core';\nimport type { CommonProps } from '@contentful/f36-core';\nimport { DragIcon } from '@contentful/f36-icons';\nimport { getStyles } from './DragHandle.styles';\n\nexport type DragHandleInternalProps = CommonProps & {\n /**\n * Applies styling for when the component is actively being dragged by\n * the user\n */\n isActive?: boolean;\n /**\n * Applies focus styling\n */\n isFocused?: boolean;\n /**\n * Applies hover styling\n */\n isHovered?: boolean;\n /**\n * Label rendered in DragHandle - not visible on screen as its purpose\n * is for screen readers only\n */\n label: string;\n};\n\nexport type DragHandleProps = PropsWithHTMLElement<\n DragHandleInternalProps,\n 'button'\n>;\n\nexport const DragHandle = forwardRef<HTMLButtonElement, DragHandleProps>(\n (\n {\n className,\n isActive,\n isFocused: isFocusedProp,\n isHovered: isHoveredProp,\n label,\n onBlur,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n testId = 'cf-ui-drag-handle',\n style,\n ...otherProps\n },\n forwardedRef,\n ) => {\n const styles = getStyles();\n const [isFocused, setisFocused] = useState(isFocusedProp);\n const [isHovered, setisHovered] = useState(isHoveredProp);\n\n const handleFocus = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(true);\n\n if (onFocus) {\n onFocus(event);\n }\n },\n [onFocus],\n );\n\n const handleBlur = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(false);\n\n if (onBlur) {\n onBlur(event);\n }\n },\n [onBlur],\n );\n\n const handleMouseEnter = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(true);\n\n if (onMouseEnter) {\n onMouseEnter(event);\n }\n },\n [onMouseEnter],\n );\n\n const handleMouseLeave = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(false);\n\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n },\n [onMouseLeave],\n );\n\n return (\n <button\n type=\"button\"\n {...otherProps}\n className={cx(\n styles.root({ isActive, isFocused, isHovered }),\n className,\n )}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n data-test-id={testId}\n ref={forwardedRef}\n style={style}\n >\n <DragIcon variant=\"muted\" />\n <span className={styles.label}>{label}</span>\n </button>\n );\n },\n);\n\nDragHandle.displayName = 'DragHandle';\n","import { cx, css } from 'emotion';\nimport tokens from '@contentful/f36-tokens';\n\nexport const getStyles = () => ({\n label: css({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n border: 0,\n }),\n root: ({\n isActive,\n isFocused,\n isHovered,\n }: {\n isActive: boolean;\n isFocused: boolean;\n isHovered: boolean;\n }) => {\n return cx(\n css({\n alignItems: 'center',\n backgroundColor: tokens.gray100,\n border: 0,\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderRight: `1px solid ${tokens.gray200}`,\n borderTopLeftRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n display: 'flex',\n justifyContent: 'center',\n padding: 0,\n position: 'relative',\n transition: `background-color ${tokens.transitionDurationDefault} ${tokens.transitionEasingDefault}`,\n width: tokens.spacingL,\n '&:hover, &:focus': {\n backgroundColor: tokens.colorElementLight,\n },\n }),\n (isActive || isFocused || isHovered) &&\n css({\n backgroundColor: tokens.gray200,\n cursor: isActive ? 'grabbing' : 'grab',\n }),\n );\n },\n});\n"],"names":["DragHandle","DragHandleProps","React","forwardRef","useCallback","useState","FocusEventHandler","MouseEventHandler","PropsWithHTMLElement","CommonProps","DragIcon","getStyles","DragHandleInternalProps","isActive","isFocused","isHovered","label","HTMLButtonElement","className","isFocusedProp","isHoveredProp","onBlur","onFocus","onMouseEnter","onMouseLeave","testId","style","otherProps","forwardedRef","styles","setisFocused","setisHovered","handleFocus","event","handleBlur","handleMouseEnter","handleMouseLeave","root","displayName","tokens","alignItems","backgroundColor","gray100","border","borderBottomLeftRadius","borderRadiusMedium","borderRight","gray200","borderTopLeftRadius","boxSizing","display","justifyContent","padding","position","transition","transitionDurationDefault","transitionEasingDefault","width","spacingL","colorElementLight","cursor"],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;AEGO,KAAA,C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;IAAA,CARkC;IAWpC,MAAA,2CACG,CAAD;QACE,IAAA,EAAK,CADP;WAEMG,UAAJ;QACA,SAAA,EAAW,iBAAA,CACTE,MAAM,CAACQ,IAAP,CAAY,CALlB;sBAKoBxB,QAAF;uBAAYC,SAAZ;uBAAuBC,SAAAA;QAAvB,CAAZ,GACAG,SAFS;QAIX,MAAA,EAAQgB,UAAD;QACP,OAAA,EAASF,WAAD;QACR,YAAA,EAAcG,gBAAD;QACb,YAAA,EAAcC,gBAAD;QACb,CAAA,eAAcX,MAAD;QACb,GAAA,EAAKG,YAAD;QACJ,KAAA,EAAOF,KAAD;;qDAEL,kCAAD;gBAAU,OAAA,EAAQ,CAAlB;;qDACC,CAAD;gBAAM,SAAA,EAAWG,MAAM,CAACb,KAAR;0BAAgBA,KAAD;;;;AAGpC,CAzFiC;AA4FpCjB,yCAAU,CAACuC,WAAX,GAAyB,CAAzB","sources":["packages/components/drag-handle/src/index.ts","packages/components/drag-handle/src/DragHandle.tsx","packages/components/drag-handle/src/DragHandle.styles.ts"],"sourcesContent":["export { DragHandle } from './DragHandle';\nexport type { DragHandleProps } from './DragHandle';\n","import React, {\n forwardRef,\n useCallback,\n useState,\n FocusEventHandler,\n MouseEventHandler,\n} from 'react';\nimport { cx } from 'emotion';\nimport type { PropsWithHTMLElement } from '@contentful/f36-core';\nimport type { CommonProps, ExpandProps } from '@contentful/f36-core';\nimport { DragIcon } from '@contentful/f36-icons';\nimport { getStyles } from './DragHandle.styles';\n\nexport type DragHandleInternalProps = CommonProps & {\n /**\n * Applies styling for when the component is actively being dragged by\n * the user\n */\n isActive?: boolean;\n /**\n * Applies focus styling\n */\n isFocused?: boolean;\n /**\n * Applies hover styling\n */\n isHovered?: boolean;\n /**\n * Label rendered in DragHandle - not visible on screen as its purpose\n * is for screen readers only\n */\n label: string;\n};\n\nexport type DragHandleProps = PropsWithHTMLElement<\n DragHandleInternalProps,\n 'button'\n>;\n\nexport const DragHandle = forwardRef<\n HTMLButtonElement,\n ExpandProps<DragHandleProps>\n>(\n (\n {\n className,\n isActive,\n isFocused: isFocusedProp,\n isHovered: isHoveredProp,\n label,\n onBlur,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n testId = 'cf-ui-drag-handle',\n style,\n ...otherProps\n },\n forwardedRef,\n ) => {\n const styles = getStyles();\n const [isFocused, setisFocused] = useState(isFocusedProp);\n const [isHovered, setisHovered] = useState(isHoveredProp);\n\n const handleFocus = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(true);\n\n if (onFocus) {\n onFocus(event);\n }\n },\n [onFocus],\n );\n\n const handleBlur = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(false);\n\n if (onBlur) {\n onBlur(event);\n }\n },\n [onBlur],\n );\n\n const handleMouseEnter = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(true);\n\n if (onMouseEnter) {\n onMouseEnter(event);\n }\n },\n [onMouseEnter],\n );\n\n const handleMouseLeave = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(false);\n\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n },\n [onMouseLeave],\n );\n\n return (\n <button\n type=\"button\"\n {...otherProps}\n className={cx(\n styles.root({ isActive, isFocused, isHovered }),\n className,\n )}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n data-test-id={testId}\n ref={forwardedRef}\n style={style}\n >\n <DragIcon variant=\"muted\" />\n <span className={styles.label}>{label}</span>\n </button>\n );\n },\n);\n\nDragHandle.displayName = 'DragHandle';\n","import { cx, css } from 'emotion';\nimport tokens from '@contentful/f36-tokens';\n\nexport const getStyles = () => ({\n label: css({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n border: 0,\n }),\n root: ({\n isActive,\n isFocused,\n isHovered,\n }: {\n isActive: boolean;\n isFocused: boolean;\n isHovered: boolean;\n }) => {\n return cx(\n css({\n alignItems: 'center',\n backgroundColor: tokens.gray100,\n border: 0,\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderRight: `1px solid ${tokens.gray200}`,\n borderTopLeftRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n display: 'flex',\n justifyContent: 'center',\n padding: 0,\n position: 'relative',\n transition: `background-color ${tokens.transitionDurationDefault} ${tokens.transitionEasingDefault}`,\n width: tokens.spacingL,\n '&:hover, &:focus': {\n backgroundColor: tokens.colorElementLight,\n },\n }),\n (isActive || isFocused || isHovered) &&\n css({\n backgroundColor: tokens.gray200,\n cursor: isActive ? 'grabbing' : 'grab',\n }),\n );\n },\n});\n"],"names":["DragHandle","DragHandleProps","React","forwardRef","useCallback","useState","FocusEventHandler","MouseEventHandler","PropsWithHTMLElement","CommonProps","ExpandProps","DragIcon","getStyles","DragHandleInternalProps","isActive","isFocused","isHovered","label","HTMLButtonElement","className","isFocusedProp","isHoveredProp","onBlur","onFocus","onMouseEnter","onMouseLeave","testId","style","otherProps","forwardedRef","styles","setisFocused","setisHovered","handleFocus","event","handleBlur","handleMouseEnter","handleMouseLeave","root","displayName","tokens","alignItems","backgroundColor","gray100","border","borderBottomLeftRadius","borderRadiusMedium","borderRight","gray200","borderTopLeftRadius","boxSizing","display","justifyContent","padding","position","transition","transitionDurationDefault","transitionEasingDefault","width","spacingL","colorElementLight","cursor"],"version":3,"file":"main.js.map"}
package/dist/module.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import {cx as $8USmO$cx, css as $8USmO$css} from "emotion";
2
- import $8USmO$react, {forwardRef as $8USmO$forwardRef, useState as $8USmO$useState, useCallback as $8USmO$useCallback} from "react";
2
+ import {forwardRef as $8USmO$forwardRef, useState as $8USmO$useState, useCallback as $8USmO$useCallback} from "react";
3
3
  import {DragIcon as $8USmO$DragIcon} from "@contentful/f36-icons";
4
+ import {jsxs as $8USmO$jsxs, jsx as $8USmO$jsx} from "react/jsx-runtime";
4
5
  import $8USmO$contentfulf36tokens from "@contentful/f36-tokens";
5
6
 
6
7
 
@@ -9,6 +10,7 @@ import $8USmO$contentfulf36tokens from "@contentful/f36-tokens";
9
10
 
10
11
 
11
12
 
13
+
12
14
  const $1282af47e008eae6$export$ffd58b7f6f099a57 = ()=>({
13
15
  label: /*#__PURE__*/ $8USmO$css({
14
16
  name: "1b512s9",
@@ -69,7 +71,7 @@ const $0d6e001a91dc675e$export$a0c24614540b0efb = /*#__PURE__*/ $8USmO$forwardRe
69
71
  }, [
70
72
  onMouseLeave
71
73
  ]);
72
- return(/*#__PURE__*/ $8USmO$react.createElement("button", {
74
+ return(/*#__PURE__*/ $8USmO$jsxs("button", {
73
75
  type: "button",
74
76
  ...otherProps,
75
77
  className: $8USmO$cx(styles.root({
@@ -83,12 +85,17 @@ const $0d6e001a91dc675e$export$a0c24614540b0efb = /*#__PURE__*/ $8USmO$forwardRe
83
85
  onMouseLeave: handleMouseLeave,
84
86
  "data-test-id": testId,
85
87
  ref: forwardedRef,
86
- style: style
87
- }, /*#__PURE__*/ $8USmO$react.createElement($8USmO$DragIcon, {
88
- variant: "muted"
89
- }), /*#__PURE__*/ $8USmO$react.createElement("span", {
90
- className: styles.label
91
- }, label)));
88
+ style: style,
89
+ children: [
90
+ /*#__PURE__*/ $8USmO$jsx($8USmO$DragIcon, {
91
+ variant: "muted"
92
+ }),
93
+ /*#__PURE__*/ $8USmO$jsx("span", {
94
+ className: styles.label,
95
+ children: label
96
+ })
97
+ ]
98
+ }));
92
99
  });
93
100
  $0d6e001a91dc675e$export$a0c24614540b0efb.displayName = 'DragHandle';
94
101
 
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;AEGO,KAAA,CAAMW,yCAAS,QAAU,CAAhC;QACEK,KAAK,EAAA,EAAE,AAAF,SAAE,AAAF,EAAE,CAAA,UAAPA,CAAAA,CAAAA;YAAO,IAAA,EAAA,CAAA;YAAA,MAAA,EAAA,CAA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YC,SAAZ;uBAAuBC,SAAAA;QAAvB,CAAZ,GACAG,SAFS;QAIX,MAAA,EAAQgB,UAAD;QACP,OAAA,EAASF,WAAD;QACR,YAAA,EAAcG,gBAAD;QACb,YAAA,EAAcC,gBAAD;QACb,CAAA,eAAcX,MAAD;QACb,GAAA,EAAKG,YAAD;QACJ,KAAA,EAAOF,KAAD;gDAEL,eAAD;QAAU,OAAA,EAAQ,CAAlB;iDACC,CAAD;QAAM,SAAA,EAAWG,MAAM,CAACb,KAAR;OAAgBA,KAAD;AAGpC,CAtFiC;AAyFpChB,yCAAU,CAACsC,WAAX,GAAyB,CAAzB","sources":["packages/components/drag-handle/src/index.ts","packages/components/drag-handle/src/DragHandle.tsx","packages/components/drag-handle/src/DragHandle.styles.ts"],"sourcesContent":["export { DragHandle } from './DragHandle';\nexport type { DragHandleProps } from './DragHandle';\n","import React, {\n forwardRef,\n useCallback,\n useState,\n FocusEventHandler,\n MouseEventHandler,\n} from 'react';\nimport { cx } from 'emotion';\nimport type { PropsWithHTMLElement } from '@contentful/f36-core';\nimport type { CommonProps } from '@contentful/f36-core';\nimport { DragIcon } from '@contentful/f36-icons';\nimport { getStyles } from './DragHandle.styles';\n\nexport type DragHandleInternalProps = CommonProps & {\n /**\n * Applies styling for when the component is actively being dragged by\n * the user\n */\n isActive?: boolean;\n /**\n * Applies focus styling\n */\n isFocused?: boolean;\n /**\n * Applies hover styling\n */\n isHovered?: boolean;\n /**\n * Label rendered in DragHandle - not visible on screen as its purpose\n * is for screen readers only\n */\n label: string;\n};\n\nexport type DragHandleProps = PropsWithHTMLElement<\n DragHandleInternalProps,\n 'button'\n>;\n\nexport const DragHandle = forwardRef<HTMLButtonElement, DragHandleProps>(\n (\n {\n className,\n isActive,\n isFocused: isFocusedProp,\n isHovered: isHoveredProp,\n label,\n onBlur,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n testId = 'cf-ui-drag-handle',\n style,\n ...otherProps\n },\n forwardedRef,\n ) => {\n const styles = getStyles();\n const [isFocused, setisFocused] = useState(isFocusedProp);\n const [isHovered, setisHovered] = useState(isHoveredProp);\n\n const handleFocus = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(true);\n\n if (onFocus) {\n onFocus(event);\n }\n },\n [onFocus],\n );\n\n const handleBlur = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(false);\n\n if (onBlur) {\n onBlur(event);\n }\n },\n [onBlur],\n );\n\n const handleMouseEnter = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(true);\n\n if (onMouseEnter) {\n onMouseEnter(event);\n }\n },\n [onMouseEnter],\n );\n\n const handleMouseLeave = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(false);\n\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n },\n [onMouseLeave],\n );\n\n return (\n <button\n type=\"button\"\n {...otherProps}\n className={cx(\n styles.root({ isActive, isFocused, isHovered }),\n className,\n )}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n data-test-id={testId}\n ref={forwardedRef}\n style={style}\n >\n <DragIcon variant=\"muted\" />\n <span className={styles.label}>{label}</span>\n </button>\n );\n },\n);\n\nDragHandle.displayName = 'DragHandle';\n","import { cx, css } from 'emotion';\nimport tokens from '@contentful/f36-tokens';\n\nexport const getStyles = () => ({\n label: css({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n border: 0,\n }),\n root: ({\n isActive,\n isFocused,\n isHovered,\n }: {\n isActive: boolean;\n isFocused: boolean;\n isHovered: boolean;\n }) => {\n return cx(\n css({\n alignItems: 'center',\n backgroundColor: tokens.gray100,\n border: 0,\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderRight: `1px solid ${tokens.gray200}`,\n borderTopLeftRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n display: 'flex',\n justifyContent: 'center',\n padding: 0,\n position: 'relative',\n transition: `background-color ${tokens.transitionDurationDefault} ${tokens.transitionEasingDefault}`,\n width: tokens.spacingL,\n '&:hover, &:focus': {\n backgroundColor: tokens.colorElementLight,\n },\n }),\n (isActive || isFocused || isHovered) &&\n css({\n backgroundColor: tokens.gray200,\n cursor: isActive ? 'grabbing' : 'grab',\n }),\n );\n },\n});\n"],"names":["DragHandle","DragHandleProps","React","forwardRef","useCallback","useState","FocusEventHandler","MouseEventHandler","PropsWithHTMLElement","CommonProps","DragIcon","getStyles","DragHandleInternalProps","isActive","isFocused","isHovered","label","HTMLButtonElement","className","isFocusedProp","isHoveredProp","onBlur","onFocus","onMouseEnter","onMouseLeave","testId","style","otherProps","forwardedRef","styles","setisFocused","setisHovered","handleFocus","event","handleBlur","handleMouseEnter","handleMouseLeave","root","displayName","tokens","alignItems","backgroundColor","gray100","border","borderBottomLeftRadius","borderRadiusMedium","borderRight","gray200","borderTopLeftRadius","boxSizing","display","justifyContent","padding","position","transition","transitionDurationDefault","transitionEasingDefault","width","spacingL","colorElementLight","cursor"],"version":3,"file":"module.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;AEGO,KAAA,CAAMY,yCAAS,QAAU,CAAhC;QACEK,KAAK,EAAA,EAAE,AAAF,SAAE,AAAF,EAAE,CAAA,UAAPA,CAAAA,CAAAA;YAAO,IAAA,EAAA,CAAA;YAAA,MAAA,EAAA,CAAA;QAAA,CAAA;QAUPqB,IAAI,GAAG,CAAPA,WACExB,QADK,cAELC,SAFK,cAGLC,SAAAA,EACC,CAJG,GAQA,CAJH;YAKD,MAAA,CAAO,SAAA,CAAA,EACL,AADK,SACL,AADK,EACL,CAAA,UAAA,CAAI,CADN;gBAEIyB,UAAU,EAAE,CADV;gBAEFC,eAAe,EAAEF,0BAAM,CAACG,OAFtB;gBAGFC,MAAM,EAAE,CAHN;gBAIFC,sBAAsB,EAAEL,0BAAM,CAACM,kBAJ7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AR;0BAAgBA,KAAD;;;;AAGpC,CAzFiC;AA4FpCjB,yCAAU,CAACuC,WAAX,GAAyB,CAAzB","sources":["packages/components/drag-handle/src/index.ts","packages/components/drag-handle/src/DragHandle.tsx","packages/components/drag-handle/src/DragHandle.styles.ts"],"sourcesContent":["export { DragHandle } from './DragHandle';\nexport type { DragHandleProps } from './DragHandle';\n","import React, {\n forwardRef,\n useCallback,\n useState,\n FocusEventHandler,\n MouseEventHandler,\n} from 'react';\nimport { cx } from 'emotion';\nimport type { PropsWithHTMLElement } from '@contentful/f36-core';\nimport type { CommonProps, ExpandProps } from '@contentful/f36-core';\nimport { DragIcon } from '@contentful/f36-icons';\nimport { getStyles } from './DragHandle.styles';\n\nexport type DragHandleInternalProps = CommonProps & {\n /**\n * Applies styling for when the component is actively being dragged by\n * the user\n */\n isActive?: boolean;\n /**\n * Applies focus styling\n */\n isFocused?: boolean;\n /**\n * Applies hover styling\n */\n isHovered?: boolean;\n /**\n * Label rendered in DragHandle - not visible on screen as its purpose\n * is for screen readers only\n */\n label: string;\n};\n\nexport type DragHandleProps = PropsWithHTMLElement<\n DragHandleInternalProps,\n 'button'\n>;\n\nexport const DragHandle = forwardRef<\n HTMLButtonElement,\n ExpandProps<DragHandleProps>\n>(\n (\n {\n className,\n isActive,\n isFocused: isFocusedProp,\n isHovered: isHoveredProp,\n label,\n onBlur,\n onFocus,\n onMouseEnter,\n onMouseLeave,\n testId = 'cf-ui-drag-handle',\n style,\n ...otherProps\n },\n forwardedRef,\n ) => {\n const styles = getStyles();\n const [isFocused, setisFocused] = useState(isFocusedProp);\n const [isHovered, setisHovered] = useState(isHoveredProp);\n\n const handleFocus = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(true);\n\n if (onFocus) {\n onFocus(event);\n }\n },\n [onFocus],\n );\n\n const handleBlur = useCallback<FocusEventHandler<HTMLButtonElement>>(\n (event) => {\n setisFocused(false);\n\n if (onBlur) {\n onBlur(event);\n }\n },\n [onBlur],\n );\n\n const handleMouseEnter = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(true);\n\n if (onMouseEnter) {\n onMouseEnter(event);\n }\n },\n [onMouseEnter],\n );\n\n const handleMouseLeave = useCallback<MouseEventHandler<HTMLButtonElement>>(\n (event) => {\n setisHovered(false);\n\n if (onMouseLeave) {\n onMouseLeave(event);\n }\n },\n [onMouseLeave],\n );\n\n return (\n <button\n type=\"button\"\n {...otherProps}\n className={cx(\n styles.root({ isActive, isFocused, isHovered }),\n className,\n )}\n onBlur={handleBlur}\n onFocus={handleFocus}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n data-test-id={testId}\n ref={forwardedRef}\n style={style}\n >\n <DragIcon variant=\"muted\" />\n <span className={styles.label}>{label}</span>\n </button>\n );\n },\n);\n\nDragHandle.displayName = 'DragHandle';\n","import { cx, css } from 'emotion';\nimport tokens from '@contentful/f36-tokens';\n\nexport const getStyles = () => ({\n label: css({\n position: 'absolute',\n width: '1px',\n height: '1px',\n padding: 0,\n margin: '-1px',\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n border: 0,\n }),\n root: ({\n isActive,\n isFocused,\n isHovered,\n }: {\n isActive: boolean;\n isFocused: boolean;\n isHovered: boolean;\n }) => {\n return cx(\n css({\n alignItems: 'center',\n backgroundColor: tokens.gray100,\n border: 0,\n borderBottomLeftRadius: tokens.borderRadiusMedium,\n borderRight: `1px solid ${tokens.gray200}`,\n borderTopLeftRadius: tokens.borderRadiusMedium,\n boxSizing: 'border-box',\n display: 'flex',\n justifyContent: 'center',\n padding: 0,\n position: 'relative',\n transition: `background-color ${tokens.transitionDurationDefault} ${tokens.transitionEasingDefault}`,\n width: tokens.spacingL,\n '&:hover, &:focus': {\n backgroundColor: tokens.colorElementLight,\n },\n }),\n (isActive || isFocused || isHovered) &&\n css({\n backgroundColor: tokens.gray200,\n cursor: isActive ? 'grabbing' : 'grab',\n }),\n );\n },\n});\n"],"names":["DragHandle","DragHandleProps","React","forwardRef","useCallback","useState","FocusEventHandler","MouseEventHandler","PropsWithHTMLElement","CommonProps","ExpandProps","DragIcon","getStyles","DragHandleInternalProps","isActive","isFocused","isHovered","label","HTMLButtonElement","className","isFocusedProp","isHoveredProp","onBlur","onFocus","onMouseEnter","onMouseLeave","testId","style","otherProps","forwardedRef","styles","setisFocused","setisHovered","handleFocus","event","handleBlur","handleMouseEnter","handleMouseLeave","root","displayName","tokens","alignItems","backgroundColor","gray100","border","borderBottomLeftRadius","borderRadiusMedium","borderRight","gray200","borderTopLeftRadius","boxSizing","display","justifyContent","padding","position","transition","transitionDurationDefault","transitionEasingDefault","width","spacingL","colorElementLight","cursor"],"version":3,"file":"module.js.map"}
package/dist/types.d.ts CHANGED
@@ -21,24 +21,279 @@ type DragHandleInternalProps = CommonProps & {
21
21
  label: string;
22
22
  };
23
23
  export type DragHandleProps = PropsWithHTMLElement<DragHandleInternalProps, 'button'>;
24
- export const DragHandle: React.ForwardRefExoticComponent<Omit<Omit<Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof React.ButtonHTMLAttributes<HTMLButtonElement>>, never>, "label" | keyof CommonProps | "isActive" | "isFocused" | "isHovered"> & CommonProps & {
25
- /**
26
- * Applies styling for when the component is actively being dragged by
27
- * the user
28
- */
24
+ export const DragHandle: React.ForwardRefExoticComponent<{
25
+ hidden?: boolean;
26
+ color?: string;
27
+ translate?: "yes" | "no";
28
+ form?: string;
29
+ slot?: string;
30
+ title?: string;
31
+ key?: React.Key;
32
+ autoFocus?: boolean;
33
+ disabled?: boolean;
34
+ formAction?: string;
35
+ formEncType?: string;
36
+ formMethod?: string;
37
+ formNoValidate?: boolean;
38
+ formTarget?: string;
39
+ name?: string;
40
+ type?: "button" | "submit" | "reset";
41
+ value?: string | number | readonly string[];
42
+ defaultChecked?: boolean;
43
+ defaultValue?: string | number | readonly string[];
44
+ suppressContentEditableWarning?: boolean;
45
+ suppressHydrationWarning?: boolean;
46
+ accessKey?: string;
47
+ contentEditable?: "inherit" | (boolean | "true" | "false");
48
+ contextMenu?: string;
49
+ dir?: string;
50
+ draggable?: boolean | "true" | "false";
51
+ id?: string;
52
+ lang?: string;
53
+ placeholder?: string;
54
+ spellCheck?: boolean | "true" | "false";
55
+ tabIndex?: number;
56
+ radioGroup?: string;
57
+ role?: string;
58
+ about?: string;
59
+ datatype?: string;
60
+ inlist?: any;
61
+ prefix?: string;
62
+ property?: string;
63
+ resource?: string;
64
+ typeof?: string;
65
+ vocab?: string;
66
+ autoCapitalize?: string;
67
+ autoCorrect?: string;
68
+ autoSave?: string;
69
+ itemProp?: string;
70
+ itemScope?: boolean;
71
+ itemType?: string;
72
+ itemID?: string;
73
+ itemRef?: string;
74
+ results?: number;
75
+ security?: string;
76
+ unselectable?: "on" | "off";
77
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search";
78
+ is?: string;
79
+ 'aria-activedescendant'?: string;
80
+ 'aria-atomic'?: boolean | "true" | "false";
81
+ 'aria-autocomplete'?: "none" | "inline" | "list" | "both";
82
+ 'aria-busy'?: boolean | "true" | "false";
83
+ 'aria-checked'?: boolean | "true" | "false" | "mixed";
84
+ 'aria-colcount'?: number;
85
+ 'aria-colindex'?: number;
86
+ 'aria-colspan'?: number;
87
+ 'aria-controls'?: string;
88
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
89
+ 'aria-describedby'?: string;
90
+ 'aria-details'?: string;
91
+ 'aria-disabled'?: boolean | "true" | "false";
92
+ 'aria-dropeffect'?: "none" | "copy" | "move" | "link" | "execute" | "popup";
93
+ 'aria-errormessage'?: string;
94
+ 'aria-expanded'?: boolean | "true" | "false";
95
+ 'aria-flowto'?: string;
96
+ 'aria-grabbed'?: boolean | "true" | "false";
97
+ 'aria-haspopup'?: boolean | "grid" | "dialog" | "menu" | "true" | "false" | "listbox" | "tree";
98
+ 'aria-hidden'?: boolean | "true" | "false";
99
+ 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling";
100
+ 'aria-keyshortcuts'?: string;
101
+ 'aria-label'?: string;
102
+ 'aria-labelledby'?: string;
103
+ 'aria-level'?: number;
104
+ 'aria-live'?: "off" | "assertive" | "polite";
105
+ 'aria-modal'?: boolean | "true" | "false";
106
+ 'aria-multiline'?: boolean | "true" | "false";
107
+ 'aria-multiselectable'?: boolean | "true" | "false";
108
+ 'aria-orientation'?: "horizontal" | "vertical";
109
+ 'aria-owns'?: string;
110
+ 'aria-placeholder'?: string;
111
+ 'aria-posinset'?: number;
112
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed";
113
+ 'aria-readonly'?: boolean | "true" | "false";
114
+ 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
115
+ 'aria-required'?: boolean | "true" | "false";
116
+ 'aria-roledescription'?: string;
117
+ 'aria-rowcount'?: number;
118
+ 'aria-rowindex'?: number;
119
+ 'aria-rowspan'?: number;
120
+ 'aria-selected'?: boolean | "true" | "false";
121
+ 'aria-setsize'?: number;
122
+ 'aria-sort'?: "none" | "ascending" | "descending" | "other";
123
+ 'aria-valuemax'?: number;
124
+ 'aria-valuemin'?: number;
125
+ 'aria-valuenow'?: number;
126
+ 'aria-valuetext'?: string;
127
+ children?: React.ReactNode;
128
+ dangerouslySetInnerHTML?: {
129
+ __html: string;
130
+ };
131
+ onCopy?: React.ClipboardEventHandler<HTMLButtonElement>;
132
+ onCopyCapture?: React.ClipboardEventHandler<HTMLButtonElement>;
133
+ onCut?: React.ClipboardEventHandler<HTMLButtonElement>;
134
+ onCutCapture?: React.ClipboardEventHandler<HTMLButtonElement>;
135
+ onPaste?: React.ClipboardEventHandler<HTMLButtonElement>;
136
+ onPasteCapture?: React.ClipboardEventHandler<HTMLButtonElement>;
137
+ onCompositionEnd?: React.CompositionEventHandler<HTMLButtonElement>;
138
+ onCompositionEndCapture?: React.CompositionEventHandler<HTMLButtonElement>;
139
+ onCompositionStart?: React.CompositionEventHandler<HTMLButtonElement>;
140
+ onCompositionStartCapture?: React.CompositionEventHandler<HTMLButtonElement>;
141
+ onCompositionUpdate?: React.CompositionEventHandler<HTMLButtonElement>;
142
+ onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
143
+ onFocus?: React.FocusEventHandler<HTMLButtonElement>;
144
+ onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
145
+ onBlur?: React.FocusEventHandler<HTMLButtonElement>;
146
+ onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
147
+ onChange?: React.FormEventHandler<HTMLButtonElement>;
148
+ onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
149
+ onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
150
+ onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
151
+ onInput?: React.FormEventHandler<HTMLButtonElement>;
152
+ onInputCapture?: React.FormEventHandler<HTMLButtonElement>;
153
+ onReset?: React.FormEventHandler<HTMLButtonElement>;
154
+ onResetCapture?: React.FormEventHandler<HTMLButtonElement>;
155
+ onSubmit?: React.FormEventHandler<HTMLButtonElement>;
156
+ onSubmitCapture?: React.FormEventHandler<HTMLButtonElement>;
157
+ onInvalid?: React.FormEventHandler<HTMLButtonElement>;
158
+ onInvalidCapture?: React.FormEventHandler<HTMLButtonElement>;
159
+ onLoad?: React.ReactEventHandler<HTMLButtonElement>;
160
+ onLoadCapture?: React.ReactEventHandler<HTMLButtonElement>;
161
+ onError?: React.ReactEventHandler<HTMLButtonElement>;
162
+ onErrorCapture?: React.ReactEventHandler<HTMLButtonElement>;
163
+ onKeyDown?: React.KeyboardEventHandler<HTMLButtonElement>;
164
+ onKeyDownCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
165
+ onKeyPress?: React.KeyboardEventHandler<HTMLButtonElement>;
166
+ onKeyPressCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
167
+ onKeyUp?: React.KeyboardEventHandler<HTMLButtonElement>;
168
+ onKeyUpCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
169
+ onAbort?: React.ReactEventHandler<HTMLButtonElement>;
170
+ onAbortCapture?: React.ReactEventHandler<HTMLButtonElement>;
171
+ onCanPlay?: React.ReactEventHandler<HTMLButtonElement>;
172
+ onCanPlayCapture?: React.ReactEventHandler<HTMLButtonElement>;
173
+ onCanPlayThrough?: React.ReactEventHandler<HTMLButtonElement>;
174
+ onCanPlayThroughCapture?: React.ReactEventHandler<HTMLButtonElement>;
175
+ onDurationChange?: React.ReactEventHandler<HTMLButtonElement>;
176
+ onDurationChangeCapture?: React.ReactEventHandler<HTMLButtonElement>;
177
+ onEmptied?: React.ReactEventHandler<HTMLButtonElement>;
178
+ onEmptiedCapture?: React.ReactEventHandler<HTMLButtonElement>;
179
+ onEncrypted?: React.ReactEventHandler<HTMLButtonElement>;
180
+ onEncryptedCapture?: React.ReactEventHandler<HTMLButtonElement>;
181
+ onEnded?: React.ReactEventHandler<HTMLButtonElement>;
182
+ onEndedCapture?: React.ReactEventHandler<HTMLButtonElement>;
183
+ onLoadedData?: React.ReactEventHandler<HTMLButtonElement>;
184
+ onLoadedDataCapture?: React.ReactEventHandler<HTMLButtonElement>;
185
+ onLoadedMetadata?: React.ReactEventHandler<HTMLButtonElement>;
186
+ onLoadedMetadataCapture?: React.ReactEventHandler<HTMLButtonElement>;
187
+ onLoadStart?: React.ReactEventHandler<HTMLButtonElement>;
188
+ onLoadStartCapture?: React.ReactEventHandler<HTMLButtonElement>;
189
+ onPause?: React.ReactEventHandler<HTMLButtonElement>;
190
+ onPauseCapture?: React.ReactEventHandler<HTMLButtonElement>;
191
+ onPlay?: React.ReactEventHandler<HTMLButtonElement>;
192
+ onPlayCapture?: React.ReactEventHandler<HTMLButtonElement>;
193
+ onPlaying?: React.ReactEventHandler<HTMLButtonElement>;
194
+ onPlayingCapture?: React.ReactEventHandler<HTMLButtonElement>;
195
+ onProgress?: React.ReactEventHandler<HTMLButtonElement>;
196
+ onProgressCapture?: React.ReactEventHandler<HTMLButtonElement>;
197
+ onRateChange?: React.ReactEventHandler<HTMLButtonElement>;
198
+ onRateChangeCapture?: React.ReactEventHandler<HTMLButtonElement>;
199
+ onSeeked?: React.ReactEventHandler<HTMLButtonElement>;
200
+ onSeekedCapture?: React.ReactEventHandler<HTMLButtonElement>;
201
+ onSeeking?: React.ReactEventHandler<HTMLButtonElement>;
202
+ onSeekingCapture?: React.ReactEventHandler<HTMLButtonElement>;
203
+ onStalled?: React.ReactEventHandler<HTMLButtonElement>;
204
+ onStalledCapture?: React.ReactEventHandler<HTMLButtonElement>;
205
+ onSuspend?: React.ReactEventHandler<HTMLButtonElement>;
206
+ onSuspendCapture?: React.ReactEventHandler<HTMLButtonElement>;
207
+ onTimeUpdate?: React.ReactEventHandler<HTMLButtonElement>;
208
+ onTimeUpdateCapture?: React.ReactEventHandler<HTMLButtonElement>;
209
+ onVolumeChange?: React.ReactEventHandler<HTMLButtonElement>;
210
+ onVolumeChangeCapture?: React.ReactEventHandler<HTMLButtonElement>;
211
+ onWaiting?: React.ReactEventHandler<HTMLButtonElement>;
212
+ onWaitingCapture?: React.ReactEventHandler<HTMLButtonElement>;
213
+ onAuxClick?: React.MouseEventHandler<HTMLButtonElement>;
214
+ onAuxClickCapture?: React.MouseEventHandler<HTMLButtonElement>;
215
+ onClick?: React.MouseEventHandler<HTMLButtonElement>;
216
+ onClickCapture?: React.MouseEventHandler<HTMLButtonElement>;
217
+ onContextMenu?: React.MouseEventHandler<HTMLButtonElement>;
218
+ onContextMenuCapture?: React.MouseEventHandler<HTMLButtonElement>;
219
+ onDoubleClick?: React.MouseEventHandler<HTMLButtonElement>;
220
+ onDoubleClickCapture?: React.MouseEventHandler<HTMLButtonElement>;
221
+ onDrag?: React.DragEventHandler<HTMLButtonElement>;
222
+ onDragCapture?: React.DragEventHandler<HTMLButtonElement>;
223
+ onDragEnd?: React.DragEventHandler<HTMLButtonElement>;
224
+ onDragEndCapture?: React.DragEventHandler<HTMLButtonElement>;
225
+ onDragEnter?: React.DragEventHandler<HTMLButtonElement>;
226
+ onDragEnterCapture?: React.DragEventHandler<HTMLButtonElement>;
227
+ onDragExit?: React.DragEventHandler<HTMLButtonElement>;
228
+ onDragExitCapture?: React.DragEventHandler<HTMLButtonElement>;
229
+ onDragLeave?: React.DragEventHandler<HTMLButtonElement>;
230
+ onDragLeaveCapture?: React.DragEventHandler<HTMLButtonElement>;
231
+ onDragOver?: React.DragEventHandler<HTMLButtonElement>;
232
+ onDragOverCapture?: React.DragEventHandler<HTMLButtonElement>;
233
+ onDragStart?: React.DragEventHandler<HTMLButtonElement>;
234
+ onDragStartCapture?: React.DragEventHandler<HTMLButtonElement>;
235
+ onDrop?: React.DragEventHandler<HTMLButtonElement>;
236
+ onDropCapture?: React.DragEventHandler<HTMLButtonElement>;
237
+ onMouseDown?: React.MouseEventHandler<HTMLButtonElement>;
238
+ onMouseDownCapture?: React.MouseEventHandler<HTMLButtonElement>;
239
+ onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
240
+ onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
241
+ onMouseMove?: React.MouseEventHandler<HTMLButtonElement>;
242
+ onMouseMoveCapture?: React.MouseEventHandler<HTMLButtonElement>;
243
+ onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
244
+ onMouseOutCapture?: React.MouseEventHandler<HTMLButtonElement>;
245
+ onMouseOver?: React.MouseEventHandler<HTMLButtonElement>;
246
+ onMouseOverCapture?: React.MouseEventHandler<HTMLButtonElement>;
247
+ onMouseUp?: React.MouseEventHandler<HTMLButtonElement>;
248
+ onMouseUpCapture?: React.MouseEventHandler<HTMLButtonElement>;
249
+ onSelect?: React.ReactEventHandler<HTMLButtonElement>;
250
+ onSelectCapture?: React.ReactEventHandler<HTMLButtonElement>;
251
+ onTouchCancel?: React.TouchEventHandler<HTMLButtonElement>;
252
+ onTouchCancelCapture?: React.TouchEventHandler<HTMLButtonElement>;
253
+ onTouchEnd?: React.TouchEventHandler<HTMLButtonElement>;
254
+ onTouchEndCapture?: React.TouchEventHandler<HTMLButtonElement>;
255
+ onTouchMove?: React.TouchEventHandler<HTMLButtonElement>;
256
+ onTouchMoveCapture?: React.TouchEventHandler<HTMLButtonElement>;
257
+ onTouchStart?: React.TouchEventHandler<HTMLButtonElement>;
258
+ onTouchStartCapture?: React.TouchEventHandler<HTMLButtonElement>;
259
+ onPointerDown?: React.PointerEventHandler<HTMLButtonElement>;
260
+ onPointerDownCapture?: React.PointerEventHandler<HTMLButtonElement>;
261
+ onPointerMove?: React.PointerEventHandler<HTMLButtonElement>;
262
+ onPointerMoveCapture?: React.PointerEventHandler<HTMLButtonElement>;
263
+ onPointerUp?: React.PointerEventHandler<HTMLButtonElement>;
264
+ onPointerUpCapture?: React.PointerEventHandler<HTMLButtonElement>;
265
+ onPointerCancel?: React.PointerEventHandler<HTMLButtonElement>;
266
+ onPointerCancelCapture?: React.PointerEventHandler<HTMLButtonElement>;
267
+ onPointerEnter?: React.PointerEventHandler<HTMLButtonElement>;
268
+ onPointerEnterCapture?: React.PointerEventHandler<HTMLButtonElement>;
269
+ onPointerLeave?: React.PointerEventHandler<HTMLButtonElement>;
270
+ onPointerLeaveCapture?: React.PointerEventHandler<HTMLButtonElement>;
271
+ onPointerOver?: React.PointerEventHandler<HTMLButtonElement>;
272
+ onPointerOverCapture?: React.PointerEventHandler<HTMLButtonElement>;
273
+ onPointerOut?: React.PointerEventHandler<HTMLButtonElement>;
274
+ onPointerOutCapture?: React.PointerEventHandler<HTMLButtonElement>;
275
+ onGotPointerCapture?: React.PointerEventHandler<HTMLButtonElement>;
276
+ onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLButtonElement>;
277
+ onLostPointerCapture?: React.PointerEventHandler<HTMLButtonElement>;
278
+ onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLButtonElement>;
279
+ onScroll?: React.UIEventHandler<HTMLButtonElement>;
280
+ onScrollCapture?: React.UIEventHandler<HTMLButtonElement>;
281
+ onWheel?: React.WheelEventHandler<HTMLButtonElement>;
282
+ onWheelCapture?: React.WheelEventHandler<HTMLButtonElement>;
283
+ onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
284
+ onAnimationStartCapture?: React.AnimationEventHandler<HTMLButtonElement>;
285
+ onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
286
+ onAnimationEndCapture?: React.AnimationEventHandler<HTMLButtonElement>;
287
+ onAnimationIteration?: React.AnimationEventHandler<HTMLButtonElement>;
288
+ onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
289
+ onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
290
+ onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
291
+ className?: string;
292
+ testId?: string;
293
+ style?: React.CSSProperties;
29
294
  isActive?: boolean;
30
- /**
31
- * Applies focus styling
32
- */
33
295
  isFocused?: boolean;
34
- /**
35
- * Applies hover styling
36
- */
37
296
  isHovered?: boolean;
38
- /**
39
- * Label rendered in DragHandle - not visible on screen as its purpose
40
- * is for screen readers only
41
- */
42
297
  label: string;
43
298
  } & React.RefAttributes<HTMLButtonElement>>;
44
299
 
@@ -1 +1 @@
1
- {"mappings":";;ACaA,+BAAsC,WAAW,GAAG;IAClD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,8BAA8B,qBAC5B,uBAAuB,EACvB,QAAQ,CACT,CAAC;AAEF,OAAO,MAAM;IAzBX;;;OAGG;eACQ,OAAO;IAClB;;OAEG;gBACS,OAAO;IACnB;;OAEG;gBACS,OAAO;IACnB;;;OAGG;WACI,MAAM;2CA+Fd,CAAC","sources":["packages/components/drag-handle/src/src/DragHandle.styles.ts","packages/components/drag-handle/src/src/DragHandle.tsx","packages/components/drag-handle/src/src/index.ts","packages/components/drag-handle/src/index.ts"],"sourcesContent":[null,null,null,"export { DragHandle } from './DragHandle';\nexport type { DragHandleProps } from './DragHandle';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":";;ACaA,+BAAsC,WAAW,GAAG;IAClD;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,8BAA8B,qBAC5B,uBAAuB,EACvB,QAAQ,CACT,CAAC;AAEF,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eArBA,OAAO;gBAIN,OAAO;gBAIP,OAAO;WAKZ,MAAM;2CAkGd,CAAC","sources":["packages/components/drag-handle/src/src/DragHandle.styles.ts","packages/components/drag-handle/src/src/DragHandle.tsx","packages/components/drag-handle/src/src/index.ts","packages/components/drag-handle/src/index.ts"],"sourcesContent":[null,null,null,"export { DragHandle } from './DragHandle';\nexport type { DragHandleProps } from './DragHandle';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@contentful/f36-drag-handle",
3
- "version": "4.0.1-beta.2543+13837c6519",
3
+ "version": "4.0.1-beta.2590+bfd9a9a5",
4
4
  "description": "Forma 36: DragHandle component",
5
5
  "scripts": {
6
6
  "build": "parcel build"
7
7
  },
8
8
  "dependencies": {
9
9
  "@babel/runtime": "^7.6.2",
10
- "@contentful/f36-core": "4.0.1-beta.2543+13837c6519",
11
- "@contentful/f36-icons": "4.0.1-beta.2543+13837c6519",
12
- "@contentful/f36-tokens": "4.0.1-beta.2543+13837c6519",
10
+ "@contentful/f36-core": "4.0.1-beta.2590+bfd9a9a5",
11
+ "@contentful/f36-icons": "4.0.1-beta.2590+bfd9a9a5",
12
+ "@contentful/f36-tokens": "4.0.1-beta.2590+bfd9a9a5",
13
13
  "emotion": "^10.0.17"
14
14
  },
15
15
  "peerDependencies": {
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "13837c651951ee91714ef39bf5295702f8267764"
35
+ "gitHead": "bfd9a9a5affcb943abbc97639ebae3abc67844fd"
36
36
  }