jcicl 0.0.88 → 0.0.89

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 (124) hide show
  1. package/.chunks/ButtonBase.js +68 -68
  2. package/.chunks/DefaultPropsProvider.js +439 -439
  3. package/.chunks/Input.js +255 -254
  4. package/.chunks/Portal.js +57 -57
  5. package/.chunks/TransitionGroupContext.js +6 -7
  6. package/{composite/Accordion → Accordion}/Accordion.js +6 -6
  7. package/{templates/AppContainer → AppContainer}/AppContainer.js +5 -5
  8. package/{supercomposite/AppHeader → AppHeader}/AppHeader.js +6 -6
  9. package/{base/Avatar → Avatar}/Avatar.js +4 -4
  10. package/{base/AvatarWithImage → AvatarWithImage}/AvatarWithImage.js +3 -3
  11. package/{base/Button → Button}/Button.js +5 -5
  12. package/{base/Divider → Divider}/Divider.js +3 -3
  13. package/{supercomposite/EditableInfoCard → EditableInfoCard}/EditableInfoCard.js +12 -12
  14. package/{composite/ErrorBoundary → ErrorBoundary}/ErrorBoundary.js +3 -3
  15. package/{base/Flex → Flex}/Flex.js +1 -1
  16. package/{base/Grid → Grid}/Grid.js +1 -1
  17. package/{base/Icon → Icon}/Icon.js +3 -3
  18. package/{composite/InfoCard → InfoCard}/InfoCard.js +5 -5
  19. package/Input/Input.js +8 -0
  20. package/Input/index.js +4 -0
  21. package/{composite/LabeledInput → LabeledInput}/LabeledInput.js +3 -3
  22. package/{base/LabeledValue → LabeledValue}/LabeledValue.js +2 -2
  23. package/{composite/List → List}/List.js +2 -2
  24. package/{base/ListButton → ListButton}/ListButton.js +3 -3
  25. package/Loading/Loading.js +14 -0
  26. package/{composite/LogoLoop → LogoLoop}/LogoLoop.js +5 -5
  27. package/{supercomposite/Nav → Nav}/Nav.js +4 -4
  28. package/{base/ScrollContainer → ScrollContainer}/ScrollContainer.js +2 -2
  29. package/{animation/Spin → Spin}/Spin.js +2 -2
  30. package/{composite/Tooltip → Tooltip}/Tooltip.js +6 -6
  31. package/{composite/WithLabel → WithLabel}/WithLabel.js +2 -2
  32. package/{composite/WithLoading → WithLoading}/WithLoading.js +4 -4
  33. package/{animation/ZoomEntrance → ZoomEntrance}/ZoomEntrance.js +2 -2
  34. package/index.d.ts +25 -5
  35. package/index.js +4 -54
  36. package/package.json +1 -1
  37. package/animation/index.js +0 -6
  38. package/base/Input/Input.js +0 -8
  39. package/base/Input/index.js +0 -4
  40. package/base/Loading/Loading.js +0 -14
  41. package/base/index.d.ts +0 -12
  42. package/base/index.js +0 -26
  43. package/composite/index.d.ts +0 -9
  44. package/composite/index.js +0 -20
  45. package/supercomposite/index.d.ts +0 -3
  46. package/supercomposite/index.js +0 -8
  47. package/templates/index.d.ts +0 -1
  48. package/templates/index.js +0 -4
  49. /package/{composite/Accordion → Accordion}/Accordion.d.ts +0 -0
  50. /package/{composite/Accordion → Accordion}/index.d.ts +0 -0
  51. /package/{composite/Accordion → Accordion}/index.js +0 -0
  52. /package/{templates/AppContainer → AppContainer}/AppContainer.d.ts +0 -0
  53. /package/{templates/AppContainer → AppContainer}/index.d.ts +0 -0
  54. /package/{templates/AppContainer → AppContainer}/index.js +0 -0
  55. /package/{supercomposite/AppHeader → AppHeader}/AppHeader.d.ts +0 -0
  56. /package/{supercomposite/AppHeader → AppHeader}/index.d.ts +0 -0
  57. /package/{supercomposite/AppHeader → AppHeader}/index.js +0 -0
  58. /package/{base/Avatar → Avatar}/Avatar.d.ts +0 -0
  59. /package/{base/Avatar → Avatar}/index.d.ts +0 -0
  60. /package/{base/Avatar → Avatar}/index.js +0 -0
  61. /package/{base/AvatarWithImage → AvatarWithImage}/AvatarWithImage.d.ts +0 -0
  62. /package/{base/AvatarWithImage → AvatarWithImage}/index.d.ts +0 -0
  63. /package/{base/AvatarWithImage → AvatarWithImage}/index.js +0 -0
  64. /package/{base/Button → Button}/Button.d.ts +0 -0
  65. /package/{base/Button → Button}/index.d.ts +0 -0
  66. /package/{base/Button → Button}/index.js +0 -0
  67. /package/{base/Divider → Divider}/Divider.d.ts +0 -0
  68. /package/{base/Divider → Divider}/index.d.ts +0 -0
  69. /package/{base/Divider → Divider}/index.js +0 -0
  70. /package/{supercomposite/EditableInfoCard → EditableInfoCard}/EditableInfoCard.d.ts +0 -0
  71. /package/{supercomposite/EditableInfoCard → EditableInfoCard}/index.d.ts +0 -0
  72. /package/{supercomposite/EditableInfoCard → EditableInfoCard}/index.js +0 -0
  73. /package/{composite/ErrorBoundary → ErrorBoundary}/ErrorBoundary.d.ts +0 -0
  74. /package/{composite/ErrorBoundary → ErrorBoundary}/index.d.ts +0 -0
  75. /package/{composite/ErrorBoundary → ErrorBoundary}/index.js +0 -0
  76. /package/{base/Flex → Flex}/Flex.d.ts +0 -0
  77. /package/{base/Flex → Flex}/index.d.ts +0 -0
  78. /package/{base/Flex → Flex}/index.js +0 -0
  79. /package/{base/Grid → Grid}/Grid.d.ts +0 -0
  80. /package/{base/Grid → Grid}/index.d.ts +0 -0
  81. /package/{base/Grid → Grid}/index.js +0 -0
  82. /package/{base/Icon → Icon}/Icon.d.ts +0 -0
  83. /package/{base/Icon → Icon}/index.d.ts +0 -0
  84. /package/{base/Icon → Icon}/index.js +0 -0
  85. /package/{composite/InfoCard → InfoCard}/InfoCard.d.ts +0 -0
  86. /package/{composite/InfoCard → InfoCard}/index.d.ts +0 -0
  87. /package/{composite/InfoCard → InfoCard}/index.js +0 -0
  88. /package/{base/Input → Input}/Input.d.ts +0 -0
  89. /package/{base/Input → Input}/index.d.ts +0 -0
  90. /package/{composite/LabeledInput → LabeledInput}/LabeledInput.d.ts +0 -0
  91. /package/{composite/LabeledInput → LabeledInput}/index.d.ts +0 -0
  92. /package/{composite/LabeledInput → LabeledInput}/index.js +0 -0
  93. /package/{base/LabeledValue → LabeledValue}/LabeledValue.d.ts +0 -0
  94. /package/{base/LabeledValue → LabeledValue}/index.d.ts +0 -0
  95. /package/{base/LabeledValue → LabeledValue}/index.js +0 -0
  96. /package/{composite/List → List}/List.d.ts +0 -0
  97. /package/{composite/List → List}/index.d.ts +0 -0
  98. /package/{composite/List → List}/index.js +0 -0
  99. /package/{base/ListButton → ListButton}/ListButton.d.ts +0 -0
  100. /package/{base/ListButton → ListButton}/index.d.ts +0 -0
  101. /package/{base/ListButton → ListButton}/index.js +0 -0
  102. /package/{base/Loading → Loading}/Loading.d.ts +0 -0
  103. /package/{base/Loading → Loading}/index.d.ts +0 -0
  104. /package/{base/Loading → Loading}/index.js +0 -0
  105. /package/{composite/LogoLoop → LogoLoop}/LogoLoop.d.ts +0 -0
  106. /package/{composite/LogoLoop → LogoLoop}/index.d.ts +0 -0
  107. /package/{composite/LogoLoop → LogoLoop}/index.js +0 -0
  108. /package/{supercomposite/Nav → Nav}/Nav.d.ts +0 -0
  109. /package/{supercomposite/Nav → Nav}/index.d.ts +0 -0
  110. /package/{supercomposite/Nav → Nav}/index.js +0 -0
  111. /package/{base/ScrollContainer → ScrollContainer}/ScrollContainer.d.ts +0 -0
  112. /package/{base/ScrollContainer → ScrollContainer}/index.d.ts +0 -0
  113. /package/{base/ScrollContainer → ScrollContainer}/index.js +0 -0
  114. /package/{animation/Spin → Spin}/index.js +0 -0
  115. /package/{composite/Tooltip → Tooltip}/Tooltip.d.ts +0 -0
  116. /package/{composite/Tooltip → Tooltip}/index.d.ts +0 -0
  117. /package/{composite/Tooltip → Tooltip}/index.js +0 -0
  118. /package/{composite/WithLabel → WithLabel}/WithLabel.d.ts +0 -0
  119. /package/{composite/WithLabel → WithLabel}/index.d.ts +0 -0
  120. /package/{composite/WithLabel → WithLabel}/index.js +0 -0
  121. /package/{composite/WithLoading → WithLoading}/WithLoading.d.ts +0 -0
  122. /package/{composite/WithLoading → WithLoading}/index.d.ts +0 -0
  123. /package/{composite/WithLoading → WithLoading}/index.js +0 -0
  124. /package/{animation/ZoomEntrance → ZoomEntrance}/index.js +0 -0
