@useloops/design-system 1.4.678 → 1.4.680
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.
- package/dist/esm/systems/Platform/OnboardingCard/Timeline.js +1 -1
- package/dist/esm/systems/WebCore/AutocompleteBaseField/AutocompleteBaseField.js +1 -1
- package/dist/systems/Platform/OnboardingCard/Timeline.js +1 -1
- package/dist/systems/Platform/SliderGraph/_partials/StyledComponents.d.ts +8 -8
- package/dist/systems/WebCore/AutocompleteBaseField/AutocompleteBaseField.js +1 -1
- package/dist/systems/WebCore/InputFieldBase/InputFieldBase.d.ts +1 -1
- package/dist/theme/theme.hooks.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{timelineItemClasses as t,TimelineItem as n,TimelineSeparator as o,TimelineConnector as r,TimelineContent as l}from"@mui/lab";import c from"@mui/lab/Timeline";import{Box as m}from"@mui/material";import{motion as a}from"motion/react";import{useMemo as d,useRef as s,useState as p,useCallback as h,useEffect as u}from"react";import g from"../../BrandCore/Icon/Icon.js";import f from"../../WebCore/Button/Button.js";import{StyledDot as C,ItemContainer as x,TitleText as b,DescriptionText as k,StyledBoxWrapper as v,StyledLinkWrapper as w}from"./StyledTimeline.js";const z=({children:i,complete:t,onClick:n})=>t?e(v,{children:i}):e(w,{underline:"none",component:"button",onClick:n,target:"_self",children:i}),j=({complete:t,title:n,description:o,onClick:r})=>e(x,{children:i(z,{complete:t,onClick:r,children:[e(b,{children:n}),!t&&e(g,{name:"arrow-right",size:16}),!t&&o&&e(k,{children:o})]})}),y=({item:t,showConnector:c})=>{const{complete:m,title:a,description:d,onClick:s}=t;return i(n,{children:[i(o,{children:[e(C,{completed:m,children:m?e(g,{name:"badge-tick-in-circle",size:24}):void 0}),c&&e(r,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),t&&e(l,{sx:{pt:0},children:e(j,{complete:m,title:a,description:d,onClick:s})})]})},B={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},T=({expanded:n,onToggleExpanded:o,items:r})=>{const l=r.find(e=>!e.complete),C=d(()=>n?r:[l],[n,r,l]),x=s(null),[b,k]=p(),v=h(()=>{if(!x.current)return;const e=x.current.scrollHeight;k(e)},[r]);return u(()=>{v()},[n,v]),u(()=>{const e=new ResizeObserver(v);return x.current&&e.observe(x.current),()=>e.disconnect()},[v]),e(a.div,{variants:B,initial:"initial",animate:"auto"===b?"initial":["initial","animate"],custom:b,style:{overflow:"hidden"},children:e("div",{ref:x,style:{display:"flex"},children:i(c,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${t.root}`]:{minHeight:0,
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{timelineItemClasses as t,TimelineItem as n,TimelineSeparator as o,TimelineConnector as r,TimelineContent as l}from"@mui/lab";import c from"@mui/lab/Timeline";import{Box as m}from"@mui/material";import{motion as a}from"motion/react";import{useMemo as d,useRef as s,useState as p,useCallback as h,useEffect as u}from"react";import g from"../../BrandCore/Icon/Icon.js";import f from"../../WebCore/Button/Button.js";import{StyledDot as C,ItemContainer as x,TitleText as b,DescriptionText as k,StyledBoxWrapper as v,StyledLinkWrapper as w}from"./StyledTimeline.js";const z=({children:i,complete:t,onClick:n})=>t?e(v,{children:i}):e(w,{underline:"none",component:"button",onClick:n,target:"_self",children:i}),j=({complete:t,title:n,description:o,onClick:r})=>e(x,{children:i(z,{complete:t,onClick:r,children:[e(b,{children:n}),!t&&e(g,{name:"arrow-right",size:16}),!t&&o&&e(k,{children:o})]})}),y=({item:t,showConnector:c})=>{const{complete:m,title:a,description:d,onClick:s}=t;return i(n,{children:[i(o,{children:[e(C,{completed:m,children:m?e(g,{name:"badge-tick-in-circle",size:24}):void 0}),c&&e(r,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),t&&e(l,{sx:{pt:0},children:e(j,{complete:m,title:a,description:d,onClick:s})})]})},B={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})},T=({expanded:n,onToggleExpanded:o,items:r})=>{const l=r.find(e=>!e.complete),C=d(()=>n?r:[l],[n,r,l]),x=s(null),[b,k]=p(),v=h(()=>{if(!x.current)return;const e=x.current.scrollHeight;k(e)},[r]);return u(()=>{v()},[n,v]),u(()=>{const e=new ResizeObserver(v);return x.current&&e.observe(x.current),()=>e.disconnect()},[v]),e(a.div,{variants:B,initial:"initial",animate:"auto"===b?"initial":["initial","animate"],custom:b,style:{overflow:"hidden"},children:e("div",{ref:x,style:{display:"flex"},children:i(c,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${t.root}`]:{minHeight:0},[`&& .${t.root}::before`]:{flex:0,padding:0}},children:[C.map((i,t)=>{const n=t<C.length-1;return i&&i?.title===l?.title?e(y,{item:i,showConnector:C.length>1?n:!!l?.description},`${i.title}-${i.complete}`):i&&e(y,{item:i,showConnector:n},i.title)}),!n&&e(m,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:e(f,{endIcon:e(g,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:o,children:"Show more"})})]})})})};export{T as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{KeyboardArrowDown as
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Check as t,KeyboardArrowDown as a}from"@mui/icons-material";import{Box as r,autocompleteClasses as o}from"@mui/material";import n,{useState as i,useEffect as s}from"react";import p from"./_partials/AutocompleteListbox.js";import u from"./_partials/AutocompletePopper.js";import d from"./_partials/StyledAutocompleteField.js";const c=({selections:c,disableClearable:m=!1,disabled:b,internalChange:f,grouped:g=!1,multi:h,onChange:y,placeholder:v="",renderListItem:x,renderInput:A,renderValue:O,sizing:C="lg",value:I=(h?[]:""),getOptionLabel:j,slots:S,...k})=>{const[L,w]=i(c?.find(e=>I===e?.value)||null),[z,B]=i(Array.isArray(I)?I.flatMap(e=>c?.find(l=>l.value===e)??[]):[]);s(()=>{if(h&&Array.isArray(I)&&B(I.flatMap(e=>c?.find(l=>l.value===e)??[])),!h&&"string"==typeof I){const e=c?.find(e=>e.value===I)||null;w(e)}},[I]);const F=n.useCallback((e,l)=>{const t=(h?z:[L].filter(Boolean)).length===c?.length,a=l&&t,r=a?[]:l?c:[],o=a?[]:l?c.map(({value:e})=>e):[];h?B(r):w(r[0]||null),y?.(e,o,"selectOption"),f?.()},[c,h,y,f,z]);return e(d,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:e(a,{}),disabled:b,disableClearable:m,multiple:h,options:c,renderInput:A,renderValue:O,value:h?z:L,isOptionEqualToValue:(e,l)=>e.value===l.value,onChange:(e,l,t)=>{const a=(e=>Array.isArray(e)?e.map(e=>e.value):e?.value??null)(l);h?B(l):w(l),y?.(e,a,t),f?.()},...g?{groupBy:e=>{const l=e;return(e=>Object.hasOwn(e,"group"))(l)?l.group:""},renderGroup:t=>l(n.Fragment,{children:[0!==parseInt(`${t.key}`)&&e(r,{sx:{borderBottom:e=>`1px solid ${e.custom.palette.stroke.default}`,my:1}}),t.group&&e(r,{component:"div",className:o.groupLabel,children:t.group}),t.children]},t.key)}:{},getOptionLabel:e=>"object"==typeof e&&null!==e&&"label"in e?e.label:"",renderOption:(a,o,{selected:n})=>{const{key:i,...s}=a,p=o;return e("li",{...s,children:l(r,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:2},children:[e(r,{children:x?x(p.value,p.label):p.label}),e(r,{sx:{display:"flex",alignItems:"center"},children:e(t,{sx:{visibility:n?"visible":"hidden",fontSize:"16px"}})})]})},p.value)},slots:{...S,popper:l=>e(u,{...l,sizing:C}),listbox:l=>e(p,{...l,handleSelectAll:F,showSelectAll:Boolean(h),value:h?z:L,selections:c,sizing:C})}})};export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),i=require("@mui/lab"),t=require("@mui/lab/Timeline"),n=require("@mui/material"),r=require("motion/react"),o=require("react"),l=require("../../BrandCore/Icon/Icon.js"),s=require("../../WebCore/Button/Button.js"),c=require("./StyledTimeline.js");function a(e){return e&&e.__esModule?e:{default:e}}var d=a(t);const u=({children:i,complete:t,onClick:n})=>t?e.jsx(c.StyledBoxWrapper,{children:i}):e.jsx(c.StyledLinkWrapper,{underline:"none",component:"button",onClick:n,target:"_self",children:i}),m=({complete:i,title:t,description:n,onClick:r})=>e.jsx(c.ItemContainer,{children:e.jsxs(u,{complete:i,onClick:r,children:[e.jsx(c.TitleText,{children:t}),!i&&e.jsx(l.default,{name:"arrow-right",size:16}),!i&&n&&e.jsx(c.DescriptionText,{children:n})]})}),x=({item:t,showConnector:n})=>{const{complete:r,title:o,description:s,onClick:a}=t;return e.jsxs(i.TimelineItem,{children:[e.jsxs(i.TimelineSeparator,{children:[e.jsx(c.StyledDot,{completed:r,children:r?e.jsx(l.default,{name:"badge-tick-in-circle",size:24}):void 0}),n&&e.jsx(i.TimelineConnector,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),t&&e.jsx(i.TimelineContent,{sx:{pt:0},children:e.jsx(m,{complete:r,title:o,description:s,onClick:a})})]})},p={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})};module.exports=({expanded:t,onToggleExpanded:c,items:a})=>{const u=a.find(e=>!e.complete),m=o.useMemo(()=>t?a:[u],[t,a,u]),h=o.useRef(null),[j,g]=o.useState(),f=o.useCallback(()=>{if(!h.current)return;const e=h.current.scrollHeight;g(e)},[a]);return o.useEffect(()=>{f()},[t,f]),o.useEffect(()=>{const e=new ResizeObserver(f);return h.current&&e.observe(h.current),()=>e.disconnect()},[f]),e.jsx(r.motion.div,{variants:p,initial:"initial",animate:"auto"===j?"initial":["initial","animate"],custom:j,style:{overflow:"hidden"},children:e.jsx("div",{ref:h,style:{display:"flex"},children:e.jsxs(d.default,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${i.timelineItemClasses.root}`]:{minHeight:0,
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),i=require("@mui/lab"),t=require("@mui/lab/Timeline"),n=require("@mui/material"),r=require("motion/react"),o=require("react"),l=require("../../BrandCore/Icon/Icon.js"),s=require("../../WebCore/Button/Button.js"),c=require("./StyledTimeline.js");function a(e){return e&&e.__esModule?e:{default:e}}var d=a(t);const u=({children:i,complete:t,onClick:n})=>t?e.jsx(c.StyledBoxWrapper,{children:i}):e.jsx(c.StyledLinkWrapper,{underline:"none",component:"button",onClick:n,target:"_self",children:i}),m=({complete:i,title:t,description:n,onClick:r})=>e.jsx(c.ItemContainer,{children:e.jsxs(u,{complete:i,onClick:r,children:[e.jsx(c.TitleText,{children:t}),!i&&e.jsx(l.default,{name:"arrow-right",size:16}),!i&&n&&e.jsx(c.DescriptionText,{children:n})]})}),x=({item:t,showConnector:n})=>{const{complete:r,title:o,description:s,onClick:a}=t;return e.jsxs(i.TimelineItem,{children:[e.jsxs(i.TimelineSeparator,{children:[e.jsx(c.StyledDot,{completed:r,children:r?e.jsx(l.default,{name:"badge-tick-in-circle",size:24}):void 0}),n&&e.jsx(i.TimelineConnector,{sx:{backgroundColor:e=>e.custom.palette.icon.disabled}})]}),t&&e.jsx(i.TimelineContent,{sx:{pt:0},children:e.jsx(m,{complete:r,title:o,description:s,onClick:a})})]})},p={initial:{height:"auto",transition:{duration:0}},animate:e=>({height:e,transition:{duration:.4,ease:[.645,.045,.355,1]}})};module.exports=({expanded:t,onToggleExpanded:c,items:a})=>{const u=a.find(e=>!e.complete),m=o.useMemo(()=>t?a:[u],[t,a,u]),h=o.useRef(null),[j,g]=o.useState(),f=o.useCallback(()=>{if(!h.current)return;const e=h.current.scrollHeight;g(e)},[a]);return o.useEffect(()=>{f()},[t,f]),o.useEffect(()=>{const e=new ResizeObserver(f);return h.current&&e.observe(h.current),()=>e.disconnect()},[f]),e.jsx(r.motion.div,{variants:p,initial:"initial",animate:"auto"===j?"initial":["initial","animate"],custom:j,style:{overflow:"hidden"},children:e.jsx("div",{ref:h,style:{display:"flex"},children:e.jsxs(d.default,{sx:{paddingLeft:e=>e.spacing(e.custom.padding.xs),marginBottom:0,[`& .${i.timelineItemClasses.root}`]:{minHeight:0},[`&& .${i.timelineItemClasses.root}::before`]:{flex:0,padding:0}},children:[m.map((i,t)=>{const n=t<m.length-1;return i&&i?.title===u?.title?e.jsx(x,{item:i,showConnector:m.length>1?n:!!u?.description},`${i.title}-${i.complete}`):i&&e.jsx(x,{item:i,showConnector:n},i.title)}),!t&&e.jsx(n.Box,{sx:{marginTop:e=>e.spacing(e.custom.margin.md),alignSelf:"center"},children:e.jsx(s,{endIcon:e.jsx(l.default,{name:"chevron-down",size:16}),sizing:"xs",variation:"outlined",onClick:c,children:"Show more"})})]})})})};
|
|
@@ -5,40 +5,40 @@ import * as _mui_system from '@mui/system';
|
|
|
5
5
|
import * as _mui_material from '@mui/material';
|
|
6
6
|
import { SliderGraphBarProps, CommonComponentProps } from '../types.js';
|
|
7
7
|
|
|
8
|
-
declare const SliderGraphWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
8
|
+
declare const SliderGraphWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
9
9
|
component?: React.ElementType | undefined;
|
|
10
10
|
} & {
|
|
11
11
|
maxHeight: number;
|
|
12
12
|
} & {
|
|
13
13
|
responsive?: boolean;
|
|
14
14
|
}, {}, {}>;
|
|
15
|
-
declare const VeticalBarWrapper: _emotion_styled.StyledComponent<_mui_material.ListItemButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, keyof _mui_material.ListItemButtonOwnProps> & Omit<_mui_material.ButtonBaseOwnProps, "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | keyof _mui_material.ListItemButtonOwnProps> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
15
|
+
declare const VeticalBarWrapper: _emotion_styled.StyledComponent<_mui_material.ListItemButtonOwnProps & Omit<_mui_material.ButtonBaseOwnProps, keyof _mui_material.ListItemButtonOwnProps> & Omit<_mui_material.ButtonBaseOwnProps, "tabIndex" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | keyof _mui_material.ListItemButtonOwnProps> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "disabled" | "sx" | "alignItems" | "style" | "children" | "autoFocus" | "className" | "tabIndex" | "classes" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "nativeButton" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "type" | "dense" | "disableGutters" | "divider" | "selected"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
|
|
16
16
|
component?: React.ElementType | undefined;
|
|
17
17
|
} & {
|
|
18
18
|
maxHeight: number;
|
|
19
19
|
} & {
|
|
20
20
|
responsive?: boolean;
|
|
21
21
|
}, {}, {}>;
|
|
22
|
-
declare const SliderGraphBarWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
22
|
+
declare const SliderGraphBarWrapper: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
23
23
|
component?: React.ElementType | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
maxHeight: number;
|
|
26
26
|
} & {
|
|
27
27
|
responsive?: boolean;
|
|
28
28
|
}, {}, {}>;
|
|
29
|
-
declare const VerticalBarValue: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
29
|
+
declare const VerticalBarValue: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
30
30
|
component?: React.ElementType | undefined;
|
|
31
31
|
}, {}, {}>;
|
|
32
|
-
declare const VerticalBar: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
32
|
+
declare const VerticalBar: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
33
33
|
component?: React.ElementType | undefined;
|
|
34
34
|
} & CommonComponentProps & {
|
|
35
35
|
value: number;
|
|
36
36
|
checked: boolean;
|
|
37
37
|
}, {}, {}>;
|
|
38
|
-
declare const VerticalBarActions: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
38
|
+
declare const VerticalBarActions: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
39
39
|
component?: React.ElementType | undefined;
|
|
40
40
|
}, {}, {}>;
|
|
41
|
-
declare const VerticalBarLabel: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
41
|
+
declare const VerticalBarLabel: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
42
42
|
component?: React.ElementType | undefined;
|
|
43
43
|
}, {}, {}>;
|
|
44
44
|
declare const AxisSegmentWrapper: _emotion_styled.StyledComponent<_mui_material.StackOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_material_OverridableComponent.CommonProps | keyof _mui_material.StackOwnProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & {
|
|
@@ -46,7 +46,7 @@ declare const AxisSegmentWrapper: _emotion_styled.StyledComponent<_mui_material.
|
|
|
46
46
|
} & {
|
|
47
47
|
maxHeight: number;
|
|
48
48
|
} & Partial<SliderGraphBarProps>, {}, {}>;
|
|
49
|
-
declare const AxisSegment: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof
|
|
49
|
+
declare const AxisSegment: _emotion_styled.StyledComponent<_mui_system.BoxOwnProps<_mui_material.Theme> & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme>> & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & _mui_material_OverridableComponent.CommonProps & Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof _mui_system.BoxOwnProps<_mui_material.Theme> | keyof _mui_material_OverridableComponent.CommonProps> & {
|
|
50
50
|
component?: React.ElementType | undefined;
|
|
51
51
|
} & {
|
|
52
52
|
showGraphLines?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),l=require("@mui/icons-material"),t=require("@mui/material"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),l=require("@mui/icons-material"),t=require("@mui/material"),a=require("react"),r=require("./_partials/AutocompleteListbox.js"),s=require("./_partials/AutocompletePopper.js"),n=require("./_partials/StyledAutocompleteField.js");function i(e){return e&&e.__esModule?e:{default:e}}var o=i(a);module.exports=({selections:i,disableClearable:u=!1,disabled:p,internalChange:d,grouped:c=!1,multi:x,onChange:b,placeholder:m="",renderListItem:g,renderInput:f,renderValue:h,sizing:j="lg",value:v=(x?[]:""),getOptionLabel:y,slots:A,...C})=>{const[B,O]=a.useState(i?.find(e=>v===e?.value)||null),[q,I]=a.useState(Array.isArray(v)?v.flatMap(e=>i?.find(l=>l.value===e)??[]):[]);a.useEffect(()=>{if(x&&Array.isArray(v)&&I(v.flatMap(e=>i?.find(l=>l.value===e)??[])),!x&&"string"==typeof v){const e=i?.find(e=>e.value===v)||null;O(e)}},[v]);const S=o.default.useCallback((e,l)=>{const t=(x?q:[B].filter(Boolean)).length===i?.length,a=l&&t,r=a?[]:l?i:[],s=a?[]:l?i.map(({value:e})=>e):[];x?I(r):O(r[0]||null),b?.(e,s,"selectOption"),d?.()},[i,x,b,d,q]);return e.jsx(n,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:e.jsx(l.KeyboardArrowDown,{}),disabled:p,disableClearable:u,multiple:x,options:i,renderInput:f,renderValue:h,value:x?q:B,isOptionEqualToValue:(e,l)=>e.value===l.value,onChange:(e,l,t)=>{const a=(e=>Array.isArray(e)?e.map(e=>e.value):e?.value??null)(l);x?I(l):O(l),b?.(e,a,t),d?.()},...c?{groupBy:e=>{const l=e;return(e=>Object.hasOwn(e,"group"))(l)?l.group:""},renderGroup:l=>e.jsxs(o.default.Fragment,{children:[0!==parseInt(`${l.key}`)&&e.jsx(t.Box,{sx:{borderBottom:e=>`1px solid ${e.custom.palette.stroke.default}`,my:1}}),l.group&&e.jsx(t.Box,{component:"div",className:t.autocompleteClasses.groupLabel,children:l.group}),l.children]},l.key)}:{},getOptionLabel:e=>"object"==typeof e&&null!==e&&"label"in e?e.label:"",renderOption:(a,r,{selected:s})=>{const{key:n,...i}=a,o=r;return e.jsx("li",{...i,children:e.jsxs(t.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:2},children:[e.jsx(t.Box,{children:g?g(o.value,o.label):o.label}),e.jsx(t.Box,{sx:{display:"flex",alignItems:"center"},children:e.jsx(l.Check,{sx:{visibility:s?"visible":"hidden",fontSize:"16px"}})})]})},o.value)},slots:{...A,popper:l=>e.jsx(s,{...l,sizing:j}),listbox:l=>e.jsx(r,{...l,handleSelectAll:S,showSelectAll:Boolean(x),value:x?q:B,selections:i,sizing:j})}})};
|
|
@@ -6,7 +6,7 @@ import { TextFieldProps } from '@mui/material';
|
|
|
6
6
|
type InputFieldBaseProps = TextFieldProps;
|
|
7
7
|
declare const InputFieldBase: _emotion_styled.StyledComponent<{
|
|
8
8
|
variant?: _mui_material.TextFieldVariants | undefined;
|
|
9
|
-
} & Omit<_mui_material.
|
|
9
|
+
} & Omit<_mui_material.FilledTextFieldProps | _mui_material.OutlinedTextFieldProps | _mui_material.StandardTextFieldProps, "variant"> & (_mui_system.MUIStyledCommonProps<_mui_material.Theme> & InputFieldBaseProps), {}, {}>;
|
|
10
10
|
|
|
11
11
|
export { InputFieldBase as default };
|
|
12
12
|
export type { InputFieldBaseProps };
|
|
@@ -4,7 +4,7 @@ import { PaletteMode, Direction } from '@mui/material';
|
|
|
4
4
|
import { ScreenSize, CustomTheme } from './types.js';
|
|
5
5
|
|
|
6
6
|
declare const useThemeBuilder: (initialMode?: PaletteMode, initialScreenSize?: ScreenSize, initialDirection?: Direction) => {
|
|
7
|
-
breakpoint: "" | "sm" | "
|
|
7
|
+
breakpoint: "" | "sm" | "md" | "lg" | "xl";
|
|
8
8
|
custom: CustomTheme;
|
|
9
9
|
gridOverlayVisible: boolean;
|
|
10
10
|
mode: PaletteMode;
|