profinansy-ui-lib 3.1.67 → 3.1.68
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.
|
@@ -43,7 +43,7 @@ export declare function useHint({ placement }?: HintOptions): {
|
|
|
43
43
|
};
|
|
44
44
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
45
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
47
47
|
active?: boolean;
|
|
48
48
|
selected?: boolean;
|
|
49
49
|
}) => Record<string, unknown>;
|
|
@@ -47,7 +47,7 @@ export declare function usePopup({ placement, isHover }: {
|
|
|
47
47
|
};
|
|
48
48
|
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
49
49
|
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
50
|
-
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "
|
|
50
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "active" | "selected"> & {
|
|
51
51
|
active?: boolean;
|
|
52
52
|
selected?: boolean;
|
|
53
53
|
}) => Record<string, unknown>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TSegmentControlSize, TSegmentControlType } from './SegmentControl.typed';
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
mode: TSegmentControlType;
|
|
4
|
+
size: TSegmentControlSize;
|
|
4
5
|
isFullWidth: boolean;
|
|
5
6
|
}, never>;
|
|
6
7
|
export declare const Selector: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
package/dist/index.js
CHANGED
|
@@ -530,7 +530,6 @@
|
|
|
530
530
|
font-size: 15px;
|
|
531
531
|
font-weight: 400;
|
|
532
532
|
line-height: 20px;
|
|
533
|
-
caret-color: blue;
|
|
534
533
|
animation: ${()=>l.css`
|
|
535
534
|
${f("740px")} 0.3s ease-in-out forwards
|
|
536
535
|
`};
|
|
@@ -1712,7 +1711,6 @@
|
|
|
1712
1711
|
outline: none;
|
|
1713
1712
|
height: 40px;
|
|
1714
1713
|
min-height: 40px;
|
|
1715
|
-
caret-color: blue;
|
|
1716
1714
|
width: 100%;
|
|
1717
1715
|
font-size: 15px;
|
|
1718
1716
|
font-weight: 400;
|
|
@@ -2997,6 +2995,7 @@
|
|
|
2997
2995
|
background: ${e=>"primary"===e.mode?e.theme.interactiveControls.secondary:e.theme.interactiveControls.accent};
|
|
2998
2996
|
width: ${e=>e.isFullWidth?"100%":"fit-content"};
|
|
2999
2997
|
height: fit-content;
|
|
2998
|
+
max-height: ${e=>"S"===e.size?"28px":"34px"};
|
|
3000
2999
|
`,t.Selector=a.default.div`
|
|
3001
3000
|
height: calc(100% - 4px);
|
|
3002
3001
|
display: inline-block;
|
|
@@ -3052,7 +3051,7 @@
|
|
|
3052
3051
|
margin-left: ${e=>e.isLabel?"4px":"0px"};
|
|
3053
3052
|
position: relative;
|
|
3054
3053
|
z-index: 2;
|
|
3055
|
-
`},2343:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentControl=void 0;const i=o(n(8156)),l=o(n(7760)),u=n(1197),c=n(1608),s=n(1899),d=n(7760),f=n(4103);t.SegmentControl=({style:e,options:t,onChange:n,selectedValue:r,size:a="S",type:o="primary",counterType:p,isFullWidth:h=!1})=>{const[m,v]=(0,i.useState)(0),[g,b]=(0,i.useState)({left:0,width:0}),y=(0,i.useRef)(null),{mode:w}=(0,u.useMode)();(0,i.useEffect)((()=>{if(r){const e=t.findIndex((e=>e.value===r));v(e)}}),[r]),(0,i.useEffect)((()=>{if(!y.current)return;const e=new ResizeObserver((()=>{x(m)}));return e.observe(y.current),()=>e.disconnect()}),[m]);const x=e=>{if(
|
|
3054
|
+
`},2343:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentControl=void 0;const i=o(n(8156)),l=o(n(7760)),u=n(1197),c=n(1608),s=n(1899),d=n(7760),f=n(4103);t.SegmentControl=({style:e,options:t,onChange:n,selectedValue:r,size:a="S",type:o="primary",counterType:p,isFullWidth:h=!1})=>{const[m,v]=(0,i.useState)(0),[g,b]=(0,i.useState)({left:0,width:0}),y=(0,i.useRef)(null),{mode:w}=(0,u.useMode)();(0,i.useEffect)((()=>{if(r){const e=t.findIndex((e=>e.value===r));v(e)}}),[r]),(0,i.useEffect)((()=>{if(!y.current)return;const e=new ResizeObserver((()=>{x(m)}));return e.observe(y.current),()=>e.disconnect()}),[m]);const x=e=>{if(y.current){const t=y.current.querySelector(`[data-index="${e}"]`);if(t){const e=y.current.getBoundingClientRect(),n=t.getBoundingClientRect(),r=n.left-e.left,a=n.width;b({left:r,width:a})}}};return i.default.createElement(c.ThemeProvider,{theme:s.palette[w]},i.default.createElement(l.Container,{style:e,mode:o,isFullWidth:h,ref:y,size:a},t.map(((e,u)=>{const c=(e=>m===e||m-1===e||t.length-1===e)(u);return i.default.createElement(i.default.Fragment,{key:u},i.default.createElement(l.Item,{"data-index":u,size:a,mode:o,isActive:r===e.value,onClick:t=>((e,t,r)=>{v(r),n&&n(e,t)})(e.value,t,u)},!!e.label&&i.default.createElement(l.Text,{variant:"caption-Medium",tag:"span"},e.label),e.icon?i.default.createElement(l.Icon,{isLabel:!!e.label},e.icon):null,void 0!==e.dataCount&&i.default.createElement(f.Counter,{number:e.dataCount,type:p,style:{marginLeft:"4px",position:"relative",zIndex:2}})),t.length-1!==u?i.default.createElement(l.Divider,{isHide:c}):null)})),g.width?i.default.createElement(d.Selector,{mode:o,left:g.left,width:g.width}):null))}},9624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SegmentControl=void 0;var r=n(2343);Object.defineProperty(t,"SegmentControl",{enumerable:!0,get:function(){return r.SegmentControl}})},9540:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CloseButton=t.BottomContent=t.Content=t.Title=t.BackButton=t.LeftWrapper=t.Header=t.Sidebar=t.Layout=t.Wrapper=void 0;const i=o(n(1608)),l=n(1230),u=n(140),c=n(4542);t.Wrapper=i.default.div`
|
|
3056
3055
|
position: fixed;
|
|
3057
3056
|
top: 0;
|
|
3058
3057
|
left: 0;
|