@oliasoft-open-source/react-ui-library 4.4.2 → 4.4.4

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 (64) hide show
  1. package/README.md +2 -0
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.js +6 -7
  4. package/dist/index.js.map +1 -1
  5. package/dist/storybook/assets/{Color-6VNJS4EI-XlHNcRpH.js → Color-6VNJS4EI-Eajco6Ol.js} +1 -1
  6. package/dist/storybook/assets/{DocsRenderer-NNNQARDV-ELQm8KxB.js → DocsRenderer-NNNQARDV-uWOhufga.js} +1 -1
  7. package/dist/storybook/assets/{WithTooltip-4HIR6TLV-lzsOqqar.js → WithTooltip-4HIR6TLV-C6nvKk2r.js} +1 -1
  8. package/dist/storybook/assets/{accordion.stories-0GRXa45r.js → accordion.stories-HJ9BJwQ7.js} +1 -1
  9. package/dist/storybook/assets/{afe.stories-1EF67Y8w.js → afe.stories-1YkAm2l2.js} +1 -1
  10. package/dist/storybook/assets/{button.stories-R9_1tl9l.js → button.stories-vebimSi_.js} +1 -1
  11. package/dist/storybook/assets/{buttons-and-links-jWrvEFHF.js → buttons-and-links-G5jyT09t.js} +1 -1
  12. package/dist/storybook/assets/{casing-loads.stories--R1CqEh7.js → casing-loads.stories-Hc9VRCNo.js} +1 -1
  13. package/dist/storybook/assets/{cell.stories-Byl89vdm.js → cell.stories-3rO1Fmsr.js} +1 -1
  14. package/dist/storybook/assets/check-box-BX5dfQFk.js +1 -0
  15. package/dist/storybook/assets/check-box.stories-FNs72smP.js +102 -0
  16. package/dist/storybook/assets/{chunk-HLWAVYOI-szJd1vNZ.js → chunk-HLWAVYOI-WYZ_m4U_.js} +1 -1
  17. package/dist/storybook/assets/{color-S7fSaEt3.js → color-2m5_ywxc.js} +1 -1
  18. package/dist/storybook/assets/{drawer.stories-K-pmYbOj.js → drawer.stories-OE24f2Y4.js} +1 -1
  19. package/dist/storybook/assets/{file-input.stories-S2GkuNTu.js → file-input.stories-E3dS5vHY.js} +1 -1
  20. package/dist/storybook/assets/{flex-ZVra76N-.js → flex-KzhjL9yc.js} +1 -1
  21. package/dist/storybook/assets/{flex.stories-kjbyZMWP.js → flex.stories-rDfMJbP6.js} +1 -1
  22. package/dist/storybook/assets/{footer.stories-Q0WYlDag.js → footer.stories-DfyWwfWZ.js} +1 -1
  23. package/dist/storybook/assets/{form.stories-ohSNdxeG.js → form.stories-rWTgqDNA.js} +1 -1
  24. package/dist/storybook/assets/{formation.stories-k4GHTAjl.js → formation.stories-lft6kcDi.js} +1 -1
  25. package/dist/storybook/assets/{formatter-SWP5E3XI-FlR4TUjf.js → formatter-SWP5E3XI-Ne2pMTdr.js} +1 -1
  26. package/dist/storybook/assets/{heading.stories-K-Z0sIoo.js → heading.stories-UJlMVVI-.js} +1 -1
  27. package/dist/storybook/assets/{icon.stories-icqUrCtQ.js → icon.stories-D_XEmSGG.js} +1 -1
  28. package/dist/storybook/assets/{iframe-b48CykjT.js → iframe-8R5WmPwn.js} +2 -2
  29. package/dist/storybook/assets/{index-bfKX6qW8.js → index--nz8qrxa.js} +5 -5
  30. package/dist/storybook/assets/{input-validation-GBoVTJgT.js → input-validation-ZJ20nXM1.js} +1 -1
  31. package/dist/storybook/assets/{inputs-77RnbPsm.js → inputs-MhDWHxMs.js} +1 -1
  32. package/dist/storybook/assets/{layout-forms-oRVBYsJy.js → layout-forms-H9p85HJ9.js} +1 -1
  33. package/dist/storybook/assets/{layout-general-jV5KZw8S.js → layout-general-srmJNyEI.js} +1 -1
  34. package/dist/storybook/assets/{list.stories-khlFbVFq.js → list.stories-G1n5uCjl.js} +1 -1
  35. package/dist/storybook/assets/{list.stories-data-spFiMtCi.js → list.stories-data-8eswVWst.js} +1 -1
  36. package/dist/storybook/assets/{menu.stories-sot2Whii.js → menu.stories-GFJs09Wk.js} +1 -1
  37. package/dist/storybook/assets/{menu.stories-data-VCYkzuDD.js → menu.stories-data-c8X93fYM.js} +1 -1
  38. package/dist/storybook/assets/{option-dropdown.stories-RE63Y_Uz.js → option-dropdown.stories-1Y5JDaBF.js} +1 -1
  39. package/dist/storybook/assets/{padding-and-spacing-XNqIrm7r.js → padding-and-spacing-gOSkSa5I.js} +1 -1
  40. package/dist/storybook/assets/{popover.stories-XaqJOrng.js → popover.stories-JVzzF0Jm.js} +1 -1
  41. package/dist/storybook/assets/{preview-NkSI92vr.js → preview-LU0ipPyO.js} +1 -1
  42. package/dist/storybook/assets/{preview--KqQBoE-.js → preview-dhj7lmeZ.js} +2 -2
  43. package/dist/storybook/assets/{reservoirs.stories-Q4daMyjv.js → reservoirs.stories-Dg5QFAXV.js} +1 -1
  44. package/dist/storybook/assets/{row.stories-XUvqL2LO.js → row.stories-8b6ZIDzQ.js} +1 -1
  45. package/dist/storybook/assets/{side-bar.stories-q_bRwHV_.js → side-bar.stories-Ld0zOToQ.js} +1 -1
  46. package/dist/storybook/assets/{site.stories-6hJhtRJ1.js → site.stories-OEW6o2C_.js} +1 -1
  47. package/dist/storybook/assets/{spacer.stories-CWSQp7tw.js → spacer.stories--ynGgvN4.js} +1 -1
  48. package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-7st5cgdJ.js → syntaxhighlighter-NMPM6SWI-HJ2r5Pf5.js} +1 -1
  49. package/dist/storybook/assets/{table-Q7dy1Tgn.js → table-lwIme7xR.js} +1 -1
  50. package/dist/storybook/assets/{table.stories-fADp6znk.js → table.stories-N_YCaQtD.js} +1 -1
  51. package/dist/storybook/assets/{table.stories-data-axCnwwQ4.js → table.stories-data-Fq0v85aT.js} +1 -1
  52. package/dist/storybook/assets/{textarea-QFVBH_vb.js → textarea-mYEkEnUR.js} +1 -1
  53. package/dist/storybook/assets/{textarea.stories-HETiaNLn.js → textarea.stories-ARS3RM31.js} +1 -1
  54. package/dist/storybook/assets/{title.stories-8IBIf1AY.js → title.stories-WQMWtLMR.js} +1 -1
  55. package/dist/storybook/assets/{toaster.stories--QAivgvg.js → toaster.stories-4ROSf8nH.js} +1 -1
  56. package/dist/storybook/assets/{toggle.stories-LC6LSCD2.js → toggle.stories-ItCMhW4M.js} +1 -1
  57. package/dist/storybook/assets/{tooltip.test-case.stories-y-bQOM0s.js → tooltip.test-case.stories-L2bW8Ijz.js} +1 -1
  58. package/dist/storybook/iframe.html +1 -1
  59. package/dist/storybook/index.json +1 -1
  60. package/dist/storybook/project.json +1 -1
  61. package/dist/storybook/stories.json +1 -1
  62. package/package.json +1 -1
  63. package/dist/storybook/assets/check-box-ybJTs3K1.js +0 -1
  64. package/dist/storybook/assets/check-box.stories--OzUU4pr.js +0 -97
