@oliasoft-open-source/react-ui-library 9.2.0-beta-10 → 9.3.0

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.
package/dist/index.js CHANGED
@@ -261,15 +261,16 @@ var wi = /* @__PURE__ */ function(e) {
261
261
  className: b(ji.chevron, e ? ji.expanded : ""),
262
262
  children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
263
263
  }), Ui = {
264
- accordion: "_accordion_15p8j_1",
265
- accordionHeader: "_accordionHeader_15p8j_5",
266
- heading: "_heading_15p8j_9",
267
- clickable: "_clickable_15p8j_12",
268
- bordered: "_bordered_15p8j_18",
269
- accordionContent: "_accordionContent_15p8j_18",
270
- expanded: "_expanded_15p8j_36",
271
- padding: "_padding_15p8j_44",
272
- squareBottom: "_squareBottom_15p8j_47"
264
+ accordion: "_accordion_3yvkt_1",
265
+ accordionHeader: "_accordionHeader_3yvkt_5",
266
+ heading: "_heading_3yvkt_9",
267
+ clickable: "_clickable_3yvkt_12",
268
+ bordered: "_bordered_3yvkt_18",
269
+ accordionContent: "_accordionContent_3yvkt_18",
270
+ expanded: "_expanded_3yvkt_36",
271
+ padding: "_padding_3yvkt_44",
272
+ flush: "_flush_3yvkt_47",
273
+ squareBottom: "_squareBottom_3yvkt_56"
273
274
  }, Wi = {
274
275
  collapse: "_collapse_1m1n2_5",
275
276
  enter: "_enter_1m1n2_9",
@@ -299,48 +300,50 @@ var wi = /* @__PURE__ */ function(e) {
299
300
  })
300
301
  })
301
302
  });
302
- }, Ki = ({ heading: e, expanded: t = !1, bordered: n = !1, padding: r = !0, children: i, squareBottom: a = !1, onClick: o, testId: s }) => {
303
- let c = t && !!i;
303
+ }, Ki = ({ heading: e, expanded: t = !1, bordered: n = !1, flush: r = !1, padding: i = !0, children: a, squareBottom: o = !1, onClick: s, testId: c }) => {
304
+ let l = t && !!a;
304
305
  return /* @__PURE__ */ C("div", {
305
- className: b(Ui.accordion, n ? Ui.bordered : "", t ? Ui.expanded : "", a ? Ui.squareBottom : ""),
306
+ className: b(Ui.accordion, n ? Ui.bordered : "", r ? Ui.flush : "", t ? Ui.expanded : "", o ? Ui.squareBottom : ""),
306
307
  children: [/* @__PURE__ */ C("div", {
307
- className: b(Ui.accordionHeader, o ? Ui.clickable : ""),
308
- onClick: o,
309
- "data-testid": s,
308
+ className: b(Ui.accordionHeader, s ? Ui.clickable : ""),
309
+ onClick: s,
310
+ "data-testid": c,
310
311
  children: [/* @__PURE__ */ S(Hi, { expanded: t }), /* @__PURE__ */ S("div", {
311
312
  className: Ui.heading,
312
313
  children: e
313
314
  })]
314
315
  }), /* @__PURE__ */ S(Gi, {
315
- expanded: c,
316
+ expanded: l,
316
317
  children: /* @__PURE__ */ S("div", {
317
- className: b(Ui.accordionContent, n && r ? Ui.padding : ""),
318
- children: i
318
+ className: b(Ui.accordionContent, n && i ? Ui.padding : ""),
319
+ children: a
319
320
  })
320
321
  })]
321
322
  });
322
- }, qi = ({ heading: t, bordered: n, padding: r, expanded: i = !1, children: a, testId: o }) => {
323
- let [s, c] = e.useState(i);
323
+ }, qi = ({ heading: t, bordered: n, flush: r, padding: i, expanded: a = !1, children: o, testId: s }) => {
324
+ let [c, l] = e.useState(a);
324
325
  return /* @__PURE__ */ S(Ki, {
325
326
  heading: t,
326
327
  bordered: n,
327
- padding: r,
328
- expanded: s,
328
+ flush: r,
329
+ padding: i,
330
+ expanded: c,
329
331
  onClick: () => {
330
- c(!s);
332
+ l(!c);
331
333
  },
332
- testId: o,
333
- children: a
334
+ testId: s,
335
+ children: o
334
336
  });
335
- }, Ji = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, padding: i = !0, children: a, onClick: o, squareBottom: s = !1, testId: c }) => S(n ? qi : Ki, {
337
+ }, Ji = ({ heading: e, expanded: t = !1, managed: n = !1, bordered: r = !1, flush: i = !1, padding: a = !0, children: o, onClick: s, squareBottom: c = !1, testId: l }) => S(n ? qi : Ki, {
336
338
  heading: e,
337
339
  expanded: t,
338
340
  bordered: r,
339
- padding: i,
340
- squareBottom: s,
341
- onClick: o,
342
- testId: c,
343
- children: a
341
+ flush: i,
342
+ padding: a,
343
+ squareBottom: c,
344
+ onClick: s,
345
+ testId: l,
346
+ children: o
344
347
  }), Yi = {
345
348
  inputInTable: "_inputInTable_p3kuj_1",
346
349
  inputHover: "_inputHover_p3kuj_13",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.2.0-beta-10",
3
+ "version": "9.3.0",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {