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 CHANGED
@@ -1,6 +1,6 @@
1
- export { default as Button } from './buttons';
2
- export { default as Input } from './inputs';
3
- export { default as Dropdown } from './selectors';
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
- var Button = require('./buttons/Button/Button.js');
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
- const Dropdown = Object.assign(DropdownRoot, {
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 { default as Button } from './buttons';
2
- export { default as Input } from './inputs';
3
- export { default as Dropdown } from './selectors';
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
- export { default as Button } from './buttons/Button/Button.js';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jy-headless",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "description": "A lightweight and customizable headless UI library for React components",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/yCZwIqY/jy-headless",
@@ -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
- const Dropdown = Object.assign(DropdownRoot, {
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.28
1
+ 0.2.29