@@ -6,65 +6,11 @@ import W, { Children as Oe, isValidElement as G, cloneElement as J } from "react
6
6
  import { P as e, b as E, a as fe, s as te, u as de, g as je, d as Fe } from "./DefaultPropsProvider.js";
7
7
  import { jsx as I, jsxs as $e } from "react/jsx-runtime";
8
8
  import { k as ne } from "./emotion-react.browser.esm.js";
9
- import { u as Ie, _ as Ue, a as ze, T as ue, b as _e, c as ce, d as H, r as Xe } from "./TransitionGroupContext.js";
9
+ import { _ as Ie, a as Ue, T as ue, u as ze, b as _e, c as ce, d as H, r as Xe } from "./TransitionGroupContext.js";
10
10
  import { _ as Ye } from "./emotion-styled.browser.esm.js";
11
11
  import { e as Ae } from "./elementTypeAcceptingRef.js";
12
12
  import { i as pe } from "./isFocusVisible.js";
13
- class Q {
14
- constructor() {
15
- le(this, "mountEffect", () => {
16
- this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
17
- });
18
- this.ref = {
19
- current: null
20
- }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
21
- }
22
- /** React ref to the ripple instance */
23
- /** If the ripple component should be mounted */
24
- /** Promise that resolves when the ripple component is mounted */
25
- /** If the ripple component has been mounted */
26
- /** React state hook setter */
27
- static create() {
28
- return new Q();
29
- }
30
- static use() {
31
- const t = Ie(Q.create).current, [n, l] = d.useState(!1);
32
- return t.shouldMount = n, t.setShouldMount = l, d.useEffect(t.mountEffect, [n]), t;
33
- }
34
- mount() {
35
- return this.mounted || (this.mounted = qe(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
36
- }
37
- /* Ripple API */
38
- start(...t) {
39
- this.mount().then(() => {
40
- var n;
41
- return (n = this.ref.current) == null ? void 0 : n.start(...t);
42
- });
43
- }
44
- stop(...t) {
45
- this.mount().then(() => {
46
- var n;
47
- return (n = this.ref.current) == null ? void 0 : n.stop(...t);
48
- });
49
- }
50
- pulsate(...t) {
51
- this.mount().then(() => {
52
- var n;
53
- return (n = this.ref.current) == null ? void 0 : n.pulsate(...t);
54
- });
55
- }
56
- }
57
- function Ke() {
58
- return Q.use();
59
- }
60
- function qe() {
61
- let o, t;
62
- const n = new Promise((l, i) => {
63
- o = l, t = i;
64
- });
65
- return n.resolve = o, n.reject = t, n;
66
- }
67
- function We(o) {
13
+ function Ke(o) {
68
14
  if (o === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
69
15
  return o;
70
16
  }
@@ -78,7 +24,7 @@ function oe(o, t) {
78
24
  l[i.key] = n(i);
79
25
  }), l;
80
26
  }
81
- function He(o, t) {
27
+ function qe(o, t) {
82
28
  o = o || {}, t = t || {};
83
29
  function n(h) {
84
30
  return h in t ? t[h] : o[h];
@@ -102,7 +48,7 @@ function He(o, t) {
102
48
  function O(o, t, n) {
103
49
  return n[t] != null ? n[t] : o.props[t];
104
50
  }
105
- function Ge(o, t) {
51
+ function We(o, t) {
106
52
  return oe(o.children, function(n) {
107
53
  return J(n, {
108
54
  onExited: t.bind(null, n),
@@ -113,8 +59,8 @@ function Ge(o, t) {
113
59
  });
114
60
  });
115
61
  }
116
- function Je(o, t, n) {
117
- var l = oe(o.children), i = He(t, l);
62
+ function He(o, t, n) {
63
+ var l = oe(o.children), i = qe(t, l);
118
64
  return Object.keys(i).forEach(function(s) {
119
65
  var r = i[s];
120
66
  if (G(r)) {
@@ -135,21 +81,21 @@ function Je(o, t, n) {
135
81
  }
136
82
  }), i;
137
83
  }
138
- var Qe = Object.values || function(o) {
84
+ var Ge = Object.values || function(o) {
139
85
  return Object.keys(o).map(function(t) {
140
86
  return o[t];
141
87
  });
142
- }, Ze = {
88
+ }, Je = {
143
89
  component: "div",
144
90
  childFactory: function(t) {
145
91
  return t;
146
92
  }
147
93
  }, ie = /* @__PURE__ */ function(o) {
148
- Ue(t, o);
94
+ Ie(t, o);
149
95
  function t(l, i) {
150
96
  var s;
151
97
  s = o.call(this, l, i) || this;
152
- var r = s.handleExited.bind(We(s));
98
+ var r = s.handleExited.bind(Ke(s));
153
99
  return s.state = {
154
100
  contextValue: {
155
101
  isMounting: !0
@@ -170,7 +116,7 @@ var Qe = Object.values || function(o) {
170
116
  }, t.getDerivedStateFromProps = function(i, s) {
171
117
  var r = s.children, p = s.handleExited, u = s.firstRender;
172
118
  return {
173
- children: u ? Ge(i, p) : Je(i, r, p),
119
+ children: u ? We(i, p) : He(i, r, p),
174
120
  firstRender: !1
175
121
  };
176
122
  }, n.handleExited = function(i, s) {
@@ -182,7 +128,7 @@ var Qe = Object.values || function(o) {
182
128
  };
183
129
  }));
184
130
  }, n.render = function() {
185
- var i = this.props, s = i.component, r = i.childFactory, p = ze(i, ["component", "childFactory"]), u = this.state.contextValue, f = Qe(this.state.children).map(r);
131
+ var i = this.props, s = i.component, r = i.childFactory, p = Ue(i, ["component", "childFactory"]), u = this.state.contextValue, f = Ge(this.state.children).map(r);
186
132
  return delete p.appear, delete p.enter, delete p.exit, s === null ? /* @__PURE__ */ W.createElement(ue.Provider, {
187
133
  value: u
188
134
  }, f) : /* @__PURE__ */ W.createElement(ue.Provider, {
@@ -243,7 +189,61 @@ ie.propTypes = process.env.NODE_ENV !== "production" ? {
243
189
  */
244
190
  childFactory: e.func
245
191
  } : {};
246
- ie.defaultProps = Ze;
192
+ ie.defaultProps = Je;
193
+ class Q {
194
+ constructor() {
195
+ le(this, "mountEffect", () => {
196
+ this.shouldMount && !this.didMount && this.ref.current !== null && (this.didMount = !0, this.mounted.resolve());
197
+ });
198
+ this.ref = {
199
+ current: null
200
+ }, this.mounted = null, this.didMount = !1, this.shouldMount = !1, this.setShouldMount = null;
201
+ }
202
+ /** React ref to the ripple instance */
203
+ /** If the ripple component should be mounted */
204
+ /** Promise that resolves when the ripple component is mounted */
205
+ /** If the ripple component has been mounted */
206
+ /** React state hook setter */
207
+ static create() {
208
+ return new Q();
209
+ }
210
+ static use() {
211
+ const t = ze(Q.create).current, [n, l] = d.useState(!1);
212
+ return t.shouldMount = n, t.setShouldMount = l, d.useEffect(t.mountEffect, [n]), t;
213
+ }
214
+ mount() {
215
+ return this.mounted || (this.mounted = Ze(), this.shouldMount = !0, this.setShouldMount(this.shouldMount)), this.mounted;
216
+ }
217
+ /* Ripple API */
218
+ start(...t) {
219
+ this.mount().then(() => {
220
+ var n;
221
+ return (n = this.ref.current) == null ? void 0 : n.start(...t);
222
+ });
223
+ }
224
+ stop(...t) {
225
+ this.mount().then(() => {
226
+ var n;
227
+ return (n = this.ref.current) == null ? void 0 : n.stop(...t);
228
+ });
229
+ }
230
+ pulsate(...t) {
231
+ this.mount().then(() => {
232
+ var n;
233
+ return (n = this.ref.current) == null ? void 0 : n.pulsate(...t);
234
+ });
235
+ }
236
+ }
237
+ function Qe() {
238
+ return Q.use();
239
+ }
240
+ function Ze() {
241
+ let o, t;
242
+ const n = new Promise((l, i) => {
243
+ o = l, t = i;
244
+ });
245
+ return n.resolve = o, n.reject = t, n;
246
+ }
247
247
  function he(o) {
248
248
  const {
249
249
  className: t,
@@ -630,7 +630,7 @@ const at = fe("MuiButtonBase", ["root", "disabled", "focusVisible"]), lt = (o) =
630
630
  touchRippleRef: z,
631
631
  type: L,
632
632
  ..._
633
- } = l, X = d.useRef(null), P = Ke(), be = ce(P.ref, z), [k, K] = d.useState(!1);
633
+ } = l, X = d.useRef(null), P = Qe(), be = ce(P.ref, z), [k, K] = d.useState(!1);
634
634
  f && k && K(!1), d.useImperativeHandle(i, () => ({
635
635
  focusVisible: () => {
636
636
  K(!0), X.current.focus();