@oliasoft-open-source/react-ui-library 4.7.3-beta-5 → 4.7.3-beta-6

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 (21) hide show
  1. package/dist/index.js +6 -14
  2. package/dist/index.js.map +1 -1
  3. package/dist/storybook/assets/{Color-KGDBMAHA-D2T5boCW.js → Color-KGDBMAHA-CkztEiML.js} +1 -1
  4. package/dist/storybook/assets/{DocsRenderer-PKQXORMH-w69sYCI5.js → DocsRenderer-PKQXORMH-CP_Q5IGB.js} +1 -1
  5. package/dist/storybook/assets/{buttons-and-links-BcO2Jtqa.js → buttons-and-links-BauLyn_y.js} +1 -1
  6. package/dist/storybook/assets/{chunk-HLWAVYOI-CObbrU6C.js → chunk-HLWAVYOI-BX6pTYCG.js} +1 -1
  7. package/dist/storybook/assets/{color-O3ltvEIz.js → color-BNalCYYX.js} +1 -1
  8. package/dist/storybook/assets/{iframe-DrtDBpjG.js → iframe-qFXWLeOa.js} +2 -2
  9. package/dist/storybook/assets/{index-CWYiT1Tz.js → index-CZerqvnp.js} +4 -4
  10. package/dist/storybook/assets/{index-BPZtj4lP.js → index-DEMnWl0Y.js} +1 -1
  11. package/dist/storybook/assets/{input-validation-D1e6Mmav.js → input-validation-DejYoLOw.js} +1 -1
  12. package/dist/storybook/assets/{inputs-r3EGmdxF.js → inputs-NeM4HqdZ.js} +1 -1
  13. package/dist/storybook/assets/{layout-forms-DnuHX_gj.js → layout-forms-B8949Fjt.js} +1 -1
  14. package/dist/storybook/assets/{layout-general-FzT8-ags.js → layout-general-BoKJ4ZlB.js} +1 -1
  15. package/dist/storybook/assets/{padding-and-spacing-TynMKdns.js → padding-and-spacing-CUlpXdO2.js} +1 -1
  16. package/dist/storybook/assets/{preview-D-jxt18Q.js → preview-BiBwi-VL.js} +1 -1
  17. package/dist/storybook/assets/{preview-CHIn4EYc.js → preview-DbtMUp2m.js} +2 -2
  18. package/dist/storybook/assets/{unit-input.stories-CNQsBPnT.js → unit-input.stories-aY3ydXnU.js} +4 -4
  19. package/dist/storybook/iframe.html +1 -1
  20. package/dist/storybook/project.json +1 -1
  21. package/package.json +1 -1
@@ -1 +1 @@
1
- import{i as n,o as T,S as l,l as c,A as H,v as L,w as B,b,F as S,J as u,z as C,a as h,y as d,D as g,x as y,C as F,E as I,c as k,R as x,d as A,e as P,f as R,j as W,g as f,W as D,k as E,T as N,L as q,H as v,h as w,I as O,B as U,m as j,M as z,n as G,r as J,p as K,q as M,s as Q,t as V,u as X,_ as Y,G as Z,K as _,V as $,N as aa,O as sa,P as oa,Q as ta,U as ra,X as ea,Y as ia}from"./index-CWYiT1Tz.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./index-DhsZuJvc.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";export{n as A,T as ActionBar,l as Bar,c as Blockquote,H as Button,L as Code,B as DL,b as Div,S as EmptyTabContent,u as ErrorFormatter,C as FlexBar,h as Form,d as H1,g as H2,y as H3,F as H4,I as H5,k as H6,x as HR,A as IconButton,P as Img,R as LI,W as Link,f as ListItem,D as Loader,E as OL,N as P,q as Pre,v as ResetWrapper,w as ScrollArea,O as Separator,U as Span,j as SyntaxHighlighter,z as TT,G as TabBar,J as TabButton,K as Table,M as Tabs,Q as TabsState,V as TooltipLinkList,X as TooltipNote,Y as UL,Z as WithTooltip,_ as WithTooltipPure,$ as Zoom,aa as codeCommon,sa as components,oa as createCopyToClipboardFunction,ta as getStoryHref,ra as icons,ea as nameSpaceClassNames,ia as withReset};
1
+ import{i as n,o as T,S as l,l as c,A as H,v as L,w as B,b,F as S,J as u,z as C,a as h,y as d,D as g,x as y,C as F,E as I,c as k,R as x,d as A,e as P,f as R,j as W,g as f,W as D,k as E,T as N,L as q,H as v,h as w,I as O,B as U,m as j,M as z,n as G,r as J,p as K,q as M,s as Q,t as V,u as X,_ as Y,G as Z,K as _,V as $,N as aa,O as sa,P as oa,Q as ta,U as ra,X as ea,Y as ia}from"./index-CZerqvnp.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./index-DhsZuJvc.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";export{n as A,T as ActionBar,l as Bar,c as Blockquote,H as Button,L as Code,B as DL,b as Div,S as EmptyTabContent,u as ErrorFormatter,C as FlexBar,h as Form,d as H1,g as H2,y as H3,F as H4,I as H5,k as H6,x as HR,A as IconButton,P as Img,R as LI,W as Link,f as ListItem,D as Loader,E as OL,N as P,q as Pre,v as ResetWrapper,w as ScrollArea,O as Separator,U as Span,j as SyntaxHighlighter,z as TT,G as TabBar,J as TabButton,K as Table,M as Tabs,Q as TabsState,V as TooltipLinkList,X as TooltipNote,Y as UL,Z as WithTooltip,_ as WithTooltipPure,$ as Zoom,aa as codeCommon,sa as components,oa as createCopyToClipboardFunction,ta as getStoryHref,ra as icons,ea as nameSpaceClassNames,ia as withReset};
@@ -1,4 +1,4 @@
1
- import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as r}from"./index-BcNHZKhG.js";import{Z as s,$ as n}from"./index-CWYiT1Tz.js";import{NonExistentValue as a,Error as l}from"./select.stories-VMcOn7Ri.js";import"./index-DhsZuJvc.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./select-yqiMF9-4.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./tooltip-C_E_6ym5.js";import"./index-CEuq6vkz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-4w-EOz3m.js";import"./button-CdEIDAx8.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./spacer-BWoNR27H.js";function o(t){const i={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",strong:"strong",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Input Validation"}),`
1
+ import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as r}from"./index-BcNHZKhG.js";import{Z as s,$ as n}from"./index-CZerqvnp.js";import{NonExistentValue as a,Error as l}from"./select.stories-VMcOn7Ri.js";import"./index-DhsZuJvc.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./select-yqiMF9-4.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./tooltip-C_E_6ym5.js";import"./index-CEuq6vkz.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-4w-EOz3m.js";import"./button-CdEIDAx8.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./spacer-BWoNR27H.js";function o(t){const i={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",strong:"strong",...r(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Input Validation"}),`
2
2
  `,e.jsx(i.h1,{id:"input-validation",children:"Input Validation"}),`
3
3
  `,e.jsx(i.h2,{id:"select",children:"Select"}),`
4
4
  `,e.jsx(i.h3,{id:"invalid-states",children:"Invalid states"}),`
@@ -1,4 +1,4 @@
1
- import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as s}from"./index-BcNHZKhG.js";import{Z as r,$ as o}from"./index-CWYiT1Tz.js";import{Default as l}from"./button.stories-CHt71NKu.js";import{Default as a}from"./check-box.stories-Do-GOmLf.js";import{Default as c}from"./file-input.stories-aiTQE5UN.js";import{Default as d,Date as p}from"./input.stories-BHdUwYqV.js";import{Default as h}from"./number-input.stories-COWyMRAs.js";import{Default as u}from"./option-dropdown.stories-DvgAgTHQ.js";import{Default as m}from"./radio-button.stories-BFp_qyyE.js";import{Native as f,Default as x}from"./select.stories-VMcOn7Ri.js";import{Default as j}from"./slider.stories-DdVxUAfH.js";import{Default as b}from"./textarea.stories-CKm5MlQF.js";import{Default as g}from"./toggle.stories-Cre2gnIB.js";import"./index-DhsZuJvc.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./react-router-dom-Ck2Y_Fzc.js";import"./index-CEuq6vkz.js";import"./tiny-invariant-DqLgxztJ.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./flex-EllkLxgO.js";import"./button-CdEIDAx8.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./tooltip-C_E_6ym5.js";import"./check-box-2fHPdAZG.js";import"./help-icon-CfV3_Ais.js";import"./file-input-Amcc9o5I.js";import"./input-group-BaRSJAEN.js";import"./input-D97ganXq.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./spacer-BWoNR27H.js";import"./message-ZenLdkrf.js";import"./textarea-DOJDK8hI.js";import"./index-DQs5XS8h.js";import"./index-DRSy5Ssd.js";import"./number-input-B-Nmya5O.js";import"./input-group-addon-D68iUKV2.js";import"./select-yqiMF9-4.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-4w-EOz3m.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./divider-DY9nJ_7N.js";import"./radio-button-J4oEQdxt.js";import"./slider-BLU39INk.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./toggle-D0yzyALV.js";function i(n){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",strong:"strong",ul:"ul",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Inputs"}),`
1
+ import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as s}from"./index-BcNHZKhG.js";import{Z as r,$ as o}from"./index-CZerqvnp.js";import{Default as l}from"./button.stories-CHt71NKu.js";import{Default as a}from"./check-box.stories-Do-GOmLf.js";import{Default as c}from"./file-input.stories-aiTQE5UN.js";import{Default as d,Date as p}from"./input.stories-BHdUwYqV.js";import{Default as h}from"./number-input.stories-COWyMRAs.js";import{Default as u}from"./option-dropdown.stories-DvgAgTHQ.js";import{Default as m}from"./radio-button.stories-BFp_qyyE.js";import{Native as f,Default as x}from"./select.stories-VMcOn7Ri.js";import{Default as j}from"./slider.stories-DdVxUAfH.js";import{Default as b}from"./textarea.stories-CKm5MlQF.js";import{Default as g}from"./toggle.stories-Cre2gnIB.js";import"./index-DhsZuJvc.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./react-router-dom-Ck2Y_Fzc.js";import"./index-CEuq6vkz.js";import"./tiny-invariant-DqLgxztJ.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./flex-EllkLxgO.js";import"./button-CdEIDAx8.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./tooltip-C_E_6ym5.js";import"./check-box-2fHPdAZG.js";import"./help-icon-CfV3_Ais.js";import"./file-input-Amcc9o5I.js";import"./input-group-BaRSJAEN.js";import"./input-D97ganXq.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./spacer-BWoNR27H.js";import"./message-ZenLdkrf.js";import"./textarea-DOJDK8hI.js";import"./index-DQs5XS8h.js";import"./index-DRSy5Ssd.js";import"./number-input-B-Nmya5O.js";import"./input-group-addon-D68iUKV2.js";import"./select-yqiMF9-4.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./text-B3-TSWok.js";import"./actions-4w-EOz3m.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./divider-DY9nJ_7N.js";import"./radio-button-J4oEQdxt.js";import"./slider-BLU39INk.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./toggle-D0yzyALV.js";function i(n){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",strong:"strong",ul:"ul",...s(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Inputs"}),`
2
2
  `,e.jsx(t.h1,{id:"inputs",children:"Inputs"}),`
