jy-headless 0.1.12 → 0.2.0

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.
Files changed (72) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/_virtual/_tslib.js +37 -0
  3. package/dist/cjs/_virtual/jsx-runtime.js +7 -0
  4. package/dist/cjs/_virtual/jsx-runtime2.js +5 -0
  5. package/dist/cjs/_virtual/react-jsx-runtime.development.js +5 -0
  6. package/dist/cjs/_virtual/react-jsx-runtime.production.js +5 -0
  7. package/dist/cjs/buttons/Button.d.ts +3 -0
  8. package/dist/cjs/buttons/Button.js +26 -0
  9. package/dist/cjs/buttons/index.d.ts +1 -0
  10. package/dist/cjs/index.d.ts +1 -0
  11. package/dist/cjs/index.js +7 -0
  12. package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +668 -0
  13. package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +46 -0
  14. package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +21 -0
  15. package/dist/cjs/types/buttons/types.d.ts +6 -0
  16. package/dist/cjs/types/index.d.ts +1 -0
  17. package/dist/esm/_virtual/_tslib.js +35 -0
  18. package/dist/esm/_virtual/jsx-runtime.js +5 -0
  19. package/dist/esm/_virtual/jsx-runtime2.js +3 -0
  20. package/dist/esm/_virtual/react-jsx-runtime.development.js +3 -0
  21. package/dist/esm/_virtual/react-jsx-runtime.production.js +3 -0
  22. package/dist/esm/buttons/Button.d.ts +3 -0
  23. package/dist/esm/buttons/Button.js +22 -0
  24. package/dist/esm/buttons/index.d.ts +1 -0
  25. package/dist/esm/index.d.ts +1 -0
  26. package/dist/esm/index.js +1 -0
  27. package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +666 -0
  28. package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +44 -0
  29. package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +19 -0
  30. package/dist/esm/types/buttons/types.d.ts +6 -0
  31. package/dist/esm/types/index.d.ts +1 -0
  32. package/package.json +23 -6
  33. package/dist/components/accordion/Accordion.d.ts +0 -22
  34. package/dist/components/accordion/AccordionContext.d.ts +0 -6
  35. package/dist/components/button/Button.d.ts +0 -9
  36. package/dist/components/checkbox/Checkbox.d.ts +0 -6
  37. package/dist/components/checkbox/CheckboxList.d.ts +0 -22
  38. package/dist/components/checkbox/CheckboxListContext.d.ts +0 -6
  39. package/dist/components/dropdown/Dropdown.d.ts +0 -20
  40. package/dist/components/dropdown/DropdownContext.d.ts +0 -8
  41. package/dist/components/icons/CallIcon.d.ts +0 -3
  42. package/dist/components/icons/CloseIcon.d.ts +0 -3
  43. package/dist/components/icons/DownArrowIcon.d.ts +0 -3
  44. package/dist/components/icons/HomeIcon.d.ts +0 -3
  45. package/dist/components/icons/ImageIcon.d.ts +0 -3
  46. package/dist/components/icons/ImagePlusIcon.d.ts +0 -3
  47. package/dist/components/icons/SearchIcon.d.ts +0 -3
  48. package/dist/components/icons/UpArrowIcon.d.ts +0 -3
  49. package/dist/components/icons/index.d.ts +0 -17
  50. package/dist/components/input/DesktopKeyboardInput.d.ts +0 -20
  51. package/dist/components/input/ImageInput.d.ts +0 -8
  52. package/dist/components/input/Input.d.ts +0 -12
  53. package/dist/components/input/NumberInput.d.ts +0 -11
  54. package/dist/components/modal/Modal.d.ts +0 -26
  55. package/dist/components/modal/ModalContext.d.ts +0 -6
  56. package/dist/components/radio/RadioGroup.d.ts +0 -28
  57. package/dist/components/radio/RadioInput.d.ts +0 -9
  58. package/dist/components/spinner/Spinner.d.ts +0 -8
  59. package/dist/components/tabs/Tab.d.ts +0 -18
  60. package/dist/components/tabs/TabContext.d.ts +0 -6
  61. package/dist/components/tooltip/Tooltip.d.ts +0 -8
  62. package/dist/components/utils/generateHash.d.ts +0 -2
  63. package/dist/icons/CallIcon.d.ts +0 -4
  64. package/dist/icons/CloseIcon.d.ts +0 -4
  65. package/dist/icons/HomeIcon.d.ts +0 -4
  66. package/dist/icons/SearchIcon.d.ts +0 -4
  67. package/dist/icons/index.d.ts +0 -11
  68. package/dist/index.d.ts +0 -16
  69. package/dist/index.esm.js +0 -1119
  70. package/dist/index.esm.js.map +0 -1
  71. package/dist/index.js +0 -1142
  72. package/dist/index.js.map +0 -1
