freemium-ui 2.0.28 → 2.0.30
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/lib/index.cjs.js +35 -37
- package/lib/index.d.ts +6 -2
- package/lib/index.js +35 -37
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -1055,10 +1055,10 @@ shadows:["none",`0px 2px 1px -1px ${Mo(Co.black,.2)},0px 1px 1px 0px ${Mo(Co.bla
|
|
|
1055
1055
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1056
1056
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1057
1057
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1058
|
-
complex:"450ms"}},zIndex:xo,components:{
|
|
1059
|
-
backgroundTo:bo.E900,color:Co.white,
|
|
1060
|
-
|
|
1061
|
-
activeBorderColor:bo.E900,disabledBorderColor:bo.S400,
|
|
1058
|
+
complex:"450ms"}},zIndex:xo,components:{toast:{position:"center"},button:{
|
|
1059
|
+
primary:{backgroundFrom:bo.E800,backgroundTo:bo.E900,color:Co.white,
|
|
1060
|
+
disabledColor:bo.S10,activeBackgroundColor:bo.E800,hoverColor:bo.E900,
|
|
1061
|
+
borderColor:bo.E900,activeBorderColor:bo.E900,disabledBorderColor:bo.S400,
|
|
1062
1062
|
disabledBackgroundFrom:bo.S300,disabledBackgroundTo:bo.S400},secondary:{
|
|
1063
1063
|
backgroundFrom:Co.white,backgroundTo:bo.S25,color:bo.E900,disabledColor:bo.S300,
|
|
1064
1064
|
activeBackgroundColor:bo.S25,hoverColor:bo.S25,borderColor:bo.S100,
|
|
@@ -1096,10 +1096,10 @@ shadows:["none",`0px 2px 1px -1px ${Mo(bo.E900,.2)},0px 1px 1px 0px ${Mo(bo.E900
|
|
|
1096
1096
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1097
1097
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1098
1098
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1099
|
-
complex:"450ms"}},zIndex:xo,components:{
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
activeBorderColor:bo.E50,disabledBorderColor:bo.E50,
|
|
1099
|
+
complex:"450ms"}},zIndex:xo,components:{toast:{position:"center"},button:{
|
|
1100
|
+
primary:{backgroundFrom:bo.E100,backgroundTo:bo.E100,color:Co.black,
|
|
1101
|
+
disabledColor:Co.black,activeBackgroundColor:bo.E50,hoverColor:bo.E50,
|
|
1102
|
+
borderColor:bo.E50,activeBorderColor:bo.E50,disabledBorderColor:bo.E50,
|
|
1103
1103
|
disabledBackgroundFrom:bo.E100,disabledBackgroundTo:bo.E100},secondary:{
|
|
1104
1104
|
backgroundFrom:Co.neutral.dark_mild,backgroundTo:Co.neutral.dark_mild,
|
|
1105
1105
|
color:bo.S100,disabledColor:bo.S500,
|
|
@@ -16725,17 +16725,15 @@ const UY=_Y,YY=kY,WY=RY,GY=PY,KY=yr(MY)``;yr.div`
|
|
|
16725
16725
|
`,XY=yr(GY)``,JY=yr(UY)`
|
|
16726
16726
|
position: fixed;
|
|
16727
16727
|
top: 16px;
|
|
16728
|
-
left: 50%;
|
|
16729
|
-
transform: translate(-50%, 0);
|
|
16730
16728
|
display: flex;
|
|
16731
16729
|
flex-direction: column;
|
|
16732
|
-
align-items:
|
|
16730
|
+
align-items: ${({theme:e})=>e.components.toast.position};
|
|
16733
16731
|
margin: 0;
|
|
16734
16732
|
list-style: none;
|
|
16735
16733
|
z-index: ${({theme:e})=>e.zIndex.snackbar||xo.snackbar};
|
|
16736
16734
|
outline: none;
|
|
16737
16735
|
width: -webkit-fill-available;
|
|
16738
|
-
padding: 0;
|
|
16736
|
+
padding: 0 16px;
|
|
16739
16737
|
&:hover {
|
|
16740
16738
|
gap: 8px;
|
|
16741
16739
|
li[data-state='open']:nth-last-of-type(1) {
|
|
@@ -17104,37 +17102,37 @@ fill:p.colors.text.semantic[r]
|
|
|
17104
17102
|
}),a?.message?e.createElement(Bo,null,a.message," ",g):n,!a?.message&&g),s&&e.createElement(Ao,{
|
|
17105
17103
|
onClick:()=>{v(!1),t?.()}},e.createElement(no,{fill:p.colors.text.primary
|
|
17106
17104
|
}))):null
|
|
17107
|
-
},exports.AutoComplete=({initialItems:t=[],disabled:n,id:r,label:o,errorText:a,name:i,placeholder:l,width:c,onChange:s,itemComponent:u,itemToString:d,searchKey:h="q",defaultSelectedItem:p,readOnly:f,itemIdentifier:m="id",isErrored:v,emptyItemsText:g,
|
|
17108
|
-
const
|
|
17109
|
-
if(!
|
|
17110
|
-
;const r=`${t.origin}${t.pathname}?${n.toString()}`;
|
|
17105
|
+
},exports.AutoComplete=({initialItems:t=[],disabled:n,id:r,label:o,errorText:a,name:i,placeholder:l,width:c,onChange:s,itemComponent:u,itemToString:d,searchKey:h="q",defaultSelectedItem:p,readOnly:f,itemIdentifier:m="id",isErrored:v,emptyItemsText:g,processFetchData:y,isRequired:b,style:w,url:C})=>{
|
|
17106
|
+
const z=cr(),[M,x]=e.useState(!1),E=e.useRef(t),[S,_]=e.useState(t),H=(e="")=>{
|
|
17107
|
+
if(!C)return;const t=new URL(C),n=new URLSearchParams(t.search);n.append(h,e)
|
|
17108
|
+
;const r=`${t.origin}${t.pathname}?${n.toString()}`;x(!0),(async(e,t,n,r,o,a)=>{
|
|
17111
17109
|
try{const i=await bm({data:t,url:e,method:n||"get",withCredentials:o||!1,
|
|
17112
17110
|
responseType:a,headers:{"Content-Type":"application/json",...r||{}}})
|
|
17113
17111
|
;return i?.data}catch(e){return}})(r).then((e=>{
|
|
17114
|
-
Array.isArray(e)&&
|
|
17115
|
-
},
|
|
17116
|
-
}),300),[]),{isOpen:
|
|
17117
|
-
id:r,selectedItem:p,items:
|
|
17118
|
-
!e.isOpen&&e?.selectedItem&&
|
|
17119
|
-
"__input_change__"===e.type&&""===e.inputValue&&
|
|
17120
|
-
|
|
17112
|
+
Array.isArray(e)&&_(wm([...E.current??[],...y?y(e):e],m)),x(!1)})).catch((e=>{
|
|
17113
|
+
x(!1)}))},D=e.useCallback(yc((e=>{H(e)
|
|
17114
|
+
}),300),[]),{isOpen:k,selectedItem:A,getToggleButtonProps:L,getLabelProps:V,getMenuProps:T,highlightedIndex:R,selectItem:P,setInputValue:I,getItemProps:O,getInputProps:N}=_l({
|
|
17115
|
+
id:r,selectedItem:p,items:S,onIsOpenChange:e=>{
|
|
17116
|
+
!e.isOpen&&e?.selectedItem&&I(d(e.selectedItem))},onInputValueChange:e=>{
|
|
17117
|
+
"__input_change__"===e.type&&""===e.inputValue&&P(null),
|
|
17118
|
+
A?.[m]&&e.inputValue===d(A)?D(""):D(e.inputValue)},
|
|
17121
17119
|
itemToString:e=>e?d(e,"downshift"):"",onSelectedItemChange:e=>{
|
|
17122
|
-
|
|
17123
|
-
;e.useEffect((()=>{
|
|
17124
|
-
width:c},e.createElement(Ho,{className:"input-label",...
|
|
17125
|
-
})},o,o&&
|
|
17120
|
+
E.current=wm([...E.current??[],e.selectedItem],m),s?.(e.selectedItem)}})
|
|
17121
|
+
;e.useEffect((()=>{H("")}),[C]);const F=!n&&!f&&k;return e.createElement(Uh,{
|
|
17122
|
+
width:c},e.createElement(Ho,{className:"input-label",...V({disabled:n,readOnly:f
|
|
17123
|
+
})},o,o&&b&&e.createElement(ko,null,"*")),e.createElement(_c,{...N({name:i,
|
|
17126
17124
|
readOnly:f,disabled:n}),placeholder:l,
|
|
17127
|
-
endAdornment:e.createElement(Zh,null,e.createElement(Ao,{...
|
|
17128
|
-
readOnly:f,"aria-label":"toggle-button"})},e.createElement(jh,{$isOpen:
|
|
17129
|
-
fill:
|
|
17130
|
-
}),!f&&!n&&e.createElement(Wh,{$isOpen:
|
|
17131
|
-
},
|
|
17132
|
-
readOnly:!0},g||"No items"),
|
|
17125
|
+
endAdornment:e.createElement(Zh,null,e.createElement(Ao,{...L({disabled:n,
|
|
17126
|
+
readOnly:f,"aria-label":"toggle-button"})},e.createElement(jh,{$isOpen:F,
|
|
17127
|
+
fill:z.colors.text.primary,width:8,height:8}))),style:w
|
|
17128
|
+
}),!f&&!n&&e.createElement(Wh,{$isOpen:k,...T({disabled:n,readOnly:f})
|
|
17129
|
+
},M?e.createElement(qh,null,e.createElement(Vc,null)):e.createElement(e.Fragment,null,k&&0===S.length&&e.createElement(Gh,{
|
|
17130
|
+
readOnly:!0},g||"No items"),k&&S.map(((t,n)=>{
|
|
17133
17131
|
const r="string"==typeof t?t:t?.[m];return e.createElement(e.Fragment,{key:r
|
|
17134
|
-
},u?u(t,{isHilighted:
|
|
17135
|
-
}):e.createElement(Gh,{$isHilighted:
|
|
17136
|
-
...
|
|
17137
|
-
fill:
|
|
17132
|
+
},u?u(t,{isHilighted:R===n,isSelected:A===t,key:r,...O({item:t,index:n})
|
|
17133
|
+
}):e.createElement(Gh,{$isHilighted:R===n,$isSelected:A?.[m]===t?.[m],key:r,
|
|
17134
|
+
...O({item:t,index:n})},d(t),A?.[m]===t?.[m]&&e.createElement(ro,{
|
|
17135
|
+
fill:z.colors.common.accent})))})))),v&&a&&e.createElement(wc,null,a))
|
|
17138
17136
|
},exports.BoxedRadio=({options:t,defaultValue:n,idAccessor:r="id",onChange:o,isErrored:a,errorText:i,disabled:l=!1,getTextContent:c,className:s,id:u,isRequired:d,readOnly:h,itemComponent:p,label:f,value:m,customIndicator:v,...g})=>e.createElement(zg,{
|
|
17139
17137
|
className:"StyledBoxedRadio"},f&&e.createElement(Ho,{htmlFor:u,
|
|
17140
17138
|
className:"input-label"
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { ReactNode } from 'react';
|
|
3
|
+
import react__default, { ReactNode, CSSProperties } from 'react';
|
|
4
4
|
import { AccordionSingleProps } from '@radix-ui/react-accordion';
|
|
5
5
|
import * as Popover$1 from '@radix-ui/react-popover';
|
|
6
6
|
import { PortalProps, PopperContentProps } from '@radix-ui/react-popover';
|
|
@@ -368,10 +368,11 @@ interface AutoCompleteProps<T extends DefaultAutoCompleteItem = DefaultAutoCompl
|
|
|
368
368
|
*
|
|
369
369
|
*/
|
|
370
370
|
emptyItemsText?: string;
|
|
371
|
+
processFetchData?: (data: any[]) => T[];
|
|
371
372
|
itemComponent?: (item: T, props?: AutoCompleteInputItemProps) => React.ReactNode | string;
|
|
372
373
|
}
|
|
373
374
|
|
|
374
|
-
declare const AutoComplete: <T extends DefaultDropdownItem>({ initialItems, disabled, id, label, errorText, name, placeholder, width, onChange, itemComponent, itemToString, searchKey, defaultSelectedItem, readOnly, itemIdentifier, isErrored, emptyItemsText, isRequired, style, url, }: AutoCompleteProps<T>) => react__default.JSX.Element;
|
|
375
|
+
declare const AutoComplete: <T extends DefaultDropdownItem>({ initialItems, disabled, id, label, errorText, name, placeholder, width, onChange, itemComponent, itemToString, searchKey, defaultSelectedItem, readOnly, itemIdentifier, isErrored, emptyItemsText, processFetchData, isRequired, style, url, }: AutoCompleteProps<T>) => react__default.JSX.Element;
|
|
375
376
|
|
|
376
377
|
type ButtonSizeKey = 'mini' | 'normal' | 'large';
|
|
377
378
|
type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'link';
|
|
@@ -1563,6 +1564,9 @@ interface FreemiumUiTheme {
|
|
|
1563
1564
|
transitions: Transitions;
|
|
1564
1565
|
zIndex: ZIndex;
|
|
1565
1566
|
components: {
|
|
1567
|
+
toast: {
|
|
1568
|
+
position: CSSProperties['alignItems'];
|
|
1569
|
+
};
|
|
1566
1570
|
button: {
|
|
1567
1571
|
primary: FreemiumUiButtonTheme;
|
|
1568
1572
|
secondary: FreemiumUiButtonTheme;
|
package/lib/index.js
CHANGED
|
@@ -1047,10 +1047,10 @@ shadows:["none",`0px 2px 1px -1px ${Uo(Bo.black,.2)},0px 1px 1px 0px ${Uo(Bo.bla
|
|
|
1047
1047
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1048
1048
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1049
1049
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1050
|
-
complex:"450ms"}},zIndex:Yo,components:{
|
|
1051
|
-
backgroundTo:Fo.E900,color:Bo.white,
|
|
1052
|
-
|
|
1053
|
-
activeBorderColor:Fo.E900,disabledBorderColor:Fo.S400,
|
|
1050
|
+
complex:"450ms"}},zIndex:Yo,components:{toast:{position:"center"},button:{
|
|
1051
|
+
primary:{backgroundFrom:Fo.E800,backgroundTo:Fo.E900,color:Bo.white,
|
|
1052
|
+
disabledColor:Fo.S10,activeBackgroundColor:Fo.E800,hoverColor:Fo.E900,
|
|
1053
|
+
borderColor:Fo.E900,activeBorderColor:Fo.E900,disabledBorderColor:Fo.S400,
|
|
1054
1054
|
disabledBackgroundFrom:Fo.S300,disabledBackgroundTo:Fo.S400},secondary:{
|
|
1055
1055
|
backgroundFrom:Bo.white,backgroundTo:Fo.S25,color:Fo.E900,disabledColor:Fo.S300,
|
|
1056
1056
|
activeBackgroundColor:Fo.S25,hoverColor:Fo.S25,borderColor:Fo.S100,
|
|
@@ -1088,10 +1088,10 @@ shadows:["none",`0px 2px 1px -1px ${Uo(Fo.E900,.2)},0px 1px 1px 0px ${Uo(Fo.E900
|
|
|
1088
1088
|
transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1089
1089
|
easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.16, 1, 0.3, 1)",
|
|
1090
1090
|
sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{short:"250ms",standard:"300ms",
|
|
1091
|
-
complex:"450ms"}},zIndex:Yo,components:{
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
activeBorderColor:Fo.E50,disabledBorderColor:Fo.E50,
|
|
1091
|
+
complex:"450ms"}},zIndex:Yo,components:{toast:{position:"center"},button:{
|
|
1092
|
+
primary:{backgroundFrom:Fo.E100,backgroundTo:Fo.E100,color:Bo.black,
|
|
1093
|
+
disabledColor:Bo.black,activeBackgroundColor:Fo.E50,hoverColor:Fo.E50,
|
|
1094
|
+
borderColor:Fo.E50,activeBorderColor:Fo.E50,disabledBorderColor:Fo.E50,
|
|
1095
1095
|
disabledBackgroundFrom:Fo.E100,disabledBackgroundTo:Fo.E100},secondary:{
|
|
1096
1096
|
backgroundFrom:Bo.neutral.dark_mild,backgroundTo:Bo.neutral.dark_mild,
|
|
1097
1097
|
color:Fo.S100,disabledColor:Fo.S500,
|
|
@@ -3887,37 +3887,37 @@ $m.getAdapter=_m,$m.HttpStatusCode=Fm,
|
|
|
3887
3887
|
$m.default=$m,$m.defaults.withCredentials=!0;const Bm=(e,t)=>{const n={}
|
|
3888
3888
|
;return e.forEach((e=>{e?.[t]&&(n?.[e[t]]||(n[e[t]]=e))
|
|
3889
3889
|
})),Object.keys(n).map((e=>n[e]))
|
|
3890
|
-
},jm=({initialItems:e=[],disabled:n,id:r,label:o,errorText:a,name:i,placeholder:l,width:c,onChange:s,itemComponent:u,itemToString:d,searchKey:h="q",defaultSelectedItem:p,readOnly:f,itemIdentifier:m="id",isErrored:v,emptyItemsText:g,
|
|
3891
|
-
const
|
|
3892
|
-
if(!
|
|
3893
|
-
;const r=`${t.origin}${t.pathname}?${n.toString()}`;
|
|
3890
|
+
},jm=({initialItems:e=[],disabled:n,id:r,label:o,errorText:a,name:i,placeholder:l,width:c,onChange:s,itemComponent:u,itemToString:d,searchKey:h="q",defaultSelectedItem:p,readOnly:f,itemIdentifier:m="id",isErrored:v,emptyItemsText:g,processFetchData:y,isRequired:b,style:w,url:C})=>{
|
|
3891
|
+
const z=Hr(),[M,x]=t.useState(!1),E=t.useRef(e),[S,_]=t.useState(e),H=(e="")=>{
|
|
3892
|
+
if(!C)return;const t=new URL(C),n=new URLSearchParams(t.search);n.append(h,e)
|
|
3893
|
+
;const r=`${t.origin}${t.pathname}?${n.toString()}`;x(!0),(async(e,t,n,r,o,a)=>{
|
|
3894
3894
|
try{const i=await $m({data:t,url:e,method:n||"get",withCredentials:o||!1,
|
|
3895
3895
|
responseType:a,headers:{"Content-Type":"application/json",...r||{}}})
|
|
3896
3896
|
;return i?.data}catch(e){return}})(r).then((e=>{
|
|
3897
|
-
Array.isArray(e)&&
|
|
3898
|
-
},
|
|
3899
|
-
}),300),[]),{isOpen:
|
|
3900
|
-
id:r,selectedItem:p,items:
|
|
3901
|
-
!e.isOpen&&e?.selectedItem&&
|
|
3902
|
-
"__input_change__"===e.type&&""===e.inputValue&&
|
|
3903
|
-
|
|
3897
|
+
Array.isArray(e)&&_(Bm([...E.current??[],...y?y(e):e],m)),x(!1)})).catch((e=>{
|
|
3898
|
+
x(!1)}))},D=t.useCallback(Fc((e=>{H(e)
|
|
3899
|
+
}),300),[]),{isOpen:A,selectedItem:L,getToggleButtonProps:V,getLabelProps:k,getMenuProps:T,highlightedIndex:P,selectItem:R,setInputValue:I,getItemProps:O,getInputProps:N}=ql({
|
|
3900
|
+
id:r,selectedItem:p,items:S,onIsOpenChange:e=>{
|
|
3901
|
+
!e.isOpen&&e?.selectedItem&&I(d(e.selectedItem))},onInputValueChange:e=>{
|
|
3902
|
+
"__input_change__"===e.type&&""===e.inputValue&&R(null),
|
|
3903
|
+
L?.[m]&&e.inputValue===d(L)?D(""):D(e.inputValue)},
|
|
3904
3904
|
itemToString:e=>e?d(e,"downshift"):"",onSelectedItemChange:e=>{
|
|
3905
|
-
|
|
3906
|
-
;t.useEffect((()=>{
|
|
3907
|
-
width:c},t.createElement(qo,{className:"input-label",...
|
|
3908
|
-
})},o,o&&
|
|
3905
|
+
E.current=Bm([...E.current??[],e.selectedItem],m),s?.(e.selectedItem)}})
|
|
3906
|
+
;t.useEffect((()=>{H("")}),[C]);const F=!n&&!f&&A;return t.createElement(hp,{
|
|
3907
|
+
width:c},t.createElement(qo,{className:"input-label",...k({disabled:n,readOnly:f
|
|
3908
|
+
})},o,o&&b&&t.createElement(Xo,null,"*")),t.createElement(qc,{...N({name:i,
|
|
3909
3909
|
readOnly:f,disabled:n}),placeholder:l,
|
|
3910
|
-
endAdornment:t.createElement(yp,null,t.createElement(Jo,{...
|
|
3911
|
-
readOnly:f,"aria-label":"toggle-button"})},t.createElement(dp,{$isOpen:
|
|
3912
|
-
fill:
|
|
3913
|
-
}),!f&&!n&&t.createElement(fp,{$isOpen:
|
|
3914
|
-
},
|
|
3915
|
-
readOnly:!0},g||"No items"),
|
|
3910
|
+
endAdornment:t.createElement(yp,null,t.createElement(Jo,{...V({disabled:n,
|
|
3911
|
+
readOnly:f,"aria-label":"toggle-button"})},t.createElement(dp,{$isOpen:F,
|
|
3912
|
+
fill:z.colors.text.primary,width:8,height:8}))),style:w
|
|
3913
|
+
}),!f&&!n&&t.createElement(fp,{$isOpen:A,...T({disabled:n,readOnly:f})
|
|
3914
|
+
},M?t.createElement(gp,null,t.createElement(ts,null)):t.createElement(t.Fragment,null,A&&0===S.length&&t.createElement(mp,{
|
|
3915
|
+
readOnly:!0},g||"No items"),A&&S.map(((e,n)=>{
|
|
3916
3916
|
const r="string"==typeof e?e:e?.[m];return t.createElement(t.Fragment,{key:r
|
|
3917
|
-
},u?u(e,{isHilighted:
|
|
3918
|
-
}):t.createElement(mp,{$isHilighted:
|
|
3919
|
-
...
|
|
3920
|
-
fill:
|
|
3917
|
+
},u?u(e,{isHilighted:P===n,isSelected:L===e,key:r,...O({item:e,index:n})
|
|
3918
|
+
}):t.createElement(mp,{$isHilighted:P===n,$isSelected:L?.[m]===e?.[m],key:r,
|
|
3919
|
+
...O({item:e,index:n})},d(e),L?.[m]===e?.[m]&&t.createElement(xo,{
|
|
3920
|
+
fill:z.colors.common.accent})))})))),v&&a&&t.createElement(Bc,null,a))},Um={
|
|
3921
3921
|
large:{height:"45px",size:"16px"},mini:{height:"24px",size:"12px"},normal:{
|
|
3922
3922
|
height:"32px",size:"14px"}},Ym=Or.button`
|
|
3923
3923
|
direction: ${({theme:e})=>e.direction};
|
|
@@ -16977,17 +16977,15 @@ const _W=uW,HW=pW,DW=yW,AW=bW,LW=Or(iW)``;Or.div`
|
|
|
16977
16977
|
`,TW=Or(AW)``,PW=Or(_W)`
|
|
16978
16978
|
position: fixed;
|
|
16979
16979
|
top: 16px;
|
|
16980
|
-
left: 50%;
|
|
16981
|
-
transform: translate(-50%, 0);
|
|
16982
16980
|
display: flex;
|
|
16983
16981
|
flex-direction: column;
|
|
16984
|
-
align-items:
|
|
16982
|
+
align-items: ${({theme:e})=>e.components.toast.position};
|
|
16985
16983
|
margin: 0;
|
|
16986
16984
|
list-style: none;
|
|
16987
16985
|
z-index: ${({theme:e})=>e.zIndex.snackbar||Yo.snackbar};
|
|
16988
16986
|
outline: none;
|
|
16989
16987
|
width: -webkit-fill-available;
|
|
16990
|
-
padding: 0;
|
|
16988
|
+
padding: 0 16px;
|
|
16991
16989
|
&:hover {
|
|
16992
16990
|
gap: 8px;
|
|
16993
16991
|
li[data-state='open']:nth-last-of-type(1) {
|
package/lib/package.json
CHANGED