@corva/ui 3.53.0-7 → 3.53.0-8

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react/jsx-runtime"),o=require("classnames"),e=require("react"),c=require("../Button/Button.js"),i=require("../Tooltip/Tooltip.js"),n=require("./useOffsetWellsIcon.js"),r=require("./OffsetWellsButton.scss.js"),t=require("../../icons/iconParkIcons.js");function u(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js"),require("../../icons/customIcons/icons/Global.js"),require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js");var l=u(o),a=[],d=e.forwardRef((function(o,e){var u=o.wells,d=void 0===u?[]:u,j=o.showLimitationsMessage,m=o.label,I=void 0===m?"Offset Wells":m,q=o.onExpand,p=o.expanded,f=o.onClick,h=o.disabled,x=o.isExpandTooltipDisabled,b=o.tooltipTitle,C=o.forceExpandButton,O=o.icon,v=o.testId,F=o.className,k=Array.isArray(d)?d:a,A=n.useOffsetWellsIcon(k,O),y="number"==typeof d?d:d.length,E=!!q&&(y>0||C);return s.jsxs("div",{className:l.default(r.root,F),ref:e,children:[j&&s.jsx(i.Tooltip,{title:"".concat(I," list wasn't populated completely due to technical limitations of the app."),children:s.jsx("span",{className:r.infoIcon,children:s.jsx(t.InfoIcon,{size:20})})}),s.jsx(c.Button,{type:E&&p?"chartColored":"chart",size:"small",disabled:h,onClick:f,testId:v,className:r.button,prefix:A?s.jsx("span",{className:r.icon,children:A}):void 0,suffix:E&&s.jsx(i.Tooltip,{title:"".concat(p?"Collapse":"Expand"," ").concat(I),disabled:x,children:s.jsx("button",{type:"button",onClick:function(s){s.stopPropagation(),null==q||q(!p,s)},disabled:h,className:r.expandButton,children:s.jsx(t.DownIcon,{className:l.default(r.expandIcon,p&&r.expanded)})})}),children:s.jsx(i.Tooltip,{title:null!=b?b:"Edit Offset Wells",className:r.editTooltipOffset,children:s.jsx("span",{children:"".concat(I,": ").concat(y)})})})]})}));exports.OffsetWellsButton=d;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("react/jsx-runtime"),o=require("classnames"),e=require("react"),c=require("../Button/Button.js"),i=require("../Tooltip/Tooltip.js"),n=require("./useOffsetWellsIcon.js"),r=require("./OffsetWellsButton.scss.js"),t=require("../../icons/iconParkIcons.js");function u(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}require("../../icons/customIcons/icons/AddMessage.js"),require("../../icons/customIcons/icons/Attention.js"),require("../../icons/customIcons/icons/Collapse.js"),require("../../icons/customIcons/icons/Dashboard.js"),require("../../icons/customIcons/icons/Expand.js"),require("../../icons/customIcons/icons/FolderClosed.js"),require("../../icons/customIcons/icons/FolderClosedFilled.js"),require("../../icons/customIcons/icons/FolderOpened.js"),require("../../icons/customIcons/icons/GreaterOrEqual.js"),require("../../icons/customIcons/icons/LessOrEqual.js"),require("../../icons/customIcons/icons/Search.js"),require("../../icons/customIcons/icons/SearchOne.js"),require("../../icons/customIcons/icons/Wellhub.js"),require("../../icons/customIcons/icons/MultiRuler.js"),require("../../icons/customIcons/icons/Checkbox.js"),require("../../icons/customIcons/icons/CheckboxChecked.js"),require("../../icons/customIcons/icons/CheckboxIndeterminate.js"),require("../../icons/customIcons/icons/Radio.js"),require("../../icons/customIcons/icons/RadioChecked.js"),require("../../icons/customIcons/icons/SimulFrac.js"),require("../../icons/customIcons/icons/ZipperFrac.js"),require("../../icons/customIcons/icons/CautionFilled.js"),require("../../icons/customIcons/icons/MoreApp.js"),require("../../icons/customIcons/icons/Pad.js"),require("../../icons/customIcons/icons/DrilloutUnit.js"),require("../../icons/customIcons/icons/FracFleet.js"),require("../../icons/customIcons/icons/Global.js"),require("../../icons/customIcons/icons/Program.js"),require("../../icons/customIcons/icons/Rig.js"),require("../../icons/customIcons/icons/Well.js"),require("../../icons/customIcons/icons/Gap.js"),require("../../icons/customIcons/icons/Pin.js"),require("../../icons/customIcons/icons/CloseOneFilled.js"),require("../../icons/customIcons/icons/AttentionFilled.js"),require("../../icons/customIcons/icons/CheckOneFilled.js"),require("../../icons/customIcons/icons/Archive.js"),require("../../icons/customIcons/icons/ArchiveCancel.js"),require("../../icons/customIcons/icons/Unarchive.js"),require("../../icons/customIcons/icons/Archived.js"),require("../../icons/customIcons/icons/InterventionUnit.js"),require("../../icons/customIcons/icons/CloudDelete.js"),require("../../icons/customIcons/icons/Lasso.js"),require("../../icons/customIcons/icons/Radius.js");var l=u(o),a=[],d=e.forwardRef((function(o,e){var u=o.wells,d=void 0===u?[]:u,j=o.showLimitationsMessage,m=o.label,I=void 0===m?"Offset Wells":m,q=o.onExpand,p=o.expanded,f=o.onClick,h=o.disabled,x=o.isExpandTooltipDisabled,b=o.tooltipTitle,C=o.forceExpandButton,O=o.icon,v=o.testId,F=o.className,k=Array.isArray(d)?d:a,y=n.useOffsetWellsIcon(k,O),A="number"==typeof d?d:d.length,E=!!q&&(A>0||C),N="string"!=typeof I;return s.jsxs("div",{className:l.default(r.root,F),ref:e,children:[j&&s.jsx(i.Tooltip,{title:"".concat(I," list wasn't populated completely due to technical limitations of the app."),children:s.jsx("span",{className:r.infoIcon,children:s.jsx(t.InfoIcon,{size:20})})}),s.jsx(c.Button,{type:E&&p?"chartColored":"chart",size:"small",disabled:h,onClick:f,testId:v,className:r.button,prefix:y?s.jsx("span",{className:r.icon,children:y}):void 0,suffix:E&&s.jsx(i.Tooltip,{title:"".concat(p?"Collapse":"Expand"," ").concat(I),disabled:x,children:s.jsx("button",{type:"button",onClick:function(s){s.stopPropagation(),null==q||q(!p,s)},disabled:h,className:r.expandButton,children:s.jsx(t.DownIcon,{className:l.default(r.expandIcon,p&&r.expanded)})})}),children:s.jsx(i.Tooltip,{title:null!=b?b:"Edit Offset Wells",className:r.editTooltipOffset,children:s.jsxs("span",{children:[I,N||!I?"":": ",A]})})})]})}));exports.OffsetWellsButton=d;
2
2
  //# sourceMappingURL=OffsetWellsButton.js.map
