@isettingkit/business-rules 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +136 -139
  2. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -1,34 +1,34 @@
1
- import { jsxs as h, jsx as n, Fragment as R } from "react/jsx-runtime";
1
+ import { jsxs as g, jsx as n, Fragment as j } from "react/jsx-runtime";
2
2
  import { useFormik as Q } from "formik";
3
- import { useState as x, useEffect as P } from "react";
4
- import { Divider as V } from "@inubekit/divider";
3
+ import { useState as x, useEffect as q } from "react";
4
+ import { Divider as w } from "@inubekit/divider";
5
5
  import { Stack as o } from "@inubekit/stack";
6
6
  import { Text as y } from "@inubekit/text";
7
- import { Toggle as $ } from "@inubekit/toggle";
8
- import { ValueHowToSetUp as f, ValueDataType as j, parsePercentageString as Z, DecisionConditionRenderer as L } from "@isettingkit/input";
9
- import { Textarea as J } from "@inubekit/textarea";
10
- import { Date as M } from "@inubekit/date";
11
- import { Checkbox as K } from "@inubekit/checkbox";
12
- import { Button as z } from "@inubekit/button";
13
- import { object as B, string as H, number as F, mixed as I } from "yup";
14
- import { DecisionViewConditionRenderer as A } from "@isettingkit/view";
15
- import { MdOutlineRemoveRedEye as W, MdOutlineDelete as X } from "react-icons/md";
7
+ import { Toggle as P } from "@inubekit/toggle";
8
+ import { ValueHowToSetUp as f, ValueDataType as A, DecisionConditionRenderer as M } from "@isettingkit/input";
9
+ import { Textarea as Z } from "@inubekit/textarea";
10
+ import { Date as z } from "@inubekit/date";
11
+ import { Checkbox as J } from "@inubekit/checkbox";
12
+ import { Button as L } from "@inubekit/button";
13
+ import { object as $, string as H, number as F, mixed as I } from "yup";
14
+ import { DecisionViewConditionRenderer as V } from "@isettingkit/view";
15
+ import { MdOutlineRemoveRedEye as K, MdOutlineDelete as W } from "react-icons/md";
16
16
  import { Icon as N } from "@inubekit/icon";
