jy-headless 0.2.1 → 0.2.3
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/package.json +14 -53
- package/README.md +0 -77
- package/dist/_virtual/_tslib.js +0 -35
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -3
- package/dist/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/buttons/Button.d.ts +0 -3
- package/dist/buttons/Button.js +0 -22
- package/dist/buttons/index.d.ts +0 -1
- package/dist/cjs/_virtual/_tslib.js +0 -37
- package/dist/cjs/_virtual/jsx-runtime.js +0 -7
- package/dist/cjs/_virtual/jsx-runtime2.js +0 -5
- package/dist/cjs/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/cjs/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/cjs/buttons/Button.d.ts +0 -3
- package/dist/cjs/buttons/Button.js +0 -24
- package/dist/cjs/buttons/index.d.ts +0 -1
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -668
- package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -46
- package/dist/cjs/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -21
- package/dist/cjs/types/buttons/types.d.ts +0 -6
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/_virtual/_tslib.js +0 -35
- package/dist/esm/_virtual/jsx-runtime.js +0 -5
- package/dist/esm/_virtual/jsx-runtime2.js +0 -3
- package/dist/esm/_virtual/react-jsx-runtime.development.js +0 -3
- package/dist/esm/_virtual/react-jsx-runtime.production.js +0 -3
- package/dist/esm/buttons/Button.d.ts +0 -3
- package/dist/esm/buttons/Button.js +0 -22
- package/dist/esm/buttons/index.d.ts +0 -1
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -666
- package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/esm/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -19
- package/dist/esm/types/buttons/types.d.ts +0 -6
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -666
- package/dist/node_modules/.pnpm/react@19.0.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
- package/dist/node_modules/.pnpm/react@19.0.0/node_modules/react/jsx-runtime.js +0 -19
- package/dist/types/buttons/types.d.ts +0 -6
- package/dist/types/index.d.ts +0 -1
- /package/{dist/cjs → cjs}/index.js +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './buttons/types';
|
|
@@ -1,35 +0,0 @@
|
|
|
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 };
|
|
@@ -1,22 +0,0 @@
|
|
|
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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Button';
|
package/dist/esm/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './buttons/Button';
|
package/dist/esm/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Button } from './buttons/Button.js';
|