jcicl 0.0.235 → 0.0.237

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,21 +1,22 @@
1
- import { jsxs as S, jsx as l } from "react/jsx-runtime";
2
- import * as w from "react";
3
- import { useState as V, Children as j } from "react";
4
- import { n as K } from "../.chunks/emotion-styled.browser.esm.js";
5
- import { k as R, c as M } from "../.chunks/emotion-react.browser.esm.js";
6
- import { Button as I } from "../Button/Button.js";
7
- import x from "../theme.js";
8
- import { g as T, a as q, s as y, c, u as z, b as $, P as o, d as U, l as X, j as Y, k as F } from "../.chunks/DefaultPropsProvider.js";
9
- import { m as h } from "../.chunks/memoTheme.js";
10
- import { P as G } from "../.chunks/Paper.js";
11
- import { u as H } from "../.chunks/index.js";
12
- import { c as P } from "../.chunks/createSimplePaletteValueFilter.js";
13
- import { i as D } from "../.chunks/integerPropType.js";
14
- function J(e) {
15
- return T("MuiLinearProgress", e);
1
+ import { jsxs as C, jsx as n, Fragment as j } from "react/jsx-runtime";
2
+ import * as $ from "react";
3
+ import { useState as D, Children as h } from "react";
4
+ import { n as _ } from "../.chunks/emotion-styled.browser.esm.js";
5
+ import { k as R, c as k } from "../.chunks/emotion-react.browser.esm.js";
6
+ import { Button as T } from "../Button/Button.js";
7
+ import M from "../theme.js";
8
+ import { SlideIn as q, SlideOut as H, SlideInReverse as z, SlideOutReverse as J } from "../animation/Slide/Slide.js";
9
+ import { g as V, a as K, s as g, c as f, u as F, b as B, P as o, d as X, l as Q, j as W, k as Z } from "../.chunks/DefaultPropsProvider.js";
10
+ import { m as S } from "../.chunks/memoTheme.js";
11
+ import { P as rr } from "../.chunks/Paper.js";
12
+ import { u as er } from "../.chunks/index.js";
13
+ import { c as w } from "../.chunks/createSimplePaletteValueFilter.js";
14
+ import { i as U } from "../.chunks/integerPropType.js";
15
+ function tr(e) {
16
+ return V("MuiLinearProgress", e);
16
17
  }
17
- q("MuiLinearProgress", ["root", "colorPrimary", "colorSecondary", "determinate", "indeterminate", "buffer", "query", "dashed", "dashedColorPrimary", "dashedColorSecondary", "bar", "barColorPrimary", "barColorSecondary", "bar1Indeterminate", "bar1Determinate", "bar1Buffer", "bar2Indeterminate", "bar2Buffer"]);
18
- const B = 4, O = R`
18
+ K("MuiLinearProgress", ["root", "colorPrimary", "colorSecondary", "determinate", "indeterminate", "buffer", "query", "dashed", "dashedColorPrimary", "dashedColorSecondary", "bar", "barColorPrimary", "barColorSecondary", "bar1Indeterminate", "bar1Determinate", "bar1Buffer", "bar2Indeterminate", "bar2Buffer"]);
19
+ const O = 4, A = R`
19
20
  0% {
20
21
  left: -35%;
21
22
  right: 100%;
@@ -30,9 +31,9 @@ const B = 4, O = R`
30
31
  left: 100%;
31
32
  right: -90%;
32
33
  }
33
- `, Q = typeof O != "string" ? M`
34
- animation: ${O} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
35
- ` : null, L = R`
34
+ `, or = typeof A != "string" ? k`
35
+ animation: ${A} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
36
+ ` : null, N = R`
36
37
  0% {
37
38
  left: -200%;
38
39
  right: 100%;
@@ -47,9 +48,9 @@ const B = 4, O = R`
47
48
  left: 107%;
48
49
  right: -8%;
49
50
  }
50
- `, W = typeof L != "string" ? M`
51
- animation: ${L} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
52
- ` : null, N = R`
51
+ `, ar = typeof N != "string" ? k`
52
+ animation: ${N} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
53
+ ` : null, L = R`
53
54
  0% {
54
55
  opacity: 1;
55
56
  background-position: 0 -23px;
@@ -64,30 +65,30 @@ const B = 4, O = R`
64
65
  opacity: 1;
65
66
  background-position: -200px -23px;
66
67
  }
67
- `, Z = typeof N != "string" ? M`
68
- animation: ${N} 3s infinite linear;
69
- ` : null, rr = (e) => {
68
+ `, nr = typeof L != "string" ? k`
69
+ animation: ${L} 3s infinite linear;
70
+ ` : null, ir = (e) => {
70
71
  const {
71
72
  classes: r,
72
73
  variant: t,
73
74
  color: a
74
- } = e, p = {
75
- root: ["root", `color${c(a)}`, t],
76
- dashed: ["dashed", `dashedColor${c(a)}`],
77
- bar1: ["bar", `barColor${c(a)}`, (t === "indeterminate" || t === "query") && "bar1Indeterminate", t === "determinate" && "bar1Determinate", t === "buffer" && "bar1Buffer"],
78
- bar2: ["bar", t !== "buffer" && `barColor${c(a)}`, t === "buffer" && `color${c(a)}`, (t === "indeterminate" || t === "query") && "bar2Indeterminate", t === "buffer" && "bar2Buffer"]
75
+ } = e, c = {
76
+ root: ["root", `color${f(a)}`, t],
77
+ dashed: ["dashed", `dashedColor${f(a)}`],
78
+ bar1: ["bar", `barColor${f(a)}`, (t === "indeterminate" || t === "query") && "bar1Indeterminate", t === "determinate" && "bar1Determinate", t === "buffer" && "bar1Buffer"],
79
+ bar2: ["bar", t !== "buffer" && `barColor${f(a)}`, t === "buffer" && `color${f(a)}`, (t === "indeterminate" || t === "query") && "bar2Indeterminate", t === "buffer" && "bar2Buffer"]
79
80
  };
80
- return U(p, J, r);
81
- }, A = (e, r) => e.vars ? e.vars.palette.LinearProgress[`${r}Bg`] : e.palette.mode === "light" ? X(e.palette[r].main, 0.62) : Y(e.palette[r].main, 0.5), er = y("span", {
81
+ return X(c, tr, r);
82
+ }, I = (e, r) => e.vars ? e.vars.palette.LinearProgress[`${r}Bg`] : e.palette.mode === "light" ? Q(e.palette[r].main, 0.62) : W(e.palette[r].main, 0.5), sr = g("span", {
82
83
  name: "MuiLinearProgress",
83
84
  slot: "Root",
84
85
  overridesResolver: (e, r) => {
85
86
  const {
86
87
  ownerState: t
87
88
  } = e;
88
- return [r.root, r[`color${c(t.color)}`], r[t.variant]];
89
+ return [r.root, r[`color${f(t.color)}`], r[t.variant]];
89
90
  }
90
- })(h(({
91
+ })(S(({
91
92
  theme: e
92
93
  }) => ({
93
94
  position: "relative",
@@ -99,12 +100,12 @@ const B = 4, O = R`
99
100
  "@media print": {
100
101
  colorAdjust: "exact"
101
102
  },
102
- variants: [...Object.entries(e.palette).filter(P()).map(([r]) => ({
103
+ variants: [...Object.entries(e.palette).filter(w()).map(([r]) => ({
103
104
  props: {
104
105
  color: r
105
106
  },
106
107
  style: {
107
- backgroundColor: A(e, r)
108
+ backgroundColor: I(e, r)
108
109
  }
109
110
  })), {
110
111
  props: ({
@@ -137,16 +138,16 @@ const B = 4, O = R`
137
138
  transform: "rotate(180deg)"
138
139
  }
139
140
  }]
140
- }))), tr = y("span", {
141
+ }))), lr = g("span", {
141
142
  name: "MuiLinearProgress",
142
143
  slot: "Dashed",
143
144
  overridesResolver: (e, r) => {
144
145
  const {
145
146
  ownerState: t
146
147
  } = e;
147
- return [r.dashed, r[`dashedColor${c(t.color)}`]];
148
+ return [r.dashed, r[`dashedColor${f(t.color)}`]];
148
149
  }
149
- })(h(({
150
+ })(S(({
150
151
  theme: e
151
152
  }) => ({
152
153
  position: "absolute",
@@ -163,8 +164,8 @@ const B = 4, O = R`
163
164
  opacity: 0.3,
164
165
  backgroundImage: "radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"
165
166
  }
166
- }, ...Object.entries(e.palette).filter(P()).map(([r]) => {
167
- const t = A(e, r);
167
+ }, ...Object.entries(e.palette).filter(w()).map(([r]) => {
168
+ const t = I(e, r);
168
169
  return {
169
170
  props: {
170
171
  color: r
@@ -174,19 +175,19 @@ const B = 4, O = R`
174
175
  }
175
176
  };
176
177
  })]
177
- })), Z || {
178
+ })), nr || {
178
179
  // At runtime for Pigment CSS, `bufferAnimation` will be null and the generated keyframe will be used.
179
- animation: `${N} 3s infinite linear`
180
- }), or = y("span", {
180
+ animation: `${L} 3s infinite linear`
181
+ }), pr = g("span", {
181
182
  name: "MuiLinearProgress",
182
183
  slot: "Bar1",
183
184
  overridesResolver: (e, r) => {
184
185
  const {
185
186
  ownerState: t
186
187
  } = e;
187
- return [r.bar, r[`barColor${c(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar1Indeterminate, t.variant === "determinate" && r.bar1Determinate, t.variant === "buffer" && r.bar1Buffer];
188
+ return [r.bar, r[`barColor${f(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar1Indeterminate, t.variant === "determinate" && r.bar1Determinate, t.variant === "buffer" && r.bar1Buffer];
188
189
  }
189
- })(h(({
190
+ })(S(({
190
191
  theme: e
191
192
  }) => ({
192
193
  width: "100%",
@@ -203,7 +204,7 @@ const B = 4, O = R`
203
204
  style: {
204
205
  backgroundColor: "currentColor"
205
206
  }
206
- }, ...Object.entries(e.palette).filter(P()).map(([r]) => ({
207
+ }, ...Object.entries(e.palette).filter(w()).map(([r]) => ({
207
208
  props: {
208
209
  color: r
209
210
  },
@@ -215,7 +216,7 @@ const B = 4, O = R`
215
216
  variant: "determinate"
216
217
  },
217
218
  style: {
218
- transition: `transform .${B}s linear`
219
+ transition: `transform .${O}s linear`
219
220
  }
220
221
  }, {
221
222
  props: {
@@ -223,7 +224,7 @@ const B = 4, O = R`
223
224
  },
224
225
  style: {
225
226
  zIndex: 1,
226
- transition: `transform .${B}s linear`
227
+ transition: `transform .${O}s linear`
227
228
  }
228
229
  }, {
229
230
  props: ({
@@ -236,20 +237,20 @@ const B = 4, O = R`
236
237
  props: ({
237
238
  ownerState: r
238
239
  }) => r.variant === "indeterminate" || r.variant === "query",
239
- style: Q || {
240
- animation: `${O} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
240
+ style: or || {
241
+ animation: `${A} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`
241
242
  }
242
243
  }]
243
- }))), ar = y("span", {
244
+ }))), cr = g("span", {
244
245
  name: "MuiLinearProgress",
245
246
  slot: "Bar2",
246
247
  overridesResolver: (e, r) => {
247
248
  const {
248
249
  ownerState: t
249
250
  } = e;
250
- return [r.bar, r[`barColor${c(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar2Indeterminate, t.variant === "buffer" && r.bar2Buffer];
251
+ return [r.bar, r[`barColor${f(t.color)}`], (t.variant === "indeterminate" || t.variant === "query") && r.bar2Indeterminate, t.variant === "buffer" && r.bar2Buffer];
251
252
  }
252
- })(h(({
253
+ })(S(({
253
254
  theme: e
254
255
  }) => ({
255
256
  width: "100%",
@@ -259,7 +260,7 @@ const B = 4, O = R`
259
260
  top: 0,
260
261
  transition: "transform 0.2s linear",
261
262
  transformOrigin: "left",
262
- variants: [...Object.entries(e.palette).filter(P()).map(([r]) => ({
263
+ variants: [...Object.entries(e.palette).filter(w()).map(([r]) => ({
263
264
  props: {
264
265
  color: r
265
266
  },
@@ -287,14 +288,14 @@ const B = 4, O = R`
287
288
  style: {
288
289
  opacity: 0.3
289
290
  }
290
- }, ...Object.entries(e.palette).filter(P()).map(([r]) => ({
291
+ }, ...Object.entries(e.palette).filter(w()).map(([r]) => ({
291
292
  props: {
292
293
  color: r,
293
294
  variant: "buffer"
294
295
  },
295
296
  style: {
296
- backgroundColor: A(e, r),
297
- transition: `transform .${B}s linear`
297
+ backgroundColor: I(e, r),
298
+ transition: `transform .${O}s linear`
298
299
  }
299
300
  })), {
300
301
  props: ({
@@ -307,62 +308,62 @@ const B = 4, O = R`
307
308
  props: ({
308
309
  ownerState: r
309
310
  }) => r.variant === "indeterminate" || r.variant === "query",
310
- style: W || {
311
- animation: `${L} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`
311
+ style: ar || {
312
+ animation: `${N} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`
312
313
  }
313
314
  }]
314
- }))), E = /* @__PURE__ */ w.forwardRef(function(r, t) {
315
- const a = z({
315
+ }))), Y = /* @__PURE__ */ $.forwardRef(function(r, t) {
316
+ const a = F({
316
317
  props: r,
317
318
  name: "MuiLinearProgress"
318
319
  }), {
319
- className: p,
320
- color: f = "primary",
321
- value: b,
322
- valueBuffer: m,
320
+ className: c,
321
+ color: s = "primary",
322
+ value: m,
323
+ valueBuffer: y,
323
324
  variant: d = "indeterminate",
324
- ...C
325
- } = a, i = {
325
+ ...v
326
+ } = a, l = {
326
327
  ...a,
327
- color: f,
328
+ color: s,
328
329
  variant: d
329
- }, s = rr(i), g = H(), u = {}, v = {
330
+ }, p = ir(l), P = er(), u = {}, b = {
330
331
  bar1: {},
331
332
  bar2: {}
332
333
  };
333
334
  if (d === "determinate" || d === "buffer")
334
- if (b !== void 0) {
335
- u["aria-valuenow"] = Math.round(b), u["aria-valuemin"] = 0, u["aria-valuemax"] = 100;
336
- let n = b - 100;
337
- g && (n = -n), v.bar1.transform = `translateX(${n}%)`;
335
+ if (m !== void 0) {
336
+ u["aria-valuenow"] = Math.round(m), u["aria-valuemin"] = 0, u["aria-valuemax"] = 100;
337
+ let i = m - 100;
338
+ P && (i = -i), b.bar1.transform = `translateX(${i}%)`;
338
339
  } else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");
339
340
  if (d === "buffer")
340
- if (m !== void 0) {
341
- let n = (m || 0) - 100;
342
- g && (n = -n), v.bar2.transform = `translateX(${n}%)`;
341
+ if (y !== void 0) {
342
+ let i = (y || 0) - 100;
343
+ P && (i = -i), b.bar2.transform = `translateX(${i}%)`;
343
344
  } else process.env.NODE_ENV !== "production" && console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");
344
- return /* @__PURE__ */ S(er, {
345
- className: $(s.root, p),
346
- ownerState: i,
345
+ return /* @__PURE__ */ C(sr, {
346
+ className: B(p.root, c),
347
+ ownerState: l,
347
348
  role: "progressbar",
348
349
  ...u,
349
350
  ref: t,
350
- ...C,
351
- children: [d === "buffer" ? /* @__PURE__ */ l(tr, {
352
- className: s.dashed,
353
- ownerState: i
354
- }) : null, /* @__PURE__ */ l(or, {
355
- className: s.bar1,
356
- ownerState: i,
357
- style: v.bar1
358
- }), d === "determinate" ? null : /* @__PURE__ */ l(ar, {
359
- className: s.bar2,
360
- ownerState: i,
361
- style: v.bar2
351
+ ...v,
352
+ children: [d === "buffer" ? /* @__PURE__ */ n(lr, {
353
+ className: p.dashed,
354
+ ownerState: l
355
+ }) : null, /* @__PURE__ */ n(pr, {
356
+ className: p.bar1,
357
+ ownerState: l,
358
+ style: b.bar1
359
+ }), d === "determinate" ? null : /* @__PURE__ */ n(cr, {
360
+ className: p.bar2,
361
+ ownerState: l,
362
+ style: b.bar2
362
363
  })]
363
364
  });
364
365
  });
365
- process.env.NODE_ENV !== "production" && (E.propTypes = {
366
+ process.env.NODE_ENV !== "production" && (Y.propTypes = {
366
367
  // ┌────────────────────────────── Warning ──────────────────────────────┐
367
368
  // │ These PropTypes are generated from the TypeScript type definitions. │
368
369
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -403,32 +404,32 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
403
404
  */
404
405
  variant: o.oneOf(["buffer", "determinate", "indeterminate", "query"])
405
406
  });
406
- function nr(e) {
407
- return T("MuiMobileStepper", e);
407
+ function dr(e) {
408
+ return V("MuiMobileStepper", e);
408
409
  }
409
- q("MuiMobileStepper", ["root", "positionBottom", "positionTop", "positionStatic", "dots", "dot", "dotActive", "progress"]);
410
- const ir = (e) => {
410
+ K("MuiMobileStepper", ["root", "positionBottom", "positionTop", "positionStatic", "dots", "dot", "dotActive", "progress"]);
411
+ const ur = (e) => {
411
412
  const {
412
413
  classes: r,
413
414
  position: t
414
415
  } = e, a = {
415
- root: ["root", `position${c(t)}`],
416
+ root: ["root", `position${f(t)}`],
416
417
  dots: ["dots"],
417
418
  dot: ["dot"],
418
419
  dotActive: ["dotActive"],
419
420
  progress: ["progress"]
420
421
  };
421
- return U(a, nr, r);
422
- }, sr = y(G, {
422
+ return X(a, dr, r);
423
+ }, fr = g(rr, {
423
424
  name: "MuiMobileStepper",
424
425
  slot: "Root",
425
426
  overridesResolver: (e, r) => {
426
427
  const {
427
428
  ownerState: t
428
429
  } = e;
429
- return [r.root, r[`position${c(t.position)}`]];
430
+ return [r.root, r[`position${f(t.position)}`]];
430
431
  }
431
- })(h(({
432
+ })(S(({
432
433
  theme: e
433
434
  }) => ({
434
435
  display: "flex",
@@ -462,7 +463,7 @@ const ir = (e) => {
462
463
  bottom: 0
463
464
  }
464
465
  }]
465
- }))), lr = y("div", {
466
+ }))), br = g("div", {
466
467
  name: "MuiMobileStepper",
467
468
  slot: "Dots",
468
469
  overridesResolver: (e, r) => r.dots
@@ -476,17 +477,17 @@ const ir = (e) => {
476
477
  flexDirection: "row"
477
478
  }
478
479
  }]
479
- }), pr = y("div", {
480
+ }), mr = g("div", {
480
481
  name: "MuiMobileStepper",
481
482
  slot: "Dot",
482
- shouldForwardProp: (e) => F(e) && e !== "dotActive",
483
+ shouldForwardProp: (e) => Z(e) && e !== "dotActive",
483
484
  overridesResolver: (e, r) => {
484
485
  const {
485
486
  dotActive: t
486
487
  } = e;
487
488
  return [r.dot, t && r.dotActive];
488
489
  }
489
- })(h(({
490
+ })(S(({
490
491
  theme: e
491
492
  }) => ({
492
493
  variants: [{
@@ -512,7 +513,7 @@ const ir = (e) => {
512
513
  backgroundColor: (e.vars || e).palette.primary.main
513
514
  }
514
515
  }]
515
- }))), cr = y(E, {
516
+ }))), vr = g(Y, {
516
517
  name: "MuiMobileStepper",
517
518
  slot: "Progress",
518
519
  overridesResolver: (e, r) => r.progress
@@ -525,56 +526,56 @@ const ir = (e) => {
525
526
  width: "50%"
526
527
  }
527
528
  }]
528
- }), _ = /* @__PURE__ */ w.forwardRef(function(r, t) {
529
- const a = z({
529
+ }), G = /* @__PURE__ */ $.forwardRef(function(r, t) {
530
+ const a = F({
530
531
  props: r,
531
532
  name: "MuiMobileStepper"
532
533
  }), {
533
- activeStep: p = 0,
534
- backButton: f,
535
- className: b,
536
- LinearProgressProps: m,
534
+ activeStep: c = 0,
535
+ backButton: s,
536
+ className: m,
537
+ LinearProgressProps: y,
537
538
  nextButton: d,
538
- position: C = "bottom",
539
- steps: i,
540
- variant: s = "dots",
541
- ...g
539
+ position: v = "bottom",
540
+ steps: l,
541
+ variant: p = "dots",
542
+ ...P
542
543
  } = a, u = {
543
544
  ...a,
544
- activeStep: p,
545
- position: C,
546
- variant: s
545
+ activeStep: c,
546
+ position: v,
547
+ variant: p
547
548
  };
548
- let v;
549
- s === "progress" && (i === 1 ? v = 100 : v = Math.ceil(p / (i - 1) * 100));
550
- const n = ir(u);
551
- return /* @__PURE__ */ S(sr, {
549
+ let b;
550
+ p === "progress" && (l === 1 ? b = 100 : b = Math.ceil(c / (l - 1) * 100));
551
+ const i = ur(u);
552
+ return /* @__PURE__ */ C(fr, {
552
553
  square: !0,
553
554
  elevation: 0,
554
- className: $(n.root, b),
555
+ className: B(i.root, m),
555
556
  ref: t,
556
557
  ownerState: u,
557
- ...g,
558
- children: [f, s === "text" && /* @__PURE__ */ S(w.Fragment, {
559
- children: [p + 1, " / ", i]
560
- }), s === "dots" && /* @__PURE__ */ l(lr, {
558
+ ...P,
559
+ children: [s, p === "text" && /* @__PURE__ */ C($.Fragment, {
560
+ children: [c + 1, " / ", l]
561
+ }), p === "dots" && /* @__PURE__ */ n(br, {
561
562
  ownerState: u,
562
- className: n.dots,
563
- children: [...new Array(i)].map((ur, k) => /* @__PURE__ */ l(pr, {
564
- className: $(n.dot, k === p && n.dotActive),
563
+ className: i.dots,
564
+ children: [...new Array(l)].map((yr, x) => /* @__PURE__ */ n(mr, {
565
+ className: B(i.dot, x === c && i.dotActive),
565
566
  ownerState: u,
566
- dotActive: k === p
567
- }, k))
568
- }), s === "progress" && /* @__PURE__ */ l(cr, {
567
+ dotActive: x === c
568
+ }, x))
569
+ }), p === "progress" && /* @__PURE__ */ n(vr, {
569
570
  ownerState: u,
570
- className: n.progress,
571
+ className: i.progress,
571
572
  variant: "determinate",
572
- value: v,
573
- ...m
573
+ value: b,
574
+ ...y
574
575
  }), d]
575
576
  });
576
577
  });
577
- process.env.NODE_ENV !== "production" && (_.propTypes = {
578
+ process.env.NODE_ENV !== "production" && (G.propTypes = {
578
579
  // ┌────────────────────────────── Warning ──────────────────────────────┐
579
580
  // │ These PropTypes are generated from the TypeScript type definitions. │
580
581
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -584,7 +585,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
584
585
  * Defines which dot is highlighted when the variant is 'dots'.
585
586
  * @default 0
586
587
  */
587
- activeStep: D,
588
+ activeStep: U,
588
589
  /**
589
590
  * A back button element. For instance, it can be a `Button` or an `IconButton`.
590
591
  */
@@ -613,7 +614,7 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
613
614
  /**
614
615
  * The total steps.
615
616
  */
616
- steps: D.isRequired,
617
+ steps: U.isRequired,
617
618
  /**
618
619
  * The system prop that allows defining system overrides as well as additional CSS styles.
619
620
  */
@@ -624,8 +625,8 @@ process.env.NODE_ENV !== "production" && (_.propTypes = {
624
625
  */
625
626
  variant: o.oneOf(["dots", "progress", "text"])
626
627
  });
627
- const dr = K("div")(() => ({
628
- ...M`
628
+ const gr = _("div")(() => ({
629
+ ...k`
629
630
  position: relative;
630
631
  display: flex;
631
632
  flex-direction: column;
@@ -636,6 +637,7 @@ const dr = K("div")(() => ({
636
637
  padding: 0;
637
638
  margin: 0;
638
639
  background-color: transparent;
640
+ overflow: hidden;
639
641
 
640
642
  .MuiPaper-root {
641
643
  width: 100%;
@@ -647,42 +649,58 @@ const dr = K("div")(() => ({
647
649
  .MuiLinearProgress-root {
648
650
  padding: 9px;
649
651
  margin: 0 9px;
650
- background-color: ${x.colors.whiteGreenA};
651
- border-color: ${x.colors.green};
652
+ background-color: ${M.colors.whiteGreenA};
653
+ border-color: ${M.colors.green};
652
654
 
653
655
  .MuiLinearProgress-bar {
654
- background-color: ${x.colors.green};
656
+ background-color: ${M.colors.green};
655
657
  }
656
658
  }
657
659
  `
658
- })), xr = ({
660
+ })), E = _("div")(() => ({
661
+ ...k`
662
+ position: absolute;
663
+ top: 0;
664
+ `
665
+ })), Lr = ({
659
666
  onNext: e,
660
667
  onBack: r,
661
668
  onFinish: t,
662
669
  children: a,
663
- ...p
670
+ ...c
664
671
  }) => {
665
- const [f, b] = V(0), m = j.toArray(a).length, d = () => {
666
- f === m - 1 ? t == null || t() : (b((g) => g + 1), e == null || e());
667
- }, C = () => {
668
- b((g) => g - 1), r == null || r();
669
- }, i = () => /* @__PURE__ */ l(I, { onClick: d, children: f === m - 1 ? "Finish" : "Next" }), s = () => /* @__PURE__ */ l(I, { onClick: C, children: "Back" });
670
- return /* @__PURE__ */ S(dr, { className: "jcStepContainer", children: [
671
- j.toArray(a)[f] ?? null,
672
- /* @__PURE__ */ l(
673
- _,
672
+ const [s, m] = D(0), [y, d] = D("forward"), v = h.toArray(a).length, l = () => {
673
+ d("forward"), s === v - 1 ? t == null || t() : (m((i) => i + 1), e == null || e());
674
+ }, p = () => {
675
+ d("reverse"), m((i) => i - 1), r == null || r();
676
+ };
677
+ return /* @__PURE__ */ C(gr, { className: "jcStepContainer", children: [
678
+ /* @__PURE__ */ n(() => {
679
+ if (y === "forward")
680
+ return s === 0 ? /* @__PURE__ */ n(q, { children: h.toArray(a)[s] ?? null }) : /* @__PURE__ */ C(j, { children: [
681
+ /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(H, { children: h.toArray(a)[s - 1] ?? null }) }),
682
+ /* @__PURE__ */ n(q, { children: h.toArray(a)[s] ?? null })
683
+ ] });
684
+ if (y === "reverse")
685
+ return s === v - 1 ? /* @__PURE__ */ n(z, { children: h.toArray(a)[s] ?? null }) : /* @__PURE__ */ C(j, { children: [
686
+ /* @__PURE__ */ n(E, { children: /* @__PURE__ */ n(J, { children: h.toArray(a)[s + 1] ?? null }) }),
687
+ /* @__PURE__ */ n(z, { children: h.toArray(a)[s] ?? null })
688
+ ] });
689
+ }, {}),
690
+ /* @__PURE__ */ n(
691
+ G,
674
692
  {
675
693
  variant: "progress",
676
- steps: m,
694
+ steps: v,
677
695
  position: "static",
678
- activeStep: f,
679
- nextButton: /* @__PURE__ */ l(i, {}),
680
- backButton: f === 0 ? /* @__PURE__ */ l("div", { style: { width: "103px" } }) : /* @__PURE__ */ l(s, {}),
681
- ...p
696
+ activeStep: s,
697
+ nextButton: /* @__PURE__ */ n(() => /* @__PURE__ */ n(T, { onClick: l, children: s === v - 1 ? "Finish" : "Next" }), {}),
698
+ backButton: s === 0 ? /* @__PURE__ */ n("div", { style: { width: "103px" } }) : /* @__PURE__ */ n(() => /* @__PURE__ */ n(T, { onClick: p, children: "Back" }), {}),
699
+ ...c
682
700
  }
683
701
  )
684
702
  ] });
685
703
  };
686
704
  export {
687
- xr as default
705
+ Lr as default
688
706
  };
@@ -0,0 +1,16 @@
1
+ export declare const SlideIn: import('@emotion/styled').StyledComponent<{
2
+ theme?: import('@emotion/react').Theme;
3
+ as?: React.ElementType;
4
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const SlideInReverse: import('@emotion/styled').StyledComponent<{
6
+ theme?: import('@emotion/react').Theme;
7
+ as?: React.ElementType;
8
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
9
+ export declare const SlideOut: import('@emotion/styled').StyledComponent<{
10
+ theme?: import('@emotion/react').Theme;
11
+ as?: React.ElementType;
12
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
13
+ export declare const SlideOutReverse: import('@emotion/styled').StyledComponent<{
14
+ theme?: import('@emotion/react').Theme;
15
+ as?: React.ElementType;
16
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,85 @@
1
+ import { n as t } from "../../.chunks/emotion-styled.browser.esm.js";
2
+ import { c as e } from "../../.chunks/emotion-react.browser.esm.js";
3
+ const r = 447, a = e`
4
+ height: 100%;
5
+ width: 100%;
6
+ animation-fill-mode: forwards !important;
7
+ `, o = t("div")({
8
+ ...e`
9
+ ${a};
10
+ @keyframes slidein {
11
+ 0% {
12
+ transform: translateX(100%);
13
+ opacity: 0;
14
+ }
15
+ 100% {
16
+ transform: translateX(0);
17
+ opacity: 1;
18
+ }
19
+ }
20
+
21
+ @media (prefers-reduced-motion: no-preference) {
22
+ animation: slidein ${r}ms ease-in-out;
23
+ }
24
+ `
25
+ }), s = t("div")({
26
+ ...e`
27
+ ${a};
28
+ @keyframes slideinrev {
29
+ 0% {
30
+ transform: translateX(-100%);
31
+ opacity: 0;
32
+ }
33
+ 100% {
34
+ transform: translateX(0);
35
+ opacity: 1;
36
+ }
37
+ }
38
+
39
+ @media (prefers-reduced-motion: no-preference) {
40
+ animation: slideinrev ${r}ms ease-in-out;
41
+ }
42
+ `
43
+ }), m = t("div")({
44
+ ...e`
45
+ ${a};
46
+ @keyframes slideout {
47
+ 0% {
48
+ transform: translateX(0);
49
+ opacity: 1;
50
+ }
51
+ 100% {
52
+ transform: translateX(-100%);
53
+ opacity: 0;
54
+ }
55
+ }
56
+
57
+ @media (prefers-reduced-motion: no-preference) {
58
+ animation: slideout ${r}ms ease-in-out;
59
+ }
60
+ `
61
+ }), d = t("div")({
62
+ ...e`
63
+ ${a};
64
+ @keyframes slideoutrev {
65
+ 0% {
66
+ transform: translateX(0);
67
+ opacity: 1;
68
+ }
69
+ 100% {
70
+ transform: translateX(100%);
71
+ opacity: 0;
72
+ }
73
+ }
74
+
75
+ @media (prefers-reduced-motion: no-preference) {
76
+ animation: slideoutrev ${r}ms ease-in-out;
77
+ }
78
+ `
79
+ });
80
+ export {
81
+ o as SlideIn,
82
+ s as SlideInReverse,
83
+ m as SlideOut,
84
+ d as SlideOutReverse
85
+ };
@@ -0,0 +1 @@
1
+ export { SlideIn, SlideInReverse, SlideOut, SlideOutReverse } from './Slide.tsx';
@@ -0,0 +1,7 @@
1
+ import { SlideIn as i, SlideInReverse as l, SlideOut as r, SlideOutReverse as S } from "./Slide.js";
2
+ export {
3
+ i as SlideIn,
4
+ l as SlideInReverse,
5
+ r as SlideOut,
6
+ S as SlideOutReverse
7
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.235",
4
+ "version": "0.0.237",
5
5
  "description": "Component library for the websites of Johnson County Iowa",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",