jy-headless 0.2.28 → 0.2.29
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/cjs/index.d.ts +3 -3
- package/cjs/index.js +2 -6
- package/cjs/selectors/Dropdown/Dropdown.js +1 -3
- package/index.d.ts +3 -3
- package/index.js +2 -3
- package/package.json +1 -1
- package/selectors/Dropdown/Dropdown.js +1 -3
- package/version.txt +1 -1
package/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './buttons';
|
|
2
|
+
export * from './inputs';
|
|
3
|
+
export * from './selectors';
|
|
4
4
|
export * from './types';
|
|
5
5
|
export * from './utils';
|
|
6
6
|
export * from './hooks';
|
package/cjs/index.js
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var Input = require('./inputs/Input/Input.js');
|
|
5
|
-
var Dropdown = require('./selectors/Dropdown/Dropdown.js');
|
|
3
|
+
require('react/jsx-runtime');
|
|
6
4
|
require('react');
|
|
5
|
+
require('./selectors/Dropdown/Dropdown.js');
|
|
7
6
|
var useDropdown = require('./hooks/useDropdown.js');
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
|
11
|
-
exports.Button = Button;
|
|
12
|
-
exports.Input = Input;
|
|
13
|
-
exports.Dropdown = Dropdown;
|
|
14
10
|
exports.DropdownContext = useDropdown.DropdownContext;
|
|
15
11
|
exports.useDropdownContext = useDropdown.useDropdownContext;
|
|
@@ -45,11 +45,9 @@ const DropdownOption = ({ children, value, ...props }) => {
|
|
|
45
45
|
const { select } = useDropdown.useDropdownContext();
|
|
46
46
|
return (jsxRuntime.jsx("div", { role: "option", onClick: () => select(value), ...props, children: children }));
|
|
47
47
|
};
|
|
48
|
-
|
|
48
|
+
Object.assign(DropdownRoot, {
|
|
49
49
|
Button: DropdownButton,
|
|
50
50
|
Options: DropdownOptions,
|
|
51
51
|
Option: DropdownOption,
|
|
52
52
|
Viewer: DropdownViewer,
|
|
53
53
|
});
|
|
54
|
-
|
|
55
|
-
module.exports = Dropdown;
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export * from './buttons';
|
|
2
|
+
export * from './inputs';
|
|
3
|
+
export * from './selectors';
|
|
4
4
|
export * from './types';
|
|
5
5
|
export * from './utils';
|
|
6
6
|
export * from './hooks';
|
package/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as Input } from './inputs/Input/Input.js';
|
|
3
|
-
export { default as Dropdown } from './selectors/Dropdown/Dropdown.js';
|
|
1
|
+
import 'react/jsx-runtime';
|
|
4
2
|
import 'react';
|
|
3
|
+
import './selectors/Dropdown/Dropdown.js';
|
|
5
4
|
export { DropdownContext, useDropdownContext } from './hooks/useDropdown.js';
|
package/package.json
CHANGED
|
@@ -43,11 +43,9 @@ const DropdownOption = ({ children, value, ...props }) => {
|
|
|
43
43
|
const { select } = useDropdownContext();
|
|
44
44
|
return (jsx("div", { role: "option", onClick: () => select(value), ...props, children: children }));
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
Object.assign(DropdownRoot, {
|
|
47
47
|
Button: DropdownButton,
|
|
48
48
|
Options: DropdownOptions,
|
|
49
49
|
Option: DropdownOption,
|
|
50
50
|
Viewer: DropdownViewer,
|
|
51
51
|
});
|
|
52
|
-
|
|
53
|
-
export { Dropdown as default };
|
package/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.29
|