datocms-react-ui 0.3.23 → 0.3.24-alpha.4
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/cjs/Dropdown/Dropdown.js +2 -2
- package/dist/cjs/Dropdown/Dropdown.js.map +1 -1
- package/dist/cjs/index.js +11 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/useClickOutside/index.js +2 -1
- package/dist/cjs/useClickOutside/index.js.map +1 -1
- package/dist/esm/Dropdown/Dropdown.js +1 -1
- package/dist/esm/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/index.d.ts +11 -9
- package/dist/esm/index.js +11 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/useClickOutside/index.d.ts +1 -1
- package/dist/esm/useClickOutside/index.js +1 -1
- package/dist/esm/useClickOutside/index.js.map +1 -1
- package/dist/types/index.d.ts +11 -9
- package/dist/types/useClickOutside/index.d.ts +1 -1
- package/package.json +3 -3
- package/types.json +1403 -1054
|
@@ -25,7 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.Dropdown = void 0;
|
|
26
26
|
var react_1 = __importStar(require("react"));
|
|
27
27
|
var useMediaQuery_1 = require("../useMediaQuery");
|
|
28
|
-
var useClickOutside_1 =
|
|
28
|
+
var useClickOutside_1 = require("../useClickOutside");
|
|
29
29
|
var DropdownContext_1 = require("./DropdownContext");
|
|
30
30
|
var styles_module_css_json_1 = __importDefault(require("./styles.module.css.json"));
|
|
31
31
|
/**
|
|
@@ -144,7 +144,7 @@ function Dropdown(_a) {
|
|
|
144
144
|
setOpen(false);
|
|
145
145
|
}
|
|
146
146
|
}, [setOpen, isOpen, isClickOutsideEnabled]);
|
|
147
|
-
var outsideRef = (0, useClickOutside_1.
|
|
147
|
+
var outsideRef = (0, useClickOutside_1.useClickOutside)(handleClickOutside);
|
|
148
148
|
var handleClose = (0, react_1.useCallback)(function () {
|
|
149
149
|
setOpen(false);
|
|
150
150
|
}, [setOpen]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/Dropdown/Dropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwE;AACxE,kDAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/Dropdown/Dropdown.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAwE;AACxE,kDAA8C;AAC9C,sDAAqD;AACrD,qDAAoD;AACpD,oFAAyC;AAYzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,SAAgB,QAAQ,CAAC,EAGT;QAFd,aAAa,mBAAA,EACb,QAAQ,cAAA;IAER,IAAM,qBAAqB,GAAG,IAAA,cAAM,GAAW,CAAC;IAC1C,IAAA,KAAoB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAlC,MAAM,QAAA,EAAE,OAAO,QAAmB,CAAC;IAE1C,IAAA,iBAAS,EAAC;QACR,qBAAqB,CAAC,OAAO,GAAG,KAAK,CAAC;IACxC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,kBAAkB,GAAG,IAAA,mBAAW,EACpC,UAAC,KAAK;QACJ,IACE,qBAAqB,CAAC,OAAO;YAC7B,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,gCAAC,CAAC,gBAAgB,CAAC,CAAC;YAChD,MAAM,EACN;YACA,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB;IACH,CAAC,EACD,CAAC,OAAO,EAAE,MAAM,EAAE,qBAAqB,CAAC,CACzC,CAAC;IAEF,IAAM,UAAU,GAAG,IAAA,iCAAe,EAAiB,kBAAkB,CAAC,CAAC;IAEvE,IAAM,WAAW,GAAG,IAAA,mBAAW,EAAC;QAC9B,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,IAAM,YAAY,GAAG,IAAA,mBAAW,EAAC;QAC/B,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,IAAI,EAAL,CAAK,CAAC,CAAC;IAC3B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,CACL,8BAAC,0BAAU,IAAC,KAAK,EAAC,qBAAqB,IACpC,UAAC,EAAW;YAAT,OAAO,aAAA;QACT,qDAAqD;QACrD,oDAAoD;QACpD,qBAAqB,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC;QAEzC,OAAO,CACL,8BAAC,iCAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE;YACzD,uCAAK,SAAS,EAAE,gCAAC,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,UAAU;gBAC3C,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;gBACtD,MAAM,IAAI,QAAQ,CACf,CACmB,CAC5B,CAAC;IACJ,CAAC,CACU,CACd,CAAC;AACJ,CAAC;AApDD,4BAoDC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -11,24 +11,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./Button"), exports);
|
|
14
|
+
__exportStar(require("./ButtonGroup"), exports);
|
|
14
15
|
__exportStar(require("./Canvas"), exports);
|
|
16
|
+
__exportStar(require("./ContextInspector"), exports);
|
|
17
|
+
__exportStar(require("./Dropdown"), exports);
|
|
15
18
|
__exportStar(require("./FieldError"), exports);
|
|
16
19
|
__exportStar(require("./FieldGroup"), exports);
|
|
17
20
|
__exportStar(require("./FieldHint"), exports);
|
|
18
21
|
__exportStar(require("./Form"), exports);
|
|
19
22
|
__exportStar(require("./FormLabel"), exports);
|
|
23
|
+
__exportStar(require("./icons"), exports);
|
|
24
|
+
__exportStar(require("./Section"), exports);
|
|
25
|
+
__exportStar(require("./SelectField"), exports);
|
|
26
|
+
__exportStar(require("./SelectInput"), exports);
|
|
27
|
+
__exportStar(require("./SidebarPanel"), exports);
|
|
28
|
+
__exportStar(require("./Spinner"), exports);
|
|
20
29
|
__exportStar(require("./SwitchField"), exports);
|
|
21
30
|
__exportStar(require("./SwitchInput"), exports);
|
|
22
31
|
__exportStar(require("./TextField"), exports);
|
|
23
32
|
__exportStar(require("./TextInput"), exports);
|
|
24
|
-
__exportStar(require("./ContextInspector"), exports);
|
|
25
|
-
__exportStar(require("./Section"), exports);
|
|
26
|
-
__exportStar(require("./SelectInput"), exports);
|
|
27
|
-
__exportStar(require("./SelectField"), exports);
|
|
28
|
-
__exportStar(require("./ButtonGroup"), exports);
|
|
29
33
|
__exportStar(require("./Toolbar"), exports);
|
|
30
|
-
__exportStar(require("./
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./Dropdown"), exports);
|
|
33
|
-
__exportStar(require("./icons"), exports);
|
|
34
|
+
__exportStar(require("./useClickOutside"), exports);
|
|
35
|
+
__exportStar(require("./useMediaQuery"), exports);
|
|
34
36
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,yCAAuB;AACvB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,gDAA8B;AAC9B,2CAAyB;AACzB,qDAAmC;AACnC,6CAA2B;AAC3B,+CAA6B;AAC7B,+CAA6B;AAC7B,8CAA4B;AAC5B,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAwB;AACxB,4CAA0B;AAC1B,gDAA8B;AAC9B,gDAA8B;AAC9B,iDAA+B;AAC/B,4CAA0B;AAC1B,gDAA8B;AAC9B,gDAA8B;AAC9B,8CAA4B;AAC5B,8CAA4B;AAC5B,4CAA0B;AAC1B,oDAAkC;AAClC,kDAAgC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useClickOutside = void 0;
|
|
3
4
|
var react_1 = require("react");
|
|
4
5
|
function useClickOutside(handler) {
|
|
5
6
|
var ref = (0, react_1.useRef)(null);
|
|
@@ -20,5 +21,5 @@ function useClickOutside(handler) {
|
|
|
20
21
|
}, [handleClick]);
|
|
21
22
|
return ref;
|
|
22
23
|
}
|
|
23
|
-
exports.
|
|
24
|
+
exports.useClickOutside = useClickOutside;
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useClickOutside/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useClickOutside/index.ts"],"names":[],"mappings":";;;AAAA,+BAAuD;AAEvD,SAAgB,eAAe,CAC7B,OAAiD;IAEjD,IAAM,GAAG,GAAG,IAAA,cAAM,EAAI,IAAI,CAAC,CAAC;IAE5B,IAAM,WAAW,GAAG,IAAA,mBAAW,EAC7B,UAAC,KAA8B;QAC7B,KAAK,CAAC,MAAM,CAAC;QACb,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE;YAC9D,OAAO;SACR;QACD,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,IAAA,iBAAS,EAAC;QACR,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACpD,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAErD,OAAO;YACL,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACvD,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAC1D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,GAAG,CAAC;AACb,CAAC;AA3BD,0CA2BC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
|
2
2
|
import { MediaQuery } from '../useMediaQuery';
|
|
3
|
-
import useClickOutside from '../useClickOutside';
|
|
3
|
+
import { useClickOutside } from '../useClickOutside';
|
|
4
4
|
import { DropdownContext } from './DropdownContext';
|
|
5
5
|
import s from './styles.module.css.json';
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,eAAe,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"Dropdown.js","sourceRoot":"","sources":["../../../src/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,CAAC,MAAM,0BAA0B,CAAC;AAYzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqGG;AACH,MAAM,UAAU,QAAQ,CAAC,EAGT;QAFd,aAAa,mBAAA,EACb,QAAQ,cAAA;IAER,IAAM,qBAAqB,GAAG,MAAM,EAAW,CAAC;IAC1C,IAAA,KAAoB,QAAQ,CAAC,KAAK,CAAC,EAAlC,MAAM,QAAA,EAAE,OAAO,QAAmB,CAAC;IAE1C,SAAS,CAAC;QACR,qBAAqB,CAAC,OAAO,GAAG,KAAK,CAAC;IACxC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAM,kBAAkB,GAAG,WAAW,CACpC,UAAC,KAAK;QACJ,IACE,qBAAqB,CAAC,OAAO;YAC7B,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,CAAC,gBAAgB,CAAC,CAAC;YAChD,MAAM,EACN;YACA,OAAO,CAAC,KAAK,CAAC,CAAC;SAChB;IACH,CAAC,EACD,CAAC,OAAO,EAAE,MAAM,EAAE,qBAAqB,CAAC,CACzC,CAAC;IAEF,IAAM,UAAU,GAAG,eAAe,CAAiB,kBAAkB,CAAC,CAAC;IAEvE,IAAM,WAAW,GAAG,WAAW,CAAC;QAC9B,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,IAAM,YAAY,GAAG,WAAW,CAAC;QAC/B,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,CAAC,IAAI,EAAL,CAAK,CAAC,CAAC;IAC3B,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,OAAO,CACL,oBAAC,UAAU,IAAC,KAAK,EAAC,qBAAqB,IACpC,UAAC,EAAW;YAAT,OAAO,aAAA;QACT,qDAAqD;QACrD,oDAAoD;QACpD,qBAAqB,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC;QAEzC,OAAO,CACL,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE;YACzD,6BAAK,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,UAAU;gBAC3C,aAAa,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;gBACtD,MAAM,IAAI,QAAQ,CACf,CACmB,CAC5B,CAAC;IACJ,CAAC,CACU,CACd,CAAC;AACJ,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
export * from './Button';
|
|
2
|
+
export * from './ButtonGroup';
|
|
2
3
|
export * from './Canvas';
|
|
4
|
+
export * from './ContextInspector';
|
|
5
|
+
export * from './Dropdown';
|
|
3
6
|
export * from './FieldError';
|
|
4
7
|
export * from './FieldGroup';
|
|
5
8
|
export * from './FieldHint';
|
|
6
9
|
export * from './Form';
|
|
7
10
|
export * from './FormLabel';
|
|
11
|
+
export * from './icons';
|
|
12
|
+
export * from './Section';
|
|
13
|
+
export * from './SelectField';
|
|
14
|
+
export * from './SelectInput';
|
|
15
|
+
export * from './SidebarPanel';
|
|
16
|
+
export * from './Spinner';
|
|
8
17
|
export * from './SwitchField';
|
|
9
18
|
export * from './SwitchInput';
|
|
10
19
|
export * from './TextField';
|
|
11
20
|
export * from './TextInput';
|
|
12
|
-
export * from './ContextInspector';
|
|
13
|
-
export * from './Section';
|
|
14
|
-
export * from './SelectInput';
|
|
15
|
-
export * from './SelectField';
|
|
16
|
-
export * from './ButtonGroup';
|
|
17
21
|
export * from './Toolbar';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './Dropdown';
|
|
21
|
-
export * from './icons';
|
|
22
|
+
export * from './useClickOutside';
|
|
23
|
+
export * from './useMediaQuery';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
export * from './Button';
|
|
2
|
+
export * from './ButtonGroup';
|
|
2
3
|
export * from './Canvas';
|
|
4
|
+
export * from './ContextInspector';
|
|
5
|
+
export * from './Dropdown';
|
|
3
6
|
export * from './FieldError';
|
|
4
7
|
export * from './FieldGroup';
|
|
5
8
|
export * from './FieldHint';
|
|
6
9
|
export * from './Form';
|
|
7
10
|
export * from './FormLabel';
|
|
11
|
+
export * from './icons';
|
|
12
|
+
export * from './Section';
|
|
13
|
+
export * from './SelectField';
|
|
14
|
+
export * from './SelectInput';
|
|
15
|
+
export * from './SidebarPanel';
|
|
16
|
+
export * from './Spinner';
|
|
8
17
|
export * from './SwitchField';
|
|
9
18
|
export * from './SwitchInput';
|
|
10
19
|
export * from './TextField';
|
|
11
20
|
export * from './TextInput';
|
|
12
|
-
export * from './ContextInspector';
|
|
13
|
-
export * from './Section';
|
|
14
|
-
export * from './SelectInput';
|
|
15
|
-
export * from './SelectField';
|
|
16
|
-
export * from './ButtonGroup';
|
|
17
21
|
export * from './Toolbar';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './Dropdown';
|
|
21
|
-
export * from './icons';
|
|
22
|
+
export * from './useClickOutside';
|
|
23
|
+
export * from './useMediaQuery';
|
|
22
24
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export declare function useClickOutside<T extends HTMLElement>(handler: (event: MouseEvent | TouchEvent) => void): React.RefObject<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useClickOutside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useClickOutside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEvD,MAAM,UAAU,eAAe,CAC7B,OAAiD;IAEjD,IAAM,GAAG,GAAG,MAAM,CAAI,IAAI,CAAC,CAAC;IAE5B,IAAM,WAAW,GAAG,WAAW,CAC7B,UAAC,KAA8B;QAC7B,KAAK,CAAC,MAAM,CAAC;QACb,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAc,CAAC,EAAE;YAC9D,OAAO;SACR;QACD,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAC;IAEF,SAAS,CAAC;QACR,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QACpD,QAAQ,CAAC,gBAAgB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAErD,OAAO;YACL,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACvD,QAAQ,CAAC,mBAAmB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;QAC1D,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
export * from './Button';
|
|
2
|
+
export * from './ButtonGroup';
|
|
2
3
|
export * from './Canvas';
|
|
4
|
+
export * from './ContextInspector';
|
|
5
|
+
export * from './Dropdown';
|
|
3
6
|
export * from './FieldError';
|
|
4
7
|
export * from './FieldGroup';
|
|
5
8
|
export * from './FieldHint';
|
|
6
9
|
export * from './Form';
|
|
7
10
|
export * from './FormLabel';
|
|
11
|
+
export * from './icons';
|
|
12
|
+
export * from './Section';
|
|
13
|
+
export * from './SelectField';
|
|
14
|
+
export * from './SelectInput';
|
|
15
|
+
export * from './SidebarPanel';
|
|
16
|
+
export * from './Spinner';
|
|
8
17
|
export * from './SwitchField';
|
|
9
18
|
export * from './SwitchInput';
|
|
10
19
|
export * from './TextField';
|
|
11
20
|
export * from './TextInput';
|
|
12
|
-
export * from './ContextInspector';
|
|
13
|
-
export * from './Section';
|
|
14
|
-
export * from './SelectInput';
|
|
15
|
-
export * from './SelectField';
|
|
16
|
-
export * from './ButtonGroup';
|
|
17
21
|
export * from './Toolbar';
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './Dropdown';
|
|
21
|
-
export * from './icons';
|
|
22
|
+
export * from './useClickOutside';
|
|
23
|
+
export * from './useMediaQuery';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export declare function useClickOutside<T extends HTMLElement>(handler: (event: MouseEvent | TouchEvent) => void): React.RefObject<T>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-react-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.24-alpha.4",
|
|
4
4
|
"description": "React components to use inside DatoCMS plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"classnames": "^2.3.1",
|
|
43
|
-
"datocms-plugin-sdk": "^0.3.
|
|
43
|
+
"datocms-plugin-sdk": "^0.3.24-alpha.3",
|
|
44
44
|
"react-intersection-observer": "^8.31.0",
|
|
45
45
|
"react-select": "^5.2.1",
|
|
46
46
|
"scroll-into-view-if-needed": "^2.2.20"
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"postcss-nested": "^5.0.6",
|
|
57
57
|
"typedoc": "^0.22.8"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "a97bbbf34c45e44a9e3beb75cf966675c24df241"
|
|
60
60
|
}
|