@scbt-ecom/ui 0.90.0 → 0.90.2

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,2 +1,5 @@
1
- export declare const setSessionStorage: <T>(key: string, value: T) => void;
2
- export declare const getSessionStorage: <T>(key: string) => T | null;
1
+ export declare const sessionStorageActions: {
2
+ setItem: <T>(key: string, value: T) => void;
3
+ getItem: <T>(key: string) => T | null;
4
+ clearItems: (...keys: string[]) => void;
5
+ };
@@ -10,9 +10,9 @@ export type RenderFormStep = UserFeedbackProps & {
10
10
  type UserFeedbackClasses = {
11
11
  root?: string;
12
12
  wrapper?: string;
13
- selectRating: SelectRatingClasses;
13
+ selectRating?: SelectRatingClasses;
14
14
  userReview?: UserReviewClasses;
15
- finally: FinallyClasses;
15
+ finally?: FinallyClasses;
16
16
  };
17
17
  export type UserFeedbackProps = {
18
18
  submitCallback: SubmitCallback;
package/dist/ui.js CHANGED
@@ -1,10 +1,10 @@
1
- import { c as Ze, R as et, B as D, u as tt, a as nt, b as ot, d as rt, P as K, e as Fe, f as it, I as lt, g as Q, h as ut, A as st, i as B, D as at, V as gt, O as dt } from "./index-DM5UjNZl.js";
2
- import { s as Yn, o as Zn, C as eo, r as to, y as no, t as oo, U as ro, Q as io, z as lo, v as uo, E as so, H as ao, T as go, L as co, M as fo, N as po, n as mo, p as So, q as ho, x as Co, w as wo, S as Ro, W as vo, F as xo, j as _o, l as Fo, k as yo, m as $o, X as Vo, G as Mo, J as Io, K as Po } from "./index-DM5UjNZl.js";
1
+ import { c as Ze, R as et, B as D, u as tt, a as nt, b as ot, d as rt, P as K, e as Fe, f as it, I as lt, g as Q, h as ut, A as st, i as B, D as at, V as gt, O as dt } from "./index-ZIlUQVOW.js";
2
+ import { s as Yn, o as Zn, C as eo, r as to, y as no, t as oo, U as ro, Q as io, z as lo, v as uo, E as so, H as ao, T as go, L as co, M as fo, N as po, n as mo, p as So, q as ho, x as Co, w as wo, S as Ro, W as vo, F as xo, j as _o, l as Fo, k as yo, m as $o, X as Vo, G as Mo, J as Io, K as Po } from "./index-ZIlUQVOW.js";
3
3
  import { j as S, m as ct } from "./mergeRefs-Danc3mp8.js";
4
4
  import * as E from "react";
5
5
  import { forwardRef as M, useState as z, useRef as we, useEffect as ft, isValidElement as q, cloneElement as ye, Children as b } from "react";
6
6
  import { c as v, T as Re } from "./typeGuards-BHbj394R.js";
7
- import { aQ as Do, aT as Lo, aP as Ao, aS as Ho, aR as Go } from "./utils-BAhmwXLC.js";
7
+ import { aQ as Do, aT as Lo, aP as Ao, aS as Ho, aR as Go } from "./utils-U4W3nat7.js";
8
8
  import { u as $e, a as pt } from "./useDebounce-5MeprqTX.js";
9
9
  const mt = Ze(
10
10
  "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
@@ -3471,15 +3471,12 @@ class Jr extends x {
3471
3471
  }
3472
3472
  parse(e, r, n) {
3473
3473
  switch (r) {
3474
- // AD, BC
3475
3474
  case "G":
3476
3475
  case "GG":
3477
3476
  case "GGG":
3478
3477
  return n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
3479
- // A, B
3480
3478
  case "GGGGG":
3481
3479
  return n.era(e, { width: "narrow" });
3482
- // Anno Domini, Before Christ
3483
3480
  case "GGGG":
3484
3481
  default:
3485
3482
  return n.era(e, { width: "wide" }) || n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
@@ -3790,14 +3787,11 @@ class aa extends x {
3790
3787
  }
3791
3788
  parse(e, r, n) {
3792
3789
  switch (r) {
3793
- // 1, 2, 3, 4
3794
3790
  case "Q":
3795
3791
  case "QQ":
3796
3792
  return C(r.length, e);
3797
- // 1st, 2nd, 3rd, 4th
3798
3793
  case "Qo":
3799
3794
  return n.ordinalNumber(e, { unit: "quarter" });
3800
- // Q1, Q2, Q3, Q4
3801
3795
  case "QQQ":
3802
3796
  return n.quarter(e, {
3803
3797
  width: "abbreviated",
@@ -3806,13 +3800,11 @@ class aa extends x {
3806
3800
  width: "narrow",
3807
3801
  context: "formatting"
3808
3802
  });
3809
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
3810
3803
  case "QQQQQ":
3811
3804
  return n.quarter(e, {
3812
3805
  width: "narrow",
3813
3806
  context: "formatting"
3814
3807
  });
3815
- // 1st quarter, 2nd quarter, ...
3816
3808
  case "QQQQ":
3817
3809
  default:
3818
3810
  return n.quarter(e, {
@@ -3857,14 +3849,11 @@ class na extends x {
3857
3849
  }
3858
3850
  parse(e, r, n) {
3859
3851
  switch (r) {
3860
- // 1, 2, 3, 4
3861
3852
  case "q":
3862
3853
  case "qq":
3863
3854
  return C(r.length, e);
3864
- // 1st, 2nd, 3rd, 4th
3865
3855
  case "qo":
3866
3856
  return n.ordinalNumber(e, { unit: "quarter" });
3867
- // Q1, Q2, Q3, Q4
3868
3857
  case "qqq":
3869
3858
  return n.quarter(e, {
3870
3859
  width: "abbreviated",
@@ -3873,13 +3862,11 @@ class na extends x {
3873
3862
  width: "narrow",
3874
3863
  context: "standalone"
3875
3864
  });
3876
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
3877
3865
  case "qqqqq":
3878
3866
  return n.quarter(e, {
3879
3867
  width: "narrow",
3880
3868
  context: "standalone"
3881
3869
  });
3882
- // 1st quarter, 2nd quarter, ...
3883
3870
  case "qqqq":
3884
3871
  default:
3885
3872
  return n.quarter(e, {
@@ -3924,16 +3911,13 @@ class sa extends x {
3924
3911
  parse(e, r, n) {
3925
3912
  const s = (i) => i - 1;
3926
3913
  switch (r) {
3927
- // 1, 2, ..., 12
3928
3914
  case "M":
3929
3915
  return D(
3930
3916
  T(M.month, e),
3931
3917
  s
3932
3918
  );
3933
- // 01, 02, ..., 12
3934
3919
  case "MM":
3935
3920
  return D(C(2, e), s);
3936
- // 1st, 2nd, ..., 12th
3937
3921
  case "Mo":
3938
3922
  return D(
3939
3923
  n.ordinalNumber(e, {
@@ -3941,19 +3925,16 @@ class sa extends x {
3941
3925
  }),
3942
3926
  s
3943
3927
  );
3944
- // Jan, Feb, ..., Dec
3945
3928
  case "MMM":
3946
3929
  return n.month(e, {
3947
3930
  width: "abbreviated",
3948
3931
  context: "formatting"
3949
3932
  }) || n.month(e, { width: "narrow", context: "formatting" });
3950
- // J, F, ..., D
3951
3933
  case "MMMMM":
3952
3934
  return n.month(e, {
3953
3935
  width: "narrow",
3954
3936
  context: "formatting"
3955
3937
  });
3956
- // January, February, ..., December
3957
3938
  case "MMMM":
3958
3939
  default:
3959
3940
  return n.month(e, { width: "wide", context: "formatting" }) || n.month(e, {
@@ -3992,16 +3973,13 @@ class ia extends x {
3992
3973
  parse(e, r, n) {
3993
3974
  const s = (i) => i - 1;
3994
3975
  switch (r) {
3995
- // 1, 2, ..., 12
3996
3976
  case "L":
3997
3977
  return D(
3998
3978
  T(M.month, e),
3999
3979
  s
4000
3980
  );
4001
- // 01, 02, ..., 12
4002
3981
  case "LL":
4003
3982
  return D(C(2, e), s);
4004
- // 1st, 2nd, ..., 12th
4005
3983
  case "Lo":
4006
3984
  return D(
4007
3985
  n.ordinalNumber(e, {
@@ -4009,19 +3987,16 @@ class ia extends x {
4009
3987
  }),
4010
3988
  s
4011
3989
  );
4012
- // Jan, Feb, ..., Dec
4013
3990
  case "LLL":
4014
3991
  return n.month(e, {
4015
3992
  width: "abbreviated",
4016
3993
  context: "standalone"
4017
3994
  }) || n.month(e, { width: "narrow", context: "standalone" });
4018
- // J, F, ..., D
4019
3995
  case "LLLLL":
4020
3996
  return n.month(e, {
4021
3997
  width: "narrow",
4022
3998
  context: "standalone"
4023
3999
  });
4024
- // January, February, ..., December
4025
4000
  case "LLLL":
4026
4001
  default:
4027
4002
  return n.month(e, { width: "wide", context: "standalone" }) || n.month(e, {
@@ -4227,7 +4202,6 @@ class pa extends x {
4227
4202
  }
4228
4203
  parse(e, r, n) {
4229
4204
  switch (r) {
4230
- // Tue
4231
4205
  case "E":
4232
4206
  case "EE":
4233
4207
  case "EEE":
@@ -4235,16 +4209,13 @@ class pa extends x {
4235
4209
  width: "abbreviated",
4236
4210
  context: "formatting"
4237
4211
  }) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
4238
- // T
4239
4212
  case "EEEEE":
4240
4213
  return n.day(e, {
4241
4214
  width: "narrow",
4242
4215
  context: "formatting"
4243
4216
  });
4244
- // Tu
4245
4217
  case "EEEEEE":
4246
4218
  return n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
4247
- // Tuesday
4248
4219
  case "EEEE":
4249
4220
  default:
4250
4221
  return n.day(e, { width: "wide", context: "formatting" }) || n.day(e, {
@@ -4288,11 +4259,9 @@ class ya extends x {
4288
4259
  return (o + s.weekStartsOn + 6) % 7 + u;
4289
4260
  };
4290
4261
  switch (r) {
4291
- // 3
4292
4262
  case "e":
4293
4263
  case "ee":
4294
4264
  return D(C(r.length, e), i);
4295
- // 3rd
4296
4265
  case "eo":
4297
4266
  return D(
4298
4267
  n.ordinalNumber(e, {
@@ -4300,22 +4269,18 @@ class ya extends x {
4300
4269
  }),
4301
4270
  i
4302
4271
  );
4303
- // Tue
4304
4272
  case "eee":
4305
4273
  return n.day(e, {
4306
4274
  width: "abbreviated",
4307
4275
  context: "formatting"
4308
4276
  }) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
4309
- // T
4310
4277
  case "eeeee":
4311
4278
  return n.day(e, {
4312
4279
  width: "narrow",
4313
4280
  context: "formatting"
4314
4281
  });
4315
- // Tu
4316
4282
  case "eeeeee":
4317
4283
  return n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
4318
- // Tuesday
4319
4284
  case "eeee":
4320
4285
  default:
4321
4286
  return n.day(e, { width: "wide", context: "formatting" }) || n.day(e, {
@@ -4359,11 +4324,9 @@ class ga extends x {
4359
4324
  return (o + s.weekStartsOn + 6) % 7 + u;
4360
4325
  };
4361
4326
  switch (r) {
4362
- // 3
4363
4327
  case "c":
4364
4328
  case "cc":
4365
4329
  return D(C(r.length, e), i);
4366
- // 3rd
4367
4330
  case "co":
4368
4331
  return D(
4369
4332
  n.ordinalNumber(e, {
@@ -4371,22 +4334,18 @@ class ga extends x {
4371
4334
  }),
4372
4335
  i
4373
4336
  );
4374
- // Tue
4375
4337
  case "ccc":
4376
4338
  return n.day(e, {
4377
4339
  width: "abbreviated",
4378
4340
  context: "standalone"
4379
4341
  }) || n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
4380
- // T
4381
4342
  case "ccccc":
4382
4343
  return n.day(e, {
4383
4344
  width: "narrow",
4384
4345
  context: "standalone"
4385
4346
  });
4386
- // Tu
4387
4347
  case "cccccc":
4388
4348
  return n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
4389
- // Tuesday
4390
4349
  case "cccc":
4391
4350
  default:
4392
4351
  return n.day(e, { width: "wide", context: "standalone" }) || n.day(e, {
@@ -4431,14 +4390,11 @@ class va extends x {
4431
4390
  parse(e, r, n) {
4432
4391
  const s = (i) => i === 0 ? 7 : i;
4433
4392
  switch (r) {
4434
- // 2
4435
4393
  case "i":
4436
4394
  case "ii":
4437
4395
  return C(r.length, e);
4438
- // 2nd
4439
4396
  case "io":
4440
4397
  return n.ordinalNumber(e, { unit: "day" });
4441
- // Tue
4442
4398
  case "iii":
4443
4399
  return D(
4444
4400
  n.day(e, {
@@ -4453,7 +4409,6 @@ class va extends x {
4453
4409
  }),
4454
4410
  s
4455
4411
  );
4456
- // T
4457
4412
  case "iiiii":
4458
4413
  return D(
4459
4414
  n.day(e, {
@@ -4462,7 +4417,6 @@ class va extends x {
4462
4417
  }),
4463
4418
  s
4464
4419
  );
4465
- // Tu
4466
4420
  case "iiiiii":
4467
4421
  return D(
4468
4422
  n.day(e, {
@@ -4474,7 +4428,6 @@ class va extends x {
4474
4428
  }),
4475
4429
  s
4476
4430
  );
4477
- // Tuesday
4478
4431
  case "iiii":
4479
4432
  default:
4480
4433
  return D(
@@ -5144,4 +5097,4 @@ export {
5144
5097
  Te as y,
5145
5098
  U as z
5146
5099
  };
5147
- //# sourceMappingURL=utils-BAhmwXLC.js.map
5100
+ //# sourceMappingURL=utils-U4W3nat7.js.map