rds-ui-system 2.0.20 → 2.0.21

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.
@@ -12,6 +12,7 @@ export interface ModalProps extends ButtonHTMLAttributes<HTMLButtonElement> {
12
12
  customHeight?: boolean
13
13
  height?: string
14
14
  onClick?: () => void
15
+ customClasses?: string
15
16
  }
16
17
  export declare const Modal: ({
17
18
  children,
@@ -20,4 +21,5 @@ export declare const Modal: ({
20
21
  onClick,
21
22
  width,
22
23
  height,
24
+ customClasses,
23
25
  }: ModalProps) => import('react/jsx-runtime').JSX.Element
@@ -20,17 +20,17 @@ function x1() {
20
20
  f = Object.prototype.hasOwnProperty,
21
21
  g = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
22
22
  v = { key: !0, ref: !0, __self: !0, __source: !0 }
23
- function o(w, d, j) {
23
+ function d(w, o, j) {
24
24
  var u,
25
25
  c = {},
26
26
  _ = null,
27
27
  b = null
28
- j !== void 0 && (_ = '' + j), d.key !== void 0 && (_ = '' + d.key), d.ref !== void 0 && (b = d.ref)
29
- for (u in d) f.call(d, u) && !v.hasOwnProperty(u) && (c[u] = d[u])
30
- if (w && w.defaultProps) for (u in ((d = w.defaultProps), d)) c[u] === void 0 && (c[u] = d[u])
28
+ j !== void 0 && (_ = '' + j), o.key !== void 0 && (_ = '' + o.key), o.ref !== void 0 && (b = o.ref)
29
+ for (u in o) f.call(o, u) && !v.hasOwnProperty(u) && (c[u] = o[u])
30
+ if (w && w.defaultProps) for (u in ((o = w.defaultProps), o)) c[u] === void 0 && (c[u] = o[u])
31
31
  return { $$typeof: i, type: w, key: _, ref: b, props: c, _owner: g.current }
32
32
  }
33
- return ($.Fragment = h), ($.jsx = o), ($.jsxs = o), $
33
+ return ($.Fragment = h), ($.jsx = d), ($.jsxs = d), $
34
34
  }
35
35
  var U = {}
36
36
  /**
@@ -55,9 +55,9 @@ function f1() {
55
55
  f = Symbol.for('react.fragment'),
56
56
  g = Symbol.for('react.strict_mode'),
57
57
  v = Symbol.for('react.profiler'),
58
- o = Symbol.for('react.provider'),
58
+ d = Symbol.for('react.provider'),
59
59
  w = Symbol.for('react.context'),
60
- d = Symbol.for('react.forward_ref'),
60
+ o = Symbol.for('react.forward_ref'),
61
61
  j = Symbol.for('react.suspense'),
62
62
  u = Symbol.for('react.suspense_list'),
63
63
  c = Symbol.for('react.memo'),
@@ -115,9 +115,9 @@ function f1() {
115
115
  l !== null &&
116
116
  (l.$$typeof === _ ||
117
117
  l.$$typeof === c ||
118
- l.$$typeof === o ||
118
+ l.$$typeof === d ||
119
119
  l.$$typeof === w ||
120
- l.$$typeof === d || // This needs to include all possible module reference object
120
+ l.$$typeof === o || // This needs to include all possible module reference object
121
121
  // types supported by any Flight configuration anywhere since
122
122
  // we don't know which Flight build this will end up being used
123
123
  // with.
@@ -164,10 +164,10 @@ function f1() {
164
164
  case w:
165
165
  var r = l
166
166
  return ce(r) + '.Consumer'
167
- case o:
167
+ case d:
168
168
  var s = l
169
169
  return ce(s._context) + '.Provider'
170
- case d:
170
+ case o:
171
171
  return Fe(l, l.render, 'ForwardRef')
172
172
  case c:
173
173
  var n = l.displayName || null
@@ -389,7 +389,7 @@ function f1() {
389
389
  }
390
390
  if (typeof l == 'object')
391
391
  switch (l.$$typeof) {
392
- case d:
392
+ case o:
393
393
  return Ue(l.render)
394
394
  case c:
395
395
  return z(l.type, r, s)
@@ -706,7 +706,7 @@ Check the top-level render call using <` +
706
706
  if (typeof r == 'function') s = r.propTypes
707
707
  else if (
708
708
  typeof r == 'object' &&
709
- (r.$$typeof === d || // Note: Memo only checks outer props here.
709
+ (r.$$typeof === o || // Note: Memo only checks outer props here.
710
710
  // Inner props are checked in the reconciler.
711
711
  r.$$typeof === c)
712
712
  )
@@ -2945,12 +2945,12 @@ const ne = {
2945
2945
  isOutlined: f = !1,
2946
2946
  onClick: g,
2947
2947
  children: v,
2948
- type: o,
2948
+ type: d,
2949
2949
  customClasses: w,
2950
- iconName: d = 'Block',
2950
+ iconName: o = 'Block',
2951
2951
  }) =>
2952
2952
  /* @__PURE__ */ e.jsx('button', {
2953
- type: o,
2953
+ type: d,
2954
2954
  className: `flex flex-col items-center transition-color duration-100
2955
2955
  justify-center gap-2 overflow-hidden rounded
2956
2956
  ${
@@ -2969,13 +2969,13 @@ const ne = {
2969
2969
  ? /* @__PURE__ */ e.jsx(e.Fragment, {
2970
2970
  children: /* @__PURE__ */ e.jsx('div', {
2971
2971
  className: 'p-[0.5em]',
2972
- children: v || /* @__PURE__ */ e.jsx('span', { children: ne[d](f == !1, h == !0) }),
2972
+ children: v || /* @__PURE__ */ e.jsx('span', { children: ne[o](f == !1, h == !0) }),
2973
2973
  }),
2974
2974
  })
2975
2975
  : /* @__PURE__ */ e.jsxs('div', {
2976
2976
  className: 'flex justify-center items-center flex-grow-0 flex-shrink-0 relative gap-2 px-6 py-2.5',
2977
2977
  children: [
2978
- i == 'ICONPLUS' && /* @__PURE__ */ e.jsx('span', { children: ne[d](f == !1, h == !0) }),
2978
+ i == 'ICONPLUS' && /* @__PURE__ */ e.jsx('span', { children: ne[o](f == !1, h == !0) }),
2979
2979
  /* @__PURE__ */ e.jsx('p', {
2980
2980
  className: `flex-grow-0 flex-shrink-0 text-[0.8750em] text-center
2981
2981
  `,
@@ -2998,17 +2998,17 @@ const ne = {
2998
2998
  isDisabled: f = !1,
2999
2999
  isError: g = !1,
3000
3000
  onChange: v,
3001
- value: o,
3001
+ value: d,
3002
3002
  name: w,
3003
- type: d,
3003
+ type: o,
3004
3004
  id: j,
3005
3005
  supportingText: u,
3006
3006
  isRequired: c,
3007
3007
  }) => {
3008
- const [_, b] = N(o || '')
3008
+ const [_, b] = N(d || '')
3009
3009
  K(() => {
3010
- b(o || '')
3011
- }, [o])
3010
+ b(d || '')
3011
+ }, [d])
3012
3012
  const E = (a) => {
3013
3013
  const { value: m } = a.target
3014
3014
  b(m), v && v(a)
@@ -3038,7 +3038,7 @@ const ne = {
3038
3038
  id: j,
3039
3039
  value: _,
3040
3040
  name: w,
3041
- type: d,
3041
+ type: o,
3042
3042
  onChange: E,
3043
3043
  placeholder: t,
3044
3044
  className: F,
@@ -3102,9 +3102,9 @@ const ne = {
3102
3102
  },
3103
3103
  M1 = ({ options: t, selectedCatOptions: i, setSelectedCatOptions: h, variant: f = 'DEFAULT' }) => {
3104
3104
  const [g, v] = N(null),
3105
- o = {},
3105
+ d = {},
3106
3106
  w = t,
3107
- d = (a) => {
3107
+ o = (a) => {
3108
3108
  const m = a.classId.split('_')[0],
3109
3109
  H = parseInt(m.split('.')[0])
3110
3110
  return (
@@ -3122,9 +3122,9 @@ const ne = {
3122
3122
  a
3123
3123
  )
3124
3124
  },
3125
- j = w.map((a) => d(a))
3125
+ j = w.map((a) => o(a))
3126
3126
  Object.values(j).forEach((a) => {
3127
- o[a.groupName] || (o[a.groupName] = []), o[a.groupName].push(a)
3127
+ d[a.groupName] || (d[a.groupName] = []), d[a.groupName].push(a)
3128
3128
  })
3129
3129
  const u = (a) => {
3130
3130
  v((m) => (m === a ? null : a))
@@ -3150,8 +3150,8 @@ const ne = {
3150
3150
  return /* @__PURE__ */ e.jsx(e.Fragment, {
3151
3151
  children: /* @__PURE__ */ e.jsx('div', {
3152
3152
  className: 'w-full overflow-hidden border rounded border-brand-black',
3153
- children: Object.keys(o).map((a) => {
3154
- const m = o[a],
3153
+ children: Object.keys(d).map((a) => {
3154
+ const m = d[a],
3155
3155
  H = a === g
3156
3156
  return /* @__PURE__ */ e.jsxs(
3157
3157
  'div',
@@ -3330,16 +3330,16 @@ const ne = {
3330
3330
  isError: f = !1,
3331
3331
  isRequired: g = !1,
3332
3332
  onChange: v,
3333
- checked: o,
3333
+ checked: d,
3334
3334
  id: w,
3335
- readOnly: d,
3335
+ readOnly: o,
3336
3336
  }) => {
3337
- const [j, u] = N(o || !1),
3337
+ const [j, u] = N(d || !1),
3338
3338
  [c, _] = N(!1)
3339
3339
  return (
3340
3340
  K(() => {
3341
- u(o || !1)
3342
- }, [o]),
3341
+ u(d || !1)
3342
+ }, [d]),
3343
3343
  /* @__PURE__ */ e.jsxs('div', {
3344
3344
  className: `relative flex items-start justify-start gap-2 ${h ? 'opacity-50 pointer-events-none' : ''} bg-red`,
3345
3345
  children: [
@@ -3362,7 +3362,7 @@ const ne = {
3362
3362
  stroke: f || g ? '#e2001a' : c ? 'black' : '#AFB0B7',
3363
3363
  strokeWidth: c ? 3 : 1,
3364
3364
  }),
3365
- (j || o) &&
3365
+ (j || d) &&
3366
3366
  /* @__PURE__ */ e.jsx('path', {
3367
3367
  d: 'M13.9887 5L8.28867 10.8L5.78867 8.3L3.88867 10.1L8.28867 14.5L15.8887 6.9L13.9887 5Z',
3368
3368
  fill: 'black',
@@ -3382,7 +3382,7 @@ const ne = {
3382
3382
  onChange: (b) => {
3383
3383
  u(b.target.checked), v && v(b)
3384
3384
  },
3385
- readOnly: d,
3385
+ readOnly: o,
3386
3386
  className: 'h-[1.2em] w-[1.2em] absolute opacity-0 cursor-pointer',
3387
3387
  onMouseEnter: () => _(!0),
3388
3388
  onMouseLeave: () => _(!1),
@@ -3449,16 +3449,16 @@ const ne = {
3449
3449
  isError: f = !1,
3450
3450
  isRequired: g = !1,
3451
3451
  onChange: v,
3452
- checked: o,
3452
+ checked: d,
3453
3453
  id: w,
3454
- readOnly: d,
3454
+ readOnly: o,
3455
3455
  }) => {
3456
- const [j, u] = N(o || !1),
3456
+ const [j, u] = N(d || !1),
3457
3457
  [c, _] = N(!1)
3458
3458
  return (
3459
3459
  K(() => {
3460
- u(o || !1)
3461
- }, [o]),
3460
+ u(d || !1)
3461
+ }, [d]),
3462
3462
  /* @__PURE__ */ e.jsxs('div', {
3463
3463
  className: `relative flex items-start justify-start gap-2 ${h ? 'opacity-50 pointer-events-none' : ''} bg-red`,
3464
3464
  children: [
@@ -3498,7 +3498,7 @@ const ne = {
3498
3498
  onChange: (b) => {
3499
3499
  u(b.target.checked), v && v(b)
3500
3500
  },
3501
- readOnly: d,
3501
+ readOnly: o,
3502
3502
  className: 'h-[1.2em] w-[1.2em] absolute opacity-0 cursor-pointer',
3503
3503
  onMouseEnter: () => _(!0),
3504
3504
  onMouseLeave: () => _(!1),
@@ -3520,9 +3520,9 @@ const ne = {
3520
3520
  onSelectionChange: f,
3521
3521
  label: g,
3522
3522
  prepopulatedId: v,
3523
- boxText: o,
3523
+ boxText: d,
3524
3524
  isDisabled: w,
3525
- topPull: d,
3525
+ topPull: o,
3526
3526
  }) => {
3527
3527
  const [j, u] = N(!1),
3528
3528
  c = () => {
@@ -3540,7 +3540,7 @@ const ne = {
3540
3540
  children: [
3541
3541
  /* @__PURE__ */ e.jsx('div', {
3542
3542
  className: `absolute top-[-0.5em] left-[0.7em] flex items-center rounded justify-start px-1 bg-white
3543
- ${d && j ? 'opacity-0' : 'opacity-100'}`,
3543
+ ${o && j ? 'opacity-0' : 'opacity-100'}`,
3544
3544
  children: /* @__PURE__ */ e.jsx('p', { className: 'text-xs text-left text-black', children: g }),
3545
3545
  }),
3546
3546
  /* @__PURE__ */ e.jsxs('div', {
@@ -3550,7 +3550,7 @@ const ne = {
3550
3550
  className: 'overflow-hidden',
3551
3551
  children: /* @__PURE__ */ e.jsx('div', {
3552
3552
  className: 'my-2 text-base text-left text-black dropdown-header h-[1.6em] w-[40em]',
3553
- children: o || h,
3553
+ children: d || h,
3554
3554
  }),
3555
3555
  }),
3556
3556
  /* @__PURE__ */ e.jsx('div', {
@@ -3610,7 +3610,7 @@ const ne = {
3610
3610
  ],
3611
3611
  }),
3612
3612
  /* @__PURE__ */ e.jsx('div', {
3613
- className: `dropdown-list absolute w-full overflow-hidden rounded-b ${d ? '-mt-[13.05em]' : ''}
3613
+ className: `dropdown-list absolute w-full overflow-hidden rounded-b ${o ? '-mt-[13.05em]' : ''}
3614
3614
  transition-all duration-100 ${j ? 'h-[13em]' : 'h-[0em] pointer-events-none'}`,
3615
3615
  children:
3616
3616
  j &&
@@ -3659,17 +3659,17 @@ const ne = {
3659
3659
  options: f,
3660
3660
  isDisabled: g,
3661
3661
  label: v,
3662
- variant: o = 'DEFAULT',
3662
+ variant: d = 'DEFAULT',
3663
3663
  }) => {
3664
- const [w, d] = N(!1),
3664
+ const [w, o] = N(!1),
3665
3665
  j = d1(null),
3666
3666
  u = () => {
3667
- w && d(!1)
3667
+ w && o(!1)
3668
3668
  }
3669
3669
  return /* @__PURE__ */ e.jsxs('div', {
3670
3670
  onMouseLeave: u,
3671
3671
  onClick: () => {
3672
- d(!0)
3672
+ o(!0)
3673
3673
  },
3674
3674
  className: `cursor-pointer relative py-[0.7em] px-[1em] border border-black rounded h-[3.1em]
3675
3675
  ${g ? 'bg-brand-grey-light pointer-events-none' : 'bg-brand-white pointer-events-auto'}`,
@@ -3785,12 +3785,12 @@ const ne = {
3785
3785
  children: f,
3786
3786
  bold: g,
3787
3787
  small: v,
3788
- important: o,
3788
+ important: d,
3789
3789
  customClasses: w,
3790
- title: d,
3790
+ title: o,
3791
3791
  }) =>
3792
3792
  /* @__PURE__ */ e.jsx('p', {
3793
- title: d,
3793
+ title: o,
3794
3794
  className: `${g1[t]} ${g ? 'font-semibold' : ''} ${w || ''} ${
3795
3795
  i ? 'opacity-[0.3] cursor-not-allowed pointer-events-none' : ''
3796
3796
  }`,
@@ -3810,9 +3810,9 @@ const ne = {
3810
3810
  variant: f = 'DEFAULT',
3811
3811
  isDisabled: g = !1,
3812
3812
  isError: v = !1,
3813
- defaultValue: o,
3813
+ defaultValue: d,
3814
3814
  isRequired: w,
3815
- onChange: d,
3815
+ onChange: o,
3816
3816
  supportingText: j,
3817
3817
  id: u,
3818
3818
  }) => {
@@ -3836,9 +3836,9 @@ const ne = {
3836
3836
  /* @__PURE__ */ e.jsx('textarea', {
3837
3837
  id: u,
3838
3838
  value: t,
3839
- defaultValue: o,
3839
+ defaultValue: d,
3840
3840
  placeholder: i,
3841
- onChange: d,
3841
+ onChange: o,
3842
3842
  className: c,
3843
3843
  }),
3844
3844
  j &&
@@ -3866,7 +3866,15 @@ const ne = {
3866
3866
  J1 = {
3867
3867
  DEFAULT: 'default',
3868
3868
  },
3869
- K1 = ({ children: t, customWidth: i, customHeight: h, onClick: f, width: g = '60', height: v = '30' }) => {
3869
+ K1 = ({
3870
+ children: t,
3871
+ customWidth: i,
3872
+ customHeight: h,
3873
+ onClick: f,
3874
+ width: g = '60',
3875
+ height: v = '30',
3876
+ customClasses: d,
3877
+ }) => {
3870
3878
  K(
3871
3879
  () => (
3872
3880
  (document.body.style.overflow = 'hidden'),
@@ -3876,8 +3884,8 @@ const ne = {
3876
3884
  ),
3877
3885
  [],
3878
3886
  )
3879
- const o = i ? g : 'auto',
3880
- w = h ? v : 'auto'
3887
+ const w = i ? g : 'auto',
3888
+ o = h ? v : 'auto'
3881
3889
  return /* @__PURE__ */ e.jsxs(e.Fragment, {
3882
3890
  children: [
3883
3891
  /* @__PURE__ */ e.jsx('div', {
@@ -3886,9 +3894,9 @@ const ne = {
3886
3894
  style: { opacity: '0.6' },
3887
3895
  }),
3888
3896
  /* @__PURE__ */ e.jsx('div', {
3889
- className: `fixed z-50 flex items-center justify-center p-8 overflow-hidden h-auto w-auto
3890
- lg:w-[${o}em] lg:h-[${w}em] -translate-x-1/2 -translate-y-1/2 border border-white rounded-md top-1/2 left-1/2 bg-brand-white`,
3891
- style: { width: `${o}em`, height: `${w}em` },
3897
+ className: `fixed z-50 items-center justify-center p-8 overflow-hidden h-auto w-auto ${d || ''}
3898
+ lg:w-[${w}em] lg:h-[${o}em] -translate-x-1/2 -translate-y-1/2 border border-white rounded-md top-1/2 left-1/2 bg-brand-white`,
3899
+ style: { width: `${w}em`, height: `${o}em` },
3892
3900
  children: t || 'test',
3893
3901
  }),
3894
3902
  ],
@@ -26,17 +26,17 @@
26
26
  w = Object.prototype.hasOwnProperty,
27
27
  v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
28
28
  j = { key: !0, ref: !0, __self: !0, __source: !0 }
29
- function d(p, f, u) {
29
+ function f(p, d, u) {
30
30
  var m,
31
31
  h = {},
32
32
  V = null,
33
33
  _ = null
34
- u !== void 0 && (V = '' + u), f.key !== void 0 && (V = '' + f.key), f.ref !== void 0 && (_ = f.ref)
35
- for (m in f) w.call(f, m) && !j.hasOwnProperty(m) && (h[m] = f[m])
36
- if (p && p.defaultProps) for (m in ((f = p.defaultProps), f)) h[m] === void 0 && (h[m] = f[m])
34
+ u !== void 0 && (V = '' + u), d.key !== void 0 && (V = '' + d.key), d.ref !== void 0 && (_ = d.ref)
35
+ for (m in d) w.call(d, m) && !j.hasOwnProperty(m) && (h[m] = d[m])
36
+ if (p && p.defaultProps) for (m in ((d = p.defaultProps), d)) h[m] === void 0 && (h[m] = d[m])
37
37
  return { $$typeof: i, type: p, key: V, ref: _, props: h, _owner: v.current }
38
38
  }
39
- return (O.Fragment = o), (O.jsx = d), (O.jsxs = d), O
39
+ return (O.Fragment = o), (O.jsx = f), (O.jsxs = f), O
40
40
  }
41
41
  var S = {}
42
42
  /**
@@ -60,9 +60,9 @@
60
60
  w = Symbol.for('react.fragment'),
61
61
  v = Symbol.for('react.strict_mode'),
62
62
  j = Symbol.for('react.profiler'),
63
- d = Symbol.for('react.provider'),
63
+ f = Symbol.for('react.provider'),
64
64
  p = Symbol.for('react.context'),
65
- f = Symbol.for('react.forward_ref'),
65
+ d = Symbol.for('react.forward_ref'),
66
66
  u = Symbol.for('react.suspense'),
67
67
  m = Symbol.for('react.suspense_list'),
68
68
  h = Symbol.for('react.memo'),
@@ -120,9 +120,9 @@
120
120
  l !== null &&
121
121
  (l.$$typeof === V ||
122
122
  l.$$typeof === h ||
123
- l.$$typeof === d ||
124
- l.$$typeof === p ||
125
123
  l.$$typeof === f ||
124
+ l.$$typeof === p ||
125
+ l.$$typeof === d ||
126
126
  l.$$typeof === pe ||
127
127
  l.getModuleId !== void 0))
128
128
  )
@@ -166,10 +166,10 @@
166
166
  case p:
167
167
  var r = l
168
168
  return ge(r) + '.Consumer'
169
- case d:
169
+ case f:
170
170
  var s = l
171
171
  return ge(s._context) + '.Provider'
172
- case f:
172
+ case d:
173
173
  return A1(l, l.render, 'ForwardRef')
174
174
  case h:
175
175
  var a = l.displayName || null
@@ -370,7 +370,7 @@
370
370
  }
371
371
  if (typeof l == 'object')
372
372
  switch (l.$$typeof) {
373
- case f:
373
+ case d:
374
374
  return Z1(l.render)
375
375
  case h:
376
376
  return X(l.type, r, s)
@@ -655,7 +655,7 @@ Check the top-level render call using <` +
655
655
  if (r == null || typeof r == 'string') return
656
656
  var s
657
657
  if (typeof r == 'function') s = r.propTypes
658
- else if (typeof r == 'object' && (r.$$typeof === f || r.$$typeof === h)) s = r.propTypes
658
+ else if (typeof r == 'object' && (r.$$typeof === d || r.$$typeof === h)) s = r.propTypes
659
659
  else return
660
660
  if (s) {
661
661
  var a = Z(r)
@@ -2889,12 +2889,12 @@ Check the top-level render call using <` +
2889
2889
  isOutlined: w = !1,
2890
2890
  onClick: v,
2891
2891
  children: j,
2892
- type: d,
2892
+ type: f,
2893
2893
  customClasses: p,
2894
- iconName: f = 'Block',
2894
+ iconName: d = 'Block',
2895
2895
  }) =>
2896
2896
  e.jsx('button', {
2897
- type: d,
2897
+ type: f,
2898
2898
  className: `flex flex-col items-center transition-color duration-100
2899
2899
  justify-center gap-2 overflow-hidden rounded
2900
2900
  ${
@@ -2913,13 +2913,13 @@ Check the top-level render call using <` +
2913
2913
  ? e.jsx(e.Fragment, {
2914
2914
  children: e.jsx('div', {
2915
2915
  className: 'p-[0.5em]',
2916
- children: j || e.jsx('span', { children: Q[f](w == !1, o == !0) }),
2916
+ children: j || e.jsx('span', { children: Q[d](w == !1, o == !0) }),
2917
2917
  }),
2918
2918
  })
2919
2919
  : e.jsxs('div', {
2920
2920
  className: 'flex justify-center items-center flex-grow-0 flex-shrink-0 relative gap-2 px-6 py-2.5',
2921
2921
  children: [
2922
- i == 'ICONPLUS' && e.jsx('span', { children: Q[f](w == !1, o == !0) }),
2922
+ i == 'ICONPLUS' && e.jsx('span', { children: Q[d](w == !1, o == !0) }),
2923
2923
  e.jsx('p', {
2924
2924
  className: `flex-grow-0 flex-shrink-0 text-[0.8750em] text-center
2925
2925
  `,
@@ -2940,17 +2940,17 @@ Check the top-level render call using <` +
2940
2940
  isDisabled: w = !1,
2941
2941
  isError: v = !1,
2942
2942
  onChange: j,
2943
- value: d,
2943
+ value: f,
2944
2944
  name: p,
2945
- type: f,
2945
+ type: d,
2946
2946
  id: u,
2947
2947
  supportingText: m,
2948
2948
  isRequired: h,
2949
2949
  }) => {
2950
- const [V, _] = M.useState(d || '')
2950
+ const [V, _] = M.useState(f || '')
2951
2951
  M.useEffect(() => {
2952
- _(d || '')
2953
- }, [d])
2952
+ _(f || '')
2953
+ }, [f])
2954
2954
  const T = (c) => {
2955
2955
  const { value: C } = c.target
2956
2956
  _(C), j && j(c)
@@ -2976,7 +2976,7 @@ Check the top-level render call using <` +
2976
2976
  children: i || 'label',
2977
2977
  }),
2978
2978
  }),
2979
- e.jsx('input', { id: u, value: V, name: p, type: f, onChange: T, placeholder: t, className: U }),
2979
+ e.jsx('input', { id: u, value: V, name: p, type: d, onChange: T, placeholder: t, className: U }),
2980
2980
  e.jsx('div', {
2981
2981
  style: { background: 'transparent' },
2982
2982
  className:
@@ -3032,9 +3032,9 @@ Check the top-level render call using <` +
3032
3032
  ze = { DEFAULT: 'bg-black hover:bg-black-800 active:bg-grey-900' },
3033
3033
  Xe = ({ options: t, selectedCatOptions: i, setSelectedCatOptions: o, variant: w = 'DEFAULT' }) => {
3034
3034
  const [v, j] = M.useState(null),
3035
- d = {},
3035
+ f = {},
3036
3036
  p = t,
3037
- f = (c) => {
3037
+ d = (c) => {
3038
3038
  const C = c.classId.split('_')[0],
3039
3039
  k = parseInt(C.split('.')[0])
3040
3040
  return (
@@ -3052,9 +3052,9 @@ Check the top-level render call using <` +
3052
3052
  c
3053
3053
  )
3054
3054
  },
3055
- u = p.map((c) => f(c))
3055
+ u = p.map((c) => d(c))
3056
3056
  Object.values(u).forEach((c) => {
3057
- d[c.groupName] || (d[c.groupName] = []), d[c.groupName].push(c)
3057
+ f[c.groupName] || (f[c.groupName] = []), f[c.groupName].push(c)
3058
3058
  })
3059
3059
  const m = (c) => {
3060
3060
  j((C) => (C === c ? null : c))
@@ -3080,8 +3080,8 @@ Check the top-level render call using <` +
3080
3080
  return e.jsx(e.Fragment, {
3081
3081
  children: e.jsx('div', {
3082
3082
  className: 'w-full overflow-hidden border rounded border-brand-black',
3083
- children: Object.keys(d).map((c) => {
3084
- const C = d[c],
3083
+ children: Object.keys(f).map((c) => {
3084
+ const C = f[c],
3085
3085
  k = c === v
3086
3086
  return e.jsxs(
3087
3087
  'div',
@@ -3252,16 +3252,16 @@ Check the top-level render call using <` +
3252
3252
  isError: w = !1,
3253
3253
  isRequired: v = !1,
3254
3254
  onChange: j,
3255
- checked: d,
3255
+ checked: f,
3256
3256
  id: p,
3257
- readOnly: f,
3257
+ readOnly: d,
3258
3258
  }) => {
3259
- const [u, m] = M.useState(d || !1),
3259
+ const [u, m] = M.useState(f || !1),
3260
3260
  [h, V] = M.useState(!1)
3261
3261
  return (
3262
3262
  M.useEffect(() => {
3263
- m(d || !1)
3264
- }, [d]),
3263
+ m(f || !1)
3264
+ }, [f]),
3265
3265
  e.jsxs('div', {
3266
3266
  className: `relative flex items-start justify-start gap-2 ${
3267
3267
  o ? 'opacity-50 pointer-events-none' : ''
@@ -3286,7 +3286,7 @@ Check the top-level render call using <` +
3286
3286
  stroke: w || v ? '#e2001a' : h ? 'black' : '#AFB0B7',
3287
3287
  strokeWidth: h ? 3 : 1,
3288
3288
  }),
3289
- (u || d) &&
3289
+ (u || f) &&
3290
3290
  e.jsx('path', {
3291
3291
  d: 'M13.9887 5L8.28867 10.8L5.78867 8.3L3.88867 10.1L8.28867 14.5L15.8887 6.9L13.9887 5Z',
3292
3292
  fill: 'black',
@@ -3306,7 +3306,7 @@ Check the top-level render call using <` +
3306
3306
  onChange: (_) => {
3307
3307
  m(_.target.checked), j && j(_)
3308
3308
  },
3309
- readOnly: f,
3309
+ readOnly: d,
3310
3310
  className: 'h-[1.2em] w-[1.2em] absolute opacity-0 cursor-pointer',
3311
3311
  onMouseEnter: () => V(!0),
3312
3312
  onMouseLeave: () => V(!1),
@@ -3365,16 +3365,16 @@ Check the top-level render call using <` +
3365
3365
  isError: w = !1,
3366
3366
  isRequired: v = !1,
3367
3367
  onChange: j,
3368
- checked: d,
3368
+ checked: f,
3369
3369
  id: p,
3370
- readOnly: f,
3370
+ readOnly: d,
3371
3371
  }) => {
3372
- const [u, m] = M.useState(d || !1),
3372
+ const [u, m] = M.useState(f || !1),
3373
3373
  [h, V] = M.useState(!1)
3374
3374
  return (
3375
3375
  M.useEffect(() => {
3376
- m(d || !1)
3377
- }, [d]),
3376
+ m(f || !1)
3377
+ }, [f]),
3378
3378
  e.jsxs('div', {
3379
3379
  className: `relative flex items-start justify-start gap-2 ${
3380
3380
  o ? 'opacity-50 pointer-events-none' : ''
@@ -3416,7 +3416,7 @@ Check the top-level render call using <` +
3416
3416
  onChange: (_) => {
3417
3417
  m(_.target.checked), j && j(_)
3418
3418
  },
3419
- readOnly: f,
3419
+ readOnly: d,
3420
3420
  className: 'h-[1.2em] w-[1.2em] absolute opacity-0 cursor-pointer',
3421
3421
  onMouseEnter: () => V(!0),
3422
3422
  onMouseLeave: () => V(!1),
@@ -3434,9 +3434,9 @@ Check the top-level render call using <` +
3434
3434
  onSelectionChange: w,
3435
3435
  label: v,
3436
3436
  prepopulatedId: j,
3437
- boxText: d,
3437
+ boxText: f,
3438
3438
  isDisabled: p,
3439
- topPull: f,
3439
+ topPull: d,
3440
3440
  }) => {
3441
3441
  const [u, m] = M.useState(!1),
3442
3442
  h = () => {
@@ -3454,7 +3454,7 @@ Check the top-level render call using <` +
3454
3454
  children: [
3455
3455
  e.jsx('div', {
3456
3456
  className: `absolute top-[-0.5em] left-[0.7em] flex items-center rounded justify-start px-1 bg-white
3457
- ${f && u ? 'opacity-0' : 'opacity-100'}`,
3457
+ ${d && u ? 'opacity-0' : 'opacity-100'}`,
3458
3458
  children: e.jsx('p', { className: 'text-xs text-left text-black', children: v }),
3459
3459
  }),
3460
3460
  e.jsxs('div', {
@@ -3464,7 +3464,7 @@ Check the top-level render call using <` +
3464
3464
  className: 'overflow-hidden',
3465
3465
  children: e.jsx('div', {
3466
3466
  className: 'my-2 text-base text-left text-black dropdown-header h-[1.6em] w-[40em]',
3467
- children: d || o,
3467
+ children: f || o,
3468
3468
  }),
3469
3469
  }),
3470
3470
  e.jsx('div', {
@@ -3524,7 +3524,7 @@ Check the top-level render call using <` +
3524
3524
  ],
3525
3525
  }),
3526
3526
  e.jsx('div', {
3527
- className: `dropdown-list absolute w-full overflow-hidden rounded-b ${f ? '-mt-[13.05em]' : ''}
3527
+ className: `dropdown-list absolute w-full overflow-hidden rounded-b ${d ? '-mt-[13.05em]' : ''}
3528
3528
  transition-all duration-100 ${u ? 'h-[13em]' : 'h-[0em] pointer-events-none'}`,
3529
3529
  children:
3530
3530
  u &&
@@ -3569,17 +3569,17 @@ Check the top-level render call using <` +
3569
3569
  options: w,
3570
3570
  isDisabled: v,
3571
3571
  label: j,
3572
- variant: d = 'DEFAULT',
3572
+ variant: f = 'DEFAULT',
3573
3573
  }) => {
3574
- const [p, f] = M.useState(!1),
3574
+ const [p, d] = M.useState(!1),
3575
3575
  u = M.useRef(null),
3576
3576
  m = () => {
3577
- p && f(!1)
3577
+ p && d(!1)
3578
3578
  }
3579
3579
  return e.jsxs('div', {
3580
3580
  onMouseLeave: m,
3581
3581
  onClick: () => {
3582
- f(!0)
3582
+ d(!0)
3583
3583
  },
3584
3584
  className: `cursor-pointer relative py-[0.7em] px-[1em] border border-black rounded h-[3.1em]
3585
3585
  ${v ? 'bg-brand-grey-light pointer-events-none' : 'bg-brand-white pointer-events-auto'}`,
@@ -3687,12 +3687,12 @@ Check the top-level render call using <` +
3687
3687
  children: w,
3688
3688
  bold: v,
3689
3689
  small: j,
3690
- important: d,
3690
+ important: f,
3691
3691
  customClasses: p,
3692
- title: f,
3692
+ title: d,
3693
3693
  }) =>
3694
3694
  e.jsx('p', {
3695
- title: f,
3695
+ title: d,
3696
3696
  className: `${fe[t]} ${v ? 'font-semibold' : ''} ${p || ''} ${
3697
3697
  i ? 'opacity-[0.3] cursor-not-allowed pointer-events-none' : ''
3698
3698
  }`,
@@ -3710,9 +3710,9 @@ Check the top-level render call using <` +
3710
3710
  variant: w = 'DEFAULT',
3711
3711
  isDisabled: v = !1,
3712
3712
  isError: j = !1,
3713
- defaultValue: d,
3713
+ defaultValue: f,
3714
3714
  isRequired: p,
3715
- onChange: f,
3715
+ onChange: d,
3716
3716
  supportingText: u,
3717
3717
  id: m,
3718
3718
  }) => {
@@ -3733,7 +3733,7 @@ Check the top-level render call using <` +
3733
3733
  children: o || 'label',
3734
3734
  }),
3735
3735
  }),
3736
- e.jsx('textarea', { id: m, value: t, defaultValue: d, placeholder: i, onChange: f, className: h }),
3736
+ e.jsx('textarea', { id: m, value: t, defaultValue: f, placeholder: i, onChange: d, className: h }),
3737
3737
  u &&
3738
3738
  e.jsx('p', {
3739
3739
  className: `flex-grow w-[178px] h-[1em] text-[1em] text-left ml-[1em] mt-[0.1em]
@@ -3753,7 +3753,15 @@ Check the top-level render call using <` +
3753
3753
  children: o || 'test',
3754
3754
  }),
3755
3755
  g1 = { DEFAULT: 'default' },
3756
- v1 = ({ children: t, customWidth: i, customHeight: o, onClick: w, width: v = '60', height: j = '30' }) => {
3756
+ v1 = ({
3757
+ children: t,
3758
+ customWidth: i,
3759
+ customHeight: o,
3760
+ onClick: w,
3761
+ width: v = '60',
3762
+ height: j = '30',
3763
+ customClasses: f,
3764
+ }) => {
3757
3765
  M.useEffect(
3758
3766
  () => (
3759
3767
  (document.body.style.overflow = 'hidden'),
@@ -3763,8 +3771,8 @@ Check the top-level render call using <` +
3763
3771
  ),
3764
3772
  [],
3765
3773
  )
3766
- const d = i ? v : 'auto',
3767
- p = o ? j : 'auto'
3774
+ const p = i ? v : 'auto',
3775
+ d = o ? j : 'auto'
3768
3776
  return e.jsxs(e.Fragment, {
3769
3777
  children: [
3770
3778
  e.jsx('div', {
@@ -3773,9 +3781,9 @@ Check the top-level render call using <` +
3773
3781
  style: { opacity: '0.6' },
3774
3782
  }),
3775
3783
  e.jsx('div', {
3776
- className: `fixed z-50 flex items-center justify-center p-8 overflow-hidden h-auto w-auto
3777
- lg:w-[${d}em] lg:h-[${p}em] -translate-x-1/2 -translate-y-1/2 border border-white rounded-md top-1/2 left-1/2 bg-brand-white`,
3778
- style: { width: `${d}em`, height: `${p}em` },
3784
+ className: `fixed z-50 items-center justify-center p-8 overflow-hidden h-auto w-auto ${f || ''}
3785
+ lg:w-[${p}em] lg:h-[${d}em] -translate-x-1/2 -translate-y-1/2 border border-white rounded-md top-1/2 left-1/2 bg-brand-white`,
3786
+ style: { width: `${p}em`, height: `${d}em` },
3779
3787
  children: t || 'test',
3780
3788
  }),
3781
3789
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rds-ui-system",
3
3
  "private": false,
4
- "version": "2.0.20",
4
+ "version": "2.0.21",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "main": "./dist/rds-ui-system.umd.js",
7
7
  "module": "./dist/rds-ui-system.es.js",