package/README.md CHANGED
@@ -1289,6 +1289,7 @@ The `message` prop accepts an object with the following properties:
1289
1289
  - `heading`: The heading or title of the message.
1290
1290
  - `content`: The main content of the message.
1291
1291
  - `details`: Additional details or information related to the message.
1292
+ - `detailsVisible`: Whether the details are visible by default (default: `false`).
1292
1293
  - `footer`: The footer content of the message.
1293
1294
  - `withDismiss`: A boolean indicating whether the message can be dismissed.
1294
1295
  - `onClose`: A function to handle the close event of the message.
@@ -1306,6 +1307,7 @@ The `message` prop accepts an object with the following properties:
1306
1307
  heading: 'Information',
1307
1308
  content: 'This is an informative message.',
1308
1309
  details: 'Additional details can be provided here.',
1310
+ detailsVisible: true,
1309
1311
  footer: <Button label="Close" onClick={handleClose} />,
1310
1312
  withDismiss: true,
1311
1313
  onClose: handleClose,
package/dist/index.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare enum ButtonType {
58
58
 
59
59
  export declare const Card: ({ bordered, heading, children, margin, padding, raised, }: ICardProps) => JSX_2.Element;
60
60
 
61
- export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, name, key, label, disabled, small, onChange, testId, value, helpText, onClickHelp, }: ICheckBoxProps) => JSX_2.Element;
61
+ export declare const CheckBox: ({ noMargin, dataix, isInTable, tabIndex, checked, name, label, disabled, small, onChange, testId, value, helpText, onClickHelp, }: ICheckBoxProps) => JSX_2.Element;
62
62
 
