amotify 0.2.91 → 0.2.93
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.
|
@@ -1584,7 +1584,7 @@ text5`}
|
|
|
1584
1584
|
Input.Radio
|
|
1585
1585
|
<Input.Radio
|
|
1586
1586
|
name='radio'
|
|
1587
|
-
value={
|
|
1587
|
+
value={ 1 }
|
|
1588
1588
|
options={ [
|
|
1589
1589
|
{ value: 1,label: 'Option1' },
|
|
1590
1590
|
{ value: 2,label: 'Option2' },
|
|
@@ -1592,6 +1592,9 @@ text5`}
|
|
|
1592
1592
|
{ value: 4,label: 'Option4' },
|
|
1593
1593
|
{ value: 5,label: 'Option5' },
|
|
1594
1594
|
] }
|
|
1595
|
+
onUpdateValidValue={ ( { value } ) => {
|
|
1596
|
+
|
|
1597
|
+
} }
|
|
1595
1598
|
/>
|
|
1596
1599
|
</Box>
|
|
1597
1600
|
<Box>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactElement } from '../../@declares';
|
|
2
|
-
import {
|
|
2
|
+
import { Checkbox } from './List';
|
|
3
3
|
declare namespace Checker {
|
|
4
4
|
type Exclude = 'type' | 'options';
|
|
5
|
-
export type Input = Omit<
|
|
5
|
+
export type Input = Omit<Checkbox.Input<boolean, boolean>, Exclude> & {
|
|
6
6
|
label: ReactElement;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
package/dist/fn/Input/Checker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as o,c as t}from"../../chunk-C5N2D3ZX.js";import{jsx as n}from"react/jsx-runtime";import{Checkbox as a}from"./List";const l=e=>n(a,t(o({icon:!0},e),{isChecker:!0,value:!!e.value,options:[{value:!0,label:e.label}]}));export{l as Checker,l as default};
|
package/dist/fn/Input/List.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ declare namespace List {
|
|
|
7
7
|
type IconType = Type;
|
|
8
8
|
type Tone = 'normal' | 'border' | 'cloud' | 'plain';
|
|
9
9
|
type Size = 'small' | 'regular' | 'large';
|
|
10
|
-
type Input<T = Value> = InputTypes.CoreInput<
|
|
10
|
+
type Input<T = Value, O = T> = InputTypes.CoreInput<O> & {
|
|
11
11
|
type?: Type;
|
|
12
12
|
tone?: Tone;
|
|
13
13
|
icon?: boolean;
|
|
@@ -54,21 +54,39 @@ declare namespace List {
|
|
|
54
54
|
val_status: InputTypes.Status.Plain;
|
|
55
55
|
set_status: React.Dispatch<React.SetStateAction<InputTypes.Status.Plain>>;
|
|
56
56
|
};
|
|
57
|
+
}
|
|
58
|
+
declare namespace Radio {
|
|
59
|
+
type Input<T = List.Value> = List.Input<T>;
|
|
60
|
+
namespace Methods {
|
|
61
|
+
type Component = {
|
|
62
|
+
<T = List.Value>(p: List.Input<List.Value<T>>): JSX.Element;
|
|
63
|
+
};
|
|
64
|
+
type FNs = {
|
|
65
|
+
Normal: <T = List.Value>(p: List.Input<List.Value<T>>) => JSX.Element;
|
|
66
|
+
Border: <T = List.Value>(p: List.Input<List.Value<T>>) => JSX.Element;
|
|
67
|
+
Cloud: <T = List.Value>(p: List.Input<List.Value<T>>) => JSX.Element;
|
|
68
|
+
Simple: <T = List.Value>(p: List.Input<List.Value<T>>) => JSX.Element;
|
|
69
|
+
Vivid: <T = List.Value>(p: List.Input<List.Value<T>>) => JSX.Element;
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
type Methods = Methods.Component & Methods.FNs;
|
|
73
|
+
}
|
|
74
|
+
declare namespace Checkbox {
|
|
75
|
+
type Input<T = List.Value, O = T[]> = List.Input<T, O>;
|
|
57
76
|
namespace Methods {
|
|
58
77
|
type Component = {
|
|
59
|
-
<T = Value>(p: Input<Value<T>>): JSX.Element;
|
|
78
|
+
<T = List.Value, O = T[]>(p: List.Input<List.Value<T>, List.Value<O>>): JSX.Element;
|
|
60
79
|
};
|
|
61
80
|
type FNs = {
|
|
62
|
-
Normal: <T = Value>(p: Input<Value<T>>) => JSX.Element;
|
|
63
|
-
Border: <T = Value>(p: Input<Value<T>>) => JSX.Element;
|
|
64
|
-
Cloud: <T = Value>(p: Input<Value<T>>) => JSX.Element;
|
|
65
|
-
Simple: <T = Value>(p: Input<Value<T>>) => JSX.Element;
|
|
66
|
-
Vivid: <T = Value>(p: Input<Value<T>>) => JSX.Element;
|
|
81
|
+
Normal: <T = List.Value, O = T[]>(p: List.Input<List.Value<T>, List.Value<O>>) => JSX.Element;
|
|
82
|
+
Border: <T = List.Value, O = T[]>(p: List.Input<List.Value<T>, List.Value<O>>) => JSX.Element;
|
|
83
|
+
Cloud: <T = List.Value, O = T[]>(p: List.Input<List.Value<T>, List.Value<O>>) => JSX.Element;
|
|
84
|
+
Simple: <T = List.Value, O = T[]>(p: List.Input<List.Value<T>, List.Value<O>>) => JSX.Element;
|
|
85
|
+
Vivid: <T = List.Value, O = T[]>(p: List.Input<List.Value<T>, List.Value<O>>) => JSX.Element;
|
|
67
86
|
};
|
|
68
87
|
}
|
|
69
88
|
type Methods = Methods.Component & Methods.FNs;
|
|
70
89
|
}
|
|
71
|
-
declare const
|
|
72
|
-
declare const
|
|
73
|
-
|
|
74
|
-
export { Checkbox, Radio, List, List as default };
|
|
90
|
+
declare const Radio: Radio.Methods;
|
|
91
|
+
declare const Checkbox: Checkbox.Methods;
|
|
92
|
+
export { List, Checkbox, Radio };
|
package/dist/fn/Input/List.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,c as
|
|
1
|
+
import{b as o,c as p,d as B}from"../../chunk-C5N2D3ZX.js";import{jsx as a}from"react/jsx-runtime";import f,{UUID as M}from"jmini";import{useState as le}from"react";import{$$fromRoot as ne,GenerateHTMLProps as se}from"../../@utils";import{Box as I,Flex as re,FAI as ce,Span as de}from"../../atoms";import{Button as ue}from"../Button";import{OptionalInputWrapper as pe,BoxWrapper as me,CoreEffects as w}from"./core";import{InputListClasses as T}from"../../@styles/componentClasses";function Ce(t){let{value:l,states:i}=t,{type:e,required:d,min:n,max:m}=i;n=n||0,m=m||65535;let s=[],S=l.length;return d&&(S||e=="radio"&&s.push({type:"invalid",label:"\u5FC5\u9808\u9805\u76EE\u3067\u3059"})),S<n&&s.push({type:"invalid",label:n+"\u500B\u4EE5\u4E0A\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"}),S>m&&s.push({type:"invalid",label:m+"\u500B\u307E\u3067\u9078\u629E\u3067\u304D\u307E\u3059"}),{ok:!s.filter(({type:k})=>k=="invalid").length,notice:s}}const h={OptionalListWrapper:t=>{let{value:l,options:i=[]}=t,e=f.is.exist(l)?f.flatArray(l):[],d=[];return e.forEach(n=>{i.findIndex(s=>f.is.equal(s.value,n))!=-1&&d.push(n)}),a(h.Core,p(o({},t),{value:d,options:i}))},Core:t=>{let R=t,{type:l,tone:i,required:e,componentID:d="",form:n,override:m,icon:s,iconType:S,iconSize:k,iconPosition:J,iconColor:V,CustomIcon:P,enableFormSubmit:X,checkValidationAtFirst:A,onValidate:$,onUpdateValue:v,onUpdateValidValue:W,value:_,options:U,className:g,cellStyles:K,cellClassName:q,cellCheckedStyles:H,cellCheckedClassName:j,min:G,max:Q,hideInput:E,freeCSS:u,wrapStyles:N}=R,x=B(R,["type","tone","required","componentID","form","override","icon","iconType","iconSize","iconPosition","iconColor","CustomIcon","enableFormSubmit","checkValidationAtFirst","onValidate","onUpdateValue","onUpdateValidValue","value","options","className","cellStyles","cellClassName","cellCheckedStyles","cellCheckedClassName","min","max","hideInput","freeCSS","wrapStyles"]),[b,C]=le(w.DefaultStatus(d,_)),[O,Y]=le({ok:!1,notice:[]});return w.CommonEffects({type:"list."+l,states:t,val_status:b,set_status:C,val_validate:O,set_validate:Y,SystemValidation:Ce}),a(me,{val_status:b,set_status:C,val_validate:O,states:t,children:a(h.List,{rootStates:t,val_status:b,set_status:C})})},List:t=>{let{rootStates:l,val_status:i,set_status:e}=t,{componentID:d,type:n,tone:m,icon:s,iconSize:S,iconColor:k,isChecker:J,options:V,name:P,form:X,tabIndex:A,hideInput:$,disabled:v,className:W,cellStyles:_,cellClassName:U="",cellCheckedStyles:g,cellCheckedClassName:K="",enableFormSubmit:q}=l,{dataValue:H}=i,j=l.CustomIcon,G=V.map((Q,E)=>{let oe=Q,{value:u,label:N,disabled:x,className:b="",checkedStyles:C,checkedClassName:O="",freeCSS:Y}=oe,R=B(oe,["value","label","disabled","className","checkedStyles","checkedClassName","freeCSS"]),Z=M(),D=H.findIndex(r=>r===u)!=-1,y=o(o({},_),R),z=[T("Label"),U,b];D&&(y=p(o(o(o({},y),g),C),{freeCSS:o(o(o({},y==null?void 0:y.freeCSS),g==null?void 0:g.freeCSS),C==null?void 0:C.freeCSS)}),z=[...z,K,O]);const ee=()=>{if(v||x)return;let r=[];if(n=="radio")r=[u];else if(n=="checkbox"||J)if(!D)r=[...i.dataValue,u];else{let c=[...i.dataValue];c.splice(i.dataValue.findIndex(F=>F==u),1),r=c}e(c=>p(o({},c),{dataValue:r,eventType:"update",eventID:M()}))};let te=[a(de,{position:"relative",freeCSS:{zIndex:2},flexSizing:0,children:f.is.string(N)?a(I,{children:N}):N},"content")];return s&&te[l.iconPosition=="right"?"push":"unshift"](a(j,{isChecked:D,iconSize:S,iconColor:k,toggle:ee},"icon")),[a(I,{htmlTag:"input",type:n=="radio"?"radio":"checkbox",className:T("Input"),name:"RadioCheckbox-"+P,"data-list-index":d+"-"+E,id:Z,value:String(u),disabled:v||x,checked:D,onFocus:r=>{x||n=="radio"&&(i.dataValue.length||e(c=>p(o({},c),{dataValue:[u],eventType:"update",eventID:M()})))},onChange:()=>{ee()},onKeyDown:r=>{let{key:c,shiftKey:F}=r;if((n=="checkbox"||t.rootStates.isChecker)&&c!="Tab"){if(c.match(/Arrow/)){r.preventDefault();let ie=["ArrowLeft","ArrowUp"].includes(c)?-1:1,L=E+ie;L<0?L=V.length-1:L>=V.length&&(L=0),ne(`input[data-list-index="${d}-${L}"]`).focus()}}q&&w.SubmitForm(r,X)},tabIndex:A},"List-"+f.Stringify(u)),a(I,p(o({htmlTag:"label","data-disabled":v||x,htmlFor:Z,className:z.join(" "),tabIndex:-1,display:"flex",verticalAlign:"center",flexWrap:!1},y),{children:te}),"ListTrigger-"+f.Stringify(u))]});return a(re,{flexSizing:"auto",style:l.style,freeCSS:o({},l.freeCSS),className:[W,T("CellBase"),T("HideInput_"+$),T("IconIndicator_"+!!s),T("Tone_"+m)].join(" "),children:G})},_Icon:t=>{let l=1.5;return t.iconSize=="small"?l=1.2:t.iconSize=="large"&&(l=2),a(ue.Normal,{ssPushable:!0,color:"cloud",tabIndex:-1,ssEffectsOnActive:"ripple.cloud",ssSphere:2,freeCSS:{transform:`scale(${l})`},onClick:i=>{i.preventDefault(),i.stopPropagation(),t.toggle()},children:t.children})},RadioIcon:t=>a(h._Icon,p(o({type:"radio"},t),{children:a(I,{flexCenter:!0,isRounded:!0,border:t.isChecked?"0.trans":"3.thick",borderColor:t.isChecked?t.iconColor:"3.thick",position:"relative",transition:"middle",freeCSS:{width:"50%",height:"50%"},children:a(I,{position:"absolute",transition:"middle",isRounded:!0,backgroundColor:t.iconColor,opacity:t.isChecked?"max":"trans",freeCSS:{width:"60%",height:"60%",transform:t.isChecked?"scale(1)":"scale(.6)"}})})})),CheckboxIcon:t=>a(h._Icon,p(o({type:"checkbox"},t),{children:a(I,{flexCenter:!0,border:t.isChecked?"0.trans":"3.thick",backgroundColor:t.isChecked?t.iconColor:"trans",position:"relative",transition:"middle",fontColor:"white",freeCSS:{borderRadius:"25%",padding:"4%",width:"50%",height:"50%"},children:a(ce.Check,{transition:"middle",opacity:t.isChecked?"max":"trans",freeCSS:{zIndex:8,width:"100%",height:"100%",transform:t.isChecked?"scale(1)":"scale(.6)"}})})}))},ae=t=>{t=t||"checkbox";const l=e=>(e=p(o({gap:1,icon:!0,iconSize:"regular",iconType:t=="radio"?"radio":"checkbox",iconPosition:"left",iconColor:"theme"},e),{type:t,cellStyles:o({gap:"1/6",position:"relative",borderRadius:"2.tone.secondary",transition:"middle"},e.cellStyles)}),e.CustomIcon||(e.iconType=="radio"?e.CustomIcon=h.RadioIcon:e.iconType=="checkbox"&&(e.CustomIcon=h.CheckboxIcon)),e.iconSize=="small"?e.cellStyles.gap=0:e.iconSize=="large"&&(e.cellStyles.gap="1/2"),e.tone=="normal"?(e.cellStyles=o({padding:["1/4",1],border:"1.thin",backgroundColor:"layer.1"},e.cellStyles),e.cellCheckedStyles=o({borderColor:"theme",fontColor:"theme",boxShadow:"1.normal"},e.cellCheckedStyles)):e.tone=="border"?(e.cellStyles=o({paddingRight:1,border:"1.thin",backgroundColor:"layer.1",padding:"1/2"},e.cellStyles),e.cellCheckedStyles=o({borderColor:"theme",fontColor:"theme"},e.cellCheckedStyles)):e.tone=="cloud"&&(e.cellStyles=o({paddingRight:1,border:"1.thin",backgroundColor:"layer.2",padding:"1/2"},e.cellStyles),e.cellCheckedStyles=o({backgroundColor:"cloud",fontColor:"theme"},e.cellCheckedStyles)),e=se(e),a(pe,{componentID:e.componentID,children:h.OptionalListWrapper,states:e})),i=l;return i.Normal=e=>a(l,o({type:t,tone:"normal",icon:!1},e)),i.Border=e=>a(l,o({type:t,tone:"border"},e)),i.Cloud=e=>a(l,o({type:t,tone:"cloud"},e)),i.Vivid=e=>a(l,o({type:t,tone:"normal",icon:!1,cellCheckedStyles:{backgroundColor:"theme",fontColor:"white"}},e)),i.Simple=e=>a(l,o({type:t,tone:"plain",icon:!1,cellCheckedStyles:{fontColor:"theme"}},e)),i},he=ae("radio"),Se=ae("checkbox");export{Se as Checkbox,he as Radio};
|
package/dist/fn/Input/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as o,c as u,e as _}from"../../chunk-C5N2D3ZX.js";import{jsx as p,jsxs as h}from"react/jsx-runtime";import{useState as x,useEffect as g}from"react";import c,{UUID as y}from"jmini";import{$$fromRoot as k,Config as B,useStore as v}from"../../@utils";import{InputClasses as b}from"../../@styles/componentClasses";import{Box as E,Flex as w,FAI as T,Column as N}from"../../atoms";import{Row as D,Text as F}from"../../mols";import{Button as
|
|
1
|
+
import{b as o,c as u,e as _}from"../../chunk-C5N2D3ZX.js";import{jsx as p,jsxs as h}from"react/jsx-runtime";import{useState as x,useEffect as g}from"react";import c,{UUID as y}from"jmini";import{$$fromRoot as k,Config as B,useStore as v}from"../../@utils";import{InputClasses as b}from"../../@styles/componentClasses";import{Box as E,Flex as w,FAI as T,Column as N}from"../../atoms";import{Row as D,Text as F}from"../../mols";import{Button as W}from"../Button";import R from"../Tooltips";const et=t=>{let[n]=x(t.componentID||y());t=o({},t),t.states=u(o({enableFormSubmit:!0,status_id:y(),override:"never",form:"",id:y(),"aria-label":"Input-"+n},t.states),{componentID:n});let{children:e}=t;return p(e,o({},t.states))},at=t=>{let{children:n,val_status:e,val_validate:a,states:i}=t,{leftIcon:l,wrapStyles:d}=i;return e.eventType=="init"&&!i.checkValidationAtFirst&&(a.notice=[]),h(D.Center,u(o({position:"relative",verticalAlign:"unset",gap:0},d),{className:b("Wrapper"),"data-notice-uid":e.componentID,children:[p(C.Notice,{notice:a.notice,val_status:e}),i.leftIndicator,h(w,{position:"relative",flexSizing:"auto",children:[n,l,p(C.RightIcon,o({},t)),p(C.ClearButton,o({},t))]}),i.rightIndicator]}))},C={ClearButton:t=>!t.states.clearButton||!t.val_status.dataValue?null:p(W.Normal,{ssSphere:2,flexCenter:!0,fontColor:"5.translucent",ssEffectsOnActive:["ripple.theme"],position:"absolute",right:1,top:"50%",freeCSS:{zIndex:3,transform:"translateY(-50%)"},onClick:()=>{t.set_status(n=>u(o({},n),{dataValue:"",formatValue:"",eventType:"update",eventID:y()}))},children:p(T.Times,{})}),RightIcon:t=>t.states.clearButton&&t.val_status.dataValue?null:t.states.rightIcon,Notice:t=>{let{notice:n,val_status:e}=t,{componentID:a}=e,i="NoticeTimer-"+a,l="NoticeTimerClose-"+a,d="notice-tips-"+a;return g(()=>{c.interval.cycle(i,350,()=>{if(!n.length){R.close(d);return}R.open({tipsID:d,parent:`[data-notice-uid="${a}"]`,gravityPoint:22,padding:[1,0],closeAtParentBlur:!1,content:h(R.Body,{padding:["1/2","2/3"],fontSize:"1.mini",position:"relative",children:[p(E,{position:"absolute",unitHeight:1,unitWidth:1,left:1,backgroundColor:"dark",freeCSS:{zIndex:1,transform:"rotate(45deg)",top:-6}}),p(N,{backgroundColor:"inherit",gap:"1/3",position:"relative",freeCSS:{zIndex:2},children:n.map((I,S)=>{let{type:r,label:s}=I,f=r=="invalid"?T.Times:r=="warn"?T.Exclamation:T.Check;return h(D.Left,{gap:0,borderRadius:"2.tone.secondary",children:[p(f,{flexCenter:!0,fontSize:"2.normal",fontColor:{invalid:"nega",warn:"warn",valid:"posi"}[r]}),p(F.Supplement,{fontSize:"0.xs",fontColor:"white",children:s})]},S+"-"+c.Stringify(I))})})]})})}),c.interval.cycle(l,6e3,()=>{R.close(d)})},[n]),null}},z={DefaultStatus:(t,n)=>({componentID:t,dataValue:n,eventType:"init",eventID:y()}),CommonEffects:function(t){let{type:n,states:e,val_status:a,set_status:i,val_validate:l,set_validate:d,SystemValidation:I}=t;e=o({},e);let{componentID:S}=a;g(()=>(v.update({[S]:{ResolveRefresh:null,Refresh:()=>new Promise((r,s)=>{v.get(S).ResolveRefresh=r,i(f=>u(o({},f),{eventType:"refresh",eventID:y()}))}),GenNotice:r=>{let{ok:s,notice:f}=r;d({ok:s,notice:f})}}}),()=>{v.delete(S)}),[]),c.scope(()=>{let{override:r}=e;if(r=="never"||r=="beforeModified"&&!["init","override"].includes(a.eventType))return;let s=v.get(a.componentID);s&&(e.value!=a.dataValue&&e.status_id!=s.status_id&&i(f=>u(o(u(o({},f),{dataValue:e.value}),t.ExtraOverrideStates),{eventType:"override",eventID:y()})),s.status_id=e.status_id)}),g(()=>{z.ValidationCheck({val_status:a,set_validate:d,SystemValidation:I,states:e})},[a.eventID,a.dataValue]),g(()=>(c.scope(()=>{let{componentID:r,eventType:s,dataValue:f}=a,m=f;if(n=="autocomplete.single"||n=="list.radio"?m=m[0]:e.isChecker&&(m=!!m[0]),e.form=e.form||"testForm",e.name&&e.form&&v.update({[["form-data",e.form].join("-")]:{[e.name]:{componentID:r,type:n,value:m,validation:l.ok}}}),s=="refresh"){let V=v.get(r);V&&V.ResolveRefresh&&V.ResolveRefresh(null)}else s=="update"&&(e.onUpdateValue&&e.onUpdateValue({componentID:r,value:m,eventType:s}),c.scope(()=>{l.ok&&e.onUpdateValidValue&&e.onUpdateValidValue({componentID:r,value:m,eventType:s})}))}),()=>{v.update({[["form-data",e.form].join("-")]:{[e.name]:null}})}),[l])},ValidationCheck:t=>{let{states:n}=t;c.interval.clear("ValidationTimer-"+t.val_status.componentID);let e=t.SystemValidation({value:t.val_status.dataValue,states:n});if(!e.ok){t.set_validate(e);return}let a=e.notice;const i=()=>_(void 0,null,function*(){if(!n.onValidate)return;let l=yield n.onValidate({value:t.val_status.dataValue,eventType:t.val_status.eventType,props:t});t.set_validate({ok:l.ok,notice:[...a,...l.notice]})});if(n.onValidate){if(t.val_status.eventType=="refresh"){i();return}c.interval.run("ValidationTimer-"+t.val_status.componentID,450,i);return}t.set_validate({ok:!0,notice:a})},SubmitForm:(t,n)=>{let e=!1;if(!n)return e;let a=k(`[data-form-submit-button="${n}"]`)[0];if(!a)return e;let i=a.dataset.sdfike||"",l=t.key,d=t.ctrlKey||t.metaKey;return c.scope(()=>{i.includes("enter")&&(l!="Enter"||t.nativeEvent.isComposing||B.get().browserIs=="safari"&&t.keyCode==229)||((l=="Enter"&&(i.includes("enter")||i.includes("auxEnter")&&d)||l==" "&&i.includes("space"))&&(a.click(),t.preventDefault()),e=!0)}),e},isShowValidation:(t,n,e)=>{let a=t.ok;return!e&&n.eventType=="init"&&(a=!0),a}},nt=function(t){t=o({tone:"border"},t);let n=c.scope(()=>{if(t.tone=="plain")return{};let a={padding:"3/4",transition:"middle",flexSizing:"auto",boxShadow:"0.min"};return t.tone=="border"?a=u(o({},a),{border:!0,borderRadius:"2.tone.secondary",backgroundColor:"layer.1"}):t.tone=="cloud"?a=u(o({},a),{border:"1.thin",borderRadius:"2.tone.secondary",backgroundColor:"cloud"}):t.tone=="bottomBorder"&&(a=u(o({},a),{borderRadius:0,border:"unset",borderBottom:!0,backgroundColor:"cloud"})),a});return u(o(o(o(o(o(o({fontColor:"2.normal"},n),!!t.rightIcon&&{paddingRight:3}),!!t.leftIcon&&{paddingLeft:3}),!!t.leftIndicator&&{borderTopLeftRadius:"2/3",borderBottomLeftRadius:"2/3",marginLeft:"1/4"}),!!t.rightIndicator&&{borderTopRightRadius:"2/3",borderBottomRightRadius:"2/3",marginRight:"1/4"}),t),{freeCSS:o({letterSpacing:"1px",resize:"none"},t.freeCSS),className:[b("Input"),t.className].join(" ")})};export{at as BoxWrapper,z as CoreEffects,nt as DefaultBoxishStyles,et as OptionalInputWrapper};
|