3
3
  `,e.jsx(t.p,{children:"React UI Library provides a comprehensive set of user input components."}),`
4
4
  `,e.jsx(t.h2,{id:"button",children:"Button"}),`
@@ -1,4 +1,4 @@
1
- import{j as t}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as n}from"./index-BcNHZKhG.js";import{Z as s,$ as o}from"./index-CWYiT1Tz.js";import{Default as l,LabelOnLeft as p}from"./field.stories-eRSYmEtA.js";import{Default as m,LabelsOnLeft as a,Row as h}from"./form.stories-D58sdhOk.js";import"./index-DhsZuJvc.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./field-nInV3MuR.js";import"./index-Bk2sglWO.js";import"./label-Cz6TT90s.js";import"./common-types-Sih75Sav.js";import"./help-icon-CfV3_Ais.js";import"./tooltip-C_E_6ym5.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./input-D97ganXq.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./text-B3-TSWok.js";import"./select-yqiMF9-4.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./actions-4w-EOz3m.js";import"./button-CdEIDAx8.js";import"./spinner-AWUe4xwQ.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./check-box-2fHPdAZG.js";import"./button-group-BIUVa0X9.js";import"./toggle-D0yzyALV.js";import"./input-group-BaRSJAEN.js";import"./input-group-addon-D68iUKV2.js";import"./slider-BLU39INk.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./textarea-DOJDK8hI.js";import"./radio-button-J4oEQdxt.js";import"./form-row-CM112EYF.js";function r(i){const e={code:"code",h1:"h1",h2:"h2",p:"p",...n(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(s,{title:"Layout (Forms)"}),`
1
+ import{j as t}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as n}from"./index-BcNHZKhG.js";import{Z as s,$ as o}from"./index-CZerqvnp.js";import{Default as l,LabelOnLeft as p}from"./field.stories-eRSYmEtA.js";import{Default as m,LabelsOnLeft as a,Row as h}from"./form.stories-D58sdhOk.js";import"./index-DhsZuJvc.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./field-nInV3MuR.js";import"./index-Bk2sglWO.js";import"./label-Cz6TT90s.js";import"./common-types-Sih75Sav.js";import"./help-icon-CfV3_Ais.js";import"./tooltip-C_E_6ym5.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./input-D97ganXq.js";import"./types-UmZ4Y_CR.js";import"./lodash-BHd_uQHh.js";import"./text-B3-TSWok.js";import"./select-yqiMF9-4.js";import"./memoize-one.esm-CcMeOnPo.js";import"./types-BmbYqTX_.js";import"./actions-4w-EOz3m.js";import"./button-CdEIDAx8.js";import"./spinner-AWUe4xwQ.js";import"./badge-CLQ59MDF.js";import"./select.input-DIKP56UZ.js";import"./check-box-2fHPdAZG.js";import"./button-group-BIUVa0X9.js";import"./toggle-D0yzyALV.js";import"./input-group-BaRSJAEN.js";import"./input-group-addon-D68iUKV2.js";import"./slider-BLU39INk.js";import"./objectSpread2-DW4nTBoq.js";import"./index-BI4_Bp97.js";import"./textarea-DOJDK8hI.js";import"./radio-button-J4oEQdxt.js";import"./form-row-CM112EYF.js";function r(i){const e={code:"code",h1:"h1",h2:"h2",p:"p",...n(),...i.components};return t.jsxs(t.Fragment,{children:[t.jsx(s,{title:"Layout (Forms)"}),`
2
2
  `,t.jsx(e.h1,{id:"layout-forms",children:"Layout (Forms)"}),`
3
3
  `,t.jsx(e.h2,{id:"field",children:"Field"}),`
4
4
  `,t.jsxs(e.p,{children:["This is a wrapper for any form element with default bottom margin, and props like ",t.jsx(e.code,{children:"label"})," for other default styling."]}),`
@@ -1,4 +1,4 @@
1
- import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as s}from"./index-BcNHZKhG.js";import{Z as r,$ as n}from"./index-CWYiT1Tz.js";import{Center as d,SpaceBetween as l,JustifyEnd as a,Column as c}from"./flex.stories-CT6o2gii.js";import{Default as h,CustomColumnWidth as p,DefaultGap as x,CustomGap as m,Responsive as u}from"./grid.stories-BhjMGl59.js";import{Default as j,FixedWidth as f,NoPadding as w,ResponsiveWidth as g}from"./column.stories-rKyxUTAG.js";import"./index-DhsZuJvc.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./flex-EllkLxgO.js";import"./button-CdEIDAx8.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./tooltip-C_E_6ym5.js";import"./text-B3-TSWok.js";import"./grid-B6LFPf51.js";import"./styled-components.browser.esm-Bf0q9Yjk.js";import"./card-EcjmryU9.js";import"./row-4iAGREkV.js";import"./heading-EzI5s4VN.js";import"./help-icon-CfV3_Ais.js";function t(i){const o={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",...s(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Layout (General)"}),`
1
+ import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as s}from"./index-BcNHZKhG.js";import{Z as r,$ as n}from"./index-CZerqvnp.js";import{Center as d,SpaceBetween as l,JustifyEnd as a,Column as c}from"./flex.stories-CT6o2gii.js";import{Default as h,CustomColumnWidth as p,DefaultGap as x,CustomGap as m,Responsive as u}from"./grid.stories-BhjMGl59.js";import{Default as j,FixedWidth as f,NoPadding as w,ResponsiveWidth as g}from"./column.stories-rKyxUTAG.js";import"./index-DhsZuJvc.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./flex-EllkLxgO.js";import"./button-CdEIDAx8.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./spinner-AWUe4xwQ.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./index-CEuq6vkz.js";import"./tooltip-C_E_6ym5.js";import"./text-B3-TSWok.js";import"./grid-B6LFPf51.js";import"./styled-components.browser.esm-Bf0q9Yjk.js";import"./card-EcjmryU9.js";import"./row-4iAGREkV.js";import"./heading-EzI5s4VN.js";import"./help-icon-CfV3_Ais.js";function t(i){const o={code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",...s(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Layout (General)"}),`
2
2
  `,e.jsx(o.h1,{id:"layout-general",children:"Layout (General)"}),`
3
3
  `,e.jsx(o.h2,{id:"flex",children:"Flex"}),`
4
4
  `,e.jsxs(o.p,{children:["The ",e.jsx(o.code,{children:"Flex"})," component is a basic flexbox wrapper with optional props for ",e.jsx(o.code,{children:"alignItems"}),", ",e.jsx(o.code,{children:"justifyContent"})," and ",e.jsx(o.code,{children:"flexDirection"}),". This is a conveninent way to center items vertically and/or horizontally, to align them to opposite edges, or align them to the far side."]}),`
@@ -1,4 +1,4 @@
1
- import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as r}from"./index-BcNHZKhG.js";import{Z as t}from"./index-CWYiT1Tz.js";import"./index-DhsZuJvc.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";function i(s){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(t,{title:"Padding, Margin & Size"}),`
1
+ import{j as e}from"./jsx-runtime-eps93zm2.js";import{useMDXComponents as r}from"./index-BcNHZKhG.js";import{Z as t}from"./index-CZerqvnp.js";import"./index-DhsZuJvc.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./index-CUZDtIZe.js";import"./inheritsLoose-DP0QEDDI.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";function i(s){const n={code:"code",h1:"h1",h2:"h2",li:"li",p:"p",strong:"strong",ul:"ul",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(t,{title:"Padding, Margin & Size"}),`
2
2
  `,e.jsx(n.h1,{id:"padding-margin--size",children:"Padding, Margin & Size"}),`
3
3
  `,e.jsx(n.h2,{id:"padding--margin",children:"Padding & Margin"}),`
4
4
  `,e.jsx(n.p,{children:"There are standard CSS spacing variables for padding and margin."}),`
@@ -1,3 +1,3 @@
1
- import{j as s}from"./jsx-runtime-eps93zm2.js";import{r as P,R as C}from"./index-DhsZuJvc.js";import{T as I}from"./toaster-7wnI6hqB.js";import"./message-ZenLdkrf.js";import{a4 as d,a5 as M}from"./index-CWYiT1Tz.js";import{e as _}from"./index-DRSy5Ssd.js";import"./chunk-HLWAVYOI-CObbrU6C.js";import"./index-CUZDtIZe.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./react-16-DXAfArL2.js";var v="DARK_MODE";function f(r){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(r)}var b;function k(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),e.push.apply(e,n)}return e}function A(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?k(Object(e),!0).forEach(function(n){R(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):k(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function R(r,t,e){return t=x(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function x(r){var t=K(r,"string");return f(t)==="symbol"?t:String(t)}function K(r,t){if(f(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t||"default");if(f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function p(r){return B(r)||U(r)||N(r)||L()}function L(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{j as s}from"./jsx-runtime-eps93zm2.js";import{r as P,R as C}from"./index-DhsZuJvc.js";import{T as I}from"./toaster-7wnI6hqB.js";import"./message-ZenLdkrf.js";import{a4 as d,a5 as M}from"./index-CZerqvnp.js";import{e as _}from"./index-DRSy5Ssd.js";import"./chunk-HLWAVYOI-BX6pTYCG.js";import"./index-CUZDtIZe.js";import"./index-Bk2sglWO.js";import"./common-types-Sih75Sav.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";import"./assertThisInitialized-B9jnkVVz.js";import"./index-D6rZ4wEC.js";import"./react-16-DXAfArL2.js";var v="DARK_MODE";function f(r){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(r)}var b;function k(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),e.push.apply(e,n)}return e}function A(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?k(Object(e),!0).forEach(function(n){R(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):k(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function R(r,t,e){return t=x(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function x(r){var t=K(r,"string");return f(t)==="symbol"?t:String(t)}function K(r,t){if(f(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var n=e.call(r,t||"default");if(f(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function p(r){return B(r)||U(r)||N(r)||L()}function L(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N(r,t){if(r){if(typeof r=="string")return h(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return h(r,t)}}function U(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function B(r){if(Array.isArray(r))return h(r)}function h(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}const{global:Y}=__STORYBOOK_MODULE_GLOBAL__;__STORYBOOK_MODULE_CORE_EVENTS__;var T=Y,$=T.document,g=T.window,j="sb-addon-themes-3";(b=g.matchMedia)===null||b===void 0||b.call(g,"(prefers-color-scheme: dark)");var O={classTarget:"body",dark:d.dark,darkClass:["dark"],light:d.light,lightClass:["light"],stylePreview:!1,userHasExplicitlySetTheTheme:!1},E=function(t){g.localStorage.setItem(j,JSON.stringify(t))},H=function(t,e){var n=e.current,a=e.darkClass,l=a===void 0?O.darkClass:a,o=e.lightClass,i=o===void 0?O.lightClass:o;if(n==="dark"){var u,c;(u=t.classList).remove.apply(u,p(y(i))),(c=t.classList).add.apply(c,p(y(l)))}else{var m,S;(m=t.classList).remove.apply(m,p(y(l))),(S=t.classList).add.apply(S,p(y(i)))}},y=function(t){var e=[];return e.concat(t).map(function(n){return n})},V=function(t){var e=$.querySelector(t.classTarget);e&&H(e,t)},D=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=g.localStorage.getItem(j);if(typeof e=="string"){var n=JSON.parse(e);return t&&(t.dark&&!_(n.dark,t.dark)&&(n.dark=t.dark,E(n)),t.light&&!_(n.light,t.light)&&(n.light=t.light,E(n))),n}return A(A({},O),t)};V(D());function W(r,t){return F(r)||J(r,t)||G(r,t)||q()}function q(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(r,t){if(r){if(typeof r=="string")return w(r,t);var e=Object.prototype.toString.call(r).slice(8,-1);if(e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set")return Array.from(r);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(r,t)}}function w(r,t){(t==null||t>r.length)&&(t=r.length);for(var e=0,n=new Array(t);e<t;e++)n[e]=r[e];return n}function J(r,t){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var n,a,l,o,i=[],u=!0,c=!1;try{if(l=(e=e.call(r)).next,t!==0)for(;!(u=(n=l.call(e)).done)&&(i.push(n.value),i.length!==t);u=!0);}catch(m){c=!0,a=m}finally{try{if(!u&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw a}}return i}}function F(r){if(Array.isArray(r))return r}const{addons:z,useState:Q,useEffect:X}=__STORYBOOK_MODULE_PREVIEW_API__;function Z(){var r=Q(D().current==="dark"),t=W(r,2),e=t[0],n=t[1];return X(function(){var a=z.getChannel();return a.on(v,n),function(){return a.off(v,n)}},[]),e}const Or=[r=>s.jsxs(s.Fragment,{children:[s.jsx(r,{}),s.jsx(I,{})]}),r=>{const t=Z();return P.useEffect(()=>document.documentElement.dataset.theme=t?"dark":"default",[t]),s.jsx(r,{})}],Sr={docs:{container:r=>{const[t,e]=C.useState(!1);r.context.channel.on(v,a=>e(a));const n={...r};return n.theme=t?d.dark:d.light,s.jsx(M,{...n})}},darkMode:{current:"light",stylePreview:!0}},_r=["autodocs"];export{Or as decorators,Sr as parameters,_r as tags};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-w69sYCI5.js","./chunk-HLWAVYOI-CObbrU6C.js","./iframe-DrtDBpjG.js","./index-DhsZuJvc.js","./react-16-DXAfArL2.js","./index-CUZDtIZe.js","./index-CWYiT1Tz.js","./inheritsLoose-DP0QEDDI.js","./assertThisInitialized-B9jnkVVz.js","./index-D6rZ4wEC.js"])))=>i.map(i=>d[i]);
2
- import{_ as a}from"./iframe-DrtDBpjG.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-w69sYCI5.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-PKQXORMH-CP_Q5IGB.js","./chunk-HLWAVYOI-BX6pTYCG.js","./iframe-qFXWLeOa.js","./index-DhsZuJvc.js","./react-16-DXAfArL2.js","./index-CUZDtIZe.js","./index-CZerqvnp.js","./inheritsLoose-DP0QEDDI.js","./assertThisInitialized-B9jnkVVz.js","./index-D6rZ4wEC.js"])))=>i.map(i=>d[i]);
2
+ import{_ as a}from"./iframe-qFXWLeOa.js";import"../sb-preview/runtime.js";const{global:s}=__STORYBOOK_MODULE_GLOBAL__;var _=Object.entries(s.TAGS_OPTIONS??{}).reduce((e,r)=>{let[t,o]=r;return o.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await a(()=>import("./DocsRenderer-PKQXORMH-CP_Q5IGB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>_[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
@@ -1,7 +1,7 @@
1
- import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as d}from"./index-DhsZuJvc.js";import{d as r,r as mt}from"./index-DQs5XS8h.js";import{c as pt}from"./index-Bk2sglWO.js";import{u as gt}from"./use-previous-D775JrO6.js";import{M as Se}from"./actions-4w-EOz3m.js";import{I as ht}from"./input-group-addon-D68iUKV2.js";import{B as m}from"./button-CdEIDAx8.js";import{T as vt}from"./tooltip-C_E_6ym5.js";import{I as ft}from"./input-group-BaRSJAEN.js";import{S as j}from"./spacer-BWoNR27H.js";import{T as Kn}from"./text-B3-TSWok.js";import{I as Ct}from"./input-D97ganXq.js";import{M as Ne}from"./types-BmbYqTX_.js";import{l as S}from"./lodash-BHd_uQHh.js";import{D as yt}from"./divider-DY9nJ_7N.js";import{R as $n,C as ve}from"./row-4iAGREkV.js";import{F as V}from"./field-nInV3MuR.js";import{M as fe}from"./message-ZenLdkrf.js";import"./index-DRSy5Ssd.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./types-UmZ4Y_CR.js";import"./badge-CLQ59MDF.js";import"./spinner-AWUe4xwQ.js";import"./index-CUZDtIZe.js";import"./styled-components.browser.esm-Bf0q9Yjk.js";import"./label-Cz6TT90s.js";import"./help-icon-CfV3_Ais.js";const bt=()=>{const n=d.useRef(null);return d.useLayoutEffect(()=>{n.current&&(n.current(),n.current=null)}),t=>{n.current=t}},Ut=(n,a)=>{const t=a==null?void 0:a[n];return console.log("unitTemplate",a),console.log("unitTemplate?.[unitkey]",a==null?void 0:a[n]),t?(console.log("preferredUnit",t),t):(console.log(`Warning: 'unitTemplate' missing for '${n}'. Using initial unit, value unit, or default.`),r.unitFromQuantity(n)??"")};var y=(n=>(n.CUSTOM="custom",n.PREDEFINED="predefined",n))(y||{});const zn=n=>n==="undefined"||n===void 0||n===""||n==="null"||n===null||n==="NaN"||isNaN(n),Gn=(n="",a,t="",l=!1)=>{if(l)return n;if(a&&!zn(n))try{const o=r.isValueWithUnit(n)?n:r.withUnit(n,t),c=r.convertSamePrecision(o,a);return r.getValue(c)}catch{}return n},xt=n=>n?!!r.getUnit(n):!1,F=(n="",a,t,l)=>{if(l)return n;const o=xt(n)||r.isValueWithUnit(n),c=r.getValue(n);return zn(c)?c:o?Gn(c,a,t,l):n},Ae=n=>S.isObject(n)&&!S.isArray(n)&&!S.isFunction(n)?S.get(n,"fieldName",""):typeof n=="string"?n:"",It=n=>S.isObjectLike(n)&&S.has(n,"message"),wt=n=>typeof n=="string"?n:It(n)?n.message:null;var Vt=mt();const jt=n=>n.search(RegExp(/(^0{2}\.)|(^0+[1-9])/g))===0,qe=(n,a)=>{var k;const{allowEmpty:t=!1,autoValue:l,placeholder:o,disabledValidation:c=!1}=a||{},i=String(n);if(c||l||o)return null;const g=Vt.isValueWithUnit(i)?r.getValue(i):i;if(t&&g==="")return null;if(jt(g))return"Invalid number format due to leading zeroes";const h=r.validateNumber(g);if(!h.valid){const le=((k=h==null?void 0:h.errors)==null?void 0:k[0])??null;return wt(le)}return null},Pe=(n="")=>{var a;return(a=r.KNOWN_UNITS)==null?void 0:a.includes(n)},kt=(n,a)=>{const t=r.getUnit(n||"");return Pe(a)&&Pe(t)};let Et=d.createContext(null);const Tt=()=>d.useContext(Et),St="_predefinedMenuActive_1yvt4_1",Nt={predefinedMenuActive:St},p=({name:n,placeholder:a="",disabled:t=!1,disabledUnit:l=!1,error:o=null,left:c=!1,small:i=!1,width:g="100%",value:h,unitkey:k="",initUnit:le,noConversion:Jn=!1,onChange:ue=()=>{},onClick:qt=()=>{},onFocus:Yn=()=>{},onSwitchUnit:Ce=()=>{},unitTemplate:oe,doNotConvertValue:P=!1,testId:T,warning:Zn=null,predefinedOptions:I,initialPredefinedOption:Qn=!1,shouldLinkAutomaticly:ye=!0,selectedPredefinedOptionKey:be,validationCallback:Ue=()=>({name:"",error:null}),disabledValidation:xe=!1,allowEmpty:Ie=!1,autoValue:w})=>{typeof h=="number"&&(h=`${h}`);const b=Tt();console.log("context in component ->>>>",oe||(b==null?void 0:b.unitTemplate),b==null?void 0:b.unitTemplate);const Xn=bt(),[de="",M=""]=h!==void 0?r.split(h):[],we=w?r.getUnit(w):"",Ve=d.useMemo(()=>Ut(k,oe||(b==null?void 0:b.unitTemplate)),[k,oe,b==null?void 0:b.unitTemplate]),et=kt(h,Ve),x=le||M||Ve,nt=gt(x),je=F(h,x,M,P),ke=F(w,x,we,P),tt=je!==""?{value:je,unit:x}:ke!==""?{value:ke,unit:x}:{value:de,unit:M},[v,te]=d.useState(tt),[at,ce]=d.useState(null),[E,me]=d.useState(Qn?y.PREDEFINED:y.CUSTOM),pe=de===""&&w,D=I&&I.find(s=>{if(!(s!=null&&s.value))return;if(be)return be===s.valueKey;const u=r.isValueWithUnit(s.value)?r.getUnit(s.value):"";return r.withUnit(Gn(h,u),u)===s.value}),rt=()=>{if(k)try{const s=pe?w:h??"";let u=r.altUnitsList(s,k);return r.getValue(s)===""?u.map(f=>["",f[1]]):u}catch{return null}},st=s=>{const u=Ae(n),f=s.target,{value:U,selectionStart:_}=f,Te=r.cleanNumStr(U.replaceAll(" ","").replaceAll("|","")),ge=r.withUnit(Te,(v==null?void 0:v.unit)||""),ot=r.getValue(ge),he=qe(ot,{allowEmpty:Ie,autoValue:w,placeholder:a,disabledValidation:xe});if(he===null){ue({target:{value:ge,name:u}});const[dt,ct]=r.split(ge);te({value:dt,unit:ct}),ce(null),Ue(u,null)}else te({value:Te,unit:v.unit}),ce(he),Ue(u,he);Xn(()=>{f.selectionStart=_,f.selectionEnd=_})},it=(s,u)=>{u===v.unit||isNaN(Number(s))||(te({value:s,unit:u}),Ce&&Ce(u))};d.useEffect(()=>{if(x){let f,U="";nt!==x?(f=F(h,x,M,P),U=x):r.withUnit(v.value,v.unit)!==h&&(f=F(h,v.unit,M,P),U=v.unit),f!==void 0&&te({value:f,unit:U}),I&&me(D&&ye?y.PREDEFINED:y.CUSTOM)}const s=r.checkAndCleanDecimalComma(de),u=qe(s,{allowEmpty:Ie,autoValue:w,placeholder:a,disabledValidation:xe});ce(u)},[x,h,o,ye]);const ae=rt(),re=r.label(v.unit)||v.unit||"",lt=Jn||!ae||ae&&ae.length===1,Ee=Ae(n);let se;const ut=s=>{const u=s!=null&&s.value?s.value:"",[f="",U=""]=r.isValueWithUnit(u)?r.split(u):[u];return{type:Ne.OPTION,inline:!0,onClick:()=>{r.validateNumber(f).valid&&!t&&(me(y.PREDEFINED),ue({target:{value:u,name:typeof n=="string"?n:(n==null?void 0:n.fieldName)||"",predefinedSelected:!0,predefinedOption:s}}))},label:e.jsxs(e.Fragment,{children:[e.jsx(Kn,{children:s.label}),e.jsx(j,{width:"20px",height:"0"})]}),description:r.isValueWithUnit(u)?`${f} ${U}`:u,selected:D===s&&E===y.PREDEFINED}};if(se=[{type:Ne.OPTION,inline:!0,onClick:()=>{E!==y.CUSTOM&&!t&&ue({target:{value:r.withUnit(v.value,v.unit),name:typeof n=="string"?n:(n==null?void 0:n.fieldName)||""}})},label:"Custom",selected:E===y.CUSTOM}],I!=null&&I.length){const s=I.map(ut);se=[...se,...s]}return e.jsx("div",{className:E===y.PREDEFINED?pt(Nt.predefinedMenuActive):"",children:e.jsxs(ft,{small:i,width:g,children:[I&&e.jsx(vt,{text:E===y.PREDEFINED?D==null?void 0:D.label:"",children:e.jsx(Se,{maxHeight:380,groupOrder:"first",testId:T&&`${T}-predefined-menu`,disabled:t,menu:{colored:!0,trigger:"Component",component:e.jsx(m,{groupOrder:"first",active:E===y.PREDEFINED,icon:E===y.PREDEFINED?"link":"unlink"}),small:i,sections:se}})}),e.jsx(Ct,{type:"text",name:Ee,testId:T,disabled:t,placeholder:pe?F(w,v.unit,we,P):a,value:v.value,onChange:st,onFocus:Yn,error:o||at,warning:Zn,right:!c},Ee),re&&(lt||!et?e.jsx(ht,{groupOrder:"last",children:re}):e.jsx(Se,{maxHeight:380,groupOrder:"last",disabled:l,testId:T&&`${T}-menu`,menu:{label:re,trigger:"DropDownButton",small:i,sections:ae.map(([s,u,f])=>{const U=f||u||"";return{type:"Option",label:isNaN(Number(s))?"":s,inline:!0,onClick:_=>{_.stopPropagation(),it(pe?"":s,u)},description:U,selected:U===re,testId:`${T}-unit-${U}`}})}}))]})})};p.__docgenInfo={description:"",methods:[],displayName:"UnitInput",props:{name:{required:!0,tsType:{name:"union",raw:"string | { fieldName?: string }",elements:[{name:"string"},{name:"signature",type:"object",raw:"{ fieldName?: string }",signature:{properties:[{key:"fieldName",value:{name:"string",required:!1}}]}}]},description:""},placeholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},disabledUnit:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},error:{required:!1,tsType:{name:"union",raw:"string | null | boolean",elements:[{name:"string"},{name:"null"},{name:"boolean"}]},description:"",defaultValue:{value:"null",computed:!1}},left:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},small:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'100%'",computed:!1}},value:{required:!1,tsType:{name:"string"},description:""},unitkey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},initUnit:{required:!1,tsType:{name:"string"},description:""},noConversion:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},doNotConvertValue:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},testId:{required:!1,tsType:{name:"string"},description:""},warning:{required:!1,tsType:{name:"union",raw:"string | boolean | null",elements:[{name:"string"},{name:"boolean"},{name:"null"}]},description:"",defaultValue:{value:"null",computed:!1}},predefinedOptions:{required:!1,tsType:{name:"union",raw:"IPredefinedOption[] | null",elements:[{name:"Array",elements:[{name:"IPredefinedOption"}],raw:"IPredefinedOption[]"},{name:"null"}]},description:""},initialPredefinedOption:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},shouldLinkAutomaticly:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},selectedPredefinedOptionKey:{required:!1,tsType:{name:"string"},description:""},validationCallback:{required:!1,tsType:{name:"signature",type:"function",raw:`(
1
+ import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as d}from"./index-DhsZuJvc.js";import{d as r,r as ct}from"./index-DQs5XS8h.js";import{c as pt}from"./index-Bk2sglWO.js";import{u as gt}from"./use-previous-D775JrO6.js";import{M as Se}from"./actions-4w-EOz3m.js";import{I as ht}from"./input-group-addon-D68iUKV2.js";import{B as c}from"./button-CdEIDAx8.js";import{T as vt}from"./tooltip-C_E_6ym5.js";import{I as ft}from"./input-group-BaRSJAEN.js";import{S as V}from"./spacer-BWoNR27H.js";import{T as Kn}from"./text-B3-TSWok.js";import{I as Ct}from"./input-D97ganXq.js";import{M as Ne}from"./types-BmbYqTX_.js";import{l as S}from"./lodash-BHd_uQHh.js";import{D as yt}from"./divider-DY9nJ_7N.js";import{R as $n,C as he}from"./row-4iAGREkV.js";import{F as w}from"./field-nInV3MuR.js";import{M as ve}from"./message-ZenLdkrf.js";import"./index-DRSy5Ssd.js";import"./common-types-Sih75Sav.js";import"./disabled-context-rmpd7YJS.js";import"./icon-BSFY3vDO.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./types-UmZ4Y_CR.js";import"./badge-CLQ59MDF.js";import"./spinner-AWUe4xwQ.js";import"./index-CUZDtIZe.js";import"./styled-components.browser.esm-Bf0q9Yjk.js";import"./label-Cz6TT90s.js";import"./help-icon-CfV3_Ais.js";const bt=()=>{const n=d.useRef(null);return d.useLayoutEffect(()=>{n.current&&(n.current(),n.current=null)}),t=>{n.current=t}},Ut=(n,a)=>{const t=a==null?void 0:a[n];return t||(console.log(`Warning: 'unitTemplate' missing for '${n}'. Using initial unit, preferred unit or value unit.`),r.unitFromQuantity(n)??"")};var y=(n=>(n.CUSTOM="custom",n.PREDEFINED="predefined",n))(y||{});const zn=n=>n==="undefined"||n===void 0||n===""||n==="null"||n===null||n==="NaN"||isNaN(n),Gn=(n="",a,t="",l=!1)=>{if(l)return n;if(a&&!zn(n))try{const o=r.isValueWithUnit(n)?n:r.withUnit(n,t),m=r.convertSamePrecision(o,a);return r.getValue(m)}catch{}return n},xt=n=>n?!!r.getUnit(n):!1,F=(n="",a,t,l)=>{if(l)return n;const o=xt(n)||r.isValueWithUnit(n),m=r.getValue(n);return zn(m)?m:o?Gn(m,a,t,l):n},Ae=n=>S.isObject(n)&&!S.isArray(n)&&!S.isFunction(n)?S.get(n,"fieldName",""):typeof n=="string"?n:"",It=n=>S.isObjectLike(n)&&S.has(n,"message"),wt=n=>typeof n=="string"?n:It(n)?n.message:null;var Vt=ct();const jt=n=>n.search(RegExp(/(^0{2}\.)|(^0+[1-9])/g))===0,qe=(n,a)=>{var j;const{allowEmpty:t=!1,autoValue:l,placeholder:o,disabledValidation:m=!1}=a||{},i=String(n);if(m||l||o)return null;const g=Vt.isValueWithUnit(i)?r.getValue(i):i;if(t&&g==="")return null;if(jt(g))return"Invalid number format due to leading zeroes";const h=r.validateNumber(g);if(!h.valid){const le=((j=h==null?void 0:h.errors)==null?void 0:j[0])??null;return wt(le)}return null},Pe=(n="")=>{var a;return(a=r.KNOWN_UNITS)==null?void 0:a.includes(n)},kt=(n,a)=>{const t=r.getUnit(n||"");return Pe(a)&&Pe(t)};let Et=d.createContext(null);const Tt=()=>d.useContext(Et),St="_predefinedMenuActive_1yvt4_1",Nt={predefinedMenuActive:St},p=({name:n,placeholder:a="",disabled:t=!1,disabledUnit:l=!1,error:o=null,left:m=!1,small:i=!1,width:g="100%",value:h,unitkey:j="",initUnit:le,noConversion:Jn=!1,onChange:ue=()=>{},onClick:qt=()=>{},onFocus:Yn=()=>{},onSwitchUnit:fe=()=>{},unitTemplate:Ce,doNotConvertValue:P=!1,testId:E,warning:Zn=null,predefinedOptions:x,initialPredefinedOption:Qn=!1,shouldLinkAutomaticly:ye=!0,selectedPredefinedOptionKey:be,validationCallback:Ue=()=>({name:"",error:null}),disabledValidation:xe=!1,allowEmpty:Ie=!1,autoValue:I})=>{const T=Tt(),Xn=bt();typeof h=="number"&&(h=`${h}`);const[oe="",M=""]=h!==void 0?r.split(h):[],we=I?r.getUnit(I):"",Ve=d.useMemo(()=>Ut(j,Ce||(T==null?void 0:T.unitTemplate)),[j,Ce,T==null?void 0:T.unitTemplate]),et=kt(h,Ve),U=le||Ve||M,nt=gt(U),je=F(h,U,M,P),ke=F(I,U,we,P),tt=je!==""?{value:je,unit:U}:ke!==""?{value:ke,unit:U}:{value:oe,unit:M},[v,te]=d.useState(tt),[at,de]=d.useState(null),[k,me]=d.useState(Qn?y.PREDEFINED:y.CUSTOM),ce=oe===""&&I,D=x&&x.find(s=>{if(!(s!=null&&s.value))return;if(be)return be===s.valueKey;const u=r.isValueWithUnit(s.value)?r.getUnit(s.value):"";return r.withUnit(Gn(h,u),u)===s.value}),rt=()=>{if(j)try{const s=ce?I:h??"";let u=r.altUnitsList(s,j);return r.getValue(s)===""?u.map(f=>["",f[1]]):u}catch{return null}},st=s=>{const u=Ae(n),f=s.target,{value:b,selectionStart:_}=f,Te=r.cleanNumStr(b.replaceAll(" ","").replaceAll("|","")),pe=r.withUnit(Te,(v==null?void 0:v.unit)||""),ot=r.getValue(pe),ge=qe(ot,{allowEmpty:Ie,autoValue:I,placeholder:a,disabledValidation:xe});if(ge===null){ue({target:{value:pe,name:u}});const[dt,mt]=r.split(pe);te({value:dt,unit:mt}),de(null),Ue(u,null)}else te({value:Te,unit:v.unit}),de(ge),Ue(u,ge);Xn(()=>{f.selectionStart=_,f.selectionEnd=_})},it=(s,u)=>{u===v.unit||isNaN(Number(s))||(te({value:s,unit:u}),fe&&fe(u))};d.useEffect(()=>{if(U){let f,b="";nt!==U?(f=F(h,U,M,P),b=U):r.withUnit(v.value,v.unit)!==h&&(f=F(h,v.unit,M,P),b=v.unit),f!==void 0&&te({value:f,unit:b}),x&&me(D&&ye?y.PREDEFINED:y.CUSTOM)}const s=r.checkAndCleanDecimalComma(oe),u=qe(s,{allowEmpty:Ie,autoValue:I,placeholder:a,disabledValidation:xe});de(u)},[U,h,o,ye]);const ae=rt(),re=r.label(v.unit)||v.unit||"",lt=Jn||!ae||ae&&ae.length===1,Ee=Ae(n);let se;const ut=s=>{const u=s!=null&&s.value?s.value:"",[f="",b=""]=r.isValueWithUnit(u)?r.split(u):[u];return{type:Ne.OPTION,inline:!0,onClick:()=>{r.validateNumber(f).valid&&!t&&(me(y.PREDEFINED),ue({target:{value:u,name:typeof n=="string"?n:(n==null?void 0:n.fieldName)||"",predefinedSelected:!0,predefinedOption:s}}))},label:e.jsxs(e.Fragment,{children:[e.jsx(Kn,{children:s.label}),e.jsx(V,{width:"20px",height:"0"})]}),description:r.isValueWithUnit(u)?`${f} ${b}`:u,selected:D===s&&k===y.PREDEFINED}};if(se=[{type:Ne.OPTION,inline:!0,onClick:()=>{k!==y.CUSTOM&&!t&&ue({target:{value:r.withUnit(v.value,v.unit),name:typeof n=="string"?n:(n==null?void 0:n.fieldName)||""}})},label:"Custom",selected:k===y.CUSTOM}],x!=null&&x.length){const s=x.map(ut);se=[...se,...s]}return e.jsx("div",{className:k===y.PREDEFINED?pt(Nt.predefinedMenuActive):"",children:e.jsxs(ft,{small:i,width:g,children:[x&&e.jsx(vt,{text:k===y.PREDEFINED?D==null?void 0:D.label:"",children:e.jsx(Se,{maxHeight:380,groupOrder:"first",testId:E&&`${E}-predefined-menu`,disabled:t,menu:{colored:!0,trigger:"Component",component:e.jsx(c,{groupOrder:"first",active:k===y.PREDEFINED,icon:k===y.PREDEFINED?"link":"unlink"}),small:i,sections:se}})}),e.jsx(Ct,{type:"text",name:Ee,testId:E,disabled:t,placeholder:ce?F(I,v.unit,we,P):a,value:v.value,onChange:st,onFocus:Yn,error:o||at,warning:Zn,right:!m},Ee),re&&(lt||!et?e.jsx(ht,{groupOrder:"last",children:re}):e.jsx(Se,{maxHeight:380,groupOrder:"last",disabled:l,testId:E&&`${E}-menu`,menu:{label:re,trigger:"DropDownButton",small:i,sections:ae.map(([s,u,f])=>{const b=f||u||"";return{type:"Option",label:isNaN(Number(s))?"":s,inline:!0,onClick:_=>{_.stopPropagation(),it(ce?"":s,u)},description:b,selected:b===re,testId:`${E}-unit-${b}`}})}}))]})})};p.__docgenInfo={description:"",methods:[],displayName:"UnitInput",props:{name:{required:!0,tsType:{name:"union",raw:"string | { fieldName?: string }",elements:[{name:"string"},{name:"signature",type:"object",raw:"{ fieldName?: string }",signature:{properties:[{key:"fieldName",value:{name:"string",required:!1}}]}}]},description:""},placeholder:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},disabled:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},disabledUnit:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},error:{required:!1,tsType:{name:"union",raw:"string | null | boolean",elements:[{name:"string"},{name:"null"},{name:"boolean"}]},description:"",defaultValue:{value:"null",computed:!1}},left:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},small:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:"",defaultValue:{value:"'100%'",computed:!1}},value:{required:!1,tsType:{name:"string"},description:""},unitkey:{required:!1,tsType:{name:"string"},description:"",defaultValue:{value:"''",computed:!1}},initUnit:{required:!1,tsType:{name:"string"},description:""},noConversion:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},doNotConvertValue:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},testId:{required:!1,tsType:{name:"string"},description:""},warning:{required:!1,tsType:{name:"union",raw:"string | boolean | null",elements:[{name:"string"},{name:"boolean"},{name:"null"}]},description:"",defaultValue:{value:"null",computed:!1}},predefinedOptions:{required:!1,tsType:{name:"union",raw:"IPredefinedOption[] | null",elements:[{name:"Array",elements:[{name:"IPredefinedOption"}],raw:"IPredefinedOption[]"},{name:"null"}]},description:""},initialPredefinedOption:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},shouldLinkAutomaticly:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"true",computed:!1}},selectedPredefinedOptionKey:{required:!1,tsType:{name:"string"},description:""},validationCallback:{required:!1,tsType:{name:"signature",type:"function",raw:`(
2
2
  name: string,
3
3
  message: string | null,
4
- ) => { name: string; error: string | null }`,signature:{arguments:[{type:{name:"string"},name:"name"},{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"message"}],return:{name:"signature",type:"object",raw:"{ name: string; error: string | null }",signature:{properties:[{key:"name",value:{name:"string",required:!0}},{key:"error",value:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}],required:!0}}]}}}},description:"",defaultValue:{value:"() => ({ name: '', error: null })",computed:!1}},disabledValidation:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},allowEmpty:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},autoValue:{required:!1,tsType:{name:"string"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: ChangeEvent<HTMLInputElement> | ICustomChangeEvent) => void",signature:{arguments:[{type:{name:"union",raw:"ChangeEvent<HTMLInputElement> | ICustomChangeEvent",elements:[{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent<HTMLInputElement>"},{name:"ICustomChangeEvent"}]},name:"event"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},onSwitchUnit:{required:!1,tsType:{name:"signature",type:"function",raw:"(unit: string) => void",signature:{arguments:[{type:{name:"string"},name:"unit"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},onClick:{required:!1,tsType:{name:"MouseEventHandler",elements:[{name:"HTMLInputElement"}],raw:"MouseEventHandler<HTMLInputElement>"},description:"",defaultValue:{value:"() => {}",computed:!1}},onFocus:{required:!1,tsType:{name:"FocusEventHandler",elements:[{name:"HTMLInputElement"}],raw:"FocusEventHandler<HTMLInputElement>"},description:"",defaultValue:{value:"() => {}",computed:!1}},unitTemplate:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"any"}],raw:"Record<string, any>"},description:""}}};const{useArgs:At}=__STORYBOOK_MODULE_PREVIEW_API__,pa={title:"Basic/UnitInput",component:p,args:{name:"example",unitkey:"length",value:"123|m"}},C=n=>{const[a,t]=At(),l=o=>{t({value:o.target.value})};return e.jsx(p,{...n,onChange:l})},ie=C.bind({}),O=C.bind({});O.args={unitkey:"height",unitTemplate:{height:"ft"}};const W=C.bind({});W.args={value:'123|"',unitkey:'"'};const B=C.bind({});B.args={width:"180px"};const R=C.bind({});R.args={noConversion:!0};const H=C.bind({});H.args={small:!0};const L=C.bind({});L.args={error:"Error message goes here"};const K=C.bind({});K.args={value:"asas123asd|%"};const N=C.bind({});N.args={disabled:!0,disabledUnit:!0};N.parameters={docs:{description:{story:"Each part of UnitInput can be disabled separately. `disabled` disables only the main text input, `disabledUnit` disables only the unit menu. **Needs review (comes from Reservoir input requirements)**"}}};const $=C.bind({});$.args={disabled:!0,disabledUnit:!0,noConversion:!0};const z=C.bind({});z.args={disabledUnit:!0,unitkey:void 0};const G=C.bind({});G.args={disabledUnit:!0,unitkey:"length"};const J=C.bind({});J.args={disabledUnit:!1,disabled:!0};const A=n=>{const[a,t]=d.useState("123|m"),[l,o]=d.useState("223|m"),[c,i]=d.useState("ft");return e.jsxs(e.Fragment,{children:[e.jsx(m,{label:"Change initUnit",onClick:()=>i(c==="m"?"ft":"m")}),e.jsx(j,{}),e.jsx(m,{label:"Change value",onClick:()=>t(a==="123|m"?"456|m":"123|m")}),e.jsx(j,{}),e.jsx(p,{name:"example",onChange:g=>{t(g.target.value)},unitkey:"length",value:a,initUnit:c,onSwitchUnit:i}),e.jsx(j,{}),e.jsx(p,{name:"example2",onChange:g=>{o(g.target.value)},unitkey:"length",value:l,initUnit:c,onSwitchUnit:i}),e.jsx(yt,{}),e.jsx("h4",{children:"Without initUnit property (taken from the redux store)"}),e.jsx(p,{name:"example",onChange:g=>{t(g.target.value)},unitkey:"length",value:a,onSwitchUnit:i}),e.jsx(p,{name:"example2",onChange:g=>{o(g.target.value)},unitkey:"length",value:l,onSwitchUnit:i})]})};A.parameters={docs:{description:{story:"[OW-4380](https://oliasoft.atlassian.net/browse/OW-4380?atlOrigin=eyJpIjoiMmM1N2RkNWU3Mjk5NDYxY2E0YzhkMzk5ZTVmZTJhMjciLCJwIjoiaiJ9)"}}};const Y=C.bind({});Y.args={predefinedOptions:[{label:"bottom of casing",value:"12|km"},{label:"mud weight at shoe depth",value:"8|mm"}]};const q=()=>{const n="500px",[a,t]=d.useState(void 0);return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"Different edge cases such as +/- infinity, undefined, NaN, null:"}),e.jsxs($n,{children:[e.jsxs(ve,{width:"25%",children:[e.jsx(m,{label:"Change value infinity",onClick:()=>t(1/0)}),e.jsx("br",{}),e.jsx(m,{label:"Change value -infinity",onClick:()=>t(-1/0)}),e.jsx("br",{}),e.jsx(m,{label:"Change value null",onClick:()=>t(null)}),e.jsx("br",{}),e.jsx(m,{label:"Change value - undefined",onClick:()=>t(void 0)}),e.jsx("br",{}),e.jsx(m,{label:"Change value - NaN",onClick:()=>t(NaN)}),e.jsx("br",{}),e.jsx(m,{label:"Change value - nothing (empty)",onClick:()=>t(void 0)}),e.jsx("br",{}),e.jsx(m,{label:"Change value - empty string",onClick:()=>t("")})]}),e.jsxs(ve,{width:"25%",children:[e.jsx(m,{label:"Change value infinity|m",onClick:()=>t("Infinity|m")}),e.jsx("br",{}),e.jsx(m,{label:"Change value -infinity|m",onClick:()=>t("-Infinity|m")}),e.jsx("br",{}),e.jsx(m,{label:"Change value null|m",onClick:()=>t("null|m")}),e.jsx("br",{}),e.jsx(m,{label:"Change value - undefined|m",onClick:()=>t("undefined|m")}),e.jsx("br",{}),e.jsx(m,{label:"Change value - NaN|m",onClick:()=>t("NaN|m")}),e.jsx("br",{}),e.jsx(m,{label:"Change value - nothing (empty)|m",onClick:()=>t("|m")})]})]}),e.jsx("br",{}),e.jsx(V,{label:"Normal PUI",children:e.jsx(p,{name:"example1",onChange:l=>t(l.target.value),value:a,unitkey:"length",width:n,placeholder:"value|unit"})}),e.jsx(V,{label:"Disabled validation",children:e.jsx(p,{name:"example2",onChange:l=>t(l.target.value),value:a,unitkey:"length",disabledValidation:!0,width:n})}),e.jsx(V,{label:"Disabled validation and manual error",children:e.jsx(p,{name:"example3",onChange:l=>t(l.target.value),value:a,unitkey:"length",error:"test",disabledValidation:!0,width:n})}),e.jsx(fe,{message:{heading:"Current value inside PUI: "+a,visible:!0}})]})},Z=()=>{const n="500px",[a,t]=d.useState("1|m"),[l,o]=d.useState("|m"),c="123|km";return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"Different cases for automatic (placeholder) values:"}),e.jsx($n,{children:e.jsxs(ve,{width:"25%",children:[e.jsx(m,{label:"Change value to ''",onClick:()=>t("")}),e.jsx("br",{}),e.jsx(m,{label:"Change value to 1",onClick:()=>t("1")}),e.jsx("br",{}),e.jsx(m,{label:"Change value to 1|m",onClick:()=>t("1|m")}),e.jsx("br",{}),e.jsx(m,{label:"Change value to |m - empty value",onClick:()=>t("|m")})]})}),e.jsx("br",{}),e.jsx(V,{label:"Normal PUI (placeholder + auto)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,placeholder:"value|unit",autoValue:c})}),e.jsx(V,{label:"Normal PUI (only auto)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,autoValue:c})}),e.jsx(V,{label:"Empty PUI with autoValue",children:e.jsx(p,{name:"example1",onChange:i=>o(i.target.value),value:l,unitkey:"length",width:n,autoValue:c})}),e.jsx(V,{label:"Normal PUI (only placeholder)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,placeholder:"Placeholder test"})}),e.jsx(V,{label:"Normal PUI (placeholder + allowEmpty)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,placeholder:"Placeholder test",allowEmpty:!0})}),e.jsx(fe,{message:{heading:"Current value inside PUI: "+a,visible:!0}})]})};q.parameters={docs:{description:{story:"[OW-8884](https://oliasoft.atlassian.net/browse/OW-8884)"}}};const Q=()=>{const[n,a]=d.useState("123|%"),[t,l]=d.useState(null),o="This should be visible when an error appears",c=(i,g)=>(l(g),{name:i,error:g});return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"3rd party validation message when inputting invalid value:"}),e.jsx(p,{name:"example",onChange:i=>a(i.target.value),error:!t||o,validationCallback:c,value:n}),e.jsx("br",{}),e.jsx(j,{}),e.jsx("h4",{children:"Original validation message: "}),e.jsx(fe,{message:{heading:t,visible:!0}})]})},X=()=>{const[n,a]=d.useState("123|m"),[t,l]=d.useState(""),[o,c]=d.useState("km"),i=()=>{c("ft"),l("placeholder"),a("|m")};return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"Empty value case:"}),e.jsx(p,{name:"example",onChange:g=>a(g.target.value),value:n,allowEmpty:!0,placeholder:t,initUnit:o,unitkey:"length"}),e.jsx("br",{}),e.jsx(j,{}),e.jsx(m,{label:"Change value |m and unit ft",onClick:()=>i()})]})},ee=()=>{const[n,a]=d.useState("123|m"),[t,l]=d.useState("m");return e.jsxs(e.Fragment,{children:[e.jsx(p,{name:"example",onChange:o=>a(o.target.value),value:n,initUnit:t,unitkey:"length",onSwitchUnit:l}),e.jsx(j,{}),e.jsx(p,{name:"example",onChange:o=>a(o.target.value),value:n,initUnit:t,unitkey:"length",onSwitchUnit:l})]})},ne=()=>e.jsxs(e.Fragment,{children:[e.jsx(Kn,{faint:!0,children:"Reproduce OW-10614 rounding noise bug when storing values in a different unit to the display unit"}),e.jsx(j,{}),e.jsx(p,{name:"example",onChange:()=>{},value:r.withUnit(r.convertAndGetValue("9750|psi","bar"),"bar"),initUnit:"psi",unitkey:"pressure",unitTemplate:{pressure:"psi"}})]});A.__docgenInfo={description:"",methods:[],displayName:"TestExternalStateChangeWithSynchronizedUnits",props:{name:{required:!0,tsType:{name:"union",raw:"string | { fieldName?: string }",elements:[{name:"string"},{name:"signature",type:"object",raw:"{ fieldName?: string }",signature:{properties:[{key:"fieldName",value:{name:"string",required:!1}}]}}]},description:""},placeholder:{required:!1,tsType:{name:"string"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},disabledUnit:{required:!1,tsType:{name:"boolean"},description:""},error:{required:!1,tsType:{name:"union",raw:"string | null | boolean",elements:[{name:"string"},{name:"null"},{name:"boolean"}]},description:""},left:{required:!1,tsType:{name:"boolean"},description:""},small:{required:!1,tsType:{name:"boolean"},description:""},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""},value:{required:!1,tsType:{name:"string"},description:""},unitkey:{required:!1,tsType:{name:"string"},description:""},initUnit:{required:!1,tsType:{name:"string"},description:""},noConversion:{required:!1,tsType:{name:"boolean"},description:""},doNotConvertValue:{required:!1,tsType:{name:"boolean"},description:""},testId:{required:!1,tsType:{name:"string"},description:""},warning:{required:!1,tsType:{name:"union",raw:"string | boolean | null",elements:[{name:"string"},{name:"boolean"},{name:"null"}]},description:""},predefinedOptions:{required:!1,tsType:{name:"union",raw:"IPredefinedOption[] | null",elements:[{name:"Array",elements:[{name:"IPredefinedOption"}],raw:"IPredefinedOption[]"},{name:"null"}]},description:""},initialPredefinedOption:{required:!1,tsType:{name:"boolean"},description:""},shouldLinkAutomaticly:{required:!1,tsType:{name:"boolean"},description:""},selectedPredefinedOptionKey:{required:!1,tsType:{name:"string"},description:""},validationCallback:{required:!1,tsType:{name:"signature",type:"function",raw:`(
4
+ ) => { name: string; error: string | null }`,signature:{arguments:[{type:{name:"string"},name:"name"},{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"message"}],return:{name:"signature",type:"object",raw:"{ name: string; error: string | null }",signature:{properties:[{key:"name",value:{name:"string",required:!0}},{key:"error",value:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}],required:!0}}]}}}},description:"",defaultValue:{value:"() => ({ name: '', error: null })",computed:!1}},disabledValidation:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},allowEmpty:{required:!1,tsType:{name:"boolean"},description:"",defaultValue:{value:"false",computed:!1}},autoValue:{required:!1,tsType:{name:"string"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(event: ChangeEvent<HTMLInputElement> | ICustomChangeEvent) => void",signature:{arguments:[{type:{name:"union",raw:"ChangeEvent<HTMLInputElement> | ICustomChangeEvent",elements:[{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent<HTMLInputElement>"},{name:"ICustomChangeEvent"}]},name:"event"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},onSwitchUnit:{required:!1,tsType:{name:"signature",type:"function",raw:"(unit: string) => void",signature:{arguments:[{type:{name:"string"},name:"unit"}],return:{name:"void"}}},description:"",defaultValue:{value:"() => {}",computed:!1}},onClick:{required:!1,tsType:{name:"MouseEventHandler",elements:[{name:"HTMLInputElement"}],raw:"MouseEventHandler<HTMLInputElement>"},description:"",defaultValue:{value:"() => {}",computed:!1}},onFocus:{required:!1,tsType:{name:"FocusEventHandler",elements:[{name:"HTMLInputElement"}],raw:"FocusEventHandler<HTMLInputElement>"},description:"",defaultValue:{value:"() => {}",computed:!1}},unitTemplate:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"any"}],raw:"Record<string, any>"},description:""}}};const{useArgs:At}=__STORYBOOK_MODULE_PREVIEW_API__,pa={title:"Basic/UnitInput",component:p,args:{name:"example",unitkey:"length",value:"123|m"}},C=n=>{const[a,t]=At(),l=o=>{t({value:o.target.value})};return e.jsx(p,{...n,onChange:l})},ie=C.bind({}),O=C.bind({});O.args={unitkey:"height",unitTemplate:{height:"ft"}};const W=C.bind({});W.args={value:'123|"',unitkey:'"'};const B=C.bind({});B.args={width:"180px"};const R=C.bind({});R.args={noConversion:!0};const H=C.bind({});H.args={small:!0};const L=C.bind({});L.args={error:"Error message goes here"};const K=C.bind({});K.args={value:"asas123asd|%"};const N=C.bind({});N.args={disabled:!0,disabledUnit:!0};N.parameters={docs:{description:{story:"Each part of UnitInput can be disabled separately. `disabled` disables only the main text input, `disabledUnit` disables only the unit menu. **Needs review (comes from Reservoir input requirements)**"}}};const $=C.bind({});$.args={disabled:!0,disabledUnit:!0,noConversion:!0};const z=C.bind({});z.args={disabledUnit:!0,unitkey:void 0};const G=C.bind({});G.args={disabledUnit:!0,unitkey:"length"};const J=C.bind({});J.args={disabledUnit:!1,disabled:!0};const A=n=>{const[a,t]=d.useState("123|m"),[l,o]=d.useState("223|m"),[m,i]=d.useState("ft");return e.jsxs(e.Fragment,{children:[e.jsx(c,{label:"Change initUnit",onClick:()=>i(m==="m"?"ft":"m")}),e.jsx(V,{}),e.jsx(c,{label:"Change value",onClick:()=>t(a==="123|m"?"456|m":"123|m")}),e.jsx(V,{}),e.jsx(p,{name:"example",onChange:g=>{t(g.target.value)},unitkey:"length",value:a,initUnit:m,onSwitchUnit:i}),e.jsx(V,{}),e.jsx(p,{name:"example2",onChange:g=>{o(g.target.value)},unitkey:"length",value:l,initUnit:m,onSwitchUnit:i}),e.jsx(yt,{}),e.jsx("h4",{children:"Without initUnit property (taken from the redux store)"}),e.jsx(p,{name:"example",onChange:g=>{t(g.target.value)},unitkey:"length",value:a,onSwitchUnit:i}),e.jsx(p,{name:"example2",onChange:g=>{o(g.target.value)},unitkey:"length",value:l,onSwitchUnit:i})]})};A.parameters={docs:{description:{story:"[OW-4380](https://oliasoft.atlassian.net/browse/OW-4380?atlOrigin=eyJpIjoiMmM1N2RkNWU3Mjk5NDYxY2E0YzhkMzk5ZTVmZTJhMjciLCJwIjoiaiJ9)"}}};const Y=C.bind({});Y.args={predefinedOptions:[{label:"bottom of casing",value:"12|km"},{label:"mud weight at shoe depth",value:"8|mm"}]};const q=()=>{const n="500px",[a,t]=d.useState(void 0);return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"Different edge cases such as +/- infinity, undefined, NaN, null:"}),e.jsxs($n,{children:[e.jsxs(he,{width:"25%",children:[e.jsx(c,{label:"Change value infinity",onClick:()=>t(1/0)}),e.jsx("br",{}),e.jsx(c,{label:"Change value -infinity",onClick:()=>t(-1/0)}),e.jsx("br",{}),e.jsx(c,{label:"Change value null",onClick:()=>t(null)}),e.jsx("br",{}),e.jsx(c,{label:"Change value - undefined",onClick:()=>t(void 0)}),e.jsx("br",{}),e.jsx(c,{label:"Change value - NaN",onClick:()=>t(NaN)}),e.jsx("br",{}),e.jsx(c,{label:"Change value - nothing (empty)",onClick:()=>t(void 0)}),e.jsx("br",{}),e.jsx(c,{label:"Change value - empty string",onClick:()=>t("")})]}),e.jsxs(he,{width:"25%",children:[e.jsx(c,{label:"Change value infinity|m",onClick:()=>t("Infinity|m")}),e.jsx("br",{}),e.jsx(c,{label:"Change value -infinity|m",onClick:()=>t("-Infinity|m")}),e.jsx("br",{}),e.jsx(c,{label:"Change value null|m",onClick:()=>t("null|m")}),e.jsx("br",{}),e.jsx(c,{label:"Change value - undefined|m",onClick:()=>t("undefined|m")}),e.jsx("br",{}),e.jsx(c,{label:"Change value - NaN|m",onClick:()=>t("NaN|m")}),e.jsx("br",{}),e.jsx(c,{label:"Change value - nothing (empty)|m",onClick:()=>t("|m")})]})]}),e.jsx("br",{}),e.jsx(w,{label:"Normal PUI",children:e.jsx(p,{name:"example1",onChange:l=>t(l.target.value),value:a,unitkey:"length",width:n,placeholder:"value|unit"})}),e.jsx(w,{label:"Disabled validation",children:e.jsx(p,{name:"example2",onChange:l=>t(l.target.value),value:a,unitkey:"length",disabledValidation:!0,width:n})}),e.jsx(w,{label:"Disabled validation and manual error",children:e.jsx(p,{name:"example3",onChange:l=>t(l.target.value),value:a,unitkey:"length",error:"test",disabledValidation:!0,width:n})}),e.jsx(ve,{message:{heading:"Current value inside PUI: "+a,visible:!0}})]})},Z=()=>{const n="500px",[a,t]=d.useState("1|m"),[l,o]=d.useState("|m"),m="123|km";return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"Different cases for automatic (placeholder) values:"}),e.jsx($n,{children:e.jsxs(he,{width:"25%",children:[e.jsx(c,{label:"Change value to ''",onClick:()=>t("")}),e.jsx("br",{}),e.jsx(c,{label:"Change value to 1",onClick:()=>t("1")}),e.jsx("br",{}),e.jsx(c,{label:"Change value to 1|m",onClick:()=>t("1|m")}),e.jsx("br",{}),e.jsx(c,{label:"Change value to |m - empty value",onClick:()=>t("|m")})]})}),e.jsx("br",{}),e.jsx(w,{label:"Normal PUI (placeholder + auto)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,placeholder:"value|unit",autoValue:m})}),e.jsx(w,{label:"Normal PUI (only auto)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,autoValue:m})}),e.jsx(w,{label:"Empty PUI with autoValue",children:e.jsx(p,{name:"example1",onChange:i=>o(i.target.value),value:l,unitkey:"length",width:n,autoValue:m})}),e.jsx(w,{label:"Normal PUI (only placeholder)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,placeholder:"Placeholder test"})}),e.jsx(w,{label:"Normal PUI (placeholder + allowEmpty)",children:e.jsx(p,{name:"example1",onChange:i=>t(i.target.value),value:a,unitkey:"length",width:n,placeholder:"Placeholder test",allowEmpty:!0})}),e.jsx(ve,{message:{heading:"Current value inside PUI: "+a,visible:!0}})]})};q.parameters={docs:{description:{story:"[OW-8884](https://oliasoft.atlassian.net/browse/OW-8884)"}}};const Q=()=>{const[n,a]=d.useState("123|%"),[t,l]=d.useState(null),o="This should be visible when an error appears",m=(i,g)=>(l(g),{name:i,error:g});return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"3rd party validation message when inputting invalid value:"}),e.jsx(p,{name:"example",onChange:i=>a(i.target.value),error:!t||o,validationCallback:m,value:n}),e.jsx("br",{}),e.jsx(V,{}),e.jsx("h4",{children:"Original validation message: "}),e.jsx(ve,{message:{heading:t,visible:!0}})]})},X=()=>{const[n,a]=d.useState("123|m"),[t,l]=d.useState(""),[o,m]=d.useState("km"),i=()=>{m("ft"),l("placeholder"),a("|m")};return e.jsxs(e.Fragment,{children:[e.jsx("h4",{children:"Empty value case:"}),e.jsx(p,{name:"example",onChange:g=>a(g.target.value),value:n,allowEmpty:!0,placeholder:t,initUnit:o,unitkey:"length"}),e.jsx("br",{}),e.jsx(V,{}),e.jsx(c,{label:"Change value |m and unit ft",onClick:()=>i()})]})},ee=()=>{const[n,a]=d.useState("123|m"),[t,l]=d.useState("m");return e.jsxs(e.Fragment,{children:[e.jsx(p,{name:"example",onChange:o=>a(o.target.value),value:n,initUnit:t,unitkey:"length",onSwitchUnit:l}),e.jsx(V,{}),e.jsx(p,{name:"example",onChange:o=>a(o.target.value),value:n,initUnit:t,unitkey:"length",onSwitchUnit:l})]})},ne=()=>e.jsxs(e.Fragment,{children:[e.jsx(Kn,{faint:!0,children:"Reproduce OW-10614 rounding noise bug when storing values in a different unit to the display unit"}),e.jsx(V,{}),e.jsx(p,{name:"example",onChange:()=>{},value:r.withUnit(r.convertAndGetValue("9750|psi","bar"),"bar"),initUnit:"psi",unitkey:"pressure",unitTemplate:{pressure:"psi"}})]});A.__docgenInfo={description:"",methods:[],displayName:"TestExternalStateChangeWithSynchronizedUnits",props:{name:{required:!0,tsType:{name:"union",raw:"string | { fieldName?: string }",elements:[{name:"string"},{name:"signature",type:"object",raw:"{ fieldName?: string }",signature:{properties:[{key:"fieldName",value:{name:"string",required:!1}}]}}]},description:""},placeholder:{required:!1,tsType:{name:"string"},description:""},disabled:{required:!1,tsType:{name:"boolean"},description:""},disabledUnit:{required:!1,tsType:{name:"boolean"},description:""},error:{required:!1,tsType:{name:"union",raw:"string | null | boolean",elements:[{name:"string"},{name:"null"},{name:"boolean"}]},description:""},left:{required:!1,tsType:{name:"boolean"},description:""},small:{required:!1,tsType:{name:"boolean"},description:""},width:{required:!1,tsType:{name:"union",raw:"string | number",elements:[{name:"string"},{name:"number"}]},description:""},value:{required:!1,tsType:{name:"string"},description:""},unitkey:{required:!1,tsType:{name:"string"},description:""},initUnit:{required:!1,tsType:{name:"string"},description:""},noConversion:{required:!1,tsType:{name:"boolean"},description:""},doNotConvertValue:{required:!1,tsType:{name:"boolean"},description:""},testId:{required:!1,tsType:{name:"string"},description:""},warning:{required:!1,tsType:{name:"union",raw:"string | boolean | null",elements:[{name:"string"},{name:"boolean"},{name:"null"}]},description:""},predefinedOptions:{required:!1,tsType:{name:"union",raw:"IPredefinedOption[] | null",elements:[{name:"Array",elements:[{name:"IPredefinedOption"}],raw:"IPredefinedOption[]"},{name:"null"}]},description:""},initialPredefinedOption:{required:!1,tsType:{name:"boolean"},description:""},shouldLinkAutomaticly:{required:!1,tsType:{name:"boolean"},description:""},selectedPredefinedOptionKey:{required:!1,tsType:{name:"string"},description:""},validationCallback:{required:!1,tsType:{name:"signature",type:"function",raw:`(
5
5
  name: string,
6
6
  message: string | null,
7
7
  ) => { name: string; error: string | null }`,signature:{arguments:[{type:{name:"string"},name:"name"},{type:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}]},name:"message"}],return:{name:"signature",type:"object",raw:"{ name: string; error: string | null }",signature:{properties:[{key:"name",value:{name:"string",required:!0}},{key:"error",value:{name:"union",raw:"string | null",elements:[{name:"string"},{name:"null"}],required:!0}}]}}}},description:""},disabledValidation:{required:!1,tsType:{name:"boolean"},description:""},allowEmpty:{required:!1,tsType:{name:"boolean"},description:""},autoValue:{required:!1,tsType:{name:"string"},description:""},onChange:{required:!0,tsType:{name:"signature",type:"function",raw:"(event: ChangeEvent<HTMLInputElement> | ICustomChangeEvent) => void",signature:{arguments:[{type:{name:"union",raw:"ChangeEvent<HTMLInputElement> | ICustomChangeEvent",elements:[{name:"ChangeEvent",elements:[{name:"HTMLInputElement"}],raw:"ChangeEvent<HTMLInputElement>"},{name:"ICustomChangeEvent"}]},name:"event"}],return:{name:"void"}}},description:""},onSwitchUnit:{required:!1,tsType:{name:"signature",type:"function",raw:"(unit: string) => void",signature:{arguments:[{type:{name:"string"},name:"unit"}],return:{name:"void"}}},description:""},onClick:{required:!1,tsType:{name:"MouseEventHandler",elements:[{name:"HTMLInputElement"}],raw:"MouseEventHandler<HTMLInputElement>"},description:""},onFocus:{required:!1,tsType:{name:"FocusEventHandler",elements:[{name:"HTMLInputElement"}],raw:"FocusEventHandler<HTMLInputElement>"},description:""},unitTemplate:{required:!1,tsType:{name:"Record",elements:[{name:"string"},{name:"any"}],raw:"Record<string, any>"},description:""}}};q.__docgenInfo={description:"",methods:[],displayName:"TestEdgeCases"};Z.__docgenInfo={description:"",methods:[],displayName:"AutomaticValues"};Q.__docgenInfo={description:"",methods:[],displayName:"ValidationCallback"};X.__docgenInfo={description:"",methods:[],displayName:"AllowEmptyPUI"};ee.__docgenInfo={description:"",methods:[],displayName:"onSwitchUnit"};ne.__docgenInfo={description:"",methods:[],displayName:"OW_10614TestCase"};var Me,De,_e;ie.parameters={...ie.parameters,docs:{...(Me=ie.parameters)==null?void 0:Me.docs,source:{originalSource:`args => {
@@ -76,7 +76,7 @@ import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as d}from"./index-DhsZuJv
76
76
  });
