jy-headless 0.1.12 → 0.2.1

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