jcicl 0.0.151 → 0.0.155

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.
@@ -1,80 +0,0 @@
1
- import { b as l } from "./DefaultPropsProvider.js";
2
- function O(s) {
3
- return typeof s == "string";
4
- }
5
- function A(s, c, e) {
6
- return s === void 0 || O(s) ? c : {
7
- ...c,
8
- ownerState: {
9
- ...c.ownerState,
10
- ...e
11
- }
12
- };
13
- }
14
- function k(s, c = []) {
15
- if (s === void 0)
16
- return {};
17
- const e = {};
18
- return Object.keys(s).filter((n) => n.match(/^on[A-Z]/) && typeof s[n] == "function" && !c.includes(n)).forEach((n) => {
19
- e[n] = s[n];
20
- }), e;
21
- }
22
- function a(s) {
23
- if (s === void 0)
24
- return {};
25
- const c = {};
26
- return Object.keys(s).filter((e) => !(e.match(/^on[A-Z]/) && typeof s[e] == "function")).forEach((e) => {
27
- c[e] = s[e];
28
- }), c;
29
- }
30
- function R(s) {
31
- const {
32
- getSlotProps: c,
33
- additionalProps: e,
34
- externalSlotProps: n,
35
- externalForwardedProps: t,
36
- className: i
37
- } = s;
38
- if (!c) {
39
- const g = l(e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), h = {
40
- ...e == null ? void 0 : e.style,
41
- ...t == null ? void 0 : t.style,
42
- ...n == null ? void 0 : n.style
43
- }, m = {
44
- ...e,
45
- ...t,
46
- ...n
47
- };
48
- return g.length > 0 && (m.className = g), Object.keys(h).length > 0 && (m.style = h), {
49
- props: m,
50
- internalRef: void 0
51
- };
52
- }
53
- const v = k({
54
- ...t,
55
- ...n
56
- }), E = a(n), H = a(t), f = c(v), y = l(f == null ? void 0 : f.className, e == null ? void 0 : e.className, i, t == null ? void 0 : t.className, n == null ? void 0 : n.className), N = {
57
- ...f == null ? void 0 : f.style,
58
- ...e == null ? void 0 : e.style,
59
- ...t == null ? void 0 : t.style,
60
- ...n == null ? void 0 : n.style
61
- }, u = {
62
- ...f,
63
- ...e,
64
- ...H,
65
- ...E
66
- };
67
- return y.length > 0 && (u.className = y), Object.keys(N).length > 0 && (u.style = N), {
68
- props: u,
69
- internalRef: f.ref
70
- };
71
- }
72
- function W(s, c, e) {
73
- return typeof s == "function" ? s(c, e) : s;
74
- }
75
- export {
76
- A as a,
77
- k as e,
78
- R as m,
79
- W as r
80
- };
@@ -1,44 +0,0 @@
1
- var i = Object.defineProperty;
2
- var f = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var n = (t, e, r) => f(t, typeof e != "symbol" ? e + "" : e, r);
4
- import { P as s } from "./DefaultPropsProvider.js";
5
- import * as o from "react";
6
- const d = s.oneOfType([s.func, s.object]), c = {};
7
- function a(t, e) {
8
- const r = o.useRef(c);
9
- return r.current === c && (r.current = t(e)), r;
10
- }
11
- const l = [];
12
- function I(t) {
13
- o.useEffect(t, l);
14
- }
15
- class u {
16
- constructor() {
17
- n(this, "currentId", null);
18
- n(this, "clear", () => {
19
- this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
20
- });
21
- n(this, "disposeEffect", () => this.clear);
22
- }
23
- static create() {
24
- return new u();
25
- }
26
- /**
27
- * Executes `fn` after `delay`, clearing any previously scheduled call.
28
- */
29
- start(e, r) {
30
- this.clear(), this.currentId = setTimeout(() => {
31
- this.currentId = null, r();
32
- }, e);
33
- }
34
- }
35
- function m() {
36
- const t = a(u.create).current;
37
- return I(t.disposeEffect), t;
38
- }
39
- export {
40
- u as T,
41
- a,
42
- d as r,
43
- m as u
44
- };