package/README.md CHANGED
@@ -65,7 +65,7 @@ const App = () => (
65
65
  <Modal isOpen={true} opener={<Button>open dialog</Button>}>
66
66
  <Modal.Overlay>
67
67
  <h3>모달입니다</h3>
68
- <Modal.Closer></Modal.Closer>
68
+ <Modal.Close></Modal.Close>
69
69
  </Modal.Overlay>
70
70
  </Modal>
71
71
  </div>
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ /******************************************************************************
4
+ Copyright (c) Microsoft Corporation.
5
+
6
+ Permission to use, copy, modify, and/or distribute this software for any
7
+ purpose with or without fee is hereby granted.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+ ***************************************************************************** */
17
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
18
+
19
+
20
+ function __rest(s, e) {
21
+ var t = {};
22
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
23
+ t[p] = s[p];
24
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
25
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
26
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
27
+ t[p[i]] = s[p[i]];
28
+ }
29
+ return t;
30
+ }
31
+
32
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
33
+ var e = new Error(message);
34
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
35
+ };
36
+
37
+ exports.__rest = __rest;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('../node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js');
4
+
5
+ var jsxRuntimeExports = jsxRuntime.__require();
6
+
7
+ exports.jsxRuntimeExports = jsxRuntimeExports;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = {exports: {}};
4
+
5
+ exports.__module = jsxRuntime;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ var reactJsxRuntime_development = {};
4
+
5
+ exports.__exports = reactJsxRuntime_development;
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ var reactJsxRuntime_production = {};
4
+
5
+ exports.__exports = reactJsxRuntime_production;
@@ -0,0 +1,3 @@
1
+ import type { ButtonProps } from '../types/buttons/types';
2
+ declare const Button: ({ onClick, debounce, loading, readOnly, disabled, children, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Button;
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _tslib = require('../_virtual/_tslib.js');
6
+ var jsxRuntime = require('../_virtual/jsx-runtime.js');
7
+ var require$$0 = require('react');
8
+
9
+ const Button = (_a) => {
10
+ var { onClick, debounce = false, loading = false, readOnly = false, disabled = false, children } = _a, props = _tslib.__rest(_a, ["onClick", "debounce", "loading", "readOnly", "disabled", "children"]);
11
+ const timer = require$$0.useRef(0);
12
+ const handleClick = (() => {
13
+ if (!onClick)
14
+ return;
15
+ if (debounce) {
16
+ return () => {
17
+ clearTimeout(timer.current);
18
+ timer.current = setTimeout(onClick, 300);
19
+ };
20
+ }
21
+ return onClick;
22
+ })();
23
+ return (jsxRuntime.jsxRuntimeExports.jsx("button", Object.assign({ onClick: handleClick, disabled: disabled || loading || readOnly }, props, { children: children })));
24
+ };
25
+
26
+ exports.default = Button;
@@ -0,0 +1 @@
1
+ export { default } from './Button';
@@ -0,0 +1 @@
1
+ export { default as Button } from './buttons/Button';
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var Button = require('./buttons/Button.js');
4
+
5
+
6
+
7
+ exports.Button = Button.default;