@tap-payments/os-micro-frontend-shared 0.3.217-test.4 → 0.3.218

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 (91) hide show
  1. package/build/_chunks/chunk-6Z6BI3UQ.js +15 -0
  2. package/build/_chunks/chunk-MSVCIIW5.js +2 -0
  3. package/build/_chunks/chunk-UQVXIIIV.js +1 -0
  4. package/build/_chunks/chunk-ZIL2SD2V.js +1 -0
  5. package/build/components/AmountInput/index.js +1 -1
  6. package/build/components/AppServices/index.js +1 -1
  7. package/build/components/AppServicesBar/index.js +1 -1
  8. package/build/components/BrandLogo/index.js +1 -1
  9. package/build/components/ColumnViews/index.js +1 -1
  10. package/build/components/Customer/index.js +1 -1
  11. package/build/components/DateFilter/index.js +1 -1
  12. package/build/components/Discount/index.js +1 -1
  13. package/build/components/FileInputPreview/index.js +1 -1
  14. package/build/components/FilterDropdown/index.js +1 -1
  15. package/build/components/InputBase/index.js +1 -1
  16. package/build/components/ListColumnFilter/index.js +1 -1
  17. package/build/components/ListHeader/index.js +1 -1
  18. package/build/components/MerchantCurrencyDropdown/index.js +1 -1
  19. package/build/components/MerchantLogo/index.js +1 -1
  20. package/build/components/MerchantsDropdown/index.js +1 -1
  21. package/build/components/PaymentSourceFilter/index.js +1 -1
  22. package/build/components/PhoneFilter/index.js +1 -1
  23. package/build/components/RFH/Forms/DefaultForm.d.ts +10 -0
  24. package/build/components/RFH/Forms/index.d.ts +2 -0
  25. package/build/components/{FormSelect → RFH/Inputs/FormSelect}/style.d.ts +1 -1
  26. package/build/components/{FormSelect → RFH/Inputs/FormSelect}/type.d.ts +1 -1
  27. package/build/components/{MultiSelect → RFH/Inputs/MultiSelect}/style.d.ts +2 -2
  28. package/build/components/RFH/Inputs/SelectWithAccordion/SelectWithAccordion.d.ts +4 -0
  29. package/build/components/RFH/Inputs/SelectWithAccordion/index.d.ts +4 -0
  30. package/build/components/RFH/Inputs/SelectWithAccordion/style.d.ts +31 -0
  31. package/build/components/RFH/Inputs/SelectWithAccordion/type.d.ts +7 -0
  32. package/build/components/RFH/Inputs/index.d.ts +3 -0
  33. package/build/components/RFH/hooks/index.d.ts +1 -0
  34. package/build/components/RFH/hooks/useRFHForm.d.ts +2 -0
  35. package/build/components/RFH/index.d.ts +3 -0
  36. package/build/components/RFH/index.js +1 -0
  37. package/build/components/ReferenceTypeFilter/index.js +1 -1
  38. package/build/components/SelectDropdown/SelectDropdown.d.ts +25 -0
  39. package/build/components/SelectDropdown/TrailingArrowIcon.d.ts +13 -0
  40. package/build/components/SelectDropdown/TrailingCloseIcon.d.ts +15 -0
  41. package/build/components/SelectDropdown/index.d.ts +2 -0
  42. package/build/components/SelectDropdown/index.js +1 -0
  43. package/build/components/SelectDropdown/style.d.ts +15 -0
  44. package/build/components/StatusFilter/index.js +1 -1
  45. package/build/components/StatusIcons/index.js +1 -1
  46. package/build/components/TableCells/index.js +1 -1
  47. package/build/components/TableReports/index.js +1 -1
  48. package/build/components/VAT/index.js +1 -1
  49. package/build/components/VerificationIcon/index.js +1 -1
  50. package/build/components/ViewColumnRadioFilter/index.js +1 -1
  51. package/build/components/WindowSideBar/index.js +1 -1
  52. package/build/components/index.d.ts +1 -5
  53. package/build/components/index.js +1 -1
  54. package/build/index.js +1 -1
  55. package/package.json +2 -2
  56. package/build/_chunks/chunk-5MQUBLQD.js +0 -8
  57. package/build/_chunks/chunk-7KBPUQ5M.js +0 -1
  58. package/build/_chunks/chunk-OO2CZKZ5.js +0 -1
  59. package/build/_chunks/chunk-OPAG23P7.js +0 -8
  60. package/build/_chunks/chunk-PFDS7JG4.js +0 -1
  61. package/build/_chunks/chunk-UOAHX7UW.js +0 -1
  62. package/build/_chunks/chunk-XX74KK4T.js +0 -2
  63. package/build/_chunks/chunk-YIGKRF5X.js +0 -1
  64. package/build/components/FormSelect/index.js +0 -1
  65. package/build/components/GroupedSelect/GroupedSelect.d.ts +0 -4
  66. package/build/components/GroupedSelect/constants.d.ts +0 -14
  67. package/build/components/GroupedSelect/icons.d.ts +0 -5
  68. package/build/components/GroupedSelect/index.d.ts +0 -4
  69. package/build/components/GroupedSelect/index.js +0 -1
  70. package/build/components/GroupedSelect/style.d.ts +0 -44
  71. package/build/components/GroupedSelect/type.d.ts +0 -62
  72. package/build/components/MultiSelect/index.js +0 -1
  73. package/build/components/MultiSelectDropdownButton/MultiSelectDropdownButton.d.ts +0 -5
  74. package/build/components/MultiSelectDropdownButton/components/StatusButton.d.ts +0 -10
  75. package/build/components/MultiSelectDropdownButton/index.d.ts +0 -3
  76. package/build/components/MultiSelectDropdownButton/index.js +0 -1
  77. package/build/components/MultiSelectDropdownButton/style.d.ts +0 -9
  78. package/build/components/MultiSelectDropdownButton/type.d.ts +0 -14
  79. package/build/components/MultiSelectDropdownButton/utils.d.ts +0 -3
  80. package/build/components/RHFGroupedSelect/RHFGroupedSelect.d.ts +0 -5
  81. package/build/components/RHFGroupedSelect/index.d.ts +0 -2
  82. package/build/components/RHFGroupedSelect/index.js +0 -1
  83. package/build/components/RHFGroupedSelect/type.d.ts +0 -5
  84. /package/build/components/{FormSelect → RFH/Inputs/FormSelect}/FormSelect.d.ts +0 -0
  85. /package/build/components/{FormSelect → RFH/Inputs/FormSelect}/FormSelectMenuSearchInput.d.ts +0 -0
  86. /package/build/components/{FormSelect → RFH/Inputs/FormSelect}/FormSelectSearchableField.d.ts +0 -0
  87. /package/build/components/{FormSelect → RFH/Inputs/FormSelect}/FormSelectSelectMenu.d.ts +0 -0
  88. /package/build/components/{FormSelect → RFH/Inputs/FormSelect}/index.d.ts +0 -0
  89. /package/build/components/{FormSelect → RFH/Inputs/FormSelect}/utils.d.ts +0 -0
  90. /package/build/components/{MultiSelect → RFH/Inputs/MultiSelect}/MultiSelect.d.ts +0 -0
  91. /package/build/components/{MultiSelect → RFH/Inputs/MultiSelect}/index.d.ts +0 -0