77
77
  };
78
78
  return <UnitInput {...args} onChange={handleChange} />;
79
- }`,...(un=(ln=N.parameters)==null?void 0:ln.docs)==null?void 0:un.source}}};var on,dn,cn;$.parameters={...$.parameters,docs:{...(on=$.parameters)==null?void 0:on.docs,source:{originalSource:`args => {
79
+ }`,...(un=(ln=N.parameters)==null?void 0:ln.docs)==null?void 0:un.source}}};var on,dn,mn;$.parameters={...$.parameters,docs:{...(on=$.parameters)==null?void 0:on.docs,source:{originalSource:`args => {
80
80
  const [_, updateArgs] = useArgs();
81
81
  const handleChange = (evt: any) => {
82
82
  updateArgs({
@@ -84,7 +84,7 @@ import{j as e}from"./jsx-runtime-eps93zm2.js";import{r as d}from"./index-DhsZuJv
84
84
  });
85
85
  };
86
86
  return <UnitInput {...args} onChange={handleChange} />;
87
- }`,...(cn=(dn=$.parameters)==null?void 0:dn.docs)==null?void 0:cn.source}}};var mn,pn,gn;z.parameters={...z.parameters,docs:{...(mn=z.parameters)==null?void 0:mn.docs,source:{originalSource:`args => {
87
+ }`,...(mn=(dn=$.parameters)==null?void 0:dn.docs)==null?void 0:mn.source}}};var cn,pn,gn;z.parameters={...z.parameters,docs:{...(cn=z.parameters)==null?void 0:cn.docs,source:{originalSource:`args => {
88
88
  const [_, updateArgs] = useArgs();
89
89
  const handleChange = (evt: any) => {
90
90
  updateArgs({
@@ -509,7 +509,7 @@
509
509
  }
510
510
  </script>
511
511
 
512
- <script type="module" crossorigin src="./assets/iframe-DrtDBpjG.js"></script>
512
+ <script type="module" crossorigin src="./assets/iframe-qFXWLeOa.js"></script>
513
513
  </head>
514
514
 
515
515
  <body>
@@ -1 +1 @@
1
- {"generatedAt":1721720263060,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.12","@vitest/coverage-c8":"0.31.4","eslint-plugin-vitest":null,"eslint-plugin-vitest-globals":"1.5.0","vitest":"1.6.0"},"packageManager":{"type":"yarn","version":"1.22.19"},"typescriptOptions":{"reactDocgen":"react-docgen"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.4","storybookVersionSpecifier":"^8.2.4","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.2.4"},"@storybook/addon-links":{"version":"8.2.4"},"@storybook/preview-api":{"version":"8.2.4"},"@storybook/react":{"version":"8.2.4"},"@storybook/react-vite":{"version":"8.2.4"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"8.2.4"}},"addons":{"@storybook/addon-actions":{"version":"8.2.4"},"@storybook/addon-docs":{"version":"8.2.4"},"storybook-dark-mode":{"version":"4.0.2"}}}
1
+ {"generatedAt":1721721751006,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.12","@vitest/coverage-c8":"0.31.4","eslint-plugin-vitest":null,"eslint-plugin-vitest-globals":"1.5.0","vitest":"1.6.0"},"packageManager":{"type":"yarn","version":"1.22.19"},"typescriptOptions":{"reactDocgen":"react-docgen"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"8.2.4","storybookVersionSpecifier":"^8.2.4","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"8.2.4"},"@storybook/addon-links":{"version":"8.2.4"},"@storybook/preview-api":{"version":"8.2.4"},"@storybook/react":{"version":"8.2.4"},"@storybook/react-vite":{"version":"8.2.4"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"8.2.4"}},"addons":{"@storybook/addon-actions":{"version":"8.2.4"},"@storybook/addon-docs":{"version":"8.2.4"},"storybook-dark-mode":{"version":"4.0.2"}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "4.7.3-beta-5",
3
+ "version": "4.7.3-beta-6",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {