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
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ var reactJsxRuntime_production = require('../../../../../../_virtual/react-jsx-runtime.production.js');
4
+
5
+ /**
6
+ * @license React
7
+ * react-jsx-runtime.production.js
8
+ *
9
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+
15
+ var hasRequiredReactJsxRuntime_production;
16
+
17
+ function requireReactJsxRuntime_production () {
18
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production.__exports;
19
+ hasRequiredReactJsxRuntime_production = 1;
20
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
21
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
22
+ function jsxProd(type, config, maybeKey) {
23
+ var key = null;
24
+ undefined !== maybeKey && (key = "" + maybeKey);
25
+ undefined !== config.key && (key = "" + config.key);
26
+ if ("key" in config) {
27
+ maybeKey = {};
28
+ for (var propName in config)
29
+ "key" !== propName && (maybeKey[propName] = config[propName]);
30
+ } else maybeKey = config;
31
+ config = maybeKey.ref;
32
+ return {
33
+ $$typeof: REACT_ELEMENT_TYPE,
34
+ type: type,
35
+ key: key,
36
+ ref: undefined !== config ? config : null,
37
+ props: maybeKey
38
+ };
39
+ }
40
+ reactJsxRuntime_production.__exports.Fragment = REACT_FRAGMENT_TYPE;
41
+ reactJsxRuntime_production.__exports.jsx = jsxProd;
42
+ reactJsxRuntime_production.__exports.jsxs = jsxProd;
43
+ return reactJsxRuntime_production.__exports;
44
+ }
45
+
46
+ exports.__require = requireReactJsxRuntime_production;
@@ -0,0 +1,21 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('../../../../../_virtual/jsx-runtime2.js');
4
+ var reactJsxRuntime_production = require('./cjs/react-jsx-runtime.production.js');
5
+ var reactJsxRuntime_development = require('./cjs/react-jsx-runtime.development.js');
6
+
7
+ var hasRequiredJsxRuntime;
8
+
9
+ function requireJsxRuntime () {
10
+ if (hasRequiredJsxRuntime) return jsxRuntime.__module.exports;
11
+ hasRequiredJsxRuntime = 1;
12
+
13
+ if (process.env.NODE_ENV === 'production') {
14
+ jsxRuntime.__module.exports = reactJsxRuntime_production.__require();
15
+ } else {
16
+ jsxRuntime.__module.exports = reactJsxRuntime_development.__require();
17
+ }
18
+ return jsxRuntime.__module.exports;
19
+ }
20
+
21
+ exports.__require = requireJsxRuntime;
@@ -0,0 +1,6 @@
1
+ import { ButtonHTMLAttributes } from 'react';
2
+ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ debounce?: boolean;
4
+ loading?: boolean;
5
+ readOnly?: boolean;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './buttons/types';
@@ -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 @@
1
+ export { default as Button } from './buttons/Button';
@@ -0,0 +1 @@
1
+ export { default as Button } from './buttons/Button.js';