@@ -1,4 +1,4 @@
1
- import { MouseEvent, MouseEventHandler, ReactElement } from 'react';
1
+ import { MouseEvent, MouseEventHandler, ReactElement, ReactNode } from 'react';
2
2
  export type OffsetWell = {
3
3
  id: number;
4
4
  [key: string]: unknown;
@@ -21,7 +21,7 @@ export type OffsetWellsButtonProps = {
21
21
  /**
22
22
  * Custom label for the button (defaults to "Offset Wells")
23
23
  */
24
- label?: string;
24
+ label?: ReactNode;
25
25
  /**
26
26
  * Disables all interactions with the component
27
27
  */
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellsButton.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAWhF,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7E;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,eAAO,MAAM,iBAAiB,mHA8E7B,CAAC"}
1
+ {"version":3,"file":"OffsetWellsButton.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAW3F,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,CAAC,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAC7E;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,eAAO,MAAM,iBAAiB,mHAoF7B,CAAC"}
@@ -1,2 +1,2 @@
1
- import{jsxs as o,jsx as s}from"react/jsx-runtime";import c from"classnames";import{forwardRef as i}from"react";import{Button as n}from"../Button/Button.js";import{Tooltip as t}from"../Tooltip/Tooltip.js";import{useOffsetWellsIcon as e}from"./useOffsetWellsIcon.js";import m from"./OffsetWellsButton.scss.js";import{InfoIcon as r,DownIcon as l}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";var p=[],a=i((function(i,a){var u=i.wells,d=void 0===u?[]:u,I=i.showLimitationsMessage,j=i.label,h=void 0===j?"Offset Wells":j,f=i.onExpand,C=i.expanded,b=i.onClick,x=i.disabled,F=i.isExpandTooltipDisabled,v=i.tooltipTitle,O=i.forceExpandButton,k=i.icon,A=i.testId,E=i.className,N=Array.isArray(d)?d:p,g=e(N,k),y="number"==typeof d?d:d.length,W=!!f&&(y>0||O);return o("div",{className:c(m.root,E),ref:a,children:[I&&s(t,{title:"".concat(h," list wasn't populated completely due to technical limitations of the app."),children:s("span",{className:m.infoIcon,children:s(r,{size:20})})}),s(n,{type:W&&C?"chartColored":"chart",size:"small",disabled:x,onClick:b,testId:A,className:m.button,prefix:g?s("span",{className:m.icon,children:g}):void 0,suffix:W&&s(t,{title:"".concat(C?"Collapse":"Expand"," ").concat(h),disabled:F,children:s("button",{type:"button",onClick:function(o){o.stopPropagation(),null==f||f(!C,o)},disabled:x,className:m.expandButton,children:s(l,{className:c(m.expandIcon,C&&m.expanded)})})}),children:s(t,{title:null!=v?v:"Edit Offset Wells",className:m.editTooltipOffset,children:s("span",{children:"".concat(h,": ").concat(y)})})})]})}));export{a as OffsetWellsButton};
1
+ import{jsxs as o,jsx as s}from"react/jsx-runtime";import c from"classnames";import{forwardRef as i}from"react";import{Button as n}from"../Button/Button.js";import{Tooltip as t}from"../Tooltip/Tooltip.js";import{useOffsetWellsIcon as e}from"./useOffsetWellsIcon.js";import m from"./OffsetWellsButton.scss.js";import{InfoIcon as r,DownIcon as l}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/SearchOne.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/DrilloutUnit.js";import"../../icons/customIcons/icons/FracFleet.js";import"../../icons/customIcons/icons/Global.js";import"../../icons/customIcons/icons/Program.js";import"../../icons/customIcons/icons/Rig.js";import"../../icons/customIcons/icons/Well.js";import"../../icons/customIcons/icons/Gap.js";import"../../icons/customIcons/icons/Pin.js";import"../../icons/customIcons/icons/CloseOneFilled.js";import"../../icons/customIcons/icons/AttentionFilled.js";import"../../icons/customIcons/icons/CheckOneFilled.js";import"../../icons/customIcons/icons/Archive.js";import"../../icons/customIcons/icons/ArchiveCancel.js";import"../../icons/customIcons/icons/Unarchive.js";import"../../icons/customIcons/icons/Archived.js";import"../../icons/customIcons/icons/InterventionUnit.js";import"../../icons/customIcons/icons/CloudDelete.js";import"../../icons/customIcons/icons/Lasso.js";import"../../icons/customIcons/icons/Radius.js";var p=[],a=i((function(i,a){var u=i.wells,d=void 0===u?[]:u,I=i.showLimitationsMessage,j=i.label,f=void 0===j?"Offset Wells":j,h=i.onExpand,C=i.expanded,b=i.onClick,x=i.disabled,F=i.isExpandTooltipDisabled,v=i.tooltipTitle,O=i.forceExpandButton,k=i.icon,A=i.testId,E=i.className,N=Array.isArray(d)?d:p,g=e(N,k),y="number"==typeof d?d:d.length,W=!!h&&(y>0||O),B="string"!=typeof f;return o("div",{className:c(m.root,E),ref:a,children:[I&&s(t,{title:"".concat(f," list wasn't populated completely due to technical limitations of the app."),children:s("span",{className:m.infoIcon,children:s(r,{size:20})})}),s(n,{type:W&&C?"chartColored":"chart",size:"small",disabled:x,onClick:b,testId:A,className:m.button,prefix:g?s("span",{className:m.icon,children:g}):void 0,suffix:W&&s(t,{title:"".concat(C?"Collapse":"Expand"," ").concat(f),disabled:F,children:s("button",{type:"button",onClick:function(o){o.stopPropagation(),null==h||h(!C,o)},disabled:x,className:m.expandButton,children:s(l,{className:c(m.expandIcon,C&&m.expanded)})})}),children:s(t,{title:null!=v?v:"Edit Offset Wells",className:m.editTooltipOffset,children:o("span",{children:[f,B||!f?"":": ",y]})})})]})}));export{a as OffsetWellsButton};
2
2
  //# sourceMappingURL=OffsetWellsButton.js.map
@@ -5,11 +5,10 @@ type Props = ComponentProps<typeof OffsetWellsButton>;
5
5
  declare const meta: Meta<Props>;
6
6
  export default meta;
7
7
  export declare const Default: (props: Props) => JSX.Element;
8
+ export declare const ExpandCollapse: () => JSX.Element;
8
9
  export declare const WellCounts: () => JSX.Element;
9
10
  export declare const CustomLabels: () => JSX.Element;
10
11
  export declare const Icons: () => JSX.Element;
11
- export declare const ExpandCollapse: () => JSX.Element;
12
- export declare const Disabled: () => JSX.Element;
13
12
  export declare const LimitationsMessage: () => JSX.Element;
14
13
  export declare const Tooltips: () => JSX.Element;
15
14
  //# sourceMappingURL=OffsetWellsButton.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OffsetWellsButton.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAKtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAuDF,eAAe,IAAI,CAAC;AAGpB,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,gBAcnC,CAAC;AAEF,eAAO,MAAM,UAAU,mBAwBtB,CAAC;AAOF,eAAO,MAAM,YAAY,mBAiCxB,CAAC;AAOF,eAAO,MAAM,KAAK,mBAsBjB,CAAC;AAOF,eAAO,MAAM,cAAc,mBA+B1B,CAAC;AAOF,eAAO,MAAM,QAAQ,mBAiBpB,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBAuB9B,CAAC;AAOF,eAAO,MAAM,QAAQ,mBAwBpB,CAAC"}
1
+ {"version":3,"file":"OffsetWellsButton.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/OffsetWellsButton/OffsetWellsButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AAKjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAIxD,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAOtD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAuDF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,gBAcnC,CAAC;AAEF,eAAO,MAAM,cAAc,mBAkB1B,CAAC;AAOF,eAAO,MAAM,UAAU,mBAKtB,CAAC;AAOF,eAAO,MAAM,YAAY,mBAgBxB,CAAC;AASF,eAAO,MAAM,KAAK,mBAOjB,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBAE9B,CAAC;AAQF,eAAO,MAAM,QAAQ,mBAEpB,CAAC"}
@@ -227,7 +227,7 @@ const validateDsn = (dsn) => {
227
227
 
228
228
  const MCP_SERVER_VERSION = '1.0.0';
229
229
 
230
- var version = "3.53.0-7";
230
+ var version = "3.53.0-8";
231
231
 
232
232
  const CORVA_UI_VERSION = version;
233
233
 
@@ -5017,7 +5017,7 @@ var componentsV2Data = [
5017
5017
  },
5018
5018
  {
5019
5019
  name: "label",
5020
- type: "string",
5020
+ type: "ReactNode",
5021
5021
  required: false,
5022
5022
  description: "Custom label for the button (defaults to \"Offset Wells\")"
5023
5023
  },
@@ -5070,40 +5070,35 @@ var componentsV2Data = [
5070
5070
  description: "",
5071
5071
  code: "{\n const [expanded, setExpanded] = useState(props.expanded || false);\n\n return (\n <OffsetWellsButton\n {...props}\n expanded={expanded}\n onExpand={(newExpanded, ...rest) => {\n setExpanded(newExpanded);\n props.onExpand?.(newExpanded, ...rest);\n }}\n onClick={props.onClick}\n />\n );\n}"
5072
5072
  },
5073
+ {
5074
+ name: "ExpandCollapse",
5075
+ description: "Expand chevron/clickable area is controlled by the `onExpand` prop.",
5076
+ code: "{\n const [expanded, setExpanded] = useState(false);\n\n return (\n <SbColumn>\n <Text size={12} tagName=\"div\" color=\"T8\">\n Currently: {expanded ? 'Expanded' : 'Collapsed'}\n </Text>\n <OffsetWellsButton\n wells={[]}\n forceExpandButton\n expanded={expanded}\n onClick={noop}\n onExpand={setExpanded}\n />\n <OffsetWellsButton wells={mockWells(6)} onClick={noop} expanded={expanded} />\n </SbColumn>\n );\n}"
5077
+ },
5073
5078
  {
5074
5079
  name: "WellCounts",
5075
- description: "Different well count values and their behavior",
5076
- code: "<SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>No Wells</strong>\n </p>\n <OffsetWellsButton wells={[]} onClick={() => {}} />\n <p style={{ fontSize: '12px', color: '#666' }}>No expand button shown</p>\n </div>\n <div>\n <p>\n <strong>Few Wells</strong>\n </p>\n <OffsetWellsButton wells={mockWells(3)} onClick={() => {}} onExpand={() => {}} />\n </div>\n <div>\n <p>\n <strong>Many Wells</strong>\n </p>\n <OffsetWellsButton wells={mockWells(25)} onClick={() => {}} onExpand={() => {}} />\n </div>\n </SbRow>\n </SbColumn>"
5080
+ description: "Component shows its expand button if `wells` prop has a \"non-empty\" value",
5081
+ code: "<SbColumn>\n <OffsetWellsButton wells={mockWells(3)} onClick={noop} onExpand={noop} />\n <OffsetWellsButton wells={[]} onClick={noop} />\n </SbColumn>"
5077
5082
  },
5078
5083
  {
5079
5084
  name: "CustomLabels",
5080
- description: "Different label configurations",
5081
- code: "<SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>Default Label</strong>\n </p>\n <OffsetWellsButton wells={mockWells(5)} onClick={() => {}} onExpand={() => {}} />\n </div>\n <div>\n <p>\n <strong>Custom Label</strong>\n </p>\n <OffsetWellsButton\n wells={mockWells(3)}\n label=\"Parent Wells\"\n onClick={() => {}}\n onExpand={() => {}}\n />\n </div>\n <div>\n <p>\n <strong>Long Label</strong>\n </p>\n <OffsetWellsButton\n wells={mockWells(2)}\n label=\"Very Long Well Description\"\n onClick={() => {}}\n onExpand={() => {}}\n />\n </div>\n </SbRow>\n </SbColumn>"
5085
+ description: "You can pass custom label as a string or a `ReactNode` (useful for responsivity). \n\nComponent will add colon to label automatically if a string is passed",
5086
+ code: "<SbColumn>\n <OffsetWellsButton wells={mockWells(5)} onClick={noop} onExpand={noop} />\n <OffsetWellsButton wells={mockWells(3)} label=\"Parent Wells\" onClick={noop} onExpand={noop} />\n <OffsetWellsButton wells={mockWells(2)} label=\"\" onClick={noop} onExpand={noop} />\n <OffsetWellsButton\n wells={mockWells(2)}\n label={\n <SbPlaceholder style={{ display: 'inline-block', width: 'auto', padding: '0 8px' }}>\n Label:\n </SbPlaceholder>\n }\n onClick={noop}\n onExpand={noop}\n />\n </SbColumn>"
5082
5087
  },
5083
5088
  {
5084
5089
  name: "Icons",
5085
- description: "Different icon options",
5086
- code: "<SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>Default Well Icon</strong>\n </p>\n <OffsetWellsButton wells={mockWells(4)} onClick={() => {}} onExpand={() => {}} />\n </div>\n <div>\n <p>\n <strong>Global Icon</strong>\n </p>\n <OffsetWellsButton\n wells={mockWells(4)}\n icon={<Global size={20} />}\n onClick={() => {}}\n onExpand={() => {}}\n />\n </div>\n </SbRow>\n </SbColumn>"
5087
- },
5088
- {
5089
- name: "ExpandCollapse",
5090
- description: "Expand and collapse functionality",
5091
- code: "{\n const [expanded, setExpanded] = useState(false);\n\n return (\n <SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>Interactive Expand/Collapse</strong>\n </p>\n <OffsetWellsButton\n wells={[]}\n forceExpandButton\n expanded={expanded}\n onClick={() => {}}\n onExpand={setExpanded}\n />\n <p style={{ fontSize: '12px', color: '#666' }}>\n Currently: {expanded ? 'Expanded' : 'Collapsed'}\n </p>\n </div>\n <div>\n <p>\n <strong>No Expand Function</strong>\n </p>\n <OffsetWellsButton wells={mockWells(6)} onClick={() => {}} />\n <p style={{ fontSize: '12px', color: '#666' }}>No expand button</p>\n </div>\n </SbRow>\n </SbColumn>\n );\n}"
5092
- },
5093
- {
5094
- name: "Disabled",
5095
- description: "Enabled vs disabled component states",
5096
- code: "<SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>Enabled</strong>\n </p>\n <OffsetWellsButton wells={mockWells(4)} onClick={() => {}} onExpand={() => {}} />\n </div>\n <div>\n <p>\n <strong>Disabled</strong>\n </p>\n <OffsetWellsButton wells={mockWells(4)} disabled onClick={() => {}} onExpand={() => {}} />\n </div>\n </SbRow>\n </SbColumn>"
5090
+ description: "You can pass a custom icon using the `icon` prop",
5091
+ code: "<OffsetWellsButton\n wells={mockWells(4)}\n icon={<Global size={20} />}\n onClick={noop}\n onExpand={noop}\n />"
5097
5092
  },
5098
5093
  {
5099
5094
  name: "LimitationsMessage",
5100
- description: "Optional limitations warning indicator",
5101
- code: "<SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>Without Warning</strong>\n </p>\n <OffsetWellsButton wells={mockWells(8)} onClick={() => {}} onExpand={() => {}} />\n </div>\n <div>\n <p>\n <strong>With Limitations Warning</strong>\n </p>\n <OffsetWellsButton\n wells={mockWells(8)}\n showLimitationsMessage\n onClick={() => {}}\n onExpand={() => {}}\n />\n <p style={{ fontSize: '12px', color: '#666' }}>Hover info icon for tooltip</p>\n </div>\n </SbRow>\n </SbColumn>"
5095
+ description: "You can show the limitations warning indicator by providing the `showLimitationsMessage` prop.",
5096
+ code: "<OffsetWellsButton wells={mockWells(8)} onClick={noop} onExpand={noop} showLimitationsMessage />"
5102
5097
  },
5103
5098
  {
5104
5099
  name: "Tooltips",
5105
- description: "Tooltip behavior and configuration",
5106
- code: "<SbColumn>\n <SbRow>\n <div>\n <p>\n <strong>With Tooltips</strong>\n </p>\n <OffsetWellsButton wells={mockWells(5)} onClick={() => {}} onExpand={() => {}} />\n <p style={{ fontSize: '12px', color: '#666' }}>Hover buttons for tooltips</p>\n </div>\n <div>\n <p>\n <strong>Expand Tooltip Disabled</strong>\n </p>\n <OffsetWellsButton\n wells={mockWells(5)}\n isExpandTooltipDisabled\n onClick={() => {}}\n onExpand={() => {}}\n />\n <p style={{ fontSize: '12px', color: '#666' }}>No tooltip on expand button</p>\n </div>\n </SbRow>\n </SbColumn>"
5100
+ description: "You can disable expand/collapse tooltips by using the `isExpandTooltipDisabled` prop",
5101
+ code: "<OffsetWellsButton wells={mockWells(5)} onClick={noop} onExpand={noop} isExpandTooltipDisabled />"
5107
5102
  }
5108
5103
  ],
5109
5104
  sourceUrl: "https://github.com/corva-ai/corva-ui/blob/develop/src/componentsV2/OffsetWellsButton/OffsetWellsButton.tsx",