63
63
  export declare enum Color {
64
64
  DANGER = "danger",
@@ -250,7 +250,6 @@ export declare interface ICheckBoxProps {
250
250
  disabled?: boolean;
251
251
  small?: boolean;
252
252
  testId?: string;
253
- key?: string;
254
253
  dataix?: number;
255
254
  value?: string;
256
255
  helpText?: string;
@@ -781,6 +780,7 @@ declare interface IMessage {
781
780
  heading?: ReactNode;
782
781
  content?: ReactNode | string;
783
782
  details?: ReactNode;
783
+ detailsVisible?: boolean;
784
784
  footer?: ReactNode;
785
785
  withDismiss?: boolean;
786
786
  onClose?: (evt: MouseEvent_2<SVGSVGElement>) => void;
package/dist/index.js CHANGED
@@ -3897,7 +3897,6 @@ const CheckBox = ({
3897
3897
  tabIndex = 0,
3898
3898
  checked = false,
3899
3899
  name: name2,
3900
- key: key2 = "",
3901
3900
  label: label2 = "",
3902
3901
  disabled: disabled2 = false,
3903
3902
  small: small2 = false,
@@ -3943,8 +3942,7 @@ const CheckBox = ({
3943
3942
  onChange: () => {
3944
3943
  },
3945
3944
  disabled: isDisabled
3946
- },
3947
- key2
3945
+ }
3948
3946
  ),
3949
3947
  /* @__PURE__ */ jsxs("label", { htmlFor: name2, children: [
3950
3948
  /* @__PURE__ */ jsx("span", { className: styles$R.checkmark, children: /* @__PURE__ */ jsx(Icon, { icon: IconType.CHECK }) }),
@@ -19384,9 +19382,6 @@ const Dismiss = ({ type, onClose, isInToast }) => {
19384
19382
  }
19385
19383
  );
19386
19384
  };
19387
- const initialState$4 = {
19388
- detailsVisible: false
19389
- };
19390
19385
  const reducer$1 = (state, action2) => {
19391
19386
  switch (action2.type) {
19392
19387
  case MessageToggle.TOGGLE_DETAILS:
@@ -19425,13 +19420,17 @@ const Message = ({ message: message2 }) => {
19425
19420
  heading: heading2,
19426
19421
  content: content2,
19427
19422
  details: details2,
19423
+ detailsVisible = false,
19428
19424
  footer: footer2,
19429
19425
  withDismiss,
19430
19426
  onClose,
19431
19427
  width: width2,
19432
19428
  maxHeight
19433
19429
  } = message2;
19434
- const [state, dispatch] = useReducer(reducer$1, initialState$4);
19430
+ const initialState2 = {
19431
+ detailsVisible
19432
+ };
19433
+ const [state, dispatch] = useReducer(reducer$1, initialState2);
19435
19434
  return /* @__PURE__ */ jsx(Fragment$1, { children: visible ? /* @__PURE__ */ jsxs(
19436
19435
  "div",
19437
19436
  {