@@ -1 +0,0 @@
1
- import {a}from'./chunk-HDCNWBW5.js';import {aa,ba}from'./chunk-U5S2TDEO.js';import {zc,Bc}from'./chunk-ZHEAWCTY.js';import Ie,{forwardRef,useState,useId,useCallback,useMemo}from'react';import we from'@mui/material/InputLabel';import Le from'@mui/material/MenuItem';import ge from'@mui/material/SvgIcon';import {jsx,jsxs}from'react/jsx-runtime';import U from'@mui/material/Box';import Se from'@mui/material/IconButton';import be from'@mui/material/CircularProgress';import he from'@mui/material/FormControl';import _ from'@mui/material/Select';import {styled}from'@mui/material/styles';var N=forwardRef((e,r)=>jsx(ge,{ref:r,viewBox:"0 0 8 8",fontSize:"small",...e,children:jsx("path",{d:"M6.63965 0.102539C6.75727 0.0997602 6.87304 0.133137 6.97168 0.197266C7.07023 0.261345 7.14718 0.353407 7.19238 0.461914C7.23757 0.570522 7.24961 0.690513 7.22559 0.805664C7.20154 0.920834 7.1425 1.02595 7.05762 1.10742L7.05664 1.10938L4.56738 3.59766L4.49512 3.66992L7.05762 6.23242C7.11359 6.28617 7.15865 6.35066 7.18945 6.42188C7.22023 6.49308 7.23648 6.5699 7.2373 6.64746C7.23809 6.72499 7.22359 6.80223 7.19434 6.87402C7.16499 6.9459 7.1213 7.0115 7.06641 7.06641C7.01149 7.12132 6.94592 7.16498 6.87402 7.19434C6.8022 7.22362 6.72502 7.23809 6.64746 7.2373C6.56987 7.23649 6.4931 7.22024 6.42188 7.18945C6.35064 7.15865 6.28618 7.1136 6.23242 7.05762L6.23145 7.05664L3.74219 4.56836L3.66992 4.49512L3.59766 4.56836L1.1084 7.05664L1.10742 7.05762C1.05365 7.11362 0.989227 7.15864 0.917969 7.18945C0.846721 7.22025 0.769997 7.2365 0.692383 7.2373C0.614798 7.23809 0.537661 7.22364 0.46582 7.19434C0.393921 7.16498 0.328351 7.12132 0.273438 7.06641C0.218559 7.01151 0.174849 6.94589 0.145508 6.87402C0.116258 6.80223 0.101751 6.72498 0.102539 6.64746C0.103364 6.5699 0.119618 6.49308 0.150391 6.42188C0.181198 6.35065 0.226245 6.28617 0.282227 6.23242L2.84473 3.66992L2.77246 3.59766L0.283203 1.10938L0.282227 1.1084L0.224609 1.04297C0.172384 0.974382 0.136093 0.894624 0.118164 0.80957C0.0942576 0.695891 0.104774 0.577375 0.148438 0.469727C0.192107 0.362124 0.266971 0.269962 0.363281 0.205078C0.459591 0.140238 0.573348 0.105497 0.689453 0.105469C0.767281 0.105527 0.844313 0.121103 0.916016 0.151367C0.987801 0.181723 1.05308 0.226359 1.10742 0.282227L3.66992 2.84473L6.23242 0.282227C6.33914 0.171037 6.48558 0.106239 6.63965 0.102539Z",fill:"#20232B",stroke:"white",strokeWidth:.20511})}));N.displayName="DefaultClearIcon";var y=N;function M({size:e=20,color:r="grey.A400",...n}){return jsx(be,{size:e,sx:{backgroundColor:"transparent",color:r},...n})}function B({endAdornmentProp:e,isLoading:r,showClear:n,showMenuArrow:l,menuOpen:m,IconComponent:s,ClearIconComponent:f=y,onClear:d,onClearDefault:p}){return !(e||n||r||l)?null:jsxs(U,{className:"SelectBase-endAdornmentRoot",component:"span",children:[e,r?jsx(M,{}):null,!r&&n?jsx(Se,{className:"SelectBase-clearIconButton",type:"button",tabIndex:0,size:"small","aria-label":"Clear selection",onMouseDown:t=>{t.preventDefault(),t.stopPropagation();},onClick:t=>{t.preventDefault(),t.stopPropagation(),d?d():p();},sx:t=>({p:"1px",flexShrink:0,cursor:"pointer",color:"inherit",backgroundColor:"transparent",...s?{mr:2}:{},"&:hover":{backgroundColor:t.palette.action.hover},"&:focus-visible":{outline:`2px solid ${t.palette.primary.main}`,outlineOffset:1}}),children:jsx(f,{sx:{fontSize:8,width:8,height:8}})}):null,!r&&l&&!s&&jsx(U,{component:"span",className:`SelectBase-menuTriggerIcon${m?" SelectBase-menuTriggerIcon-open":""}`,"aria-hidden":true,children:jsx(a,{})})]})}function G(e,r){if(e==null)return false;if(Array.isArray(e))return e.length>0;if(typeof e=="object"){if(r){let l=r(e);return l!=null&&l!==""}let n=e.id;return n!=null&&n!==""}return String(e)!==""}var Z=styled(he)(({theme:e})=>({minWidth:52,height:"40px !important",maxHeight:"40px !important",backgroundColor:"transparent",width:"100%",cursor:"pointer","& .MuiInputBase-root":{cursor:"pointer"},"& .MuiInputBase-root.Mui-disabled":{cursor:"default"},"& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)",color:`${e.palette.grey[700]} !important`,height:"100%",pointerEvents:"none"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));styled(_)(({theme:e})=>({fontSize:"11px",lineHeight:"11px",color:e.palette.common.black,borderRadius:"4px",boxShadow:e.shadows[17],border:"none",outline:"none","&:focus":{border:"1px solid #1F88D0"},"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:"rgba(0, 0, 0, 0.23)"},"&.Mui-focused fieldset":{border:"2px solid red"}},minWidth:52,height:"40px !important",maxHeight:"40px !important",width:"100%","& .MuiFormLabel-asterisk":{color:"red"},"& .MuiFormLabel-root":{fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%",transform:"translate(8px, 15px) scale(1)"},".MuiFormLabel-root.MuiFormLabel-filled":{transform:"translate(8px, 8px) scale(0.75) "},".MuiFormLabel-root.Mui-focused":{transform:"translate(8px, 8px) scale(0.75)",fontSize:"10px",fontStyle:"normal",fontWeight:500,lineHeight:"100%"}}));var J=styled("small")(({theme:e})=>({color:e.palette.error.main,fontSize:"10px",lineHeight:"10px",marginTop:"4px",display:"block"})),K=styled(_,{shouldForwardProp:e=>!["feedbackType","hasFeedback"].includes(e)})(({theme:e,error:r,feedbackType:n,hasFeedback:l})=>{let{borderColor:m}=aa(e,n),s=l?"4px 4px 0 0":"4px";return {width:"100%",height:"40px !important",maxHeight:"40px !important",borderRadius:s,overflow:"hidden",backgroundColor:e.palette.grey[400],"&.Mui-disabled":{backgroundColor:e.palette.grey[400]},".MuiSelect-select":{padding:"0 8px !important",height:"40px !important",maxHeight:"40px !important",display:"flex",alignItems:"flex-end !important",backgroundColor:`${e.palette.grey[400]} !important`,borderRadius:s,fontSize:"11px",cursor:"pointer","&:focus":{backgroundColor:`${e.palette.grey[400]} !important`}},"&.Mui-disabled .MuiSelect-select":{cursor:"default"},".MuiSelect-filled":{padding:"0 8px !important"},"&.MuiInputBase-adornedEnd":{display:"inline-flex",alignItems:"center",backgroundColor:e.palette.grey[400],gap:0},"&&.MuiInputBase-adornedEnd .MuiInputBase-input":{flex:"1 1 0%",minWidth:0,width:"auto",maxWidth:"100%"},"& .SelectBase-endAdornmentRoot":{display:"flex",alignItems:"center",flexShrink:0,gap:"8px",position:"relative",zIndex:1},"& .SelectBase-menuTriggerIcon":{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"inherit",lineHeight:0,"& svg, & .MuiSvgIcon-root":{transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter})}},"& .SelectBase-menuTriggerIcon-open svg, & .SelectBase-menuTriggerIcon-open .MuiSvgIcon-root":{transform:"rotate(180deg)"},"&.Mui-disabled .MuiSelect-icon":{color:"rgba(0, 0, 0, 0.38)"},"&.Mui-disabled .SelectBase-menuTriggerIcon":{cursor:"default",color:"rgba(0, 0, 0, 0.38)","& svg path":{fill:"rgba(0, 0, 0, 0.38)",stroke:"rgba(0, 0, 0, 0.38)"}},...n&&{border:`1px solid ${m}`},...l&&{borderBottom:"none"},...r&&{border:`1px solid ${e.palette.error.main}`}}}),Q=styled(U)(()=>({display:"flex",alignItems:"stretch",height:"100%",flexDirection:"column",flex:1,cursor:"pointer","&:has(.MuiInputBase-root.Mui-disabled)":{cursor:"default"}}));function Pe({required:e,hasError:r,label:n,value:l,helperText:m,feedback:s,onChange:f,options:d,isOptionEqualToValue:p,renderOption:h,getOptionValue:t,isLoading:I,children:Y,getOptionLabel:k,IconComponent:F,showClearIcon:j=false,ClearIconComponent:q=y,onClear:O,endAdornment:V,inputProps:ee,open:C,onOpen:w,onClose:L,...P},oe){let[te,re]=useState(false),ne=zc(useId(),"select-base-multiple"),le=C??te,v=useCallback((o,a)=>{a?w?.(o):L?.(o),C===void 0&&re(a);},[w,L,C]),ae=o=>{f?.(o);},ie=()=>{let o=l?.filter(a=>a!=null)??[];return t?o.map(t):o.map(a=>a?.id)},se=useMemo(()=>d?.filter(o=>l?.some(a=>{if(a==null)return false;if(p)return p(o,a);if(t){let g=t(o),b=t(a);return g===b||String(g)===String(b)}let c=o?.id,i=a?.id;return c===i||String(c)===String(i)})),[d,l,p,t]),de=()=>se?.map(o=>k?k(o):o.label)?.join(", "),E=!!(P.disabled||I),pe=j&&G(l,t)&&!E,ce=jsx(B,{endAdornmentProp:V,isLoading:!!I,showClear:pe,showMenuArrow:!I,menuOpen:le,IconComponent:F,ClearIconComponent:q,onClear:O,onClearDefault:()=>f?.([])}),{isProvided:ue,isVisible:R,type:me}=Bc(s);return jsxs(Q,{children:[jsxs(Z,{id:ne,variant:"filled","data-testid":"SelectBase",required:e,children:[jsx(we,{id:`select-label-${n.trim()}`,"data-testid":"SelectBase_InputLabel",children:n}),jsx(K,{multiple:true,"data-testid":"SelectBase_Select",ref:oe,value:ie()??"",error:r&&!R,feedbackType:me,hasFeedback:R,disableUnderline:true,required:e,labelId:`select-label-${n.trim()}`,id:`select-label-${n.trim()}`,renderValue:de,...P,open:C,onOpen:o=>v(o,true),onClose:o=>v(o,false),inputProps:ee,disabled:E,IconComponent:F??(()=>null),endAdornment:ce,onChange:o=>{let c=o.target.value?.map(i=>d?.find(g=>{if(t){let A=t(g);return A===i||String(A)===String(i)}let b=g?.id;return b===i||String(b)===String(i)}));f?.(c?.filter(i=>i!=null)??[]);},children:Y||d?.map((o,a)=>{let c=p?p(o,l):o?.id===l?.id;return jsx(Le,{value:(t?t(o):o?.id)??"",onClick:()=>{ae(o);},sx:{fontSize:"12px",backgroundColor:i=>c?i.palette.action.hover:i.palette.common.white},children:h?h(o):o.label},`select-base-multiple-item-${a}`)})})]}),ue?jsx(ba,{...s}):jsx(J,{children:m})]})}var so=Ie.forwardRef(Pe);export{y as a,B as b,G as c,Z as d,J as e,K as f,Q as g,so as h};
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-5MQUBLQD.js';import'../../_chunks/chunk-OPAG23P7.js';import'../../_chunks/chunk-UOAHX7UW.js';import'../../_chunks/chunk-YIGKRF5X.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-3XNXNKGA.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-U5S2TDEO.js';import'../../_chunks/chunk-ZHEAWCTY.js';import'../../_chunks/chunk-M5HS3EYQ.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { GroupedSelectProps } from './type';
3
- declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<GroupedSelectProps & import("react").RefAttributes<HTMLDivElement>>>;
4
- export default _default;
@@ -1,14 +0,0 @@
1
- export declare const groupedSelectClassNamePrefix: "os-shared-GroupedSelect";
2
- export declare const groupedSelectClassNames: {
3
- readonly root: "os-shared-GroupedSelect-root";
4
- readonly trigger: "os-shared-GroupedSelect-trigger";
5
- readonly hasLabel: "os-shared-GroupedSelect-hasLabel";
6
- readonly triggerIcon: "os-shared-GroupedSelect-triggerIcon";
7
- readonly menu: "os-shared-GroupedSelect-menu";
8
- readonly groups: "os-shared-GroupedSelect-groups";
9
- readonly group: "os-shared-GroupedSelect-group";
10
- readonly groupLabel: "os-shared-GroupedSelect-groupLabel";
11
- readonly option: "os-shared-GroupedSelect-option";
12
- readonly optionCheck: "os-shared-GroupedSelect-optionCheck";
13
- };
14
- export type GroupedSelectClassNames = (typeof groupedSelectClassNames)[keyof typeof groupedSelectClassNames];
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- /** Trigger chevron — same glyph as the RHF `FormSelect` arrow. */
3
- export declare function TriggerChevronIcon({ open }: Readonly<{
4
- open: boolean;
5
- }>): import("react").JSX.Element;
@@ -1,4 +0,0 @@
1
- export { default } from './GroupedSelect';
2
- export type { GroupedSelectOptionGroup, GroupedSelectOption, GroupedSelectProps } from './type';
3
- export { groupedSelectClassNames } from './constants';
4
- export type { GroupedSelectClassNames } from './constants';
@@ -1 +0,0 @@
1
- export{b as default,a as groupedSelectClassNames}from'../../_chunks/chunk-7KBPUQ5M.js';import'../../_chunks/chunk-U5S2TDEO.js';import'../../_chunks/chunk-ZHEAWCTY.js';import'../../_chunks/chunk-M5HS3EYQ.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,44 +0,0 @@
1
- /// <reference types="react" />
2
- /** Clickable root wrapping the trigger; positions the dropdown. */
3
- export declare const GroupedSelectRootStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
4
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
5
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
6
- open: boolean;
7
- disabled?: boolean | undefined;
8
- }, {}, {}>;
9
- /** Built-in trigger field — same chrome as the RHF `FormSelect` field. */
10
- export declare const GroupedSelectTriggerStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
11
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
12
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
13
- disabled?: boolean | undefined;
14
- }, {}, {}>;
15
- export declare const GroupedSelectTriggerLabelStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
16
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
17
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
18
- $disabled?: boolean | undefined;
19
- }, {}, {}>;
20
- export declare const GroupedSelectTriggerValueStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
21
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
22
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
23
- $placeholder?: boolean | undefined;
24
- $disabled?: boolean | undefined;
25
- }, {}, {}>;
26
- /** Chevron / loading slot, vertically centered on the trigger's right edge. */
27
- export declare const GroupedSelectTriggerIconStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
28
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
29
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
30
- $disabled?: boolean | undefined;
31
- }, {}, {}>;
32
- /** Scrollable group list inside the menu panel. */
33
- export declare const GroupedSelectGroupsStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
35
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
36
- export declare const GroupedSelectAccordionStyled: import("@emotion/styled").StyledComponent<Omit<Readonly<import("../primitives").AccordionProps> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
37
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
38
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
39
- export declare const GroupedSelectGroupLabelStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & {
40
- ref?: import("react").RefObject<HTMLElement> | ((instance: HTMLElement | null) => void) | null | undefined;
41
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
42
- export declare const GroupedSelectOptionStyled: import("@emotion/styled").StyledComponent<Omit<Omit<import("../primitives").MenuItemProps, "ref"> & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
43
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
44
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -1,62 +0,0 @@
1
- import type { ElementType, ReactNode } from 'react';
2
- import type { SxProps, Theme } from '@mui/material/styles';
3
- /**
4
- * Single selectable option. Unknown fields pass through untouched so callers
5
- * can attach domain data (currency, range, ...).
6
- */
7
- export interface GroupedSelectOption {
8
- id?: string | number;
9
- label?: ReactNode;
10
- /** Dims the row and blocks selection */
11
- disabled?: boolean;
12
- [key: string]: any;
13
- }
14
- export interface GroupedSelectOptionGroup {
15
- /** Group header content */
16
- group: ReactNode;
17
- options: GroupedSelectOption[];
18
- }
19
- export interface GroupedSelectProps {
20
- /** Forwarded to the root as `id` (label/`aria-*` wiring). Caller-owned. */
21
- id?: string;
22
- /** Field label rendered above the selected value */
23
- label?: ReactNode;
24
- /** Shown when nothing is selected */
25
- placeholder?: string;
26
- /** Custom trigger content. Defaults to the selected `option.label`. */
27
- renderValue?: (value?: any) => ReactNode;
28
- /** Custom trigger chevron. Receives an `MuiSelect-iconOpen` class when open (Select-API compatible). */
29
- IconComponent?: ElementType;
30
- /** Shows a spinner in place of the chevron */
31
- isLoading?: boolean;
32
- /** Grouped options: `{ group, options }[]` */
33
- options: GroupedSelectOptionGroup[];
34
- /** Currently selected option (`null` / `undefined` = nothing selected) */
35
- value?: GroupedSelectOption | null;
36
- /** Called with the picked option; the menu closes automatically */
37
- onChange?: (option: GroupedSelectOption) => void;
38
- /** Equality check for the selected checkmark. Defaults to `id` comparison. */
39
- isOptionEqualToValue?: (option: any, value?: any) => boolean;
40
- /** Custom row content. Defaults to `option.label`. */
41
- renderOption?: (option?: any) => ReactNode;
42
- /** Custom group header content. Defaults to the `group` value. */
43
- renderGroupLabel?: (group: GroupedSelectOptionGroup['group'], groupIndex: number) => ReactNode;
44
- /** Controlled open state. Omit for uncontrolled mode. */
45
- open?: boolean;
46
- /** Called whenever the menu opens or closes */
47
- onOpenChange?: (open: boolean) => void;
48
- /** Controlled expanded group. Omit for uncontrolled mode (first group starts expanded). */
49
- expandedGroupIndex?: number | null;
50
- /** Initial expanded group for uncontrolled mode. @default 0 */
51
- defaultExpandedGroupIndex?: number | null;
52
- /** Called with the newly expanded group (`null` when all collapse) */
53
- onExpandedGroupChange?: (index: number | null) => void;
54
- /** Blocks opening the menu */
55
- disabled?: boolean;
56
- /** MUI sx overrides — forwarded to the root */
57
- sx?: SxProps<Theme>;
58
- /** Extra panel overrides — merged over the width-synced menu panel */
59
- menuSx?: SxProps<Theme>;
60
- /** Consumer className — forwarded to the root, merged with the `root` slot class */
61
- className?: string;
62
- }
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-OO2CZKZ5.js';import'../../_chunks/chunk-OPAG23P7.js';import'../../_chunks/chunk-YIGKRF5X.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-U5S2TDEO.js';import'../../_chunks/chunk-ZHEAWCTY.js';import'../../_chunks/chunk-M5HS3EYQ.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import { ButtonWithDropdownProps } from './type';
3
- declare function MultiSelectDropdownButton({ buttonLabel, onClear, onConfirm, dropdownItems, apiKey, data, styles, buttonDisabled, searchable, searchPlaceholder, }: ButtonWithDropdownProps): import("react").JSX.Element;
4
- declare const _default: import("react").MemoExoticComponent<typeof MultiSelectDropdownButton>;
5
- export default _default;
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ButtonProps } from '@mui/material';
3
- import { StatusButtonVariant } from '../../StatusButton/style';
4
- interface StatusButtonProps extends Omit<ButtonProps, 'variant' | 'children'> {
5
- variant?: StatusButtonVariant;
6
- badgeCount: number;
7
- label: ReactNode;
8
- }
9
- declare const StatusButton: import("react").MemoExoticComponent<(props: StatusButtonProps) => import("react").JSX.Element>;
10
- export default StatusButton;
@@ -1,3 +0,0 @@
1
- import MultiSelectDropdownButton from './MultiSelectDropdownButton';
2
- export * from './type';
3
- export default MultiSelectDropdownButton;
@@ -1 +0,0 @@
1
- export{bb as default}from'../../_chunks/chunk-XX74KK4T.js';import'../../_chunks/chunk-VS4GPQTT.js';import'../../_chunks/chunk-3TO7YUM5.js';import'../../_chunks/chunk-VRGWLZGG.js';import'../../_chunks/chunk-RLUMXH63.js';import'../../_chunks/chunk-CB7QJIZT.js';import'../../_chunks/chunk-TCP65H54.js';import'../../_chunks/chunk-ZQ52HZBG.js';import'../../_chunks/chunk-O7MIU67I.js';import'../../_chunks/chunk-4WHJ7C3Y.js';import'../../_chunks/chunk-TATV6PD5.js';import'../../_chunks/chunk-MXC3TARS.js';import'../../_chunks/chunk-ZZJGMJCQ.js';import'../../_chunks/chunk-TZJUIC5Q.js';import'../../_chunks/chunk-PFDS7JG4.js';import'../../_chunks/chunk-UL4GWIQX.js';import'../../_chunks/chunk-W6OPWYPX.js';import'../../_chunks/chunk-LMQIQCKU.js';import'../../_chunks/chunk-LEGFRHUY.js';import'../../_chunks/chunk-ERL2AD3X.js';import'../../_chunks/chunk-CCNYVQRG.js';import'../../_chunks/chunk-SLOXJ5HL.js';import'../../_chunks/chunk-57COBHS2.js';import'../../_chunks/chunk-JDD6SWME.js';import'../../_chunks/chunk-5CQG3WDG.js';import'../../_chunks/chunk-CBQF2JOF.js';import'../../_chunks/chunk-GKSTVWG7.js';import'../../_chunks/chunk-CJBK6DV4.js';import'../../_chunks/chunk-MAZVGT6F.js';import'../../_chunks/chunk-PDRNFDWB.js';import'../../_chunks/chunk-VKHUWB7W.js';import'../../_chunks/chunk-OO2CZKZ5.js';import'../../_chunks/chunk-TBK5B4PF.js';import'../../_chunks/chunk-OQM5HYDJ.js';import'../../_chunks/chunk-EBHPTELD.js';import'../../_chunks/chunk-VR7ZRZKQ.js';import'../../_chunks/chunk-DILHFFYM.js';import'../../_chunks/chunk-YOFP6Q2H.js';import'../../_chunks/chunk-4B2QTPTE.js';import'../../_chunks/chunk-KGJKMOL6.js';import'../../_chunks/chunk-RRNCLEPN.js';import'../../_chunks/chunk-5MQUBLQD.js';import'../../_chunks/chunk-OPAG23P7.js';import'../../_chunks/chunk-UOAHX7UW.js';import'../../_chunks/chunk-YIGKRF5X.js';import'../../_chunks/chunk-HDCNWBW5.js';import'../../_chunks/chunk-7KBPUQ5M.js';import'../../_chunks/chunk-ZONDSLTR.js';import'../../_chunks/chunk-RJGHAJAS.js';import'../../_chunks/chunk-PVE26KKA.js';import'../../_chunks/chunk-VSI64YFN.js';import'../../_chunks/chunk-2K7FRRCP.js';import'../../_chunks/chunk-RQRTDUVJ.js';import'../../_chunks/chunk-CC3OHCAU.js';import'../../_chunks/chunk-OQXHFUUW.js';import'../../_chunks/chunk-PYBAY4RD.js';import'../../_chunks/chunk-XWCBQTXR.js';import'../../_chunks/chunk-MW3S7RYL.js';import'../../_chunks/chunk-5K5Q4DZF.js';import'../../_chunks/chunk-NLUIDNSG.js';import'../../_chunks/chunk-TRCRPJLO.js';import'../../_chunks/chunk-BFNXERA5.js';import'../../_chunks/chunk-I4MFMAUT.js';import'../../_chunks/chunk-3FL6JKDE.js';import'../../_chunks/chunk-TYUXEDNW.js';import'../../_chunks/chunk-67EIV5FM.js';import'../../_chunks/chunk-LNXP6W5X.js';import'../../_chunks/chunk-CWNJS74Z.js';import'../../_chunks/chunk-EOPHF3KG.js';import'../../_chunks/chunk-WWPYJOBT.js';import'../../_chunks/chunk-FQ2VMVUY.js';import'../../_chunks/chunk-3XNXNKGA.js';import'../../_chunks/chunk-MUR4ILTY.js';import'../../_chunks/chunk-3D3WKTFY.js';import'../../_chunks/chunk-F4ONOXPC.js';import'../../_chunks/chunk-V4IMVJZP.js';import'../../_chunks/chunk-U5S2TDEO.js';import'../../_chunks/chunk-P3UNUMRE.js';import'../../_chunks/chunk-3ZQC3MDU.js';import'../../_chunks/chunk-K3VCY2Z7.js';import'../../_chunks/chunk-ZHEAWCTY.js';import'../../_chunks/chunk-M5HS3EYQ.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const NoResultsText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
4
- }, "width" | "minWidth" | "minHeight" | "height" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "align" | "className" | "style" | "children" | "sx" | "variant" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const ButtonLabel: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
8
- isDisabled?: boolean | undefined;
9
- }, {}, {}>;
@@ -1,14 +0,0 @@
1
- import { CSSProperties, ReactNode } from 'react';
2
- import { IColumnFilter, IColumnFilterList } from '../../types/index.js';
3
- export interface ButtonWithDropdownProps {
4
- buttonLabel: ReactNode;
5
- dropdownItems: IColumnFilterList['options'];
6
- apiKey: string;
7
- onClear: IColumnFilter['onClear'];
8
- onConfirm: IColumnFilter['onConfirm'];
9
- data: IColumnFilter['data'];
10
- styles?: CSSProperties;
11
- buttonDisabled?: boolean;
12
- searchable?: boolean;
13
- searchPlaceholder?: string;
14
- }
@@ -1,3 +0,0 @@
1
- import { IColumnListFilterOption } from '../../types/index.js';
2
- export declare function deduplicateItems(items: IColumnListFilterOption[]): IColumnListFilterOption[];
3
- export declare function filterItems(items: IColumnListFilterOption[], query: string): IColumnListFilterOption[];
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- import type { RHFGroupedSelectProps } from './type';
3
- /** RHF-bound grouped dropdown; stores the picked option object under `name`. */
4
- declare function RHFGroupedSelect({ name, options, id, label, placeholder, renderValue, IconComponent, isLoading, disabled, isOptionEqualToValue, renderOption, expandedGroupIndex, defaultExpandedGroupIndex, onExpandedGroupChange, renderGroupLabel, menuSx, className, sx, }: RHFGroupedSelectProps): import("react").JSX.Element;
5
- export default RHFGroupedSelect;
@@ -1,2 +0,0 @@
1
- export { default } from './RHFGroupedSelect';
2
- export type { RHFGroupedSelectProps } from './type';
@@ -1 +0,0 @@
1
- export{a as default}from'../../_chunks/chunk-PFDS7JG4.js';import'../../_chunks/chunk-7KBPUQ5M.js';import'../../_chunks/chunk-U5S2TDEO.js';import'../../_chunks/chunk-ZHEAWCTY.js';import'../../_chunks/chunk-M5HS3EYQ.js';import'../../_chunks/chunk-ZDBICST5.js';
@@ -1,5 +0,0 @@
1
- import type { SelectProps } from '../FormSelect';
2
- import type { GroupedSelectProps } from '../GroupedSelect';
3
- export interface RHFGroupedSelectProps extends Omit<SelectProps, 'options' | 'renderValue'>, Pick<GroupedSelectProps, 'id' | 'placeholder' | 'renderValue' | 'expandedGroupIndex' | 'defaultExpandedGroupIndex' | 'onExpandedGroupChange' | 'renderGroupLabel' | 'menuSx' | 'className' | 'sx'> {
4
- options: GroupedSelectProps['options'];
5
- }