17
- import { inube as Y } from "@inubekit/foundations";
18
- import G from "styled-components";
19
- const ee = (t) => {
17
+ import { inube as X } from "@inubekit/foundations";
18
+ import B from "styled-components";
19
+ const Y = (t) => {
20
20
  const {
21
21
  label: e,
22
22
  labelText: a,
23
23
  onHandleChange: i,
24
24
  placeholder: l,
25
- required: c,
25
+ required: s,
26
26
  value: m = ""
27
27
  } = t, [d, b] = x(m);
28
- return /* @__PURE__ */ h(o, { direction: "column", margin: "10px 4px", children: [
28
+ return /* @__PURE__ */ g(o, { direction: "column", margin: "10px 4px", children: [
29
29
  /* @__PURE__ */ n(y, { size: "large", appearance: "gray", weight: "bold", margin: "10px 0", children: a }),
30
30
  /* @__PURE__ */ n(o, { margin: "10px 0", children: /* @__PURE__ */ n(
31
- J,
31
+ Z,
32
32
  {
33
33
  id: "reasonChange",
34
34
  label: e,
@@ -36,30 +36,30 @@ const ee = (t) => {
36
36
  b(p.target.value), i(p);
37
37
  },
38
38
  placeholder: l,
39
- required: c,
39
+ required: s,
40
40
  value: d,
41
41
  maxLength: 120,
42
42
  fullwidth: !0
43
43
  }
44
44
  ) })
45
45
  ] });
46
- }, ne = (t) => {
46
+ }, ee = (t) => {
47
47
  const {
48
48
  checked: e,
49
49
  children: a,
50
50
  handleToggleChange: i,
51
51
  id: l,
52
- labelToggle: c,
52
+ labelToggle: s,
53
53
  name: m,
54
54
  valueToggle: d = ""
55
55
  } = t, [b, C] = x(e), p = (v) => {
56
56
  C(v.target.checked), i(v);
57
57
  };
58
- return P(() => {
58
+ return q(() => {
59
59
  C(e);
60
- }, [e]), /* @__PURE__ */ h(R, { children: [
60
+ }, [e]), /* @__PURE__ */ g(j, { children: [
61
61
  /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(
62
- $,
62
+ P,
63
63
  {
64
64
  checked: b,
65
65
  id: l,
@@ -68,24 +68,24 @@ const ee = (t) => {
68
68
  onChange: p,
69
69
  size: "small",
70
70
  value: d,
71
- children: /* @__PURE__ */ n(y, { size: "medium", type: "label", weight: "bold", children: c })
71
+ children: /* @__PURE__ */ n(y, { size: "medium", type: "label", weight: "bold", children: s })
72
72
  }
73
73
  ) }),
74
- b && /* @__PURE__ */ n(R, { children: a })
74
+ b && /* @__PURE__ */ n(j, { children: a })
75
75
  ] });
76
- }, te = (t) => {
76
+ }, ne = (t) => {
77
77
  const {
78
78
  onHandleStartChange: e,
79
79
  onHandleEndChange: a,
80
80
  labelStart: i,
81
81
  labelEnd: l,
82
- checkedClosed: c = !1,
82
+ checkedClosed: s = !1,
83
83
  required: m = !1,
84
84
  valueStart: d = "",
85
85
  valueEnd: b = ""
86
- } = t, [C, p] = x(c), [v, E] = x(d), [S, T] = x(b);
87
- return /* @__PURE__ */ h(R, { children: [
88
- /* @__PURE__ */ h(o, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
86
+ } = t, [C, p] = x(s), [v, E] = x(d), [S, T] = x(b);
87
+ return /* @__PURE__ */ g(j, { children: [
88
+ /* @__PURE__ */ g(o, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
89
89
  /* @__PURE__ */ n(o, { children: /* @__PURE__ */ n(
90
90
  y,
91
91
  {
@@ -105,11 +105,11 @@ const ee = (t) => {
105
105
  wrap: "wrap",
106
106
  gap: "4px",
107
107
  children: /* @__PURE__ */ n(
108
- K,
108
+ J,
109
109
  {
110
110
  label: "Cerrada",
111
- onChange: ({ target: s }) => {
112
- p(s.checked);
111
+ onChange: ({ target: c }) => {
112
+ p(c.checked);
113
113
  },
114
114
  checked: C,
115
115
  value: ""
@@ -118,14 +118,14 @@ const ee = (t) => {
118
118
  }
119
119
  )
120
120
  ] }),
121
- /* @__PURE__ */ h(o, { justifyContent: "space-between", gap: "24px", children: [
121
+ /* @__PURE__ */ g(o, { justifyContent: "space-between", gap: "24px", children: [
122
122
  /* @__PURE__ */ n(o, { width: "189px", children: /* @__PURE__ */ n(
123
- M,
123
+ z,
124
124
  {
125
125
  id: "dateStart",
126
126
  label: i,
127
- onChange: (s) => {
128
- E(s.target.value), e(s);
127
+ onChange: (c) => {
128
+ E(c.target.value), e(c);
129
129
  },
130
130
  value: v,
131
131
  required: m,
@@ -133,12 +133,12 @@ const ee = (t) => {
133
133
  }
134
134
  ) }),
135
135
  C && /* @__PURE__ */ n(o, { width: "189px", children: /* @__PURE__ */ n(
136
- M,
136
+ z,
137
137
  {
138
138
  id: "dateEnd",
139
139
  label: l,
140
- onChange: (s) => {
141
- T(s.target.value), a(s);
140
+ onChange: (c) => {
141
+ T(c.target.value), a(c);
142
142
  },
143
143
  value: S,
144
144
  required: m,
@@ -157,7 +157,7 @@ const ee = (t) => {
157
157
  "isArrayOrString",
158
158
  "Must be an array of strings/numbers or a single string",
159
159
  (l) => Array.isArray(l) ? l.every(
160
- (c) => typeof c == "string" || typeof c == "number"
160
+ (s) => typeof s == "string" || typeof s == "number"
161
161
  ) : typeof l == "string"
162
162
  ),
163
163
  value: e
@@ -168,14 +168,14 @@ const ee = (t) => {
168
168
  "isArrayOrString",
169
169
  "Must be an array of strings/numbers or a single string",
170
170
  (l) => Array.isArray(l) ? l.every(
171
- (c) => typeof c == "string" || typeof c == "number"
171
+ (s) => typeof s == "string" || typeof s == "number"
172
172
  ) : typeof l == "string"
173
173
  ),
174
174
  value: e
175
175
  };
176
176
  case f.RANGE:
177
177
  return {
178
- schema: B({
178
+ schema: $({
179
179
  from: F().required("Range From is required").max(i, "'Range From' cannot be greater than 'Range To'").min(0, "'Range From' cannot be less than 0"),
180
180
  to: F().required("Range To is required").min(a, "'Range To' cannot be less than 'Range From'").min(0, "'Range To' cannot be less than 0")
181
181
  }),
@@ -187,7 +187,7 @@ const ee = (t) => {
187
187
  case f.GREATER_THAN:
188
188
  case f.LESS_THAN:
189
189
  case f.EQUAL:
190
- return t.dataType === j.PERCENTAGE ? {
190
+ return t.dataType === A.PERCENTAGE ? {
191
191
  schema: F().required("Percentage is required").min(0, "Percentage cannot be less than 0").max(100, "Percentage cannot be greater than 100"),
192
192
  value: e
193
193
  } : {
@@ -201,7 +201,7 @@ const ee = (t) => {
201
201
  };
202
202
  }
203
203
  }
204
- }, ae = (t) => {
204
+ }, te = (t) => {
205
205
  const e = {}, a = {};
206
206
  if (t) {
207
207
  const i = _(t);
@@ -210,7 +210,7 @@ const ee = (t) => {
210
210
  return t.conditions && t.conditions.forEach((i) => {
211
211
  const l = _(i);
212
212
  l && (e[i.name] = l.schema, a[i.name] = l.value);
213
- }), { validationSchema: B().shape(e), initialValues: a };
213
+ }), { validationSchema: $().shape(e), initialValues: a };
214
214
  }, U = (t) => {
215
215
  if (typeof t == "string")
216
216
  return t;
@@ -225,14 +225,13 @@ const ee = (t) => {
225
225
  if (a) return a;
226
226
  }
227
227
  return "";
228
- }, re = (t) => {
229
- var D;
228
+ }, ae = (t) => {
230
229
  const {
231
230
  decision: e,
232
231
  formik: a,
233
232
  onChangeCondition: i,
234
233
  onChangeDecision: l,
235
- onStartChange: c,
234
+ onStartChange: s,
236
235
  onEndChange: m,
237
236
  textValues: d,
238
237
  onCancel: b,
@@ -240,29 +239,29 @@ const ee = (t) => {
240
239
  } = t, [p, v] = x(!1), [E, S] = x(!0), T = {
241
240
  name: e.name,
242
241
  dataType: e.dataType,
243
- value: e.dataType === "percentage" ? Z(e.value) : e.value,
242
+ value: e.value,
244
243
  valueUse: e.valueUse,
245
244
  possibleValue: e.possibleValue
246
245
  };
247
- P(() => {
246
+ q(() => {
248
247
  console.log("Updated formik.errors in RulesFormUI:", a.errors);
249
248
  }, [a.errors]);
250
249
  const k = (r) => {
251
250
  v(r.target.checked);
252
- }, w = (r) => {
251
+ }, D = (r) => {
253
252
  r.target.value ? S(!1) : S(!0);
254
253
  }, u = (r) => {
255
- const g = U(a.errors[r] || {});
256
- return typeof g == "string" ? g ? "invalid" : "pending" : g;
257
- }, s = (r) => {
258
- const g = U(a.errors[r] || {});
259
- return g;
254
+ const h = U(a.errors[r] || {});
255
+ return typeof h == "string" ? h ? "invalid" : "pending" : h;
256
+ }, c = (r) => {
257
+ const h = U(a.errors[r] || {});
258
+ return h;
260
259
  };
261
- return /* @__PURE__ */ h(o, { direction: "column", gap: "24px", children: [
262
- /* @__PURE__ */ h(o, { direction: "column", gap: "16", children: [
260
+ return /* @__PURE__ */ g(o, { direction: "column", gap: "24px", children: [
261
+ /* @__PURE__ */ g(o, { direction: "column", gap: "16px", children: [
263
262
  /* @__PURE__ */ n(y, { weight: "bold", size: "medium", children: d.criteria }),
264
263
  e && /* @__PURE__ */ n(
265
- L,
264
+ M,
266
265
  {
267
266
  element: T,
268
267
  onDecision: l,
@@ -278,12 +277,12 @@ const ee = (t) => {
278
277
  }
279
278
  )
280
279
  ] }),
281
- /* @__PURE__ */ n(V, { dashed: !0 }),
282
- /* @__PURE__ */ h(o, { direction: "column", children: [
283
- /* @__PURE__ */ h(o, { direction: "row", gap: "16px", justifyContent: "space-between", children: [
280
+ /* @__PURE__ */ n(w, { dashed: !0 }),
281
+ /* @__PURE__ */ g(o, { direction: "column", children: [
282
+ /* @__PURE__ */ g(o, { direction: "row", gap: "16px", justifyContent: "space-between", children: [
284
283
  /* @__PURE__ */ n(y, { children: d.factsThatConditionIt }),
285
284
  /* @__PURE__ */ n(
286
- $,
285
+ P,
287
286
  {
288
287
  id: "toogleNone",
289
288
  onChange: k,
@@ -294,11 +293,11 @@ const ee = (t) => {
294
293
  )
295
294
  ] }),
296
295
  e.conditions && e.conditions.map((r) => /* @__PURE__ */ n(o, { direction: "column", children: /* @__PURE__ */ n(
297
- ne,
296
+ ee,
298
297
  {
299
298
  checked: !p,
300
- handleToggleChange: (g) => {
301
- g.target.checked || i(
299
+ handleToggleChange: (h) => {
300
+ h.target.checked || i(
302
301
  {
303
302
  value: "",
304
303
  to: 0,
@@ -312,53 +311,53 @@ const ee = (t) => {
312
311
  labelToggle: r.name.split(/(?=[A-Z])/).join(" "),
313
312
  name: r.name.replace(" ", ""),
314
313
  children: /* @__PURE__ */ n(
315
- L,
314
+ M,
316
315
  {
317
316
  element: r,
318
317
  onDecision: i,
319
318
  valueData: a.values[r.name],
320
- message: s(r.name),
319
+ message: c(r.name),
321
320
  status: u(r.name),
322
321
  textValues: {
323
322
  selectOptions: "Select an option",
324
323
  selectOption: "Option selected",
325
- rangeMin: (g) => `Minimum ${g}`,
326
- rangeMax: (g) => `Maximum ${g}`
324
+ rangeMin: (h) => `Minimum ${h}`,
325
+ rangeMax: (h) => `Maximum ${h}`
327
326
  }
328
327
  }
329
328
  )
330
329
  }
331
330
  ) }, r.name))
332
331
  ] }),
333
- /* @__PURE__ */ n(V, { dashed: !0 }),
332
+ /* @__PURE__ */ n(w, { dashed: !0 }),
334
333
  /* @__PURE__ */ n(o, { direction: "column", children: /* @__PURE__ */ n(
335
- ee,
334
+ Y,
336
335
  {
337
336
  label: d.reasonForChange,
338
337
  labelText: d.change,
339
- onHandleChange: w,
338
+ onHandleChange: D,
340
339
  placeholder: d.changePlaceholder,
341
340
  required: !0
342
341
  }
343
342
  ) }),
344
- /* @__PURE__ */ n(V, { dashed: !0 }),
343
+ /* @__PURE__ */ n(w, { dashed: !0 }),
345
344
  /* @__PURE__ */ n(o, { direction: "column", children: e && /* @__PURE__ */ n(
346
- te,
345
+ ne,
347
346
  {
348
- onHandleStartChange: (r) => c(r.target.value),
347
+ onHandleStartChange: (r) => s(r.target.value),
349
348
  onHandleEndChange: (r) => m(r.target.value),
350
349
  labelStart: d.termStart,
351
350
  labelEnd: d.termEnd,
352
351
  checkedClosed: !!e.endDate,
353
- valueStart: e.startDate.toLocaleDateString("en-CA"),
354
- valueEnd: ((D = e.endDate) == null ? void 0 : D.toLocaleDateString("en-CA")) || ""
352
+ valueStart: String(e.startDate),
353
+ valueEnd: String(e.endDate) || ""
355
354
  }
356
355
  ) }),
357
- /* @__PURE__ */ n(V, { dashed: !0 }),
358
- /* @__PURE__ */ h(o, { direction: "row", justifyContent: "end", gap: "16px", children: [
359
- /* @__PURE__ */ n(z, { appearance: "gray", onClick: b, children: d.cancel }),
356
+ /* @__PURE__ */ n(w, { dashed: !0 }),
357
+ /* @__PURE__ */ g(o, { direction: "row", justifyContent: "end", gap: "16px", children: [
358
+ /* @__PURE__ */ n(L, { appearance: "gray", onClick: b, children: d.cancel }),
360
359
  /* @__PURE__ */ n(
361
- z,
360
+ L,
362
361
  {
363
362
  onClick: C,
364
363
  disabled: E || !a.isValid,
@@ -369,32 +368,32 @@ const ee = (t) => {
369
368
  ] })
370
369
  ] });
371
370
  }, ke = (t) => {
372
- const { id: e, decision: a, onCancel: i, onSubmitEvent: l, textValues: c } = t, [m, d] = x(a), b = (u, s) => {
373
- k.setFieldValue(u, s), k.validateField(u);
374
- }, C = (u, s) => {
375
- const D = u instanceof Date ? u.toISOString() : u;
376
- d((r) => {
377
- if (!r.conditions)
378
- return r;
379
- const g = r.conditions.map((O) => O.name === s ? { ...O, value: D } : O);
371
+ const { id: e, decision: a, onCancel: i, onSubmitEvent: l, textValues: s } = t, [m, d] = x(a), b = (u, c) => {
372
+ k.setFieldValue(u, c), k.validateField(u);
373
+ }, C = (u, c) => {
374
+ const r = u instanceof Date ? u.toISOString() : u;
375
+ d((h) => {
376
+ if (!h.conditions)
377
+ return h;
378
+ const G = h.conditions.map((O) => O.name === c ? { ...O, value: r } : O);
380
379
  return {
381
- ...r,
382
- conditions: g
380
+ ...h,
381
+ conditions: G
383
382
  };
384
- }), b(s, D);
383
+ }), b(c, r);
385
384
  }, p = (u) => {
386
385
  d(
387
- (s) => w(s, "value", u)
386
+ (c) => D(c, "value", u)
388
387
  );
389
388
  }, v = (u) => {
390
389
  d(
391
- (s) => w(s, "endDate", new Date(u))
390
+ (c) => D(c, "endDate", u)
392
391
  );
393
392
  }, E = (u) => {
394
393
  d(
395
- (s) => w(s, "startDate", new Date(u))
394
+ (c) => D(c, "startDate", u)
396
395
  );
397
- }, { validationSchema: S, initialValues: T } = ae(m);
396
+ }, { validationSchema: S, initialValues: T } = te(m);
398
397
  S.validate(T, { abortEarly: !1 }).then(() => console.log("Validation passed")).catch((u) => console.log("Validation failed:", u.errors));
399
398
  const k = Q({
400
399
  initialValues: T,
@@ -404,13 +403,13 @@ const ee = (t) => {
404
403
  onSubmit: () => {
405
404
  l(m);
406
405
  }
407
- }), w = (u, s, D) => ({
406
+ }), D = (u, c, r) => ({
408
407
  ...u,
409
408
  ...u.decision,
410
- [s]: D
409
+ [c]: r
411
410
  });
412
411
  return /* @__PURE__ */ n(
413
- re,
412
+ ae,
414
413
  {
415
414
  id: e,
416
415
  formik: k,
@@ -421,10 +420,10 @@ const ee = (t) => {
421
420
  onChangeDecision: p,
422
421
  onStartChange: E,
423
422
  onEndChange: v,
424
- textValues: c
423
+ textValues: s
425
424
  }
426
425
  );
427
- }, q = (t) => {
426
+ }, R = (t) => {
428
427
  if (!t)
429
428
  return;
430
429
  const e = t.value;
@@ -445,84 +444,82 @@ const ee = (t) => {
445
444
  return e.value;
446
445
  }
447
446
  return e;
448
- }, we = (t) => {
449
- const { decision: e, textValues: a } = t, i = (c) => c && Object.keys(c).length > 0, l = {
447
+ }, De = (t) => {
448
+ const { decision: e, textValues: a } = t, i = (s) => s && Object.keys(s).length > 0, l = {
450
449
  name: e.name,
451
450
  dataType: e.dataType,
452
- value: e.value,
451
+ value: R(e),
453
452
  valueUse: e.valueUse
454
453
  };
455
- return /* @__PURE__ */ h(o, { direction: "column", gap: "24px", children: [
456
- /* @__PURE__ */ h(o, { direction: "column", gap: "16px", children: [
454
+ return /* @__PURE__ */ g(o, { direction: "column", gap: "24px", children: [
455
+ /* @__PURE__ */ g(o, { direction: "column", gap: "16px", children: [
457
456
  /* @__PURE__ */ n(y, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: a.criteria }),
458
457
  /* @__PURE__ */ n(o, { justifyContent: "space-between", children: e && /* @__PURE__ */ n(o, { direction: "column", children: /* @__PURE__ */ n(
459
- A,
458
+ V,
460
459
  {
461
460
  element: l,
462
- valueData: q(l)
461
+ valueData: R(l)
463
462
  }
464
463
  ) }, e.name) })
465
464
  ] }),
466
- /* @__PURE__ */ h(o, { direction: "column", gap: "16px", justifyContent: "space-between", children: [
465
+ /* @__PURE__ */ g(o, { direction: "column", gap: "16px", justifyContent: "space-between", children: [
467
466
  /* @__PURE__ */ n(y, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: a.factsThatConditionIt }),
468
- e.conditions && e.conditions.map((c) => {
469
- const m = c.value;
467
+ e.conditions && e.conditions.map((s) => {
468
+ const m = s.value;
470
469
  return (typeof m == "object" && i(m) || m) && /* @__PURE__ */ n(o, { direction: "column", children: /* @__PURE__ */ n(
471
- A,
470
+ V,
472
471
  {
473
472
  element: {
474
- ...c,
473
+ ...s,
475
474
  value: m
476
475
  },
477
- valueData: q(c)
476
+ valueData: R(s)
478
477
  }
479
- ) }, c.name);
478
+ ) }, s.name);
480
479
  })
481
480
  ] }),
482
- /* @__PURE__ */ h(o, { direction: "column", gap: "12px", children: [
481
+ /* @__PURE__ */ g(o, { direction: "column", gap: "12px", children: [
483
482
  /* @__PURE__ */ n(y, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: a.terms }),
484
- /* @__PURE__ */ h(o, { justifyContent: "space-between", children: [
483
+ /* @__PURE__ */ g(o, { justifyContent: "space-between", children: [
485
484
  (e == null ? void 0 : e.startDate) && /* @__PURE__ */ n(
486
- A,
485
+ V,
487
486
  {
488
487
  element: {
489
488
  name: "Fecha de inicio",
490
489
  value: String(e.startDate),
491
490
  valueUse: f.EQUAL,
492
- dataType: j.DATE
491
+ dataType: A.DATE
493
492
  },
494
- valueData: new Date(e.startDate).toLocaleDateString(
495
- "en-CA"
496
- )
493
+ valueData: String(e.startDate)
497
494
  },
498
495
  "startDate"
499
496
  ),
500
497
  (e == null ? void 0 : e.endDate) && /* @__PURE__ */ n(
501
- A,
498
+ V,
502
499
  {
503
500
  element: {
504
501
  name: "Fecha de final",
505
502
  value: String(e.endDate),
506
503
  valueUse: f.EQUAL,
507
- dataType: j.DATE
504
+ dataType: A.DATE
508
505
  },
509
- valueData: new Date(e.endDate).toLocaleDateString("en-CA")
506
+ valueData: String(e.endDate)
510
507
  },
511
508
  "endDate"
512
509
  )
513
510
  ] })
514
511
  ] })
515
512
  ] });
516
- }, oe = G.div`
513
+ }, re = B.div`
517
514
  border-radius: 8px;
518
- border: 1px solid ${Y.palette.neutral.N30};
515
+ border: 1px solid ${X.palette.neutral.N30};
519
516
  box-sizing: border-box;
520
517
  display: flex;
521
518
  flex-direction: column;
522
519
  height: 340px;
523
520
  width: 332px;
524
521
  box-shadow: 0px 4px 8px 3px rgba(0, 0, 0, 0.1);
525
- `, ie = G.div`
522
+ `, oe = B.div`
526
523
  width: 100%;
527
524
  height: 100%;
528
525
  overflow-y: auto;
@@ -542,18 +539,18 @@ const ee = (t) => {
542
539
  }
543
540
  `, Ee = (t) => {
544
541
  const { children: e, handleDelete: a, handleView: i, id: l } = t;
545
- return /* @__PURE__ */ h(oe, { children: [
546
- /* @__PURE__ */ n(o, { height: "282px", gap: "24px", direction: "column", children: /* @__PURE__ */ n(ie, { children: /* @__PURE__ */ n(o, { direction: "column", margin: "10px", children: e }) }) }),
547
- /* @__PURE__ */ h(o, { gap: "16px", direction: "column", margin: "2px 12px", children: [
548
- /* @__PURE__ */ n(V, {}),
549
- /* @__PURE__ */ h(o, { gap: "16px", justifyContent: "end", children: [
542
+ return /* @__PURE__ */ g(re, { children: [
543
+ /* @__PURE__ */ n(o, { height: "282px", gap: "24px", direction: "column", children: /* @__PURE__ */ n(oe, { children: /* @__PURE__ */ n(o, { direction: "column", margin: "10px", children: e }) }) }),
544
+ /* @__PURE__ */ g(o, { gap: "16px", direction: "column", margin: "2px 12px", children: [
545
+ /* @__PURE__ */ n(w, {}),
546
+ /* @__PURE__ */ g(o, { gap: "16px", justifyContent: "end", children: [
550
547
  /* @__PURE__ */ n(
551
548
  N,
552
549
  {
553
550
  appearance: "dark",
554
551
  size: "24px",
555
552
  cursorHover: !0,
556
- icon: /* @__PURE__ */ n(W, {}),
553
+ icon: /* @__PURE__ */ n(K, {}),
557
554
  onClick: () => {
558
555
  i(l);
559
556
  }
@@ -565,7 +562,7 @@ const ee = (t) => {
565
562
  cursorHover: !0,
566
563
  appearance: "dark",
567
564
  size: "24px",
568
- icon: /* @__PURE__ */ n(X, {}),
565
+ icon: /* @__PURE__ */ n(W, {}),
569
566
  onClick: () => {
570
567
  a(l);
571
568
  }
@@ -577,6 +574,6 @@ const ee = (t) => {
577
574
  };
578
575
  export {
579
576
  Ee as BusinessRuleCard,
580
- we as BusinessRuleView,
577
+ De as BusinessRuleView,
581
578
  ke as RulesForm
582
579
  };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "description": "",
12
12
  "private": false,
13
- "version": "0.1.15",
13
+ "version": "0.1.17",
14
14
  "type": "module",
15
15
  "exports": {
16
16
  ".": {
@@ -48,8 +48,8 @@
48
48
  "@inubekit/text": "^2.17.0",
49
49
  "@inubekit/textarea": "^2.45.0",
50
50
  "@inubekit/toggle": "^3.8.2",
51
- "@isettingkit/input": "^0.1.23",
52
- "@isettingkit/view": "^0.1.13"
51
+ "@isettingkit/input": "^0.1.26",
52
+ "@isettingkit/view": "^0.1.14"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "formik": "^2.4.6",