jcicl 0.0.235 → 0.0.239

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